/* ===========================
   VARIABLES & BASE
   =========================== */
:root {
    --navy: #4A7BA7;
    --navy-dark: #2A5A8A;
    --navy-light: #5A9FBE;
    --gold: #C9A96E;
    --gold-light: #D4BA8A;
    --gold-dark: #B8944F;
    --text-dark: #2C3E50;
    --text-muted: #6C7A89;
    --bg-light: #F7F7F3;
    --bg-white: #FFFFFF;
    --border-light: #E8E6E1;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--navy);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-gold {
    color: var(--gold) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy-dark);
    border: 2px solid var(--gold);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.35);
}

.btn-outline-light {
    border-width: 2px;
    padding: 0.65rem 1.75rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-1px);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
}

.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* ===========================
   TOP BAR
   =========================== */
.top-bar {
    background: var(--navy-dark);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-contact span {
    opacity: 0.85;
}

.lang-switcher .btn-link {
    text-decoration: none;
    font-weight: 500;
}

.lang-switcher .btn-link:hover {
    color: var(--gold) !important;
}

/* ===========================
   NAVIGATION
   =========================== */
#mainNav {
    background: var(--navy);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

#mainNav.scrolled {
    background: var(--navy-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.02em;
}

.navbar-brand i {
    color: var(--gold);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    font-size: 1rem;
}

/* ===========================
   STATS SECTION
   =========================== */
.stats-section {
    background: var(--navy);
    padding: 3rem 0;
    margin-top: -1px;
}

.stat-item {
    padding: 1.5rem 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===========================
   PRACTICE AREA CARDS
   =========================== */
.practice-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--gold);
}

.animate-card-hover {
    animation: slideInUp 0.6s ease-out backwards;
}

.practice-card:nth-child(1) { animation-delay: 0.1s; }
.practice-card:nth-child(2) { animation-delay: 0.2s; }
.practice-card:nth-child(3) { animation-delay: 0.3s; }
.practice-card:nth-child(4) { animation-delay: 0.4s; }
.practice-card:nth-child(5) { animation-delay: 0.5s; }
.practice-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.practice-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.practice-card:hover .practice-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.25);
}

.practice-icon i {
    font-size: 1.75rem;
    color: var(--gold);
}

.practice-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.practice-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.practice-link {
    font-weight: 600;
    color: var(--gold-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.practice-link:hover {
    color: var(--navy);
}

.practice-card:hover .practice-link {
    transform: translateX(5px);
}

.practice-link i {
    transition: transform 0.3s ease;
}

.practice-card:hover .practice-link i {
    transform: translateX(3px);
}

.practice-link:hover i {
    transform: translateX(4px);
}

/* ===========================
   ABOUT PREVIEW
   =========================== */
.about-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-image {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease;
}

.about-image.preload-img {
    opacity: 0.6;
    filter: blur(2px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.about-image.preload-img.loaded {
    opacity: 1;
    filter: none;
}

.about-image.large {
    max-width: 420px;
}

.about-image-fallback {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-fallback i {
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.5;
}

.about-image-fallback.large {
    max-width: 420px;
}

.about-image-accent {
    position: absolute;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    border: 3px solid var(--gold);
    border-radius: 8px;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-feature {
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 5rem 0 4rem;
    text-align: center;
}

.page-header-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-header-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   INFO CARDS (About page)
   =========================== */
.info-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.info-card-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.info-card-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

/* ===========================
   VALUE CARDS (About page)
   =========================== */
.value-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.value-icon i {
    font-size: 1.35rem;
    color: var(--navy-dark);
}

/* ===========================
   SERVICES PAGE
   =========================== */
.service-icon-block {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon-block i {
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.6;
}

.service-item {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.section-divider {
    max-width: 100px;
    margin: 0 auto;
    border-color: var(--gold);
    opacity: 0.4;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.contact-form-card .form-control {
    border-color: var(--border-light);
    border-radius: 4px;
    font-family: var(--font-body);
}

.contact-form-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.2);
}

.contact-info-card {
    background: var(--navy);
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
}

.contact-info-card h3 {
    color: #fff;
    font-size: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(201, 169, 110, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon i {
    color: var(--gold);
    font-size: 1.1rem;
}

.contact-info-item h6 {
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 0.95rem;
}

.contact-info-item a {
    color: rgba(255, 255, 255, 0.85);
}

.contact-info-item a:hover {
    color: var(--gold);
}

.map-section {
    line-height: 0;
}

.map-section iframe {
    filter: grayscale(30%) contrast(1.05);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 1.5rem;
}

.footer-brand {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.25rem;
}

.footer-brand i {
    color: var(--gold);
}

.footer-heading {
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-links li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ===========================
   ANIMATIONS
   =========================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .page-header {
        padding: 4rem 0 3rem;
    }

    .page-header-title {
        font-size: 2.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .about-image-wrapper {
        text-align: center;
        margin-bottom: 1rem;
    }

    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-image-accent {
        max-width: 280px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.75rem;
    }
}