/**
 * Adwani & Co LLP - Custom Styles
 * Component classes and utilities for Tailwind CDN
 */

/* ==========================================
   Base Styles
   ========================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1a365d;
}

/* ==========================================
   Button Components
   ========================================== */

.btn,
.btn-primary,
.btn-secondary,
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #243b53;
    color: white;
}

.btn-primary:hover {
    background-color: #1a365d;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #243b53;
    color: #243b53;
}

.btn-secondary:hover {
    background-color: #243b53;
    color: white;
}

.btn-gold {
    background-color: #d69e2e;
    color: #1a365d;
}

.btn-gold:hover {
    background-color: #b7791f;
}

/* ==========================================
   Card Components
   ========================================== */

.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* Base style for card-hover */
.card-hover {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9; /* Default border to enable hover effect */
}

/* Hover effect for card-hover */
.card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #d69e2e; /* Gold color for hover border */
}

/* Service Card */
.service-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect for service-card */
.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #d69e2e; /* Gold color for hover border */
}

.service-card .icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #d9e2ec; /* Reverted to original background color */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card .icon-wrapper svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #334e68;
}

/* Service Card Hover Effect (Content shown/hidden) */
.service-card-content-hidden {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-card:hover .service-card-content-hidden {
    opacity: 0;
    visibility: hidden;
}

.service-card-content-shown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-card:hover .service-card-content-shown {
    opacity: 1;
    visibility: visible;
}

/* Icon hover effects */
.service-card:hover .icon-wrapper svg {
    stroke: #d69e2e; /* Gold color for icon stroke on hover */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.card-hover:hover svg { /* Assuming svg is a direct child or within a wrapper div with no specific class */
    stroke: #d69e2e; /* Gold color for icon stroke on hover */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Icon wrapper background hover effects (only service-card, card-hover override removed) */
.service-card:hover .icon-wrapper {
    background-color: #d69e2e; /* Gold color for icon wrapper background on hover */
    transition: all 0.3s ease;
}


/* ==========================================
   Section Components
   ========================================== */

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #475569;
    max-width: 42rem;
}

/* Container */
.container-custom {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 2rem;
    }
}

/* ==========================================
   Navigation
   ========================================== */

.nav-link {
    color: #334155;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #243b53;
}

.nav-link.active {
    color: #243b53;
    border-bottom: 2px solid #d69e2e;
}

.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Badges
   ========================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-gold {
    background-color: #fef3c7;
    color: #744210;
}

.badge-navy {
    background-color: #d9e2ec;
    color: #243b53;
}

/* ==========================================
   Form Elements
   ========================================== */

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #243b53;
    box-shadow: 0 0 0 3px rgba(36, 59, 83, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    resize: none;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #243b53;
    box-shadow: 0 0 0 3px rgba(36, 59, 83, 0.1);
}

/* ==========================================
   Stats
   ========================================== */

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #243b53;
    font-family: 'Playfair Display', Georgia, serif;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    color: #475569;
    margin-top: 0.5rem;
}

/* ==========================================
   Timeline
   ========================================== */

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid #bcccdc;
}

.timeline-item:last-child {
    border-left: 0;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 1rem;
    height: 1rem;
    background-color: #d69e2e;
    border-radius: 9999px;
    border: 4px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Gradient Backgrounds
   ========================================== */

.bg-gradient-navy {
    background: linear-gradient(to bottom right, #243b53, #1a365d);
}

.bg-gradient-light {
    background: linear-gradient(to bottom right, #f8fafc, white);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #243b53, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   Animations
   ========================================== */

/* GSAP animation classes */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.gsap-fade-in {
    opacity: 0;
}

.gsap-scale {
    opacity: 0;
    transform: scale(0.9);
}

.gsap-slide-left {
    opacity: 0;
    transform: translateX(-50px);
}

.gsap-slide-right {
    opacity: 0;
    transform: translateX(50px);
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* Glow animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(214, 158, 46, 0.5); }
    50% { box-shadow: 0 0 20px rgba(214, 158, 46, 0.8); }
}

.animate-glow {
    animation: glow 2s infinite;
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================
   Preloader
   ========================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.preloader-logo {
    opacity: 0;
    transform: scale(0.75);
}

/* ==========================================
   Utilities
   ========================================= */

/* Visibility transition */
.invisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}