/* style.css - Premium Emerald & Gold Theme (dark + light) */
:root,
:root[data-theme="dark"] {
    --bg-dark: #030504;             /* Emerald Black */
    --bg-card: #080a09;
    --bg-deeper: #020302;           /* Footer / scrim */
    --border-color: #141a17;
    --gold-primary: #D4AF37;
    --gold-secondary: #FFC300;
    --gold-dim: #A88645;
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-on-gold: #030504;        /* Button text — always dark on gold gradient */
    --accent-text: var(--gold-primary);

    /* RGB-triplet companions for rgba() composition */
    --bg-rgb: 3, 5, 4;
    --surface-rgb: 8, 10, 9;
    --border-rgb: 20, 26, 23;
    --gold-rgb: 212, 175, 55;
    --gold-secondary-rgb: 255, 195, 0;

    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-strong: rgba(0, 0, 0, 0.8);
    --shadow-card-hover: 0 25px 50px rgba(0, 0, 0, 0.7);
    --scrim-color: rgba(0, 0, 0, 0.8);
    --glass-tint: rgba(8, 10, 9, 0.7);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    --padding-mobile: 16px;
    --padding-tablet: 24px;
    --padding-desktop: 32px;

    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg-dark: #f8f6f0;
    --bg-card: #ffffff;
    --bg-deeper: #f0ede5;
    --border-color: #e0ddd5;
    --gold-primary: #D4AF37;
    --gold-secondary: #FFC300;
    --gold-dim: #7A5400;            /* WCAG 7:1 on light */
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --text-on-gold: #030504;
    --accent-text: #7A5400;

    --bg-rgb: 248, 246, 240;
    --surface-rgb: 255, 255, 255;
    --border-rgb: 224, 221, 213;
    --gold-rgb: 212, 175, 55;
    --gold-secondary-rgb: 255, 195, 0;

    --shadow-color: rgba(74, 47, 0, 0.12);
    --shadow-strong: rgba(74, 47, 0, 0.22);
    --shadow-card-hover: 0 20px 40px rgba(74, 47, 0, 0.18);
    --scrim-color: rgba(74, 47, 0, 0.35);
    --glass-tint: rgba(255, 255, 255, 0.7);

    color-scheme: light;
}

@property --vw-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Animated conic-gradient angle for the pillar-card hover border */
@property --pillar-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ========================================================================
   LENIS SMOOTH SCROLL — required CSS hooks
   ======================================================================== */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: clip;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

html, body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light-mode paper warmth — soft cream radial gradient over the whole body, low-contrast
   golden tint that gives a "warm document" feel rather than sterile white. */
[data-theme="light"] body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(212, 175, 55, 0.10), transparent 70%),
        radial-gradient(ellipse 80% 80% at 80% 100%, rgba(178, 115, 0, 0.06), transparent 70%);
    background-attachment: fixed;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* SKIP LINK (keyboard accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--gold-primary);
    color: var(--text-on-gold);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
}

.preloader.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.preloader-mark {
    position: relative;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.25));
}

/* Theme-swapped brand marks — dark-mode SVG has 3D filters and SMIL draw-in,
   light-mode image is the flat-gold variant designed for cream backgrounds. */
.preloader-mark-img { display: none; }
.preloader-mark-svg { display: block; }
.hero-mark-img { display: none; }
.hero-mark-svg { display: block; width: 100%; height: 100%; }

[data-theme="light"] .preloader-mark-img { display: block; }
[data-theme="light"] .preloader-mark-svg { display: none; }
[data-theme="light"] .hero-mark-img { display: block; width: 100%; height: 100%; object-fit: contain; }
[data-theme="light"] .hero-mark-svg { display: none; }

.preloader-bar {
    position: relative;
    width: 160px;
    height: 2px;
    background: var(--border-color);
    margin-top: 28px;
    border-radius: 1px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    background: var(--gold-primary);
    animation: preloaderFill 2s ease forwards;
    position: relative;
    overflow: hidden;
}

.preloader-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 253, 240, 0.85) 50%,
        transparent 100%
    );
    animation: preloaderShimmer 1.2s linear infinite;
}

@keyframes preloaderFill {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes preloaderShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(280px); }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 8px;
    margin-top: 18px;
    background: linear-gradient(to bottom, #ffffff 40%, var(--gold-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-fill::after { animation: none; }
    .preloader { transition: opacity 0.3s ease; }
    .preloader.hidden { transform: none; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(to right, #B27300, #FFC300);
    color: var(--text-on-gold);
    border: none;
    box-shadow: 0 10px 20px rgba(var(--gold-rgb), 0.15);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 253, 240, 0.55);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    animation: btnRipple 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: -1;
}

@keyframes btnRipple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary .ripple { animation: none; display: none; }
}

.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-block {
    width: 100%;
}

/* 1. NAVIGATION */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}

.navbar.scrolled {
    background: rgba(var(--bg-rgb), 0.97);
    box-shadow: 0 4px 30px var(--shadow-color);
    border-bottom-color: rgba(var(--gold-rgb), 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    transition: filter 0.3s ease, transform 0.3s ease;
    /* Native to navbar — no padding, no border, just the mark */
}

.nav-logo-svg {
    display: none;
    height: 40px;
    width: auto;
    pointer-events: none;          /* clicks pass to the wrapping <a> */
    transition: filter 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .nav-logo-svg.nav-logo-svg-dark,
:root:not([data-theme="light"]) .nav-logo-svg.nav-logo-svg-dark {
    display: block;
}

[data-theme="light"] .nav-logo-svg.nav-logo-svg-light {
    display: block;
}

.nav-logo:hover .nav-logo-svg {
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
    transform: translateY(-1px);
}

.nav-logo:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .nav-logo-svg { height: 34px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.8;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
    color: var(--gold-primary);
    opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .nav-link::after { transition: none; }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Theme Toggle (dark/light) */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--gold-dim);
    background: rgba(var(--gold-rgb), 0.08);
}

.theme-toggle:active {
    transform: scale(0.94);
}

.theme-toggle .theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

/* UX convention: show what theme is currently ACTIVE = moon in dark mode, sun in light mode */
[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.6);
}
[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
[data-theme="light"] .theme-icon-moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.6);
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle .theme-icon { transition: opacity 0.15s ease; }
    [data-theme="dark"] .theme-icon-sun,
    [data-theme="light"] .theme-icon-moon {
        transform: translate(-50%, -50%) scale(0.6);
    }
    [data-theme="dark"] .theme-icon-moon,
    [data-theme="light"] .theme-icon-sun {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--gold-dim);
}

.lang-dropdown {
    position: absolute;
    top: 100%; right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 140px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 10px 16px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--accent-text);
}

/* Track Selector */
.track-selector {
    position: relative;
}

.track-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.track-btn:hover {
    border-color: var(--gold-dim);
}

.track-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 250px;
    padding: 16px;
    display: none;
    box-shadow: 0 10px 20px var(--shadow-color);
    z-index: 100;
}

.track-dropdown.show {
    display: block;
}

#trackForm {
    display: flex;
    gap: 8px;
}

.track-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 12px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.track-input:focus {
    border-color: var(--gold-dim);
}

.track-go-btn {
    background: linear-gradient(to right, #B27300, #FFC300);
    color: var(--text-on-gold);
    border: none;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.track-go-btn:hover {
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.3);
}

/* 2. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 var(--padding-desktop);
    overflow: hidden;
}

/* Vanta.FOG injects its canvas as a direct child of #hero. Pin it to the back. */
.hero > .vanta-canvas,
#hero canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-particles canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    max-width: 1200px;
    max-height: 1200px;
    background: radial-gradient(
        circle,
        rgba(var(--gold-rgb), 0.10) 0%,
        rgba(var(--gold-rgb), 0.04) 35%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
    animation: heroGlowBreath 8s ease-in-out infinite;
    will-change: opacity, transform;
    mix-blend-mode: screen;
}

@keyframes heroGlowBreath {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--bg-rgb), 0.6) 55%,
        var(--bg-dark) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Cursor-following gold glow — large soft radial halo that trails the mouse
   across the hero. Position is set via --gx/--gy from app.js. */
.hero-cursor-glow {
    position: absolute;
    top: 0; left: 0;
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 2;
    transform: translate(var(--gx, -400px), var(--gy, -400px)) translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(var(--gold-rgb), 0.10) 0%,
        rgba(var(--gold-rgb), 0.04) 35%,
        transparent 70%
    );
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    mix-blend-mode: screen;
    will-change: transform;
}

[data-theme="light"] .hero-cursor-glow {
    background: radial-gradient(
        circle,
        rgba(178, 115, 0, 0.12) 0%,
        rgba(212, 175, 55, 0.05) 35%,
        transparent 70%
    );
    mix-blend-mode: multiply;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
    .hero-cursor-glow { display: none; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

/* Wordmark stack — mark sits absolutely behind .hero-title as a glowing watermark */
.hero-title-stack {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-mark-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 230px;
    height: 240px;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: heroMarkAura 12s ease-in-out infinite;
    filter: drop-shadow(0 0 36px rgba(var(--gold-rgb), 0.32))
            drop-shadow(0 0 12px rgba(var(--gold-rgb), 0.18));
    will-change: opacity, transform;
}

.hero-mark-bg::before {
    /* Warm golden bloom radiating outward */
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(
        circle at center,
        rgba(var(--gold-rgb), 0.22) 0%,
        rgba(var(--gold-rgb), 0.08) 30%,
        transparent 70%
    );
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.hero-mark-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes heroMarkAura {
    0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.96); }
    9%   { opacity: 0.20; transform: translate(-50%, -50%) scale(1.02); }
    18%  { opacity: 0.18; transform: translate(-50%, -50%) scale(1); }
    50%  { opacity: 0.24; transform: translate(-50%, -50%) scale(1.02); }
    82%  { opacity: 0.15; transform: translate(-50%, -50%) scale(0.99); }
    100% { opacity: 0.20; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mark-bg {
        animation: none;
        opacity: 0.18;
    }
}

[data-theme="light"] .hero-mark-bg {
    /* Warm deep-gold drop-shadow + soft halo so the mark feels lit-from-behind
       against the cream fog rather than pasted on. */
    filter: drop-shadow(0 0 44px rgba(178, 115, 0, 0.40))
            drop-shadow(0 0 16px rgba(212, 175, 55, 0.28))
            drop-shadow(0 4px 12px rgba(74, 47, 0, 0.12));
}

[data-theme="light"] .hero-mark-bg::before {
    /* Larger, warmer bloom — gold core fading through amber to transparent */
    inset: -60px;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.32) 0%,
        rgba(178, 115, 0, 0.16) 30%,
        rgba(178, 115, 0, 0.06) 55%,
        transparent 75%
    );
    filter: blur(26px);
}

/* The wordmark sits in front of the mark */
.hero-title {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    letter-spacing: 28px;
    margin-right: -28px; /* offset letter-spacing on last char */
    margin-bottom: 10px;
    color: #FFFFFF; /* fallback for environments that lose the gradient */
    background: linear-gradient(to bottom, #ffffff 40%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Drop-shadow on the element gives the gradient-clipped glyphs a halo
       (text-shadow only paints solid color, drop-shadow follows alpha). */
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.85))
            drop-shadow(0 0 40px rgba(212, 175, 55, 0.32));
}

.hero-title-char {
    display: inline-block;
    color: #FFFFFF;
    background: linear-gradient(to bottom, #ffffff 40%, #D4AF37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform, opacity;
}

.hero-subtitle {
    color: #D4AF37;  /* pure gold for max contrast on the fog */
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 16px;
    margin-right: -16px;
    font-weight: 500;  /* +100 for legibility on busy fog */
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.90),
                 0 0 24px rgba(0, 0, 0, 0.45);
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--underline-width, 0%);
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.6s ease;
}

.hero-desc {
    font-size: 16px;
    color: #e0e0e0;  /* brighter than --text-muted (#888) so it reads on fog */
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 50px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.90),
                 0 0 16px rgba(0, 0, 0, 0.55);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero route — three gold dots travel an S-curve between CTAs and scroll indicator.
   Subtle "freight in motion" cue. SMIL-animated, no JS. */
.hero-route {
    display: block;
    width: 300px;
    height: 60px;
    margin: 32px auto 0;
    opacity: 0.85;
    pointer-events: none;
}
[data-theme="light"] .hero-route use {
    stroke: rgba(178, 115, 0, 0.30);
}
[data-theme="light"] .hero-route circle {
    fill: #7A5400;
}
@media (prefers-reduced-motion: reduce) {
    .hero-route circle { animation: none; }
}
@media (max-width: 640px) {
    .hero-route { width: 220px; margin-top: 24px; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.85;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #b8b8b8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid var(--text-main);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 2px;
    position: absolute;
    top: 4px; left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
    will-change: transform, opacity;
}

/* SECTION UTILS */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* MARQUEE STRIP */
.marquee-strip {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid rgba(var(--gold-rgb), 0.15);
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
    background: var(--bg-dark);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-track span {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

#services, #vision, #contact {
    scroll-margin-top: 90px;
}

.section-title {
    color: var(--gold-primary);  /* was --gold-dim — too low contrast on dark */
    font-size: 12px;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-right: -12px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-main);
    letter-spacing: 2px;
}

/* 3. SERVICES */
.services {
    padding: 120px var(--padding-desktop);
    max-width: 1400px;
    margin: 0 auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background: rgba(var(--surface-rgb), 0.62);
    backdrop-filter: blur(20px) saturate(115%);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
    border: 1px solid rgba(var(--gold-rgb), 0.08);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.55s ease,
                border-color 0.55s ease,
                background 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    --pillar-angle: 0deg;
}

/* Animated conic-gradient ring that rotates around the card on hover.
   Sits behind the card's own background — a thin gold arc sweeps around. */
.pillar-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from var(--pillar-angle),
        transparent 0%,
        transparent 60%,
        rgba(var(--gold-rgb), 0.85) 78%,
        rgba(var(--gold-rgb), 0.35) 88%,
        transparent 100%
    );
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pillar-card:hover::before {
    opacity: 1;
    animation: pillarBorderRotate 3.2s linear infinite;
}

@keyframes pillarBorderRotate {
    to { --pillar-angle: 360deg; }
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(var(--gold-rgb), 0.12),
        0 0 0 1px rgba(var(--gold-rgb), 0.22);
    border-color: rgba(var(--gold-rgb), 0.32);
}

[data-theme="light"] .pillar-card:hover {
    box-shadow:
        0 30px 60px rgba(74, 47, 0, 0.18),
        0 0 36px rgba(212, 175, 55, 0.18),
        0 0 0 1px rgba(178, 115, 0, 0.20);
}

/* Mouse-tracked spotlight overlay (driven by --mouse-x / --mouse-y from app.js) */
.pillar-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(var(--gold-rgb), 0.10), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.pillar-card:hover::after {
    opacity: 1;
}

.pillar-icon {
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.16) 0%, rgba(var(--gold-rgb), 0.04) 60%, transparent 80%);
    border-radius: 50%;
    transition: box-shadow 0.45s ease, background 0.4s ease, transform 0.45s ease;
    position: relative;
    z-index: 2;
}

.pillar-card:hover .pillar-icon {
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.28) 0%, rgba(var(--gold-rgb), 0.08) 60%, transparent 80%);
    animation: pillarIconPulse 2.4s ease-in-out infinite;
}

@keyframes pillarIconPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.22);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 44px rgba(var(--gold-rgb), 0.55), 0 0 8px rgba(var(--gold-rgb), 0.4) inset;
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pillar-card:hover .pillar-icon {
        animation: none;
        box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.25);
    }
    .pillar-card:hover::before { animation: none; }
}

.pillar-title {
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    color: var(--gold-primary);
}

.pillar-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* STATS COUNTER */
.stats {
    padding: 80px var(--padding-desktop);
    background: transparent;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px 0;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25%;
    right: calc(var(--padding-desktop) * -0.625); /* sits in the gap */
    width: 1px;
    height: 50%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--gold-rgb), 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: linear-gradient(
        90deg,
        var(--gold-dim) 0%,
        var(--gold-primary) 25%,
        var(--gold-secondary) 50%,
        var(--gold-primary) 75%,
        var(--gold-dim) 100%
    );
    background-size: 220% auto;
    background-position: 100% center;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 0 rgba(var(--gold-rgb), 0));
    transition: filter 0.6s ease;
}

.stats.in-view .stat-number {
    animation: statGradientSweep 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    filter: drop-shadow(0 0 18px rgba(var(--gold-rgb), 0.45));
}

@keyframes statGradientSweep {
    0%   { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Gold flash shimmer fired after the count-up finishes (toggled from app.js) */
.stat-number.stat-flash {
    animation: statFlashShimmer 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes statFlashShimmer {
    0%   {
        background-position: 0% center;
        filter: drop-shadow(0 0 18px rgba(var(--gold-rgb), 0.45));
    }
    50%  {
        background-position: 50% center;
        filter: drop-shadow(0 0 36px rgba(var(--gold-rgb), 0.85))
                drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.55));
        transform: scale(1.04);
    }
    100% {
        background-position: 0% center;
        filter: drop-shadow(0 0 18px rgba(var(--gold-rgb), 0.45));
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats.in-view .stat-number {
        animation: none;
        background-position: 50% center;
        filter: none;
    }
    .stat-number.stat-flash { animation: none; }
}

@media (max-width: 1024px) {
    .stat-item:not(:last-child)::after { display: none; }
}

.stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 400;
}

/* TRANSPORT MODES */
.transport-modes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.mode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: default;
}

.mode-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(212, 175, 55, 0.3);
}

.mode-item span {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.mode-item:hover span {
    color: var(--gold-primary);
}

/* 4. VISION (renamed pillars section) */
.vision {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.vision::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    background-image: url('vortway-mark-flat-gold.svg');
    background-repeat: repeat;
    background-size: 320px 335px;
    opacity: 0.03;
    transform: translate(-50%, -50%) rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .vision::before {
    opacity: 0.05;
}

/* Atmospheric overlay — soft golden mist mimicking the hero fog at 30% feel */
.vision::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(var(--gold-rgb), 0.06), transparent 65%),
        radial-gradient(ellipse 60% 45% at 80% 70%, rgba(178, 115, 0, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .vision::after {
    background:
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(212, 175, 55, 0.10), transparent 65%),
        radial-gradient(ellipse 60% 45% at 80% 70%, rgba(178, 115, 0, 0.08), transparent 60%);
}

/* Vision aurora — three slowly drifting gold orbs that replace the ugly
   Three.js scene. Pure CSS, ~zero perf cost, theme-aware via --gold-rgb. */
.vision-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.vision-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform, opacity;
    mix-blend-mode: screen;
}
.vision-orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.35) 0%, transparent 70%);
    top: 8%; left: -8%;
    animation: visionOrbDrift1 18s ease-in-out infinite alternate;
}
.vision-orb-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(178, 115, 0, 0.30) 0%, transparent 70%);
    top: 30%; right: -6%;
    animation: visionOrbDrift2 22s ease-in-out infinite alternate;
}
.vision-orb-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22) 0%, transparent 70%);
    bottom: -10%; left: 30%;
    animation: visionOrbDrift3 26s ease-in-out infinite alternate;
}

@keyframes visionOrbDrift1 {
    0%   { transform: translate3d(0,     0,   0) scale(1); }
    100% { transform: translate3d(80px, 60px, 0) scale(1.12); }
}
@keyframes visionOrbDrift2 {
    0%   { transform: translate3d(0,     0,    0) scale(1.05); }
    100% { transform: translate3d(-60px, 80px, 0) scale(0.95); }
}
@keyframes visionOrbDrift3 {
    0%   { transform: translate3d(0,     0,    0) scale(0.92); }
    100% { transform: translate3d(40px, -50px, 0) scale(1.08); }
}

[data-theme="light"] .vision-orb { mix-blend-mode: multiply; opacity: 0.38; }

@media (prefers-reduced-motion: reduce) {
    .vision-orb { animation: none; }
}
@media (max-width: 767px) {
    .vision-orb { filter: blur(60px); opacity: 0.35; }
}

/* Blueprint freight truck — decorative SVG behind the vision pillars.
   Slowly drives across the section bottom (right → left → reset). Strokes
   inherit currentColor for theme-appropriate ink. */
.vision-truck {
    position: absolute;
    right: -80px;
    bottom: 5%;
    width: 600px;
    height: auto;
    pointer-events: none;
    z-index: 1;
    color: rgba(212, 175, 55, 0.10);   /* dark-mode blueprint ink */
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.10));
    animation: visionTruckDrive 24s linear infinite;
    will-change: transform;
}

/* The route trail under the truck. Stroke-dashoffset animation makes it look
   like the cargo is paying out a thread of route as it moves. */
.vision-truck-route {
    animation: visionTruckRoute 4s linear infinite;
}

[data-theme="light"] .vision-truck {
    color: rgba(178, 115, 0, 0.08);
    filter: drop-shadow(0 0 8px rgba(178, 115, 0, 0.06));
}

@keyframes visionTruckDrive {
    0%   { transform: translateX(60px); }   /* just off the right edge */
    100% { transform: translateX(-1200px); } /* fully past the left, wraps via loop */
}

@keyframes visionTruckRoute {
    0%   { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -75; }   /* -(5 * dash period 15) — smooth loop */
}

@media (prefers-reduced-motion: reduce) {
    .vision-truck { animation: none; transform: translateX(0); }
    .vision-truck-route { animation: none; }
}

@media (max-width: 1024px) {
    .vision-truck { width: 460px; opacity: 0.85; right: -120px; }
}
@media (max-width: 640px) {
    .vision-truck { display: none; }
}

.vision .section-header,
.vision .pillars-grid {
    position: relative;
    z-index: 2;
}

/* TESTIMONIALS */
.trust {
    padding: 120px var(--padding-desktop);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    height: 300px;
}

.testimonial-card {
    background: rgba(var(--surface-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transition: background 0.4s ease, border-color 0.4s ease;
    z-index: 0;
}

.testimonial-card.active {
    visibility: visible;
    z-index: 1;
}

.testimonial-quote {
    font-size: 16px;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.testimonial-author {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 1px;
}

.author-role {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.dot.active {
    background: var(--gold-primary);
    transform: scale(1.2);
}

/* 5. CONTACT */
.contact {
    padding: 120px var(--padding-desktop);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    overflow: hidden;
}

.contact-form-area {
    padding: 50px;
}

.contact-info {
    background: rgba(var(--border-rgb), 0.5);
    padding: 50px;
    border-left: 1px solid var(--border-color);
    transition: background 0.4s ease;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dim);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
    border-radius: 4px;
    outline: none;
    box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0);
    transition: border-color 0.3s ease, box-shadow 0.35s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* 6. FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px var(--padding-desktop) 40px;
    background: var(--bg-deeper);
    transition: background 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.footer::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -56px;
    width: 294px;   /* -30% from 420px */
    height: 308px;  /* -30% from 440px */
    background: url('vortway-mark-flat-gold.svg') no-repeat center;
    background-size: contain;
    opacity: 0.04;  /* whisper of branding */
    pointer-events: none;
    z-index: -1;
    transform: rotate(8deg);
}

[data-theme="light"] .footer::after {
    opacity: 0.03;
}

/* European route map — sits behind the footer-grid as a barely-visible network */
.footer-route-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    color: rgba(212, 175, 55, 0.06);
    opacity: 0.9;
}

[data-theme="light"] .footer-route-map {
    color: rgba(178, 115, 0, 0.07);
}

/* Kaunas hub pulse — gentle expand+fade ring */
.footer-route-pulse {
    transform-origin: 720px 80px;
    animation: footerHubPulse 3.2s ease-out infinite;
}
@keyframes footerHubPulse {
    0%   { transform: scale(1);   opacity: 0.9; }
    100% { transform: scale(3.2); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
    .footer-route-pulse { animation: none; }
}

/* Make sure footer content sits above the route map */
.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-grid {
    max-width: 900px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.footer-grid.footer-grid-3col {
    max-width: 1100px;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-address {
    font-style: normal;  /* override <address> default italic */
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.85;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.footer-link-inline {
    display: inline;
    margin-bottom: 0;
    color: var(--gold-primary);
    transition: color 0.3s ease;
}
.footer-link-inline:hover {
    color: var(--gold-secondary);
}
[data-theme="light"] .footer-link-inline {
    color: #7A5400;
}
[data-theme="light"] .footer-address {
    color: #555555;
}

.footer-heading {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold-dim);
    margin-bottom: 24px;
}

.footer-link {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px; height: 6px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 10px #059669;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--scrim-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3000;  /* above cookie banner (2500) so banner never covers modal close */
    display: flex;              /* Always flex, never toggle display */
    align-items: center;
    justify-content: center;
    padding: 20px;              /* breathing room so .modal can't touch viewport edge */
    opacity: 0;
    visibility: hidden;         /* Use visibility instead of display */
    pointer-events: none;       /* Prevent clicks when hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: calc(100vh - 40px); /* never exceed viewport — prevents stuck-modal bug */
    overflow: hidden;               /* X stays anchored; scrolling happens in .modal-body */
    border-radius: 4px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;                  /* allow flex child to shrink + scroll */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 50px;
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-title {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.half {
    flex: 1;
}

.quote-result {
    margin-top: 30px;
    padding: 24px;
    background: rgba(var(--gold-rgb), 0.05);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    text-align: center;
    border-radius: 4px;
}

.quote-price {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--gold-primary);
    margin: 10px 0;
}

.quote-note {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* === QUOTE CALCULATOR: BREAKDOWN === */
.quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 13px;
}

.quote-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    color: var(--text-main);
    line-height: 1.4;
}

.quote-line > span:first-child {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.quote-line > span:last-child {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.quote-surcharge {
    padding-left: 14px;
    border-left: 2px solid rgba(var(--gold-rgb), 0.25);
}

.quote-surcharge > span:first-child {
    color: var(--gold-dim);
}

.quote-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--gold-rgb), 0.5) 50%,
        transparent 100%);
    margin: 6px 0 4px;
}

.quote-total {
    padding-top: 6px;
}

.quote-total > span:first-child {
    color: var(--gold-primary);
    font-size: 13px;
    font-weight: 600;
}

.quote-total > span:last-child {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.quote-route {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    text-align: center;
}

.quote-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(220, 80, 60, 0.10);
    border: 1px solid rgba(220, 80, 60, 0.35);
    border-radius: 4px;
    color: #ff8a76;
    font-size: 12px;
    line-height: 1.4;
    font-family: var(--font-body);
}

/* === QUOTE CALCULATOR: CITY AUTOCOMPLETE === */
.quote-autocomplete {
    position: relative;
}

.quote-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(var(--gold-rgb), 0.08);
    max-height: 260px;
    overflow-y: auto;
}

.quote-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-main);
    transition: background 0.12s ease, color 0.12s ease;
}

.quote-suggestion .qs-cc {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 500;
}

.quote-suggestion:hover,
.quote-suggestion.is-active {
    background: rgba(var(--gold-rgb), 0.14);
    color: var(--gold-primary);
}

.quote-suggestion:hover .qs-cc,
.quote-suggestion.is-active .qs-cc {
    color: var(--gold-primary);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.4s ease,
                background 0.3s ease,
                border-color 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-error {
    border-color: #c0392b;
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.3);
}

/* FAQ ACCORDION */
.faq {
    padding: 120px var(--padding-desktop);
    background: var(--bg-dark);
}

.faq-list {
    max-width: 820px;
    margin: 60px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-align: left;
    transition: color 0.25s;
}

.faq-question:hover,
.faq-item.open .faq-question {
    color: var(--gold-primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gold-dim);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 320px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer { transition: none; }
    .faq-icon { transition: none; }
}

@media (max-width: 768px) {
    .faq { padding: 80px 20px; }
    .faq-question { font-size: 12px; padding: 20px 0; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 20px var(--padding-desktop);
    z-index: 2500;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-msg {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    min-width: 200px;
    margin: 0;
    line-height: 1.6;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-link {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--gold-dim);
    text-decoration: underline;
    transition: color 0.2s;
}
.cookie-link:hover { color: var(--gold-primary); }
.btn-cookie-accept,
.btn-cookie-reject {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-cookie-accept {
    background: var(--gold-primary);
    color: var(--text-on-gold);
    border: none;
}
.btn-cookie-accept:hover { background: var(--gold-secondary); }
.btn-cookie-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.btn-cookie-reject:hover {
    border-color: var(--gold-dim);
    color: var(--gold-dim);
}
@media (max-width: 640px) {
    .cookie-banner { padding: 16px 20px; }
    .cookie-content { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; letter-spacing: 20px; margin-right: -20px; }
    .hero-subtitle { font-size: 12px; letter-spacing: 12px; margin-right: -12px; }
    
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .vision-container { grid-template-columns: 1fr; }
    .vision-globe { height: 480px; padding: 20px; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .footer-grid.footer-grid-3col { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links {
        position: fixed;
        top: 80px; left: 0; width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 40px 0;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; color: var(--text-main); }
    .theme-toggle { margin: 12px 0; }

    .hero-mark-bg {
        width: 170px;
        height: 178px;
    }
    .hero-mark-bg::before {
        inset: -24px;
    }
    
    .hero-title { font-size: 32px; letter-spacing: 12px; margin-right: -12px; }
    .hero-subtitle { font-size: 10px; letter-spacing: 8px; margin-right: -8px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    
    .pillars-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .transport-modes { flex-direction: column; align-items: center; gap: 24px; }
    .mode-item:not(:last-child)::after { display: none; }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form-area, .contact-info { padding: 30px; }
    .form-row { flex-direction: column; gap: 0; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid.footer-grid-3col { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ── NEW SERVICES GRID ────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 60px auto 0;
    perspective: 1200px;
}

.service-card {
    background: var(--glass-tint);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--gold-rgb), 0.14);
    padding: 48px 40px;
    position: relative;
    transition: border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.4s ease,
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    border-radius: 6px;
    transform-style: preserve-3d;
    will-change: transform;
    /* Inner gold tint — warm reflection on the glass, not generic white */
    box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), 0.08),
                inset 0 0 60px rgba(var(--gold-rgb), 0.04);
}

.service-card.is-tilting {
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}

.service-card > * {
    transform: translateZ(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold-primary);
    transition: height 0.4s ease;
    z-index: 2;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--vw-angle, 0deg),
        transparent 0%,
        rgba(var(--gold-rgb), 0.55) 20%,
        rgba(var(--gold-secondary-rgb), 0.75) 28%,
        transparent 50%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(var(--gold-rgb), 0.3);
    background: rgba(var(--gold-rgb), 0.04);
    box-shadow: 0 18px 40px var(--shadow-strong);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover::after {
    opacity: 1;
    animation: serviceCardBorderSpin 4s linear infinite;
}

@keyframes serviceCardBorderSpin {
    to { --vw-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover::after { animation: none; }
    .service-card { transition: border-color 0.3s ease, background 0.3s ease; }
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--gold-rgb), 0.06);
    border: 1px solid rgba(var(--gold-rgb), 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Hexagonal blueprint frame around each service icon — rotates 60° on hover.
   SVG-as-background lets us stroke a hex cheaply without a real DOM node. */
.service-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23D4AF37' stroke-width='1.4' stroke-linejoin='round'><polygon points='50,4 94,28 94,72 50,96 6,72 6,28'/></svg>") center / contain no-repeat;
    opacity: 0.45;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] .service-icon::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237A5400' stroke-width='1.4' stroke-linejoin='round'><polygon points='50,4 94,28 94,72 50,96 6,72 6,28'/></svg>") center / contain no-repeat;
    opacity: 0.55;
}

.service-card:hover .service-icon {
    background: rgba(var(--gold-rgb), 0.15);
    animation: serviceIconPulse 2s ease-in-out infinite;
}

.service-card:hover .service-icon::before {
    transform: rotate(60deg);
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover .service-icon::before { transform: none; }
}

@keyframes serviceIconPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.2),
                    0 0 24px rgba(var(--gold-rgb), 0.08);
    }
    50% {
        box-shadow: 0 0 22px rgba(var(--gold-rgb), 0.5),
                    0 0 38px rgba(var(--gold-rgb), 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover .service-icon { animation: none; }
}

.service-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.service-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: #ffffff;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.3px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.88;
}

.service-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-bullets li {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.55;
    padding: 8px 0 8px 18px;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.07);
}

.service-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    opacity: 0.45;
    font-size: 11px;
    top: 9px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 36px 24px;
    }
}
/* ── END NEW SERVICES GRID ────────────────────────────── */

/* Accessibility: disable GSAP scroll animations and breathing glow for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .section-header,
    .pillar-card,
    .vision-content,
    .vision-globe,
    .contact-wrapper,
    .hero-title-char,
    .hero-subtitle,
    .hero-desc,
    .hero-actions,
    .scroll-indicator {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-glow {
        animation: none !important;
    }
}

/* CURSOR DOT (desktop only, hero parallax) */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-primary);
    box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.55),
                0 0 24px rgba(var(--gold-rgb), 0.2);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate3d(-50px, -50px, 0);
    transition: opacity 0.3s ease, transform 0.15s linear;
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.cursor-dot.visible {
    opacity: 1;
}

@media (max-width: 1024px), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor-dot { display: none; }
}

/* MAGNETIC BUTTONS — GSAP drives transform, CSS provides smooth tweening when not active */
.btn-primary,
.btn-outline {
    will-change: transform;
}

/* EXTENDED SPOTLIGHT — service-card + testimonial-card mirror pillar-card spotlight pattern */
.service-card,
.testimonial-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.service-card > .spotlight,
.testimonial-card > .spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--gold-rgb), 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.service-card:hover > .spotlight,
.testimonial-card:hover > .spotlight {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .service-card > .spotlight,
    .testimonial-card > .spotlight { display: none; }
}

/* MARQUEE TILT (driven by GSAP scroll progress) */
.marquee-strip {
    perspective: 800px;
    transform-style: preserve-3d;
}

.marquee-strip .marquee-track {
    transform-origin: center top;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-strip .marquee-track { transform: none !important; }
}

/* TESTIMONIAL slide+scale transition — JS adds .leaving / .entering classes */
.testimonial-card {
    will-change: transform, opacity;
}

/* FAQ — neutralize the CSS max-height transition so GSAP can drive height instead */
.faq-answer {
    overflow: hidden;
    max-height: none;
    height: 0;
    transition: none;
}

.faq-item.open .faq-answer {
    max-height: none;
    height: auto;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
    cursor: pointer;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top svg,
.back-to-top i {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.back-to-top:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.18);
}

.back-to-top:hover svg,
.back-to-top:hover i {
    transform: translateY(-3px) rotate(-12deg);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top:hover svg,
    .back-to-top:hover i { transform: none; }
}

/* ── LIGHT MODE — element-specific overrides ─────────── */

/* Hero/preloader gradient-text fall back to a light-bg-readable ramp */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-title-char,
[data-theme="light"] .preloader-text {
    background: linear-gradient(to bottom, #1a1a1a 40%, #7A5400 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero subtitle / scroll-indicator wheel: keep gold accent visible */
[data-theme="light"] .scroll-indicator .mouse {
    border-color: #1a1a1a;
}

/* === LIGHT MODE — HERO TEXT LEGIBILITY OVER VANTA GOLDEN FOG ===
   White-shadow stack cuts the dark glyphs out of the warm honey-gold fog. */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-title-char {
    filter: drop-shadow(0 1px 10px rgba(255, 255, 255, 0.85))
            drop-shadow(0 2px 18px rgba(255, 248, 224, 0.55));
}

[data-theme="light"] .hero-subtitle {
    color: #7A5400;  /* deep gold — WCAG-passing on cream */
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.92),
                 0 0 14px rgba(255, 248, 224, 0.65);
}

[data-theme="light"] .hero-desc {
    color: #333333;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.80),
                 0 0 10px rgba(255, 248, 224, 0.55);
}

[data-theme="light"] .scroll-indicator {
    opacity: 0.95;
}

[data-theme="light"] .scroll-indicator span {
    color: #666666;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.85);
}

/* Service-card text in light mode — explicit greys for guaranteed contrast on
   near-white card surfaces. */
[data-theme="light"] .service-tagline {
    color: #555555;
    opacity: 1;
    font-style: italic;
}

[data-theme="light"] .service-bullets li {
    color: #444444;
}

[data-theme="light"] .service-bullets li::before {
    color: #7A5400;
    opacity: 1;
}

/* Pillar / service titles: in light mode swap gold-primary text to gold-dim for AA */
[data-theme="light"] .pillar-title,
[data-theme="light"] .service-name,
[data-theme="light"] .author-name,
[data-theme="light"] .modal-title,
[data-theme="light"] .quote-price,
[data-theme="light"] .back-to-top {
    color: #7A5400;
}

/* === QUOTE CALCULATOR — LIGHT MODE === */
[data-theme="light"] .quote-total > span:first-child,
[data-theme="light"] .quote-total > span:last-child {
    color: #7A5400;
}

[data-theme="light"] .quote-suggestions {
    background: #ffffff;
    border: 1px solid rgba(178, 115, 0, 0.35);
    box-shadow: 0 10px 30px rgba(180, 150, 80, 0.18),
                0 0 0 1px rgba(178, 115, 0, 0.08);
}

[data-theme="light"] .quote-suggestion {
    color: #1a1a1a;
}

[data-theme="light"] .quote-suggestion .qs-cc {
    color: #555;
}

[data-theme="light"] .quote-suggestion:hover,
[data-theme="light"] .quote-suggestion.is-active {
    background: rgba(178, 115, 0, 0.12);
    color: #7A5400;
}

[data-theme="light"] .quote-suggestion:hover .qs-cc,
[data-theme="light"] .quote-suggestion.is-active .qs-cc {
    color: #7A5400;
}

[data-theme="light"] .quote-divider {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(178, 115, 0, 0.45) 50%,
        transparent 100%);
}

[data-theme="light"] .quote-error {
    background: rgba(180, 40, 30, 0.08);
    border-color: rgba(180, 40, 30, 0.35);
    color: #a8281e;
}

[data-theme="light"] .footer-link:hover,
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .lang-option:hover {
    color: #7A5400;
}

/* Preloader on light — warm cream radial so the mark feels integrated, not pasted.
   The radial centers the warmest tone behind the V+W and feathers to the page bg. */
[data-theme="light"] .preloader {
    background:
        radial-gradient(ellipse at center, #f5eed8 0%, #f8f6f0 50%, #f0ede5 100%);
}

[data-theme="light"] .preloader-mark {
    filter: drop-shadow(0 0 30px rgba(178, 115, 0, 0.18))
            drop-shadow(0 4px 12px rgba(74, 47, 0, 0.08));
}

/* Soft gold radial halo behind the preloader mark — the mark should glow from
   within its surface, not float on a flat plane. */
[data-theme="light"] .preloader-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle,
        rgba(212, 175, 55, 0.18) 0%,
        rgba(212, 175, 55, 0.06) 35%,
        transparent 65%);
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* Hero canvas / glow: in light mode soften everything */
[data-theme="light"] .hero-glow {
    background: radial-gradient(
        circle,
        rgba(var(--gold-rgb), 0.16) 0%,
        rgba(var(--gold-rgb), 0.06) 30%,
        transparent 65%
    );
}

[data-theme="light"] .hero::after {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--bg-rgb), 0.6) 55%,
        var(--bg-dark) 100%
    );
}

/* Navbar logo image — gets swapped via JS, kept here as default rule */
[data-theme="light"] .nav-logo:hover img {
    filter: brightness(1.04) drop-shadow(0 0 12px rgba(122, 84, 0, 0.35));
}

/* System status dot keeps its functional green — boost contrast in light mode */
[data-theme="light"] .status-dot {
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
}

/* Stats numbers — light mode keeps the same gold gradient (gold reads OK as display headline) */
[data-theme="light"] .stats.in-view .stat-number {
    filter: drop-shadow(0 0 14px rgba(74, 47, 0, 0.18));
}

/* Light-mode warm card shadows — replace generic black with warm gold-brown */
[data-theme="light"] .pillar-card,
[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .contact-wrapper,
[data-theme="light"] .modal,
[data-theme="light"] .lang-dropdown,
[data-theme="light"] .track-dropdown,
[data-theme="light"] .toast,
[data-theme="light"] .back-to-top {
    box-shadow: 0 4px 20px rgba(180, 150, 80, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pillar-card {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(178, 115, 0, 0.15);
    backdrop-filter: blur(20px) saturate(115%);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
}

[data-theme="light"] .service-card {
    border-color: rgba(178, 115, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.12),
                inset 0 0 60px rgba(212, 175, 55, 0.05),
                0 6px 18px rgba(180, 150, 80, 0.08);
}

[data-theme="light"] .service-card:hover {
    border-color: rgba(178, 115, 0, 0.40);
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.18),
                inset 0 0 60px rgba(212, 175, 55, 0.07),
                0 18px 40px rgba(180, 150, 80, 0.20);
}

[data-theme="light"] .pillar-icon {
    background: rgba(178, 115, 0, 0.08);
}

[data-theme="light"] .pillar-card:hover .pillar-icon {
    background: rgba(178, 115, 0, 0.16);
    box-shadow: 0 0 24px rgba(178, 115, 0, 0.28);
}

[data-theme="light"] .service-icon {
    border-color: rgba(178, 115, 0, 0.25);
    background: rgba(178, 115, 0, 0.08);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
    border-color: #B27300;
    box-shadow: 0 0 0 3px rgba(178, 115, 0, 0.18);
}

[data-theme="light"] .marquee-strip {
    border-top-color: rgba(178, 115, 0, 0.25);
    border-bottom-color: rgba(178, 115, 0, 0.25);
}

[data-theme="light"] .stats {
    border-top-color: rgba(178, 115, 0, 0.18);
    border-bottom-color: rgba(178, 115, 0, 0.18);
}

/* ACCESSIBILITY — Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="option"]:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* ========================================================================
   LIGHT MODE — premium atmosphere polish
   Warm radial overlays in the hero, richer preloader background, and
   warmer borders on accent surfaces. Layered on top of existing rules.
   ======================================================================== */
[data-theme="light"] .hero {
    position: relative;
}
[data-theme="light"] .hero > .hero-content::before {
    content: '';
    position: absolute;
    inset: -10% -25%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(178, 115, 0, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] .preloader {
    background:
        radial-gradient(ellipse at 50% 30%, #fff8e7 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.12) 0%, transparent 65%),
        #faf5e6;
}

/* Richer light-mode pillar-card border + warm halo on hover (layered over the
   dark-mode rules above — these win because of [data-theme="light"] specificity) */
[data-theme="light"] .pillar-card:hover {
    box-shadow:
        0 30px 60px rgba(74, 47, 0, 0.18),
        0 0 36px rgba(212, 175, 55, 0.22),
        0 0 0 1px rgba(178, 115, 0, 0.25);
    border-color: rgba(178, 115, 0, 0.35);
}

[data-theme="light"] .pillar-card::before {
    background: conic-gradient(
        from var(--pillar-angle),
        transparent 0%,
        transparent 60%,
        rgba(178, 115, 0, 0.85) 78%,
        rgba(212, 175, 55, 0.45) 88%,
        transparent 100%
    );
}

/* ACCESSIBILITY — Focus Visible already declared above */

/* ACCESSIBILITY — Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .vision-orb,
    .hero-cursor-glow,
    .pillar-card::before {
        animation: none !important;
    }
}
