/* ============================================================
   OnesO.icu - Premium Design System
   Deep, organic colors. Editorial typography. Living motion.
   ============================================================ */

/* ---------- Font imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@300;400;500;600;700;800&family=Cormorant+Garamond:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Deep, organic palette - NO transparency on key surfaces */
    --forest-900: #061812;
    --forest-800: #0a2820;
    --forest-700: #0f3d2e;
    --forest-600: #144d3a;
    --forest-500: #1a5e47;
    --forest-400: #2a7a5f;
    --forest-300: #4a9c80;

    --gold-900: #5a4408;
    --gold-700: #8a6611;
    --gold-600: #c9a227;
    --gold-500: #d8b73e;
    --gold-400: #e8cf63;
    --gold-300: #f0e08e;

    --coral-900: #3d1118;
    --coral-700: #6b1f2b;
    --coral-600: #8b3a3a;
    --coral-500: #a84f4f;
    --coral-400: #c97070;

    --cream-50:  #faf6ec;
    --cream-100: #f5efe1;
    --cream-200: #ebe3d0;
    --cream-300: #ddd0b3;
    --cream-400: #c5b388;

    --ink-900: #0d1411;
    --ink-700: #1a2520;
    --ink-500: #3d4541;
    --ink-300: #6b736f;
    --ink-100: #aab0ac;

    /* Semantic */
    --bg-primary:    var(--cream-100);
    --bg-secondary:  var(--cream-50);
    --bg-dark:       var(--forest-900);
    --surface:       var(--cream-50);
    --surface-dark:  var(--forest-800);

    --text-primary:   var(--ink-900);
    --text-secondary: var(--ink-500);
    --text-muted:     var(--ink-300);
    --text-inverse:   var(--cream-100);
    --text-on-dark:   var(--cream-200);

    --accent-gold:  var(--gold-600);
    --accent-coral: var(--coral-600);

    /* Motion */
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out-soft: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 200ms;
    --dur-med: 400ms;
    --dur-slow: 700ms;

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(13, 20, 17, 0.08), 0 1px 2px rgba(13, 20, 17, 0.04);
    --shadow-md: 0 8px 24px rgba(13, 20, 17, 0.10), 0 2px 6px rgba(13, 20, 17, 0.06);
    --shadow-lg: 0 24px 60px rgba(13, 20, 17, 0.16), 0 8px 16px rgba(13, 20, 17, 0.08);
    --shadow-gold: 0 12px 30px rgba(201, 162, 39, 0.25);
    --shadow-forest: 0 16px 40px rgba(15, 61, 46, 0.30);
}

/* ---------- Reset + base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--gold-600); color: var(--forest-900); }

/* ---------- Tailwind color extensions (used as classes) ---------- */
.bg-forest-900 { background-color: var(--forest-900) !important; }
.bg-forest-800 { background-color: var(--forest-800) !important; }
.bg-forest-700 { background-color: var(--forest-700) !important; }
.bg-forest-600 { background-color: var(--forest-600) !important; }
.bg-cream-50   { background-color: var(--cream-50) !important; }
.bg-cream-100  { background-color: var(--cream-100) !important; }
.bg-cream-200  { background-color: var(--cream-200) !important; }
.bg-gold-600   { background-color: var(--gold-600) !important; }
.bg-gold-500   { background-color: var(--gold-500) !important; }
.bg-coral-600  { background-color: var(--coral-600) !important; }
.text-forest-700 { color: var(--forest-700) !important; }
.text-forest-800 { color: var(--forest-800) !important; }
.text-cream-50   { color: var(--cream-50) !important; }
.text-cream-100  { color: var(--cream-100) !important; }
.text-cream-200  { color: var(--cream-200) !important; }
.text-gold-600   { color: var(--gold-600) !important; }
.text-gold-500   { color: var(--gold-500) !important; }
.text-coral-600  { color: var(--coral-600) !important; }
.text-ink-900    { color: var(--ink-900) !important; }
.text-ink-500    { color: var(--ink-500) !important; }
.text-ink-300    { color: var(--ink-300) !important; }
.border-forest-700 { border-color: var(--forest-700) !important; }
.border-gold-600   { border-color: var(--gold-600) !important; }
.border-cream-200  { border-color: var(--cream-200) !important; }

/* ---------- Typography classes ---------- */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-serif-soft { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; color: var(--forest-800); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    transition: all var(--dur-med) var(--ease-out-soft);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--forest-700);
    color: var(--cream-100);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background: var(--forest-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--forest-900);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--forest-700);
    border-color: var(--forest-700);
}
.btn-ghost:hover {
    background: var(--forest-700);
    color: var(--cream-100);
    transform: translateY(-2px);
}
.btn-outline-light {
    background: transparent;
    color: var(--cream-100);
    border-color: rgba(245, 239, 225, 0.4);
}
.btn-outline-light:hover {
    background: var(--cream-100);
    color: var(--forest-900);
    border-color: var(--cream-100);
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-200);
    transition: all var(--dur-med) var(--ease-out-soft);
    position: relative;
    overflow: hidden;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-400);
}
.card-dark {
    background: var(--forest-800);
    color: var(--cream-200);
    border: 1px solid var(--forest-600);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.card-gold-accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-600), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease-out-soft);
}
.card-gold-accent:hover::before { transform: scaleX(1); }

/* ---------- Pill / Tag ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pill-forest { background: var(--forest-700); color: var(--cream-100); }
.pill-gold   { background: var(--gold-600); color: var(--forest-900); }
.pill-coral  { background: var(--coral-600); color: var(--cream-100); }
.pill-cream  { background: var(--cream-200); color: var(--forest-800); }
.pill-outline { background: transparent; border: 1px solid currentColor; }

/* ---------- Section spacing ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.container-x { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50%      { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Animation utilities (triggered by JS via IntersectionObserver) */
.reveal { opacity: 0; }
.reveal.in-view { animation: fadeInUp var(--dur-slow) var(--ease-out-soft) forwards; }
.reveal-fade.in-view { animation: fadeIn var(--dur-slow) var(--ease-out-soft) forwards; }
.reveal-left.in-view { animation: slideInLeft var(--dur-slow) var(--ease-out-soft) forwards; }
.reveal-right.in-view { animation: slideInRight var(--dur-slow) var(--ease-out-soft) forwards; }
.reveal-scale.in-view { animation: scaleIn var(--dur-med) var(--ease-out-soft) forwards; }
.float-y { animation: floatY 6s var(--ease-in-out-soft) infinite; }
.spin-slow { animation: spinSlow 24s linear infinite; }
.pulse-glow { animation: pulseGlow 2.4s var(--ease-in-out-soft) infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

/* ---------- Decorative gradients ---------- */
.bg-forest-gradient {
    background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 60%, var(--forest-800) 100%);
}
.bg-forest-radial {
    background: radial-gradient(ellipse at top, var(--forest-700) 0%, var(--forest-900) 75%);
}
.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 50%, var(--gold-700) 100%);
}
.bg-cream-gradient {
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
}
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600), var(--gold-400));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s var(--ease-in-out-soft) infinite;
}
.text-gradient-forest {
    background: linear-gradient(135deg, var(--forest-700), var(--forest-500), var(--forest-700));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s var(--ease-in-out-soft) infinite;
}

/* Decorative divider */
.divider-gold {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
    margin: 1rem 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all var(--dur-med) var(--ease-out-soft);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(6, 24, 18, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.65rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.site-header .nav-link {
    color: var(--cream-200);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--dur-fast) var(--ease-out-soft);
}
.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 2px;
    background: var(--gold-500);
    transition: all var(--dur-med) var(--ease-out-soft);
    transform: translateX(-50%);
}
.site-header .nav-link:hover { color: var(--gold-400); }
.site-header .nav-link:hover::after { width: 70%; }

.brand-mark {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--cream-100);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.brand-mark .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 12px var(--gold-400);
    animation: pulseGlow 2.4s var(--ease-in-out-soft) infinite;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--forest-900);
    z-index: 99;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease-out-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    color: var(--cream-100);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--forest-900);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-bg-grain {
    position: absolute; inset: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(42, 122, 95, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 61, 46, 0.4) 0%, transparent 70%);
    pointer-events: none;
}
.hero-pattern {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(245,239,225,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,239,225,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
}
.hero h1 {
    color: var(--cream-100);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.hero .lead {
    color: var(--cream-200);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 620px;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--forest-500); top: 10%; right: -100px; animation: floatY 9s var(--ease-in-out-soft) infinite; }
.hero-orb-2 { width: 320px; height: 320px; background: var(--gold-600); bottom: 5%; left: -80px; animation: floatY 11s var(--ease-in-out-soft) infinite reverse; opacity: 0.25; }

/* Floating calculator preview card */
.hero-card-stack {
    position: relative;
    perspective: 1200px;
}
.hero-card {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(-3deg);
    transition: transform var(--dur-slow) var(--ease-out-soft);
}
.hero-card:hover { transform: rotate(0deg) translateY(-8px); }
.hero-card-2 {
    position: absolute;
    top: 30px; right: -20px;
    background: var(--forest-700);
    color: var(--cream-100);
    transform: rotate(5deg);
    width: 70%;
    z-index: -1;
}

/* ---------- Calculator styling ---------- */
.calc-input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: var(--cream-50);
    border: 2px solid var(--cream-200);
    border-radius: var(--radius-md);
    font-size: 1.02rem;
    color: var(--ink-900);
    transition: all var(--dur-fast) var(--ease-out-soft);
    font-weight: 500;
}
.calc-input:focus {
    outline: none;
    border-color: var(--gold-600);
    background: var(--cream-50);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}
.calc-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
}
.calc-result-box {
    background: linear-gradient(135deg, var(--forest-800), var(--forest-700));
    color: var(--cream-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-forest);
    position: relative;
    overflow: hidden;
}
.calc-result-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(201,162,39,0.18), transparent 70%);
    pointer-events: none;
}
.calc-result-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--gold-400);
    line-height: 1;
    margin: 0.5rem 0;
    word-break: break-word;
}

/* ---------- Article typography ---------- */
.article-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--ink-700);
}
.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream-200);
    color: var(--forest-800);
    scroll-margin-top: 100px;
}
.article-body h3 {
    margin-top: 2rem;
    color: var(--forest-700);
    scroll-margin-top: 100px;
}
.article-body p { margin-bottom: 1.3rem; }
.article-body ul, .article-body ol {
    margin: 0 0 1.3rem 1.5rem;
    padding-left: 0.5rem;
}
.article-body li { margin-bottom: 0.6rem; }
.article-body strong { color: var(--forest-800); font-weight: 700; }
.article-body blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--gold-600);
    background: var(--cream-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--forest-700);
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--cream-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-body th, .article-body td {
    padding: 0.85rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-200);
}
.article-body th {
    background: var(--forest-700);
    color: var(--cream-100);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover { background: var(--cream-50); }
.article-body code {
    background: var(--cream-200);
    color: var(--coral-700);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: 'JetBrains Mono', monospace;
}
.article-body a { color: var(--forest-600); text-decoration: underline; text-decoration-color: var(--gold-600); text-underline-offset: 3px; }
.article-body a:hover { color: var(--forest-800); }

/* Article callout boxes */
.callout {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
}
.callout-info  { background: #eaf3ee; border-color: var(--forest-500); }
.callout-warn  { background: #faf2e1; border-color: var(--gold-600); }
.callout-danger{ background: #f7e8e8; border-color: var(--coral-600); }
.callout-title { font-weight: 700; font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.4rem; display: block; }
.callout-info .callout-title { color: var(--forest-700); }
.callout-warn .callout-title { color: var(--gold-700); }
.callout-danger .callout-title { color: var(--coral-700); }

/* ---------- Table of contents (sticky) ---------- */
.toc {
    position: sticky;
    top: 100px;
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-300); margin-bottom: 0.8rem; }
.toc a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--ink-500);
    border-left: 2px solid transparent;
    padding-left: 0.85rem;
    margin-left: -0.85rem;
    transition: all var(--dur-fast) var(--ease-out-soft);
}
.toc a:hover, .toc a.active {
    color: var(--forest-700);
    border-color: var(--gold-600);
    font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--forest-900);
    color: var(--cream-200);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
}
.site-footer h5 {
    color: var(--cream-100);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.site-footer a { color: var(--cream-200); transition: all var(--dur-fast) var(--ease-out-soft); }
.site-footer a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--forest-600);
    font-size: 0.88rem;
    color: var(--ink-100);
}

/* ---------- Misc utilities ---------- */
.glass-card {
    background: rgba(15, 61, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 162, 39, 0.25);
}
.icon-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-forest { background: var(--forest-700); color: var(--gold-400); }
.icon-gold   { background: var(--gold-600); color: var(--forest-900); }
.icon-coral  { background: var(--coral-600); color: var(--cream-100); }

/* Number counter */
.counter {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--gold-500);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
}

/* Step indicator (calculator) */
.step-dots { display: flex; gap: 0.5rem; }
.step-dot { width: 32px; height: 4px; border-radius: 2px; background: var(--cream-200); transition: all var(--dur-med) var(--ease-out-soft); }
.step-dot.active { background: var(--gold-600); width: 48px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--cream-200); }
.faq-q {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--forest-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}
.faq-q .icon { transition: transform var(--dur-med) var(--ease-out-soft); color: var(--gold-600); font-size: 1.4rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease-out-soft);
    color: var(--ink-500);
    line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.25rem; }

/* Hide print-only elements */
@media print { .site-header, .site-footer, .no-print { display: none !important; } }

/* Reduced motion */
@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; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream-100); }
::-webkit-scrollbar-thumb { background: var(--forest-500); border-radius: 6px; border: 3px solid var(--cream-100); }
::-webkit-scrollbar-thumb:hover { background: var(--forest-700); }

/* Focus visible */
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
