/* Fernleaf — site styles. Tokens follow design/spec.md. Mobile-first. */
:root {
    /* Colour */
    --c-bg: #faf6ee;
    --c-surface: #ffffff;
    --c-sand: #f1eadb;
    --c-green: #1f4d3a;
    --c-green-dark: #163a2b;
    --c-green-tint: #e3ece6;
    --c-accent: #f2a03d;
    --c-accent-hover: #e08a22;
    --c-ink: #1c211e;
    --c-muted: #4f5a53;
    --c-line: #d9d0bd;
    --c-field: #8a7f6a;
    --c-focus: #1f4d3a;
    --c-error: #a3271c;
    --c-on-green: #e6efe9;
    --c-highlight: #fff7ea;

    /* Type */
    --f-head: "Archivo", system-ui, sans-serif;
    --f-body: "Atkinson Hyperlegible", system-ui, sans-serif;
    --fs-display: clamp(2.25rem, 6vw + 1rem, 3.75rem);
    --fs-h1: clamp(2rem, 4vw + 1rem, 3rem);
    --fs-h2: clamp(1.5rem, 2vw + 1rem, 2.25rem);
    --fs-h3: 1.25rem;
    --fs-price: clamp(1.75rem, 2vw + 1rem, 2.25rem);
    --fs-body: 1.0625rem;
    --fs-small: .9375rem;

    /* Space, radius, shadow */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
    --r-sm: 6px;
    --r-md: 10px;
    --shadow: 4px 4px 0 var(--c-line);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; color: var(--c-green); margin: 0 0 var(--s-4); letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 var(--s-4); max-width: 65ch; }
address { font-style: normal; }
a { color: var(--c-green); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--c-green-dark); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.on-green :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--c-accent); }
main:focus { outline: none; }
.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; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--c-accent); color: var(--c-ink); padding: var(--s-3) var(--s-4); font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: var(--s-3); color: var(--c-ink); }

/* ===== Layout ===== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 960px) { .container { padding: 0 32px; } }
.section { padding: var(--s-7) 0; }
@media (min-width: 768px) { .section { padding: var(--s-8) 0; } }
.band-sand { background: var(--c-sand); }
.on-green { background: var(--c-green); color: #fff; }
.on-green h1, .on-green h2, .on-green h3 { color: #fff; }
.on-green a:not(.btn) { color: #fff; }
.eyebrow { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; color: var(--c-green); margin: 0 0 var(--s-3); }
.on-green .eyebrow { color: var(--c-accent); }
.lead { font-size: 1.1875rem; color: var(--c-muted); }
.on-green .lead { color: var(--c-on-green); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-green); color: #fff; border-bottom: 3px solid var(--c-green-dark); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: var(--s-2); min-height: 56px; margin: 0; color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.logo:hover { color: #fff; }
.logo svg { width: 28px; height: 28px; }
.nav { margin: 0 -20px; width: calc(100% + 40px); border-top: 1px solid rgba(255, 255, 255, .15); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { display: flex; align-items: center; justify-content: center; min-height: 48px; color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 1rem; border-bottom: 4px solid transparent; }
.nav a:hover { background: var(--c-green-dark); color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }
@media (min-width: 640px) {
    .nav { width: auto; margin: 0; border: 0; }
    .nav ul { display: flex; gap: var(--s-1); }
    .nav a { min-height: 64px; padding: 0 var(--s-4); }
}
@media (min-width: 960px) {
    .nav ul { align-items: center; }
    .nav li:last-child a { min-height: 48px; margin-left: var(--s-3); background: var(--c-accent); color: var(--c-ink); border-radius: var(--r-md); border-bottom: 3px solid var(--c-ink); }
    .nav li:last-child a:hover { background: var(--c-accent-hover); color: var(--c-ink); }
    .nav li:last-child a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--c-green-dark); }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 14px 24px; background: var(--c-accent); color: var(--c-ink); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-body); text-decoration: none; border: 0; border-bottom: 3px solid var(--c-ink); border-radius: var(--r-md); cursor: pointer; }
.btn:hover { background: var(--c-accent-hover); color: var(--c-ink); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--ghost { background: transparent; border: 2px solid currentColor; color: var(--c-green); }
.btn--ghost:hover { background: var(--c-green); color: #fff; }
.on-green .btn--ghost { color: #fff; }
.on-green .btn--ghost:hover { background: #fff; color: var(--c-green); }
.btn--block, .btn--block-mobile { width: 100%; }
@media (min-width: 640px) { .btn--block-mobile { width: auto; flex: none; } }

/* ===== Cards ===== */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.card { position: relative; background: var(--c-surface); border: 2px solid var(--c-line); border-top: 4px solid var(--c-green); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--s-5); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--c-green-tint); border-radius: var(--r-sm); color: var(--c-green); margin-bottom: var(--s-4); }
.icon-box svg { width: 28px; height: 28px; }
.price { font-family: var(--f-head); font-weight: 800; font-size: var(--fs-price); color: var(--c-green); font-variant-numeric: tabular-nums; line-height: 1; margin: 0 0 var(--s-3); }
.price small { font-size: 1rem; font-weight: 600; color: var(--c-muted); }
.card-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:has(.card-link:hover) { border-color: var(--c-green); }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
@supports not selector(:has(*)) { .card-link:focus-visible { outline: 3px solid var(--c-focus); } }

/* ===== CTA band ===== */
.cta-band p { color: var(--c-on-green); }
@media (min-width: 768px) {
    .cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
    .cta-band p { margin: 0; }
}

/* ===== Page header ===== */
.page-head { padding: var(--s-7) 0 var(--s-6); border-bottom: 2px solid var(--c-line); }
.page-head p:last-child { margin: 0; }

/* ===== Placeholder images ===== */
.ph { background: var(--c-sand); border: 2px solid var(--c-line); border-radius: var(--r-md); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--c-green); overflow: hidden; }
.ph svg { width: 40%; height: auto; opacity: .85; }

/* ===== Footer ===== */
.site-footer { background: var(--c-green); color: #fff; }
.footer-main { display: grid; gap: var(--s-6); padding-top: var(--s-7); padding-bottom: var(--s-7); }
@media (min-width: 768px) { .footer-main { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.125rem; color: #fff; margin-bottom: var(--s-3); }
.site-footer p, .site-footer dd { color: var(--c-on-green); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer .logo { min-height: auto; margin-bottom: var(--s-3); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.tel { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 1.125rem; }
.footer-bottom { background: var(--c-green-dark); font-size: var(--fs-small); color: #cfdcd4; padding: var(--s-4) 0; }
.footer-bottom p { margin: 0; color: #cfdcd4; }

/* ===== Home ===== */
.hero { padding: var(--s-7) 0 var(--s-8); }
.hero h1 { font-size: var(--fs-display); max-width: 14ch; }
.hero .lead { max-width: 40ch; }
.hero-actions { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-5) 0 var(--s-6); }
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }
.facts { list-style: none; margin: 0; padding: var(--s-4) 0 0; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-weight: 700; }
.facts li::before { content: "✓ "; color: var(--c-accent); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero-art { display: none; }
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.3fr 1fr; }
    .hero-art { display: block; }
}
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.section-head h2 { margin: 0; }
.why-grid { margin-top: var(--s-6); }
.why h3 { margin-bottom: var(--s-2); }
.why p { margin: 0; color: var(--c-muted); }
.why-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.why-item .icon-box { flex: none; background: var(--c-surface); border: 2px solid var(--c-line); }
.quote { margin: 0; max-width: 44rem; }
.quote blockquote { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.375rem, 2vw + 1rem, 2rem); line-height: 1.3; color: var(--c-green); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .8; color: var(--c-accent); height: 2.25rem; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: var(--s-4); font-weight: 700; color: var(--c-muted); }

/* ===== Services ===== */
.prices { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-surface); border: 2px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-5); }
.prices thead th { background: var(--c-sand); font-family: var(--f-head); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; color: var(--c-green); }
.prices tbody tr + tr th, .prices tbody tr + tr td { border-top: 2px solid var(--c-line); }
.prices tbody th { font-family: var(--f-head); font-size: var(--fs-h3); font-weight: 700; color: var(--c-green); white-space: nowrap; }
.prices .amount { text-align: right; font-family: var(--f-head); font-weight: 800; font-size: var(--fs-price); color: var(--c-green); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
.prices .amount small { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--c-muted); }
.prices thead .amount { font-size: var(--fs-small); line-height: inherit; }
.prices td.incl { color: var(--c-muted); }
.prices tr:target th, .prices tr:target td { background: var(--c-highlight); }
.prices tr { scroll-margin-top: 120px; }
@media (max-width: 639px) {
    .prices, .prices tbody, .prices tr, .prices th, .prices td { display: block; }
    .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .prices tbody tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding: var(--s-4); }
    .prices tbody tr + tr { border-top: 2px solid var(--c-line); }
    .prices tbody tr + tr th, .prices tbody tr + tr td { border-top: 0; }
    .prices th, .prices td { padding: 0; }
    .prices tbody th { white-space: normal; align-self: center; }
    .prices .amount { grid-column: 2; grid-row: 1; align-self: center; }
    .prices td.incl { grid-column: 1 / -1; grid-row: 2; }
    .prices tr:target { background: var(--c-highlight); }
}
.note { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--c-green-tint); border-left: 6px solid var(--c-green); border-radius: var(--r-sm); font-weight: 700; color: var(--c-green); }
.note svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.note p { margin: 0; }
.steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; min-height: 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--c-accent); color: var(--c-ink); font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; border-radius: var(--r-md); border-bottom: 3px solid var(--c-ink); }
.steps h3 { margin-bottom: var(--s-2); }
.steps p { margin: 0; color: var(--c-muted); }

/* ===== About ===== */
.story { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1.2fr; gap: var(--s-7); } }
.story .ph { box-shadow: var(--shadow); }
.team-grid { margin-top: var(--s-6); }
.bio { padding: 0; overflow: hidden; }
.bio .ph { border: 0; border-bottom: 2px solid var(--c-line); border-radius: 0; }
.bio-body { padding: var(--s-5); }
.bio h3 { font-size: 1.5rem; margin-bottom: var(--s-1); }
.role { display: inline-block; margin: 0 0 var(--s-4); padding: 2px var(--s-3); background: var(--c-green-tint); border-radius: var(--r-sm); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-small); color: var(--c-green); }
.bio p:last-child { margin: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: var(--s-7); } }
.form-card { border-top-color: var(--c-accent); }
@media (min-width: 640px) { .form-card { padding: var(--s-6); } }
.form-card h2 { font-size: 1.5rem; }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-weight: 700; margin-bottom: var(--s-2); }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: var(--fs-body); color: var(--c-ink); background: var(--c-surface); border: 2px solid var(--c-field); border-radius: var(--r-sm); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--c-focus); outline-offset: 2px; border-color: var(--c-green); }
.field input:user-invalid, .field textarea:user-invalid, .field [aria-invalid="true"] { border-color: var(--c-error); }
.hint { display: block; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--c-muted); }
.error { display: block; margin-top: var(--s-2); font-size: var(--fs-small); font-weight: 700; color: var(--c-error); }
.error[hidden], .form-status[hidden] { display: none; }
.form-status { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: #fbeae8; border-left: 6px solid var(--c-error); border-radius: var(--r-sm); font-weight: 700; color: var(--c-error); }
.form-success { padding: var(--s-4) var(--s-5); background: var(--c-green-tint); border-left: 6px solid var(--c-green); border-radius: var(--r-sm); }
.form-success h3 { margin-bottom: var(--s-2); }
.form-success p { margin: 0; }
.form-success:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reassure { margin: var(--s-3) 0 0; font-size: var(--fs-small); color: var(--c-muted); text-align: center; max-width: none; }
.details h2 { font-size: 1.5rem; }
.details h3 { font-size: 1.0625rem; margin: var(--s-5) 0 var(--s-2); }
.details p { margin: 0; }
.call { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); background: var(--c-green); color: #fff; border-radius: var(--r-md); text-decoration: none; font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.call:hover { background: var(--c-green-dark); color: #fff; }
.call svg { width: 24px; height: 24px; flex: none; }
.call:focus-visible { outline-color: var(--c-accent); box-shadow: 0 0 0 6px var(--c-green); }
.details .hours dt, .details .hours dd { color: var(--c-ink); }
.details .tip { margin-top: var(--s-5); padding: var(--s-3) var(--s-4); background: var(--c-green-tint); border-radius: var(--r-sm); font-weight: 700; color: var(--c-green); }
