/* ============================================================================
   Amenajări Silvice Ștefan

   Locked direction: paper ground, photographic hero, explanatory pricing,
   serif display. Single-theme by choice - the paper ground is the identity,
   not a light-mode variant of something else.
   ========================================================================= */

:root {
    --ground: #eef1e8;        /* moss-tinted paper */
    --surface: #fbfcf8;
    --ink: #17241a;
    --dim: #5a6b5c;
    --primary: #2d4a33;
    --primary-hover: #38593f;
    --primary-ink: #f7f9f4;
    --accent: #b0442c;        /* tree-marking paint, used sparingly */
    --line: rgba(23, 36, 26, 0.14);
    --line-strong: rgba(23, 36, 26, 0.30);
    --dark-bg: #1e3325;
    --dark-ink: #f2f6ef;
    --dark-dim: #b6c7b4;

    /* Print-like lift for things resting on the paper ground. Deliberately
       faint - the identity is flat paper, not floating material. */
    --lift: 0 1px 2px rgba(23, 36, 26, 0.05), 0 12px 26px -22px rgba(23, 36, 26, 0.28);

    --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
    --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-util: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Anchor targets (#contact) would otherwise land under the sticky nav. */
[id] { scroll-margin-top: 5.5rem; }

::selection { background: var(--primary); color: var(--primary-ink); }

body {
    font-family: var(--font-body);
    /* The tile is SVG turbulence at 4% alpha: just enough grain to read as
       paper rather than as a flat #eef1e8 fill. Kept off the cards, which sit
       on their own clean surface. */
    background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.04'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 71rem; margin-inline: auto; padding-inline: 1.5rem; }
/* Long-form legal text: narrower measure, so lines stay readable. */
.wrap--narrow { max-width: 48rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--primary); color: var(--primary-ink);
    padding: 0.75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

.display {
    font-family: var(--font-display);
    font-weight: 700; letter-spacing: -0.012em; line-height: 1.12;
    text-wrap: balance;
}
.display .emph { font-style: italic; }

.eyebrow {
    font-family: var(--font-util);
    font-size: 0.7rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--dim);
}

.btn {
    display: inline-block; text-decoration: none;
    font-family: inherit; font-size: 0.9rem; font-weight: 600;
    padding: 0.75rem 1.5rem; border-radius: 3px; border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--primary); color: var(--primary-ink); }
.btn-solid:hover { background: var(--primary-hover); }
.btn-photo { border-color: rgba(255, 255, 255, 0.45); color: #fff; font-family: var(--font-util); }
.btn-photo:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- top bar ---------- */
.topbar {
    border-bottom: 1px solid var(--line);
    font-family: var(--font-util); font-size: 0.7rem;
    letter-spacing: 0.04em; color: var(--dim);
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--primary); }
.topbar-contact { display: flex; gap: 1.5rem; }

/* ---------- navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 2rem; padding-block: 0.75rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-badge {
    width: 2.3rem; height: 2.3rem; border-radius: 50%; flex: none;
    background: var(--primary); display: grid; place-items: center;
}
.brand-badge img { width: 1.45rem; }
.brand-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.brand-name small {
    display: block; font-family: var(--font-util); font-weight: 400;
    font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}

.nav-desktop ul { display: flex; gap: 1.5rem; list-style: none; font-size: 0.87rem; }
.nav-desktop a { text-decoration: none; padding-block: 0.3rem; position: relative; white-space: nowrap; }
.nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    border-bottom: 2px solid var(--primary); transition: right 0.2s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { right: 0; }

/* Mobile menu built on <details>, so it works with JavaScript disabled. */
.nav-mobile { display: none; position: static; }
/* No display override on <summary>: older Safari breaks the disclosure toggle
   when summary loses its default display. The burger centers itself instead. */
.nav-mobile > summary {
    list-style: none; cursor: pointer;
    width: 2.75rem; height: 2.75rem;
    position: relative;
    border: 1px solid var(--line-strong); border-radius: 3px;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary::marker { content: ""; }

.burger, .burger::before, .burger::after {
    display: block; width: 1.15rem; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger { position: absolute; left: 50%; top: 50%; margin: -1px 0 0 -0.575rem; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -0.38rem; }
.burger::after  { top: 0.38rem; }

.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(0.38rem) rotate(45deg); }
.nav-mobile[open] .burger::after  { transform: translateY(-0.38rem) rotate(-45deg); }

.nav-mobile > nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 30px -24px rgba(23, 36, 26, 0.5);
}
.nav-mobile > nav ul { list-style: none; }
.nav-mobile > nav li + li { border-top: 1px solid var(--line); }
.nav-mobile > nav a {
    display: block; padding: 0.95rem 1.5rem;
    text-decoration: none; font-size: 0.95rem;
}
.nav-mobile > nav a:hover,
.nav-mobile > nav a[aria-current="page"] { background: var(--ground); color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    .burger, .burger::before, .burger::after { transition: none; }
}

/* ---------- hero ---------- */
.hero-photo {
    position: relative; min-height: 30rem; display: flex; align-items: flex-end;
    background-image: url("/img/forest.jpg");
    background-image: image-set(url("/img/forest.webp") type("image/webp"),
                                url("/img/forest.jpg") type("image/jpeg"));
    background-size: cover; background-position: center 60%;
}
.hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(8, 16, 11, 0.22) 0%, rgba(8, 16, 11, 0.5) 45%, rgba(8, 16, 11, 0.84) 100%);
}
.hero-copy { position: relative; z-index: 1; padding-block: 4.5rem 3.5rem; color: #f4f8f2; }
.hero-copy .eyebrow { color: #b9cdb6; margin-bottom: 1rem; }
.hero-copy h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.2rem; max-width: 26ch; }
.hero-copy h1 .emph { color: #b9d4ba; }
.hero-copy .lead { max-width: 44ch; color: #d5e2d2; font-size: 1.02rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.stats { display: flex; gap: 3rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1.6rem; }
.stat dt {
    font-family: var(--font-display); font-size: 1.65rem; font-weight: 700;
    line-height: 1.25; font-variant-numeric: tabular-nums;
}
.stat dd { font-size: 0.76rem; color: var(--dim); }

/* ---------- sections ---------- */
.section { padding-block: 4.5rem; border-top: 1px solid var(--line); }
.section--top { border-top: 0; padding-top: 3.5rem; }
.section-head { max-width: 42rem; margin-bottom: 2.8rem; }
.section-head h1,
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-block: 0.7rem 0.8rem; }
.section-head p { color: var(--dim); }
.section-head--sub { margin-top: 3.5rem; }

.section-more { margin-top: 2.5rem; color: var(--dim); font-size: 0.94rem; }
.section-more a { color: var(--primary); font-weight: 600; }

/* ---------- stages ---------- */
.stages { list-style: none; max-width: 46rem; }
.stage { display: grid; grid-template-columns: 3rem 1fr; gap: 1.4rem; position: relative; padding-bottom: 2.2rem; }
.stage:not(:last-child)::before {
    content: ""; position: absolute; left: 1.5rem; top: 3.3rem; bottom: 0.3rem;
    border-left: 1px dashed var(--line-strong);
}
.stage-num {
    width: 3rem; height: 3rem; border-radius: 50%; flex: none;
    border: 1.5px solid var(--primary); color: var(--primary);
    display: grid; place-items: center; background: var(--surface);
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.stage h2, .stage h3 { font-size: 1.05rem; line-height: 1.35; padding-top: 0.55rem; margin-bottom: 0.35rem; }
.stage p { color: var(--dim); font-size: 0.94rem; max-width: 38rem; }
.substeps { list-style: none; margin-top: 0.6rem; }
.substeps li {
    color: var(--dim); font-size: 0.92rem; line-height: 1.55;
    padding-left: 1.1rem; position: relative; margin-bottom: 0.4rem;
}
.substeps li::before { content: "–"; position: absolute; left: 0; color: var(--primary); }

.milestone {
    display: inline-block; margin-top: 0.7rem;
    font-family: var(--font-util); font-size: 0.66rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 999px; padding: 0.24rem 0.75rem;
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1.8rem; box-shadow: var(--lift); }
.card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-block: 0.7rem 0.7rem; }
.card p { color: var(--dim); font-size: 0.93rem; }
.card p + p { margin-top: 0.6rem; }

/* ---------- single-service feature (consultanta) ---------- */
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
    box-shadow: var(--lift);
    display: grid; grid-template-columns: 1.6fr 1fr;
}
.feature-body { padding: 2rem 2.2rem; }
.feature-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin-block: 0.7rem; }
.feature-body > p:last-child { color: var(--dim); font-size: 0.95rem; max-width: 46ch; }
.feature-aside {
    border-left: 1px solid var(--line); padding: 2rem 2.2rem;
    display: grid; gap: 1.1rem; align-content: center; justify-items: start;
}
.feature-aside p { color: var(--dim); font-size: 0.9rem; }

/* ---------- pricing factors ---------- */
.factor-group + .factor-group { margin-top: 2.2rem; }
.factor-group-title {
    font-family: var(--font-util); font-size: 0.7rem; font-weight: 400;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
    margin-bottom: 0.9rem;
}
.factor-group-title--up { color: var(--accent); }
.factor-group-title--down { color: var(--primary); }

.factors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; }
.factor {
    background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
    padding: 1.05rem 1.15rem; display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.6rem;
    box-shadow: var(--lift);
}
.factor i { font-style: normal; font-family: var(--font-util); font-size: 0.82rem; line-height: 1.8; }
.factor.up i { color: var(--accent); }
.factor.down i { color: var(--primary); }
.factor.base { border-color: var(--line-strong); }
.factor.base i { color: var(--ink); }
/* The direction each factor pushes the price is repeated by its frame: the
   marker color bleeds into the border and the lift shadow, so the up/down
   grouping reads at a glance without leaning on the symbols alone. */
.factor.up {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    box-shadow: 0 1px 2px rgba(176, 68, 44, 0.1), 0 14px 28px -20px rgba(176, 68, 44, 0.6);
}
.factor.down {
    border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
    box-shadow: 0 1px 2px rgba(45, 74, 51, 0.12), 0 14px 28px -20px rgba(45, 74, 51, 0.65);
}
.factor h4 { font-size: 0.89rem; line-height: 1.35; margin-bottom: 0.25rem; }
.factor p { font-size: 0.79rem; color: var(--dim); line-height: 1.5; }

.addons { margin-top: 2.2rem; }
.addons h3 {
    font-family: var(--font-util); font-size: 0.68rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 0.9rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; }
.chips li {
    font-size: 0.79rem; border: 1px dashed var(--line-strong);
    border-radius: 999px; padding: 0.32rem 0.9rem; color: var(--dim);
}
.chips li::before { content: "+ "; color: var(--primary); font-weight: 700; }

.quote-note {
    margin-top: 2.2rem; padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--primary); background: var(--surface);
    font-size: 0.92rem; color: var(--dim); max-width: 46rem;
}

/* ---------- long-form prose (privacy notice) ---------- */
/* 33rem lands around 75 characters per line at this font size - measured, not
   guessed. Wider than that and a page of legal text becomes hard to track. */
.prose { max-width: 33rem; }
.wrap--narrow .section-head p { max-width: 33rem; }
.prose h2 {
    font-family: var(--font-display); font-size: 1.4rem;
    margin-top: 2.6rem; margin-bottom: 0.8rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 1rem; margin-top: 1.8rem; margin-bottom: 0.5rem; color: var(--ink);
}
.prose p { color: var(--dim); font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.9rem; }
.prose a { color: var(--primary); text-underline-offset: 2px; }
.prose .principles { margin: 0.9rem 0 1.4rem; }
.prose .footnote {
    margin-top: 2.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

/* ---------- statutory framework (process page) ---------- */
.legal {
    margin-bottom: 3.5rem; padding: 1.6rem 1.8rem;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 3px solid var(--primary); border-radius: 3px;
}
.legal-title {
    font-family: var(--font-util); font-size: 0.74rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 1.1rem;
}
.legal-list { list-style: none; display: grid; gap: 0.85rem; max-width: 62rem; }
.legal-list li {
    font-size: 0.9rem; line-height: 1.65; color: var(--dim);
    padding-left: 1.2rem; position: relative;
}
.legal-list li::before { content: "–"; position: absolute; left: 0; color: var(--primary); }
/* Nested lists carry their own marker, so suppress the parent's dash. */
.legal-list ul { list-style: none; margin-top: 0.7rem; display: grid; gap: 0.55rem; }
.legal-list ul li::before { content: "·"; font-weight: 700; }

.legal-more { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.legal-more > summary {
    cursor: pointer; font-family: var(--font-util);
    font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary); list-style: none;
    /* Padded to a comfortable touch target - this audience skews older. */
    padding: 0.55rem 0; min-height: 44px; display: flex; align-items: center;
}
.legal-more > summary::-webkit-details-marker { display: none; }
.legal-more > summary::before { content: "+ "; font-weight: 700; }
.legal-more[open] > summary::before { content: "– "; }
.legal-more > summary:hover { color: var(--ink); }
.legal-more > p {
    font-size: 0.87rem; color: var(--dim); max-width: 52rem;
    margin: 1.1rem 0; font-style: italic;
}
.legal-more .legal-list { margin-top: 1rem; }

.stages-intro { font-size: 1rem; color: var(--dim); margin-bottom: 2rem; }

/* ---------- contact ---------- */
.contact { padding-block: 4.5rem; border-top: 1px solid var(--line); }
.contact-inner {
    background: var(--dark-bg); color: var(--dark-ink); border-radius: 6px;
    padding: clamp(1.75rem, 4vw, 3rem);
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start;
}
.contact-intro h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 0.8rem; }
.contact-intro > p { color: var(--dark-dim); font-size: 0.95rem; max-width: 34ch; }
.contact-direct { list-style: none; margin-top: 2rem; display: grid; gap: 0.6rem; }
.contact-direct a { color: var(--dark-ink); text-decoration: none; }
.contact-direct a:hover { color: var(--dark-dim); }
.contact-tel {
    font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.contact-hours { font-family: var(--font-util); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--dark-dim); }

.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label {
    font-family: var(--font-util); font-size: 0.68rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-dim);
}
.contact-form input,
.contact-form textarea {
    font-family: inherit; font-size: 0.95rem; color: var(--ink);
    background: var(--surface); border: 1px solid transparent; border-radius: 3px;
    padding: 0.6rem 0.75rem; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline-color: var(--dark-dim); }
.contact-form .btn { justify-self: start; margin-top: 0.25rem; }
.contact-form .btn-solid { background: var(--surface); color: var(--primary); }
.contact-form .btn-solid:hover { background: #fff; }
.form-hint { font-size: 0.75rem; color: var(--dark-dim); }

.form-note { padding: 0.75rem 1rem; border-radius: 3px; font-size: 0.9rem; }
.form-note--ok { background: rgba(182, 199, 180, 0.22); color: var(--dark-ink); border: 1px solid var(--dark-dim); }
.form-note--error { background: rgba(176, 68, 44, 0.18); color: #f3d9d2; border: 1px solid var(--accent); }

/* Honeypot. display:none, deliberately: off-screen positioning left the field
   fillable by password managers and browser autofill (name="website" is a
   field they map), which silently discarded REAL enquiries as bot traffic.
   Losing a lead costs more than catching a marginally smarter bot. */
.hp { display: none; }

/* ---------- announcements ---------- */
.notices { list-style: none; display: grid; gap: 1.25rem; }
.notice {
    background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
    padding: 1.5rem 1.7rem;
    display: grid; grid-template-columns: 11rem 1fr; gap: 1.75rem;
    box-shadow: var(--lift);
}
.notice-meta { border-right: 1px solid var(--line); padding-right: 1.25rem; }
.notice-ref {
    font-family: var(--font-util); font-size: 0.8rem; font-weight: 600;
    color: var(--primary); font-variant-numeric: tabular-nums;
}
.notice-date { font-size: 0.78rem; color: var(--dim); margin-top: 0.2rem; }
.notice-status {
    display: inline-block; margin-top: 0.55rem;
    font-family: var(--font-util); font-size: 0.62rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 0.18rem 0.65rem;
}
.notice-body h2 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.6rem; }
.notice-body p { color: var(--dim); font-size: 0.93rem; line-height: 1.6; }
.notice-body p + p { margin-top: 0.7rem; }

.empty { color: var(--dim); padding: 2rem 0; }

/* ---------- glossary ---------- */
.glossary { display: grid; gap: 1rem; }
.glossary-entry {
    display: grid; grid-template-columns: 16rem 1fr; gap: 1.75rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.glossary-entry dt { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.glossary-entry dd { color: var(--dim); font-size: 0.94rem; }

.principles { list-style: none; max-width: 46rem; display: grid; gap: 0.6rem; }
.principles li { color: var(--dim); font-size: 0.94rem; padding-left: 1.2rem; position: relative; }
.principles li::before { content: "–"; position: absolute; left: 0; color: var(--primary); }

/* ---------- error page ---------- */
.error-page { max-width: 40rem; padding-block: 3rem 5rem; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-block: 0.7rem 1rem; }
.error-page .lead { color: var(--dim); margin-bottom: 2rem; }
.error-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.error-links a {
    display: inline-block; text-decoration: none; font-size: 0.88rem;
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 1rem;
}
.error-links a:hover { border-color: var(--primary); color: var(--primary); }
.error-contact { margin-top: 2rem; color: var(--dim); font-size: 0.94rem; }

/* ---------- footer ---------- */
.footer { background: #101a13; color: #b7c5b4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand img { width: 2.5rem; margin-top: 0.2rem; }
.footer-brand b { font-family: var(--font-display); color: #eef2ea; font-size: 1.08rem; display: block; }
.footer-brand p { font-size: 0.82rem; margin-top: 0.4rem; max-width: 24rem; }
.footer h2 {
    font-family: var(--font-util); font-size: 0.64rem; letter-spacing: 0.16em;
    text-transform: uppercase; font-weight: 400; color: #7c9078; margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.85rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #eef2ea; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.45rem; }
.footer-contact b { color: #eef2ea; font-weight: 600; }
.footer-bottom {
    border-top: 1px solid rgba(238, 242, 234, 0.12); padding-block: 1.2rem;
    font-family: var(--font-util); font-size: 0.64rem; letter-spacing: 0.06em; color: #7c9078;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- scroll reveal ----------
   Scoped to .js so content is never hidden when scripts do not run. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
/* Printing must never depend on how far the visitor scrolled. */
@media print {
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
    .nav-desktop { display: none; }
    .nav-cta { display: none; }
    .nav-mobile { display: block; }
    .cards { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; }
    .feature-aside { border-left: 0; border-top: 1px solid var(--line); }
    .factors { grid-template-columns: 1fr 1fr; }
    .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .notice { grid-template-columns: 1fr; gap: 0.9rem; }
    .notice-meta {
        border-right: 0; border-bottom: 1px solid var(--line);
        padding-right: 0; padding-bottom: 0.6rem;
        display: flex; gap: 0.75rem; align-items: baseline;
    }
    .glossary-entry { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 620px) {
    .topbar-contact { flex-direction: column; gap: 0.15rem; }
    .factors { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats { gap: 1.5rem; }
    .field-row { grid-template-columns: 1fr; }
    .hero-photo { min-height: 24rem; }
    .hero-copy { padding-block: 3rem 2.5rem; }
    .section { padding-block: 3rem; }
}
