/**
 * Cabinet Lays — Public CSS
 * Architecture : variables → reset → homepage → legacy pages → common
 */

/* =================================================================
   1. VARIABLES
   ================================================================= */
:root {
    color-scheme: dark;
    --bg: #0c0f14;
    --bg-rgb: 12, 15, 20;
    --bg-2: #111621;
    --bg-2-rgb: 17, 22, 33;
    --text: #eae6dd;
    --text-rgb: 234, 230, 221;
    --text-muted: rgba(var(--text-rgb), 0.6);
    --accent: #c9a84e;
    --accent-rgb: 201, 168, 78;
    --accent-light: #dfc477;
    --accent-dark: #a8872e;
    --accent-2: #6dbad8;
    --surface: #171c28;
    --surface-2: #1e2636;
    --serif: "Playfair Display", "Libre Baskerville", "Georgia", serif;
    --sans: "Inter", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

/* =================================================================
   2. RESET & BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Gradient overlay for non-homepage pages */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(109, 186, 216, 0.1), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.15), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(109, 186, 216, 0.06), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

body.home::before {
    content: none;
}

/* Legal pages (with navbar + footer) */
body.legal {
    display: block;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(var(--bg-2-rgb), 0.8) 0, var(--bg) 60%);
}

body.legal .page.legal-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    position: relative;
    z-index: 1;
}

/* Contact page */
body.contact-page {
    display: block;
    padding: 0;
    background: radial-gradient(circle at 15% 10%, rgba(var(--bg-2-rgb), 0.8) 0, var(--bg) 60%);
}

body.contact-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 70% 10%, rgba(var(--accent-rgb), 0.14), transparent 55%),
        linear-gradient(120deg, rgba(109, 186, 216, 0.08), transparent 45%),
        radial-gradient(circle at 30% 90%, rgba(var(--accent-rgb), 0.06), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* =================================================================
   3. GLOBAL TYPOGRAPHY
   ================================================================= */
h1 {
    font-family: var(--serif);
    font-size: 40px;
    margin: 8px 0 12px;
    letter-spacing: 1px;
}

h2, h3, .brand {
    font-family: var(--serif);
}

p {
    margin: 0 0 24px;
    font-size: 18px;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* =================================================================
   4. COMMON ELEMENTS
   ================================================================= */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

.button {
    display: inline-block;
    padding: 13px 28px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.25);
    transform: translateY(-2px);
}

.ghost {
    background: transparent;
    border: 1px solid rgba(var(--accent-rgb), 0.6);
    color: var(--accent);
}

.ghost:hover {
    background: rgba(var(--accent-rgb), 0.12);
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link:hover {
    text-decoration: underline;
}

.required {
    color: #e74c3c;
    font-weight: 600;
}

/* =================================================================
   5. HOMEPAGE — NAVBAR
   ================================================================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 72px;
    background: rgba(var(--bg-rgb), 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(var(--bg-rgb), 0.95);
    border-bottom-color: rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: var(--accent);
}

.nav-logo {
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    object-fit: contain;
}

.nav-name {
    font-family: var(--serif); font-size: 20px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
}

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

.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 13px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: ""; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.nav-links .nav-cta:hover {
    background: rgba(var(--accent-rgb), 0.12);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

.nav-links .nav-cta::after { display: none; }

/* ===== HAMBURGER MENU ===== */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; position: relative;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    z-index: 110;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) { opacity: 0; }

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
}

/* =================================================================
   6. HOMEPAGE — HERO
   ================================================================= */
body.home .hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 48px 80px;
    overflow: hidden;
}

body.home .hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(var(--accent-rgb), 0.08), transparent),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(var(--accent-rgb), 0.04), transparent),
        linear-gradient(180deg, transparent 60%, var(--bg) 100%);
    pointer-events: none;
}

.hero-bg-line {
    position: absolute; top: 0; bottom: 0;
    width: 1px; background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.04) 30%, rgba(var(--accent-rgb), 0.04) 70%, transparent);
    pointer-events: none;
}

.hero-bg-line:nth-child(1) { left: 20%; }
.hero-bg-line:nth-child(2) { left: 50%; }
.hero-bg-line:nth-child(3) { left: 80%; }

.hero-inner {
    position: relative; z-index: 1;
    max-width: 1280px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 80px; align-items: center;
}

.hero-overline {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
}

.hero-overline::before {
    content: ""; width: 40px; height: 1px; background: var(--accent);
}

body.home .hero h1 {
    font-family: var(--serif); font-size: clamp(40px, 5vw, 62px);
    font-weight: 500; line-height: 1.15; margin-bottom: 24px;
    letter-spacing: -0.5px;
}

body.home .hero h1 em {
    font-style: italic; color: var(--accent);
}

.hero-desc {
    font-size: 18px; line-height: 1.75; color: var(--text-muted);
    max-width: 520px; margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; background: var(--accent); color: var(--bg);
    text-decoration: none; font-weight: 600; font-size: 14px;
    letter-spacing: 0.8px; border-radius: 6px;
    transition: all 0.35s ease; border: none; cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; background: transparent;
    border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--text);
    text-decoration: none; font-weight: 500; font-size: 14px;
    letter-spacing: 0.8px; border-radius: 6px;
    transition: all 0.35s ease; cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08);
}

.hero-stats {
    display: flex; gap: 40px;
    padding-top: 32px; border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.hero-stat-num {
    font-family: var(--serif); font-size: 32px;
    font-weight: 600; color: var(--accent); display: block;
}

.hero-stat-label {
    font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted);
    margin-top: 4px; display: block;
}

.hero-visual {
    position: relative;
}

.hero-card-main {
    padding: 40px; border-radius: 24px;
    background: linear-gradient(160deg, rgba(var(--bg-2-rgb), 0.95), rgba(var(--bg-rgb), 0.95));
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 120px rgba(var(--accent-rgb), 0.04);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-card-quote {
    font-family: var(--serif); font-size: 20px; font-style: italic;
    line-height: 1.7; color: rgba(var(--text-rgb), 0.9);
    padding-left: 20px; border-left: 2px solid var(--accent);
    margin-bottom: 28px;
}

.hero-card-features {
    display: grid; gap: 16px;
}

.hero-card-feat {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.04);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    transition: all 0.3s;
}

.hero-card-feat:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.feat-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--accent);
}

.feat-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.feat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* =================================================================
   7. HOMEPAGE — SECTIONS COMMUNES
   ================================================================= */
.section { padding: 100px 48px; position: relative; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}

.section-label::before {
    content: ""; width: 24px; height: 1px; background: var(--accent);
}

.section-title {
    font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 500; margin-bottom: 16px; line-height: 1.25;
}

.section-subtitle {
    font-size: 17px; line-height: 1.7; color: var(--text-muted);
    max-width: 560px; margin: 0;
}

/* ===== DOMAINES ===== */
.section-domaines { background: var(--bg-2); }

.domaines-head {
    display: flex; justify-content: space-between;
    align-items: flex-end; gap: 40px; margin-bottom: 48px;
}

.domaines-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.domaine-card {
    padding: 32px 28px; border-radius: 16px;
    background: rgba(var(--bg-rgb), 0.7);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    transition: all 0.4s ease; position: relative; overflow: hidden;
}

.domaine-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity 0.4s;
}

.domaine-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px rgba(var(--accent-rgb), 0.04);
}

.domaine-card:hover::before { opacity: 1; }

.domaine-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--accent);
}

.domaine-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.domaine-card h3 {
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    margin-bottom: 10px;
}

.domaine-card p {
    font-size: 14px; line-height: 1.65; color: var(--text-muted); margin: 0;
}

/* ===== VALEURS ===== */
.valeurs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-top: 48px;
}

.valeur-item {
    padding: 40px 36px; position: relative;
    border-right: 1px solid rgba(var(--accent-rgb), 0.1);
}

.valeur-item:last-child { border-right: none; }

.valeur-num {
    font-family: var(--serif); font-size: 48px;
    font-weight: 700; color: rgba(var(--accent-rgb), 0.35);
    line-height: 1; margin-bottom: 16px;
}

.valeur-item h3 {
    font-family: var(--serif); font-size: 20px;
    font-weight: 600; margin-bottom: 12px;
}

.valeur-item p {
    font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0;
}

/* ===== APPROCHE ===== */
.section-approche { background: var(--bg-2); }

.approche-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; margin-top: 48px;
}

.approche-steps { display: grid; gap: 0; }

.approche-step {
    display: grid; grid-template-columns: 60px 1fr;
    gap: 20px; padding: 28px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.approche-step:last-child { border-bottom: none; }

.step-num {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    color: var(--accent);
}

.approche-step h3 {
    font-family: var(--serif); font-size: 18px; font-weight: 600;
    margin-bottom: 6px;
}

.approche-step p { font-size: 14px; line-height: 1.65; color: var(--text-muted); margin: 0; }

.approche-card {
    padding: 48px; border-radius: 24px;
    background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.06), rgba(var(--bg-rgb), 0.9));
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}

.approche-card blockquote {
    font-family: var(--serif); font-size: 22px; font-style: italic;
    line-height: 1.7; color: rgba(var(--text-rgb), 0.9);
    margin-bottom: 24px;
}

.approche-card cite {
    font-style: normal; font-size: 14px;
    color: var(--accent); letter-spacing: 1px;
}

.approche-card-divider {
    width: 40px; height: 1px; background: var(--accent);
    margin: 24px 0;
}

.approche-card-stats {
    display: flex; gap: 32px;
}

.acs-value {
    font-family: var(--serif); font-size: 24px; font-weight: 600;
    color: var(--accent); display: block;
}

.acs-label {
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); margin-top: 2px; display: block;
}

/* ===== CTA ===== */
.section-cta {
    padding: 120px 48px; text-align: center;
    position: relative; overflow: hidden;
}

.section-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(var(--accent-rgb), 0.06), transparent);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 20px; }
.cta-inner .section-subtitle {
    max-width: 100%; margin: 0 auto 36px; text-align: center;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-info {
    margin-top: 32px; font-size: 13px;
    color: var(--text-muted); letter-spacing: 1px;
}

/* =================================================================
   8. HOMEPAGE — SITE FOOTER
   ================================================================= */
.site-footer {
    border-top: 1px solid rgba(var(--accent-rgb), 0.15);
    padding: 48px 48px 32px;
    background: rgba(var(--bg-rgb), 0.6);
}

.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }

.footer-brand span {
    font-family: var(--serif); font-size: 16px;
    color: var(--accent); letter-spacing: 1px; text-transform: uppercase;
}

.footer-desc { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 320px; margin: 0; }

.footer-col h4 {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 18px;
}

.footer-col a {
    display: block; padding: 6px 0; color: var(--text-muted);
    text-decoration: none; font-size: 14px; transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1280px; margin: 32px auto 0;
    padding-top: 24px; border-top: 1px solid rgba(var(--accent-rgb), 0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-muted);
}

.footer-bottom a { color: var(--accent); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* =================================================================
   9. HOMEPAGE — ANIMATIONS
   ================================================================= */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

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

/* =================================================================
   10. HOMEPAGE — RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .domaines-grid { grid-template-columns: repeat(2, 1fr); }
    .approche-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 64px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        flex-direction: column; align-items: flex-start;
        padding: 80px 32px 32px; gap: 8px;
        background: rgba(var(--bg-rgb), 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(var(--accent-rgb), 0.15);
        transition: right 0.35s ease;
        z-index: 105;
    }
    .nav-links.mobile-open { right: 0; }
    .nav-links a {
        font-size: 15px; padding: 12px 0;
        width: 100%; border-bottom: 1px solid rgba(var(--accent-rgb), 0.06);
    }
    .nav-links .nav-cta {
        margin-top: 16px; text-align: center;
        justify-content: center; width: 100%;
        padding: 14px 24px; border-bottom: none;
    }
    .nav-name { font-size: 16px; }
    body.home .hero, .section, .section-cta { padding-left: 20px; padding-right: 20px; }
    body.home .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }
    .domaines-grid { grid-template-columns: 1fr; }
    .valeurs-grid { grid-template-columns: 1fr; }
    .valeur-item { border-right: none; border-bottom: 1px solid rgba(var(--accent-rgb), 0.1); padding: 28px 0; }
    .valeur-item:last-child { border-bottom: none; }
    .hero-stats { gap: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .domaines-head { flex-direction: column; align-items: flex-start; }
    .mobile-overlay {
        display: block; position: fixed; inset: 0;
        background: rgba(0,0,0,0.5); z-index: 104;
        opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .mobile-overlay.active { opacity: 1; pointer-events: auto; }
    .site-footer { padding: 36px 20px 24px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* =================================================================
   11. LEGACY — SITE HEADER (contact / legal)
   ================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    background: rgba(var(--bg-2-rgb), 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    background: rgba(var(--bg-2-rgb), 0.6);
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a {
    color: rgba(var(--text-rgb), 0.85);
    text-decoration: none;
    position: relative;
}

.nav a:hover {
    color: var(--accent);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* =================================================================
   12. LEGACY — HOME MAIN (contact)
   ================================================================= */
.home-main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}

.lead {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    color: rgba(var(--text-rgb), 0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(var(--text-rgb), 0.65);
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

/* =================================================================
   13. LEGACY — CONTACT PAGE
   ================================================================= */
.contact-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 64px 0 32px;
    align-items: flex-end;
}

.contact-highlight {
    max-width: 280px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--bg-2-rgb), 0.8);
    color: rgba(var(--text-rgb), 0.85);
    font-size: 14px;
}

.contact-highlight strong {
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    padding-bottom: 80px;
    align-items: start;
}

.contact-card {
    padding: 24px;
    border-radius: 18px;
    background: rgba(var(--bg-2-rgb), 0.88);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2), 0 0 60px rgba(var(--accent-rgb), 0.04);
}

.contact-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    color: rgba(var(--text-rgb), 0.85);
}

.contact-list span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: rgba(var(--text-rgb), 0.55);
}

.contact-list strong {
    font-weight: 600;
    color: var(--text);
}

.contact-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--text-rgb), 0.12);
    font-size: 14px;
    color: rgba(var(--text-rgb), 0.7);
}

.contact-note strong {
    color: var(--text);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.contact-note ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.contact-note ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    color: rgba(var(--text-rgb), 0.8);
}

.contact-note ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(var(--text-rgb), 0.7);
}

.contact-form input,
.contact-form textarea {
    background: rgba(var(--bg-rgb), 0.85);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--sans);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.contact-form button {
    justify-self: start;
}

.contact-form small {
    font-size: 12px;
    color: rgba(var(--text-rgb), 0.6);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

.radio-group {
    border: none;
    padding: 0;
    margin: 14px 0;
}

.radio-group legend {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(var(--text-rgb), 0.7);
    margin-bottom: 10px;
    padding: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: rgba(var(--bg-rgb), 0.6);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.radio-label:hover {
    background: rgba(var(--bg-rgb), 0.8);
    border-color: rgba(var(--accent-rgb), 0.35);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.radio-label span {
    color: rgba(var(--text-rgb), 0.85);
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    flex: 1;
}

.radio-label:has(input:checked) {
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.5);
}

.radio-label:has(input:checked) span {
    color: var(--text);
    font-weight: 500;
}

/* =================================================================
   14. LEGACY — LEGAL PAGES
   ================================================================= */
.page {
    text-align: center;
    padding: 48px 24px;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.legal-page {
    text-align: left;
    max-width: 1080px;
    width: 100%;
}

.legal-header h1 {
    margin-top: 12px;
}

.legal-rule {
    height: 1px;
    margin: 16px 0 32px;
    background: rgba(var(--text-rgb), 0.2);
}

.legal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
    align-items: start;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-section {
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(var(--text-rgb), 0.12);
}

.legal-section h2 {
    font-size: 20px;
    margin: 0 0 12px;
    padding: 6px 0 10px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid rgba(var(--text-rgb), 0.12);
}

.legal-section p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.6;
}

.legal-list {
    margin: 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 8px;
    list-style: disc;
    color: rgba(var(--text-rgb), 0.9);
}

.legal-list li {
    font-size: 16px;
    line-height: 1.6;
}

.legal-article-ref {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.1);
    color: rgba(var(--text-rgb), 0.88);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    font-weight: 500;
}

.legal-aside {
    border-left: 1px solid rgba(var(--text-rgb), 0.2);
    padding-left: 24px;
    font-size: 14px;
    color: rgba(var(--text-rgb), 0.8);
}

.legal-aside h3 {
    margin: 0 0 12px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.legal-aside p {
    margin: 0 0 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-aside {
        border-left: none;
        border-top: 1px solid rgba(var(--text-rgb), 0.2);
        padding-left: 0;
        padding-top: 20px;
    }
}

/* =================================================================
   15. LEGACY — FOOTER (contact / legal)
   ================================================================= */
.footer {
    margin: 0;
    padding: 18px 28px;
    border-top: 1px solid rgba(var(--accent-rgb), 0.3);
    font-size: 14px;
    text-align: center;
    color: rgba(var(--text-rgb), 0.85);
    position: relative;
    z-index: 1;
    background: rgba(var(--bg-2-rgb), 0.5);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 8px;
}

.footer a::before {
    content: "|";
    margin-right: 8px;
    color: rgba(var(--text-rgb), 0.4);
}

.footer a:first-of-type::before {
    content: "";
    margin-right: 0;
}

.footer a:hover {
    text-decoration: underline;
}

/* =================================================================
   16. LEGACY — RESPONSIVE (contact / legal)
   ================================================================= */
@media (max-width: 960px) {
    .site-header {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
    }

    .contact-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   17. THEME SWITCHER
   ================================================================= */
.theme-switcher {
    position: relative;
}

.theme-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(var(--text-rgb), 0.15);
    background: rgba(var(--text-rgb), 0.06);
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-switcher-btn:hover {
    background: rgba(var(--text-rgb), 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    padding: 6px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid rgba(var(--text-rgb), 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 100;
}

.theme-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.theme-option:hover {
    background: rgba(var(--text-rgb), 0.08);
}

.theme-option.active {
    background: rgba(var(--text-rgb), 0.1);
    font-weight: 600;
}

.theme-option.active::after {
    content: "\2713";
    margin-left: auto;
    color: var(--accent);
    font-size: 15px;
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(var(--text-rgb), 0.2);
}

