/* ─── PVAR & ASSOCIATES - CORE DESIGN SYSTEM ────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #070d1a;
    --navy-mid: #0f1f3d;
    --navy-light: #162244;
    --gold: #c9a227;
    --gold-light: #e8c35a;
    --gold-pale: #f5e5a8;
    --accent: #2563eb;
    --slate: #94a3b8;
    --surface: #f8fafc;
    --card: rgba(255, 255, 255, 0.65);
    --border: rgba(255, 255, 255, 0.8);
    --text: #0a0f1e;
    --muted: #64748b;
    --radius: 1.5rem;
    --divider: rgba(10, 15, 30, 0.12);
    --divider-light: rgba(10, 15, 30, 0.1);
    --subtle-bg: rgba(10, 15, 30, 0.04);
    --subtle-border: rgba(10, 15, 30, 0.07);
    --section-alt: rgba(10, 15, 30, 0.02);
    --pill-bg: rgba(10, 15, 30, 0.05);
    --pill-border: rgba(10, 15, 30, 0.08);
}

html {
    scroll-behavior: smooth;
}

html.dark {
    --surface: #060d1b;
    --card: rgba(10, 20, 50, 0.55);
    --border: rgba(255, 255, 255, 0.06);
    --text: #eef2ff;
    --muted: #94a3b8;
    --divider: rgba(255, 255, 255, 0.1);
    --divider-light: rgba(255, 255, 255, 0.08);
    --subtle-bg: rgba(255, 255, 255, 0.05);
    --subtle-border: rgba(255, 255, 255, 0.08);
    --section-alt: rgba(255, 255, 255, 0.025);
    --pill-bg: rgba(255, 255, 255, 0.06);
    --pill-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--surface);
    background-image: radial-gradient(circle at 0% 0%, rgba(201, 162, 39, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.04) 0%, transparent 40%);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    transition: background-color 0.5s, color 0.5s;
}

/* Prevent system cursor from reappearing on interactive elements */
a,
button,
input,
select,
textarea,
.ch,
[role="button"] {
    cursor: none !important;
}

/* ─── SCROLLBAR ─────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* ─── PROGRESS BAR ──────────────────────── */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #f0c040);
    z-index: 9998;
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--gold);
}

/* ─── PRELOADER ─────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: #fff;
    letter-spacing: -0.05em;
}

.preloader-logo span {
    color: var(--gold);
}

.preloader-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin-top: 1.5rem;
    border-radius: 2px;
    animation: preload-line 2s ease forwards;
    box-shadow: 0 0 12px var(--gold);
}

@keyframes preload-line {
    to {
        width: 280px;
    }
}

.preloader-text {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ─── CUSTOM CURSOR ─────────────────────── */
#cur {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width .3s cubic-bezier(.23, 1, .32, 1), height .3s cubic-bezier(.23, 1, .32, 1), background .3s;
    background: rgba(201, 162, 39, 0.1);
}

#cur-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--gold);
}

body.cur-hover #cur {
    width: 52px;
    height: 52px;
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold);
    border-width: 1px;
}

/* ─── ANNOUNCEMENT BAR ──────────────────── */
#ann-bar {
    position: relative;
    z-index: 60;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 0.65rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#ann-bar span.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    animation: pulse-ann 1.5s ease-in-out infinite;
}

@keyframes pulse-ann {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4)
    }
}

/* ─── NAVIGATION ────────────────────────── */
#navbar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: top .4s cubic-bezier(.23, 1, .32, 1), background .4s, box-shadow .4s;
}

#nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background: transparent;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all .5s cubic-bezier(.23, 1, .32, 1);
}

#nav-inner.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    margin-top: 1rem;
    height: 72px;
    padding: 0 1.75rem;
}

html.dark #nav-inner.scrolled {
    background: rgba(6, 13, 27, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}

.nav-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--gold);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(10, 15, 30, 0.3);
}

.nav-logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, .25), transparent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    white-space: nowrap;
}

html.dark .nav-links a {
    color: rgba(255, 255, 255, 0.7);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 12px;
}

/* Mega Menu Styles */
.mega-menu-wrapper {
    position: relative;
    display: inline-block;
}

.mega-menu-wrapper>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mega-menu-wrapper>a::after {
    display: none !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    visibility: hidden;
    width: 600px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 100;
}

/* Precise bridge - only as wide as the menu item */
.mega-menu-wrapper:hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    /* Matches the gap */
    background: transparent;
    z-index: 10;
}

html.dark .mega-menu {
    background: rgba(10, 20, 50, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mega-menu-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
    pointer-events: auto;
}

.mega-col {
    flex: 1;
    border-right: 1px solid var(--divider-light);
    padding-right: 2rem;
}

.mega-col:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.nav-links .mega-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.5rem 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
}

html.dark .nav-links .mega-col a {
    color: rgba(255, 255, 255, 0.8);
}

.nav-links .mega-col a:hover {
    color: var(--gold);
    padding-left: 8px;
    background: transparent;
}

.nav-cta {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 25px -5px rgba(10, 15, 30, 0.2);
    border: 1px solid transparent;
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(201, 162, 39, 0.3);
}

/* Insights & Portal Styles */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    border-radius: 1.5rem;
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.insight-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.9);
}

html.dark .insight-card:hover {
    background: rgba(10, 20, 50, 0.7);
}

.insight-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

html.dark .nav-cta {
    background: var(--gold);
    color: var(--navy);
}

html.dark .nav-cta:hover {
    background: #fff;
}

.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 15, 30, 0.06);
    border: 1px solid rgba(10, 15, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    transition: all .3s;
    flex-shrink: 0;
}

html.dark .theme-btn {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.theme-btn:hover {
    transform: rotate(15deg);
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.mob-menu-btn {
    display: none;
    background: rgba(10, 20, 50, 0.05);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s;
}

html.dark .mob-menu-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mob-menu-btn:hover {
    background: var(--gold);
    color: white;
    transform: scale(1.05);
}

/* ─── MOBILE MENU REDESIGN ───────────────── */
#mob-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html.dark #mob-menu {
    background: rgba(6, 13, 27, 0.9);
}

#mob-menu.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mob-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

#mob-menu a {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    background: transparent;
}

html.dark #mob-menu a {
    color: rgba(255, 255, 255, 0.9);
}

#mob-menu a:hover {
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold);
    padding-left: 1.5rem;
}

html.dark .eco-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── PROMO PILL BADGES ─────────────────── */
.promo-pill {
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    animation: promo-breath 3s infinite ease-in-out;
    white-space: nowrap;
}

@keyframes promo-breath {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-5px) scale(1.02);
        opacity: 1;
    }
}

.promo-pill.gold {
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold);
}

.promo-pill.red {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff3b30;
}

.text-red {
    color: #ff3b30;
    font-weight: 800;
}

.promo-pill.orange {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #f97316;
}

#mob-menu a .icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(10, 20, 50, 0.05);
    color: var(--gold);
    transition: all 0.3s;
}

html.dark #mob-menu a .icon-box {
    background: rgba(255, 255, 255, 0.05);
}

#mob-menu a:hover .icon-box {
    background: var(--gold);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.mob-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 20, 50, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

html.dark .mob-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.mob-contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
}


#mob-menu a:hover {
    color: var(--gold);
}

#mob-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: .5rem;
}


.glass {
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(10, 15, 30, 0.06);
    transition: all .5s cubic-bezier(.23, 1, .32, 1);
}

html.dark .glass {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.glass:hover {
    transform: translateY(-6px) scale(1.005);
}

/* ─── TEXT GRADIENTS ────────────────────── */
.grad-navy {
    background: linear-gradient(135deg, #0a0f1e, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark .grad-navy {
    background: linear-gradient(135deg, #e2e8f0, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-gold {
    background: linear-gradient(135deg, #c9a227, #f5e5a8, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-blue {
    background: linear-gradient(135deg, #1e40af, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── SECTION LABEL ─────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    padding: .4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: rgba(201, 162, 39, 0.07);
}

/* ─── HERO SECTION ──────────────────────── */
#home {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    z-index: 10;
}

#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--text);
}

.hero-headline .serif-accent {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
}

/* Split text chars */
.split-char {
    display: inline-block;
    overflow: hidden;
}

.hero-stat-row {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-stat strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.hero-stat>span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-top: .3rem;
}

/* ─── MARQUEE ───────────────────────────── */
.marquee-wrap {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 5rem;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track.rev {
    animation-direction: reverse;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-shrink: 0;
}

.marquee-item::before {
    content: '◆';
    color: var(--gold);
    font-size: .5rem;
}

/* ─── ABOUT ─────────────────────────────── */
#about {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.about-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-visual {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 2.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy));
}

.about-visual-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.about-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
}

.timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.tm-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    transition: all .6s ease;
}

.tm-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.tm-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-year {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--gold);
}

.tm-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ─── TEAM ──────────────────────────────── */
#team {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3rem auto 0;
}

.team-card-inner {
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy-mid), #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(10, 15, 30, 0.25);
}

.team-city-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(10, 15, 30, 0.05);
    border: 1px solid rgba(10, 15, 30, 0.08);
}

html.dark .team-city-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.filter-pill {
    padding: .55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
    transition: all .3s;
    background: rgba(10, 15, 30, 0.05);
    color: var(--muted);
}

html.dark .filter-pill {
    background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(10, 15, 30, 0.2);
}

html.dark .filter-pill.active {
    background: var(--gold);
    color: var(--navy);
}

/* ─── SERVICES ──────────────────────────── */
#services {
    padding: 8rem 2rem;
    background: var(--navy);
    position: relative;
    z-index: 10;
}

html.dark #services {
    background: #060d1b;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    max-width: 1280px;
    margin: 3rem auto 0;
}

.svc-card {
    border-radius: 2rem;
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: transform .5s cubic-bezier(.23, 1, .32, 1), box-shadow .5s;
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
}

.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ─── ACHIEVEMENTS ──────────────────────── */
#achievements {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 3rem auto 0;
}

.ach-card {
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.ach-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--text);
}

/* ─── CALCULATOR ────────────────────────── */
#calc {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
    background: var(--navy);
}

html.dark #calc {
    background: #060d1b;
}

.calc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    margin-top: .75rem;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
}

input[type=range] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform .2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* ─── TESTIMONIALS ──────────────────────── */
#testimonials {
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.testi-track {
    display: flex;
    gap: 32px;
    transition: transform .7s cubic-bezier(.23, 1, .32, 1);
}

.testi-card {
    min-width: 380px;
    border-radius: 2rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ─── CALCULATOR TABS (SCROLLABLE) ───────── */
.calc-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.calc-tabs::-webkit-scrollbar {
    display: none;
}

.calc-tab {
    white-space: nowrap;
    padding: .75rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    transition: all .3s;
}

.calc-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.calc-tab.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
    animation: panelFade .5s ease forwards;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-number {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-top: .5rem;
    outline: none;
    transition: border-color .3s;
}

.calc-number:focus {
    border-color: var(--gold);
}

.calc-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-top: .5rem;
    appearance: none;
    outline: none;
}

.testi-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.55;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testi-dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: 2rem;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(10, 15, 30, 0.15);
    transition: all .3s;
    cursor: pointer;
}

html.dark .testi-dot {
    background: rgba(255, 255, 255, 0.15);
}

.testi-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ─── LOCATIONS ─────────────────────────── */
#presence {
    padding: 4rem 2rem 8rem;
    position: relative;
    z-index: 10;
}

.loc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1280px;
    margin: 3rem auto 0;
}

.loc-card {
    border-radius: var(--radius);
    padding: 2rem;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
}

.loc-card:hover {
    transform: translateY(-6px);
}

/* ─── CONTACT ───────────────────────────── */
#contact {
    padding: 8rem 2rem;
    background: var(--navy);
    position: relative;
    z-index: 10;
}

html.dark #contact {
    background: #060d1b;
}

.contact-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: .875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .875rem;
    outline: none;
    transition: border .3s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--gold);
}

.form-field label {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: .5rem;
}

/* ─── FOOTER ────────────────────────────── */
footer {
    background: #040915;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
    overflow: hidden;
}
 
.footer-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    width: fit-content;
    position: relative;
    font-weight: 500;
}
 
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
 
.footer-link:hover {
    color: var(--gold);
    padding-left: 5px;
}
 
.footer-link:hover::after {
    width: 100%;
}
 
/* ─── LOCATION TABS ────────────────────── */
.loc-tab {
    padding: 0.65rem 1.5rem;
    border-radius: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
 
.loc-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
 
.loc-tab.active {
    background: var(--navy-mid);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
 
/* ─── FORM ELEMENTS ─────────────────────── */
.form-field {
    display: flex;
    flex-direction: column;
}
 
.form-field input, 
.form-field select, 
.form-field textarea {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
 
.form-field input:focus, 
.form-field select:focus, 
.form-field textarea:focus {
    background: rgba(255,255,255,0.06);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,162,39,0.1);
}
 
/* ─── UTILITY GRID ──────────────────────── */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-width, 300px), 1fr));
    gap: 2rem;
}
 
@media (max-width: 480px) {
    .grid-auto {
        grid-template-columns: 1fr;
        --min-width: 100%;
    }
}

/* ─── FLOATING ELEMENTS ─────────────────── */
#whatsapp-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    cursor: pointer;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
}

#back-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#back-top.show {
    opacity: 1;
    visibility: visible;
}

#back-top:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-4px);
}

/* ─── AI CHAT WIDGET ────────────────────── */
#ai-chat-bubble {
    position: fixed;
    bottom: 9rem;
    right: 1.5rem;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-mid), #1e3a8a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(10, 15, 30, .4);
    transition: transform .3s, box-shadow .3s;
}

#ai-chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(10, 15, 30, .5);
}

#ai-chat-panel {
    position: fixed;
    bottom: 11rem;
    right: 1.5rem;
    z-index: 1000;
    width: 340px;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 24px 64px rgba(10, 15, 30, .18);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92) translateY(10px);
    transform-origin: bottom right;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
}

html.dark #ai-chat-panel {
    background: #0f1b36;
}

#ai-chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

#chat-head {
    background: var(--navy);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

#chat-body {
    height: 220px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.chat-msg {
    max-width: 85%;
    padding: .65rem .9rem;
    border-radius: .875rem;
    font-size: .8rem;
    line-height: 1.5;
}

.chat-msg.bot {
    background: rgba(10, 15, 30, .05);
    color: var(--text);
    border-bottom-left-radius: .25rem;
    align-self: flex-start;
}

html.dark .chat-msg.bot {
    background: rgba(255, 255, 255, .07);
}

.chat-msg.user {
    background: var(--navy);
    color: #fff;
    border-bottom-right-radius: .25rem;
    align-self: flex-end;
}

html.dark .chat-msg.user {
    background: var(--gold);
    color: var(--navy);
}

#chat-input-area {
    border-top: 1px solid var(--subtle-border);
    display: flex;
    gap: .5rem;
    padding: .75rem;
}

html.dark #chat-input-area {
    border-color: rgba(255, 255, 255, .07);
}

#chat-input {
    flex: 1;
    padding: .5rem .75rem;
    border-radius: .625rem;
    border: 1px solid var(--divider-light);
    background: rgba(10, 15, 30, .04);
    font-size: .78rem;
    color: var(--text);
    outline: none;
}

html.dark #chat-input {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .1);
    color: #fff;
}

#chat-send {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    background: var(--navy);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

html.dark #chat-send {
    background: var(--gold);
    color: var(--navy);
}

#chat-send:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ─── COOKIE ────────────────────────────── */
#cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(4, 9, 21, .96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 162, 39, .2);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transform: translateY(100%);
    transition: transform .5s cubic-bezier(.23, 1, .32, 1);
}

#cookie-bar.show {
    transform: translateY(0);
}

#cookie-bar p {
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.5;
}

#cookie-bar a {
    color: var(--gold);
}

.cookie-accept {
    padding: .6rem 1.5rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s;
}

.cookie-accept:hover {
    transform: scale(1.04);
}

/* ─── ANIMATIONS ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-14px) rotate(1.5deg)
    }
}

.float {
    animation: float 7s ease-in-out infinite;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 1024px) {

    .hero-grid,
    .about-grid,
    .calc-wrap,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-visual {
        max-height: none;
        height: auto;
        aspect-ratio: auto;
    }

    .svc-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .svc-card {
        grid-column: auto !important;
        padding: 2rem !important;
    }
}

@media (max-width: 1100px) {
    .d-sm-none { display: none !important; }
    .nav-links { display: none !important; }
    .nav-cta { display: none !important; }
    .theme-btn { display: flex; }
    .mob-menu-btn { display: flex !important; align-items: center; }

    .nav-logo-description {
        display: flex !important;
        flex-direction: column;
    }
    
    .nav-logo-description div:first-child {
        font-size: 0.9rem !important;
    }
    
    .nav-logo-description div:last-child {
        display: block !important;
        font-size: 0.5rem !important;
        letter-spacing: 0.1em !important;
    }

    #nav-inner {
        padding: 0 1rem;
        height: 72px;
    }

    .header-logo-img {
        height: 52px !important;
    }
}

@media (max-width: 768px) {
    .header-logo-img {
        height: 48px !important;
    }

    .nav-logo-description div:first-child {
        font-size: 1rem !important;
    }

    .nav-logo-description div:last-child {
        display: block !important;
        font-size: 0.5rem !important;
        letter-spacing: 0.1em !important;
    }

    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .eco-card {
        padding: 1.75rem 1.5rem;
        border-radius: 1.5rem;
    }

    .eco-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .eco-tag {
        font-size: 0.65rem;
        line-height: 1.8;
        letter-spacing: 0.08em;
        margin-bottom: 1.25rem;
    }

    .eco-desc {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }

    .eco-card>div>div[style*="height: 70px"] {
        height: 50px !important;
        margin-bottom: 1.5rem !important;
    }

    .eco-logo-bg {
        display: none;
    }

    #ecosystem {
        padding: 5rem 1.25rem !important;
    }

    /* Removed redundant mob-menu-btn display rule as it is handled at 1100px */

    #nav-inner.scrolled {
        margin-top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .hero-stat-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .hero-stat strong {
        font-size: 2.75rem;
        white-space: nowrap;
    }

    .hero-stat>span {
        font-size: 0.85rem;
        margin-top: 0.4rem;
    }

    .team-grid,
    .loc-grid {
        grid-template-columns: 1fr;
    }

    .ach-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 3rem;
    }

    #ai-chat-panel {
        width: calc(100vw - 2rem);
        right: 1rem;
    }

    .testi-card {
        flex: 0 0 100%;
        min-width: 0;
        max-width: 100%;
        padding: 1.5rem;
    }

    .about-visual-inner {
        position: relative;
        padding: 2rem;
        justify-content: flex-start;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 2rem;
        width: 100%;
    }

    .regime-comparison,
    .gst-result-grid {
        grid-template-columns: 1fr;
    }

    .calc-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 0.6rem !important;
        border-radius: 1.25rem !important;
        overflow-x: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }

    .calc-tab {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 0.5rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.7rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
        white-space: normal;
        height: auto;
    }

    .calc-tab i {
        width: 18px !important;
        height: 18px !important;
    }

    .calc-tab.active {
        background: var(--gold) !important;
        border-color: var(--gold) !important;
        color: var(--navy) !important;
        box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3) !important;
    }

    .calc-wrap {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .promo-pill {
        padding: 0.5rem 0.85rem;
        font-size: 0.65rem;
    }

    .eco-card div[style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.25rem !important;
    }

    .eco-card .btn-primary,
    .eco-card .btn-ghost {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Subpage Mobile Overrides */
    main {
        padding-top: 100px !important;
    }

    section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 12vw, 3.5rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.05em !important;
    }

    .hero-headline br {
        display: none !important;
    }

    .sec-title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em !important;
    }

    .feature-media {
        height: auto !important;
        aspect-ratio: 16/10;
        transform: none !important;
        margin-top: 2rem;
    }

    .parallax-container {
        height: 300px !important;
        margin: 3rem 0 !important;
        border-radius: 1.5rem !important;
    }

    .parallax-container h2 {
        font-size: 2rem !important;
    }

    footer .max-w {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    footer {
        padding: 4rem 1.5rem 2rem !important;
    }

    /* Responsive Grid Utilities (applied to subpages) */
    .responsive-two-column,
    .responsive-three-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
    }

    /* Prevent glass containers from having too much fixed padding on mobile */
    .glass {
        padding: 2rem 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .process-step {
        padding: 2rem !important;
    }

    .mobile-stack {
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-padding-y {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* ─── SUBPAGE UTILITIES (DESKTOP DEFAULT) ── */
.responsive-two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.responsive-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ─── MISC UTILS ────────────────────────── */
.max-w {
    max-width: 1280px;
    margin: 0 auto;
}

.sec-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: .95;
    letter-spacing: -0.04em;
}

.serif {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .35s;
    box-shadow: 0 8px 28px rgba(10, 15, 30, .22);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(201, 162, 39, .28);
}

html.dark .btn-primary {
    background: var(--gold);
    color: var(--navy);
}

html.dark .btn-primary:hover {
    background: #fff;
    color: var(--navy);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid var(--divider);
    transition: all .35s;
}

.btn-ghost:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

html.dark .btn-ghost {
    border-color: rgba(255, 255, 255, .15);
    color: #fff;
}

html.dark .btn-ghost:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy);
}

/* Chat typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: .5rem .75rem;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--muted);
    border-radius: 50%;
    animation: blink .9s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: .2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: .2
    }

    40% {
        opacity: 1
    }
}

/* Geometric decorations */
.geo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.1);
    animation: spin-slow 20s linear infinite;
    pointer-events: none;
}

/* Accordion for contact info */
.info-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0;
}

.info-label {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: .4rem;
}

.info-val {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* ─── ADVANCED CALCULATOR ──────────────── */
.calc-tabs {
    display: flex;
    gap: .3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 auto 2.5rem;
    width: max-content;
    max-width: 100%;
    padding: .4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
}

.calc-tabs::-webkit-scrollbar {
    display: none;
}

.calc-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: .65rem 1rem;
    border-radius: .75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all .3s;
}

.calc-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.calc-tab.active {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
    animation: fadeCalcPanel .5s ease;
}

@keyframes fadeCalcPanel {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.calc-input-group {
    margin-bottom: 1.5rem;
}

.calc-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.calc-input-label span:first-child {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.calc-input-label .calc-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: .85rem;
    color: var(--gold);
}

.calc-select,
.calc-number {
    width: 100%;
    padding: .875rem 1.25rem;
    border-radius: .875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .85rem;
    outline: none;
    transition: border .3s;
}

.calc-select:focus,
.calc-number:focus {
    border-color: var(--gold);
}

.calc-select option {
    background: var(--navy);
    color: #fff;
}

.calc-result-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 1rem;
    transition: all .3s;
}

.calc-result-card:hover {
    border-color: rgba(201, 162, 39, 0.2);
}

.calc-result-card.highlight {
    background: rgba(201, 162, 39, 0.06);
    border-color: rgba(201, 162, 39, 0.2);
}

.calc-result-label {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: .5rem;
}

.calc-result-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -.04em;
    color: #fff;
}

.calc-result-amount.gold {
    color: var(--gold);
}

.calc-result-amount.sm {
    font-size: 1.35rem;
}

.calc-result-amount.green {
    color: #4ade80;
}

.calc-savings-badge {
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.calc-savings-badge .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: .625rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.calc-toggle-btn {
    flex: 1;
    padding: .65rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Outfit', sans-serif;
}

.calc-toggle-btn.active {
    background: var(--gold);
    color: var(--navy);
}

.calc-run-btn {
    width: 100%;
    padding: 1rem;
    border-radius: .875rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
}

.calc-run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.4);
}

.regime-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.regime-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all .3s;
}

.regime-card.old {
    background: rgba(255, 255, 255, 0.04);
}

.regime-card.new {
    background: rgba(201, 162, 39, 0.06);
    border-color: rgba(201, 162, 39, 0.2);
}

.regime-card h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: .75rem;
}

.regime-card .tax-amt {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: -.04em;
}

.regime-card.old .tax-amt {
    color: rgba(255, 255, 255, 0.7);
}

.regime-card.new .tax-amt {
    color: var(--gold);
}

.regime-card .tax-detail {
    font-size: .7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: .5rem;
}

.gst-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.eco-card {
    border-radius: 2.5rem;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--subtle-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.eco-card.snap {
    border-color: rgba(255, 165, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 165, 0, 0.08));
}

.eco-card.plenitude {
    border-color: rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(37, 99, 235, 0.08));
}

html.dark .eco-card {
    background: rgba(10, 15, 30, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html.dark .eco-card.snap {
    border-color: rgba(255, 165, 0, 0.3);
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.8), rgba(255, 165, 0, 0.15));
}

html.dark .eco-card.plenitude {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.8), rgba(37, 99, 235, 0.15));
}

.eco-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

html.dark .eco-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.eco-logo-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    opacity: 0.08;
    transition: opacity 0.3s;
}

html.dark .eco-logo-bg {
    opacity: 0.04;
}

.eco-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
    /* Robust for wrapping text */
    line-height: 1.8;
    position: relative;
    padding-left: 1.25rem;
}

.eco-tag span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
    position: absolute;
    left: 0;
    top: 0.35rem;
    /* Center with the first line of text */
}

.eco-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.25rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    color: var(--navy);
    transition: color 0.3s;
}

html.dark .eco-title {
    color: #fff;
}

.eco-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* ─── LOCATION TABS ─────────────────────── */

.loc-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loc-tab.active {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.loc-tab:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.suboffice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suboffice-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.card-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.card-info {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.card-info i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.card-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.card-info a:hover {
    color: var(--gold);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── REPORT MODAL ──────────────────────── */

#report-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#report-modal .glass {
    background: rgba(255, 255, 255, 0.98);
}

html.dark #report-modal .glass {
    background: rgba(15, 27, 54, 0.98);
}

/* ─── ENRICHED CONTENT UTILITIES ──────────────── */
.video-hero {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.video-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(6, 13, 27, 0.7), 
        rgba(6, 13, 27, 0.4) 50%, 
        var(--surface) 100%);
    z-index: 1;
}

html.dark .video-hero::after {
    background: linear-gradient(to bottom, 
        rgba(6, 13, 27, 0.85), 
        rgba(6, 13, 27, 0.5) 50%, 
        var(--surface) 100%);
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.8);
}

.feature-media {
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-media:hover img {
    transform: scale(1.05);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    position: relative;
    padding: 2.5rem;
    background: var(--card);
    border-radius: 2rem;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.process-step:hover {
    background: var(--subtle-bg);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

.content-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.content-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-container {
    height: 500px;
    overflow: hidden;
    border-radius: 3rem;
    margin: 6rem 0;
    position: relative;
}

.parallax-img {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
}

/* ─── PVAR GLOBAL DESIGN SYSTEM ──────────────── */
.pvar-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
}

.pvar-section {
    padding: 10rem 0;
    position: relative;
    z-index: 10;
}

.pvar-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 6rem;
}

.glass-card {
    background: var(--card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
    border-color: var(--gold);
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

/* Typography Fluid Scaling */
.text-hero {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text);
}

.text-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: var(--text);
}

.text-body-large {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--muted);
}

.serif {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
}

/* ─── RESPONSIVE UTILITIES ──────────────── */
.responsive-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.responsive-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ─── FOOTER ────────────────────────────── */
footer {
    background: var(--navy);
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--divider-light);
}

.foot-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.foot-grid h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.foot-grid a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 0.85rem;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    font-weight: 600;
}

.foot-grid a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.foot-grid p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ─── ICAI MODAL ────────────────────────── */
#icai-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#icai-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#icai-modal .glass {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 700px;
    padding: 4rem;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 2.5rem;
}

@media (max-width: 992px) {
    .responsive-two-column,
    .responsive-three-column,
    .team-grid,
    .loc-grid,
    .svc-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .ach-grid,
    .foot-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-wrap,
    .calc-wrap,
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .hero-headline {
        font-size: 3rem !important;
        line-height: 1.1;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-stat-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100%;
    }

    .hero-stat {
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Side-by-side buttons in hero */
    /* Restore vertical buttons in hero if requested, but keep flex/grid for now if they fit. 
       Actually, user said 'restore previous logic', so I'll stack them. */
    .hero-grid .reveal[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-grid .btn-primary, 
    .hero-grid .btn-ghost {
        padding: 1.1rem 2.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .feature-media {
        order: -1; /* Show image first on mobile for hero */
    }

    /* Cleaned up redundant rules here as they are now handled in the main media query block */

    #navbar {
        top: 42px; /* Adjust for announcement bar */
    }

    .hero-optimizer-col {
        margin-top: 4rem; /* Prevent overlap with stats */
    }

    main {
        padding-top: 80px !important;
    }

    .pvar-hero {
        padding: 4rem 0 2rem !important;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem !important;
    }

    .text-body-large {
        font-size: 1rem !important;
    }

    .hero-stat strong {
        font-size: 1.75rem !important;
    }

    .pvar-section {
        padding: 4rem 0;
    }

    .glass-card {
        padding: 2rem;
        border-radius: 1.5rem;
    }

    #ann-bar {
        font-size: 0.55rem;
        padding: 0.5rem;
        line-height: 1.4;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #navbar {
        top: 42px;
    }

    .header-logo-img {
        height: 52px !important;
    }

    #navbar a[style*="display:flex"] {
        gap: 0.5rem !important;
    }

    #nav-inner > div[style*="gap:1rem"],
    #nav-inner > div[style*="gap:1.25rem"] {
        gap: 0.5rem !important;
    }

    /* Fix for Tax Optimizer overlap seen in screenshot */
    #ecosystem .glass-card {
        margin-top: 2rem;
    }

    /* Floating badges on mobile often cause issues */
    .hero-optimizer-col .glass.float {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 1.5rem;
        width: 100%;
        animation: none !important;
    }

    .d-sm-none {
        display: none !important;
    }

    .hero-stat-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100%;
    }

    .hero-stat {
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Side-by-side buttons in hero */
    /* Reverted to vertical buttons to prevent cropping as requested earlier */
    .hero-grid .reveal[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-grid .btn-primary, 
    .hero-grid .btn-ghost {
        width: 100% !important;
        justify-content: center !important;
    }
}

