*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { -webkit-touch-callout: none; }

:root {
    --bg: #1a1917;
    --bg-alt: #1a1917;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-border: rgba(255,255,255,0.09);
    --bg-dark: #0f0e0d;
    --text: #F2F0ED;
    --text-dim: #a8a49c;
    --text-muted: #938e86;
    --accent: #C9A96E;
    --accent-dark: #9A7B4F;
    --overlay-rgb: 255,255,255;
    --accent-rgb: 201,169,110;
    --serif: 'Cormorant Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; background: #080808; overflow: hidden; height: 100%; overscroll-behavior: none; }

body {
    font-family: 'Sora', sans-serif;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, #262626, #080808) fixed;
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

body::before {
    display: none; /* Replaced by .hero-dot-bg injected via JS — body::before can't scroll when body is scroll container (iOS fix) */
}

.hero-dot-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle, rgba(201,169,110,0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 0, 6px 6px;
    -webkit-mask-image: radial-gradient(ellipse 45% 44% at 50% 54%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 45% 44% at 50% 54%, black 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.hero-compact .hero-dot-bg {
    -webkit-mask-image: radial-gradient(ellipse 45% 30% at 50% 45%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 45% 30% at 50% 45%, black 0%, transparent 100%);
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    will-change: transform;
}


a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; z-index: 1; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ======= NAV BAR BACKGROUND ======= */
/* html::before moved to JS (nav-gradient-overlay) for iOS scroll compatibility */
.nav-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(to bottom, #080808 50%, rgba(8,8,8,0.5) 75%, transparent);
    z-index: 1000;
    pointer-events: none;
}

/* ======= NAV ======= */
.nav-logo {
    position: fixed;
    top: 20px;
    left: 32px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.06em;
    z-index: 1001;
    text-decoration: none;
    color: var(--text);
    padding: 8px;
}
.logo-dot {
    display: inline-block;
    width: 0.2em;
    height: 0.2em;
    background: var(--accent);
    border-radius: 50%;
    color: transparent;
    overflow: hidden;
    line-height: 0;
    vertical-align: baseline;
    margin-left: 0.05em;
    font-size: 1.15em;
}

/* Burger */
.nav-burger {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.nav-burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: none;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.nav-burger span::before,
.nav-burger span::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.nav-burger span::before { left: 0; transform-origin: 100% 50%; }
.nav-burger span::after  { right: 0; transform-origin: 0% 50%; }
.nav-burger span:first-child { transform: translateY(-5px); }
.nav-burger span:last-child  { transform: translateY(5px); }
/* Open: bars slide together then each half bends to form X */
.nav-burger.open span:first-child { transform: translateY(0); }
.nav-burger.open span:last-child  { transform: translateY(0); }
.nav-burger.open span:first-child::before { transform: rotate(40deg); }
.nav-burger.open span:first-child::after  { transform: rotate(-40deg); }
.nav-burger.open span:last-child::before  { transform: rotate(-40deg); }
.nav-burger.open span:last-child::after   { transform: rotate(40deg); }

/* Mobile menu */
.mobile-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1);
    backdrop-filter: blur(4px);
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 45vw);
    background: var(--bg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 100px 48px 48px;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
    border-left: 1px solid rgba(201,169,110,0.1);
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.mobile-menu-nav a {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.7;
}
.mobile-menu-nav a::after {
    content: '.';
    display: inline-block;
    width: 0.14em;
    height: 0.14em;
    background: var(--accent);
    border-radius: 50%;
    color: transparent;
    overflow: hidden;
    line-height: 0;
    vertical-align: baseline;
    margin-left: 0.04em;
    font-size: 1em;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.mobile-menu-nav a:hover { opacity: 1; color: var(--accent); }
.mobile-menu-nav a:hover::after { opacity: 1; transform: scale(1); }
.mobile-menu-nav a.nav-urgence { color: #C45C4A; opacity: 0.85; }
.mobile-menu-nav a.nav-urgence:hover { color: #C45C4A; opacity: 1; }
.mobile-menu-nav a.nav-urgence::after { background: #C45C4A; }

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid rgba(201,169,110,0.12);
    width: 100%;
    font-size: 15px;
    color: var(--text-dim);
    text-align: right;
}
.mobile-menu-footer a { color: var(--text-dim); transition: color 0.3s; }
.mobile-menu-footer a:hover { color: var(--accent); }

/* ======= DESKTOP NAV (vertical right side) ======= */
.desktop-nav {
    position: fixed;
    top: 32px;
    right: 48px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.desktop-nav a {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
    text-align: right;
}
.desktop-nav a::after {
    content: '.';
    display: inline-block;
    width: 0.14em;
    height: 0.14em;
    background: var(--accent);
    border-radius: 50%;
    color: transparent;
    overflow: hidden;
    line-height: 0;
    vertical-align: baseline;
    margin-left: 0.06em;
    font-size: 1em;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.desktop-nav a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(-4px);
}
.desktop-nav a:hover::after {
    opacity: 1;
    transform: scale(1);
}
.desktop-nav a.nav-urgence {
    color: #C45C4A;
    opacity: 0.9;
    font-weight: 500;
}
.desktop-nav a.nav-urgence:hover { opacity: 1; color: #C45C4A; }
.desktop-nav a.nav-urgence::after {
    background: #C45C4A;
}
.desktop-nav.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

/* Burger hidden by default on desktop (desktop-nav visible instead) */
.nav-burger {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease;
    transform: translateY(-8px);
}
.nav-burger.visible,
.nav-burger.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hide desktop nav on mobile — always use burger */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .nav-burger {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* ======= PAGE HEADER ======= */
.page-header {
    padding: 160px 40px 80px;
    text-align: center;
}
.page-header-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}
.page-header-label::before {
    content: '';
    width: 1px;
    height: 24px;
    background: var(--accent);
    opacity: 0.6;
}
.page-header-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.page-header-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    white-space: nowrap;
    border-radius: 2px;
    border: 1px solid rgba(201,169,110,0.35);
    background: transparent;
    color: var(--accent);
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(201,169,110,0.2);
    cursor: pointer;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.btn:hover {
    background: rgba(201,169,110,0.08);
    border-color: var(--accent);
    box-shadow: 0 6px 28px rgba(201,169,110,0.3);
}
.contact-form .btn {
    box-shadow: none;
}
.contact-form .btn:hover {
    box-shadow: none;
}
.btn-light, .btn-editorial {
    /* unified — inherits base .btn */
}

/* ======= FOOTER ======= */
.footer {
    background: transparent;
    padding: 64px 40px 40px;
    border-top: 1px solid rgba(201,169,110,0.15);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle, rgba(201,169,110,0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 0, 6px 6px;
    -webkit-mask-image: radial-gradient(ellipse 45% 42% at 50% 42%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 45% 42% at 50% 42%, black 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Dot eye effect behind section titles */
.dot-eye {
    position: relative;
}
.dot-eye::before {
    content: '';
    position: absolute;
    width: var(--dot-eye-w, 800px);
    height: var(--dot-eye-h, 400px);
    top: var(--dot-eye-offset, 50%);
    left: var(--dot-eye-left, 50%);
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(201,169,110,0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 0, 6px 6px;
    -webkit-mask-image: radial-gradient(ellipse 45% 35% at 50% 50%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 45% 35% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.dot-eye > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-dot-bg {
        height: 75vh;
        height: 75dvh;
        opacity: 0.6;
        -webkit-mask-image: radial-gradient(ellipse 50% 42% at 50% 48%, black 0%, transparent 100%);
        mask-image: radial-gradient(ellipse 50% 42% at 50% 48%, black 0%, transparent 100%);
    }
    .dot-eye::before {
        width: var(--dot-eye-w, 300px);
        height: var(--dot-eye-h, 180px);
        left: var(--dot-eye-left, 50%) !important;
        -webkit-mask-image: radial-gradient(ellipse 35% 25% at 50% 50%, black 0%, transparent 100%);
        mask-image: radial-gradient(ellipse 35% 25% at 50% 50%, black 0%, transparent 100%);
    }
    .svc-section .dot-eye::before {
        left: 40% !important;
        width: 500px;
        height: 300px;
    }
    .svc-cta-inner.dot-eye::before,
    .temo-cta-inner.dot-eye::before,
    .res-cta-inner.dot-eye::before {
        left: 50% !important;
        top: 30% !important;
        width: 650px;
        height: 400px;
        -webkit-mask-image: radial-gradient(ellipse 28% 30% at 50% 50%, black 0%, transparent 100%);
        mask-image: radial-gradient(ellipse 28% 30% at 50% 50%, black 0%, transparent 100%);
    }
    .page-header.dot-eye::before {
        width: 500px;
        height: 300px;
        top: 42%;
    }
    .article-hero.dot-eye::before {
        top: 30% !important;
        -webkit-mask-image: radial-gradient(ellipse 28% 22% at 50% 50%, black 0%, transparent 100%) !important;
        mask-image: radial-gradient(ellipse 28% 22% at 50% 50%, black 0%, transparent 100%) !important;
    }
    body .article-body {
        padding-bottom: 20px;
    }
    body .article-layout {
        padding-bottom: 0px;
    }
    body .article-nav {
        padding: 20px 24px 24px;
        border-top: none;
        justify-content: center;
        text-align: center;
    }
    body .article-nav a {
        font-size: 14px;
    }
}


.footer-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-head {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 20px; color: var(--accent); opacity: 0.85;
}
.footer-subhead {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin: 16px 0 8px;
}
.footer-subhead:first-child { margin-top: 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
    font-size: 14px; color: var(--text-dim);
    transition: color 0.2s; line-height: 1.6;
}
.footer-links a:hover { color: var(--accent); }
.footer-info {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 14px; color: var(--text-dim); line-height: 1.6;
}
.footer-info a[href^="tel:"] { color: #C27A5A; }
.footer-map {
    display: block;
    position: relative;
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 16/10;
    max-width: 260px;
}
.footer-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.6;
    transform: scale(1.15);
}
.footer-map .map-pin {
    position: absolute;
    top: 33%;
    left: 42%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.footer-map .map-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
    position: relative;
    z-index: 2;
}
.footer-map .map-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201,169,110,0.25);
    animation: footerPulse 2s ease-out infinite;
}
@keyframes footerPulse {
    0% { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}
.footer-map-legend {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
    line-height: 1.6;
    max-width: 260px;
}
.footer-map-legend em {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--accent);
    font-style: italic;
    display: block;
    margin-bottom: 6px;
}
.footer-bottom {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center; font-size: 13px;
    color: var(--text-muted);
    max-width: 1100px;
    margin-left: auto; margin-right: auto;
}
.footer-logo {
    display: inline-block; font-weight: 700; font-size: 22px;
    letter-spacing: 0.06em; color: var(--text); margin-bottom: 10px;
}

/* ======= BACK TO HUB BUTTON ======= */
.back-to-hub {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 2px;
    border: 1px solid rgba(201,169,110,0.3);
    background: rgba(201,169,110,0.04);
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.back-to-hub:hover {
    border-color: var(--accent);
    background: rgba(201,169,110,0.10);
    gap: 14px;
}
.back-to-hub-arrow {
    font-size: 16px;
    transition: transform 0.3s;
}
.back-to-hub:hover .back-to-hub-arrow {
    transform: translateX(-3px);
}

/* ======= SCROLL REVEAL ======= */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1), filter 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.vis { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ======= SIDEBAR BACK-TO-HUB & CTA ======= */
.sidebar-back-to-hub {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin-top: 28px;
    border-radius: 2px;
    border: 1px solid rgba(201,169,110,0.3);
    background: rgba(201,169,110,0.04);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    line-height: 1.4;
}
.sidebar-back-to-hub:hover {
    border-color: var(--accent);
    background: rgba(201,169,110,0.10);
}
.sidebar-back-to-hub:hover .sidebar-back-arrow {
    transform: translateX(-3px);
}
.sidebar-back-arrow {
    font-size: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.sidebar-cta {
    margin-top: 20px;
    padding: 20px;
    background: rgba(201,169,110,0.06);
    border: 1px solid rgba(201,169,110,0.15);
    border-radius: 2px;
}
.sidebar-cta p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 12px;
}
.sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    transition: opacity 0.3s;
}
.sidebar-cta a:hover { opacity: 0.7; }

/* ======= RESPONSIVE — SHARED COMPONENTS ======= */
@media (max-width: 1024px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .sidebar-back-to-hub, .sidebar-cta { display: none; }
}

@media (max-width: 768px) {
    .nav-logo { top: 24px; left: 24px; font-size: 24px; }
    .page-header { padding: 120px 24px 60px; }
    .footer { padding: 32px 20px 24px; }
    .footer-cols { grid-template-columns: 1fr; gap: 20px; }
    .footer-head { font-size: 12px; margin-bottom: 10px; }
    .footer-subhead { font-size: 11px; margin: 0; padding: 12px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(201,169,110,0.08); }
    .footer-subhead::after { content: '+'; font-size: 16px; font-weight: 300; color: var(--accent); transition: transform 0.3s ease; }
    .footer-subhead.open::after { content: '−'; }
    .footer-subhead + .footer-links { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.33, 1, 0.68, 1); gap: 4px; }
    .footer-subhead + .footer-links.open { max-height: 800px; padding-top: 6px; }
    .footer-links a { font-size: 13px; line-height: 1.5; }
    .footer-info { font-size: 13px; gap: 3px; }
    .footer-map-legend em { font-size: 16px; margin-bottom: 4px; }
    .footer-map { margin-top: 12px; max-width: 200px; aspect-ratio: 16/9; }
    .footer-bottom { margin-top: 24px; padding-top: 16px; font-size: 11px; line-height: 1.5; }
    .footer-logo { font-size: 18px; margin-bottom: 6px; }
    .mobile-menu { width: min(320px, 85vw); padding: 100px 32px 40px; }
}

@media (max-width: 360px) {
    .nav-logo { font-size: 18px; }
    .btn, .btn-editorial, .btn-light { font-size: 13px; padding: 14px 24px; }
    .footer { padding: 48px 16px 24px; }
    .footer-subhead { font-size: 12px; }
    .mobile-menu { width: 90vw; padding: 90px 24px 32px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ====== FLOATING CALL BUTTON ====== */
.floating-call {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1917;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201,169,110,0.3);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, opacity 0.3s;
}
.mobile-menu-backdrop.open ~ .floating-call,
body:has(.mobile-menu-backdrop.open) .floating-call { opacity: 0; pointer-events: none; }
.floating-call:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(201,169,110,0.45);
}
.floating-call svg {
    width: 22px;
    height: 22px;
}

/* ====== LIGHT MODE ====== */
[data-theme="light"] {
    --bg: #F5F2ED;
    --bg-alt: #EDE9E3;
    --bg-card: rgba(0,0,0,0.03);
    --bg-card-border: rgba(0,0,0,0.08);
    --bg-dark: #E0DBD2;
    --text: #23211E;
    --text-dim: #6B655C;
    --text-muted: #8A847B;
    --accent: #9A7B4F;
    --accent-dark: #7D6340;
    --overlay-rgb: 0,0,0;
    --accent-rgb: 154,123,79;
}
[data-theme="light"] html,
html[data-theme="light"] {
    background: #EDE9E3;
}
[data-theme="light"] body,
html[data-theme="light"] body {
    background: radial-gradient(ellipse 60% 50% at 50% 50%, #FAF8F5, #EDE9E3) fixed;
    color: var(--text);
}
/* Dot grid patterns — softer for light bg */
html[data-theme="light"] .hero-dot-bg {
    background:
        radial-gradient(circle, rgba(154,123,79,0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 0, 6px 6px;
}
/* Grain overlay — lighter */
html[data-theme="light"] body::after {
    opacity: 0.03;
}
/* Nav gradient */
html[data-theme="light"] .nav-gradient-overlay {
    background: linear-gradient(to bottom, #EDE9E3 50%, rgba(237,233,227,0.5) 75%, transparent);
}
/* Burger bars */
html[data-theme="light"] .nav-burger span::before,
html[data-theme="light"] .nav-burger span::after {
    background: var(--text);
}
/* Mobile menu */
html[data-theme="light"] .mobile-menu-backdrop {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
}
html[data-theme="light"] .mobile-menu {
    background: var(--bg);
    border-left: 1px solid rgba(154,123,79,0.15);
}
/* Buttons */
html[data-theme="light"] .btn {
    border-color: rgba(154,123,79,0.4);
    box-shadow: 0 4px 20px rgba(154,123,79,0.12);
}
html[data-theme="light"] .btn:hover {
    background: rgba(154,123,79,0.08);
    border-color: var(--accent);
    box-shadow: 0 6px 28px rgba(154,123,79,0.18);
}
/* Footer */
html[data-theme="light"] .footer {
    border-top: 1px solid rgba(154,123,79,0.15);
}
html[data-theme="light"] .footer::before {
    background:
        radial-gradient(circle, rgba(154,123,79,0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 0, 6px 6px;
}
html[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
}
/* Dot-eye pattern */
html[data-theme="light"] .dot-eye::before {
    background:
        radial-gradient(circle, rgba(154,123,79,0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 0, 6px 6px;
}
/* Floating call — keep dark icon on gold */
html[data-theme="light"] .floating-call {
    color: #F5F2ED;
    box-shadow: 0 4px 20px rgba(154,123,79,0.25);
}
html[data-theme="light"] .floating-call:hover {
    box-shadow: 0 6px 28px rgba(154,123,79,0.35);
}
/* Back-to-hub */
html[data-theme="light"] .back-to-hub,
html[data-theme="light"] .sidebar-back-to-hub {
    border-color: rgba(154,123,79,0.3);
    background: rgba(154,123,79,0.04);
}
html[data-theme="light"] .back-to-hub:hover,
html[data-theme="light"] .sidebar-back-to-hub:hover {
    border-color: var(--accent);
    background: rgba(154,123,79,0.08);
}
/* Sidebar CTA */
html[data-theme="light"] .sidebar-cta {
    background: rgba(154,123,79,0.05);
    border-color: rgba(154,123,79,0.12);
}
/* Footer map */
html[data-theme="light"] .footer-map img {
    opacity: 0.8;
}
html[data-theme="light"] .footer-map .map-dot {
    border-color: var(--bg);
}
/* Scroll reveal — no blur change needed, just ensure bg contrast */
/* Mobile menu footer */
html[data-theme="light"] .mobile-menu-footer {
    border-top: 1px solid rgba(154,123,79,0.12);
}

/* ====== THEME TOGGLE ====== */
.theme-toggle {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.25);
    background: rgba(201,169,110,0.06);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
    padding: 0;
}
.theme-toggle:hover {
    background: rgba(201,169,110,0.12);
    border-color: var(--accent);
    transform: scale(1.08);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.theme-toggle:hover svg {
    transform: rotate(20deg);
}
/* Sun icon hidden by default (dark mode shows moon) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle {
    border-color: rgba(154,123,79,0.3);
    background: rgba(154,123,79,0.06);
}
html[data-theme="light"] .theme-toggle:hover {
    background: rgba(154,123,79,0.12);
    border-color: var(--accent);
}
