/* Avian Heritage — site styles. No framework, no build step required. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --ivory: #f7f3ea;
  --ivory-deep: #efe8d9;
  --paper: #fffdf8;
  --forest: #1e3a2d;
  --forest-deep: #142a20;
  --forest-soft: #2d5040;
  --charcoal: #262624;
  --muted: #55524b;
  --bronze: #8a5a2b;        /* text-safe on ivory (≥4.5:1) */
  --bronze-light: #c79a63;  /* accents on forest (≥4.5:1) */
  --line: #d9cfbb;
  --error: #9b2c1f;
  --success: #24573f;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --narrow: 44rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--bronze-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--forest); margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.35em; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--forest); color: var(--ivory); padding: 0.75rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--ivory); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); }
.section { padding-block: var(--space); }
.section--tint { background: var(--ivory-deep); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: #e9e4d6; }
.section--forest h2, .section--forest h3 { color: var(--ivory); }
.section--forest a { color: var(--ivory); }
.section--forest a:hover { color: var(--bronze-light); }
.section--forest .btn--light, .hero .btn--light { color: var(--forest); }
.section--forest .btn--light:hover, .hero .btn--light:hover { color: var(--forest-deep); }
.section--forest .btn--outline-light:hover, .hero .btn--outline-light:hover { color: var(--forest); }

.eyebrow { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin: 0 0 1rem; }
.section--forest .eyebrow, .hero .eyebrow { color: var(--bronze-light); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.section--forest .lead { color: #d8d2c2; }
.rule { width: 3.5rem; height: 2px; background: var(--bronze); border: 0; margin: 0 0 1.75rem; }

/* Header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--forest); line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.01em; }
.brand__tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); margin-top: 0.3rem; font-weight: 600; }
.brand:hover { color: var(--forest); }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.5rem; flex-wrap: wrap; }
.site-nav li + li { margin: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--charcoal); padding: 0.5rem 0; display: inline-block; }
.site-nav a:hover { color: var(--bronze); }
.site-nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -2px 0 var(--bronze); }
.site-nav .nav-cta { background: var(--forest); color: var(--ivory); padding: 0.6rem 1.1rem; border-radius: var(--radius); }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--forest-deep); color: var(--ivory); box-shadow: none; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.85rem; font: inherit; font-weight: 500; color: var(--forest); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav .nav-cta { margin-top: 1rem; text-align: center; border: 0; }
  .site-header .wrap { position: relative; }
  /* Without JS the nav simply wraps beneath the brand */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 0.75rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 0.95rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--forest); background: var(--forest); color: var(--ivory); cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; min-height: 3rem; }
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--ivory); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); color: var(--forest-deep); }
.btn--outline-light { background: transparent; border-color: rgba(247,243,234,.7); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.text-link { font-weight: 600; text-decoration: none; color: var(--forest); border-bottom: 1px solid var(--bronze); padding-bottom: 2px; }
.text-link::after { content: " →"; }
.text-link:hover { color: var(--bronze); }

/* Hero */
.hero { position: relative; background: var(--forest); color: var(--ivory); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,42,32,.92) 0%, rgba(20,42,32,.75) 45%, rgba(20,42,32,.25) 100%); }
.hero .wrap { padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 10vw, 8rem); }
.hero h1 { color: var(--ivory); max-width: 21ch; }
.hero .lead { color: #e2ddcf; }
.hero__brandline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--bronze-light); margin: 0 0 1.25rem; }
.hero--page .wrap { padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem); }
.hero--page h1 { max-width: 22ch; }
.hero:not(.has-media)::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; max-width: 46rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(199,154,99,.25); z-index: -1; }
.hero:not(.has-media)::after { content: ""; position: absolute; inset: auto -2% -28% auto; width: 40vw; max-width: 30rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(199,154,99,.18); z-index: -1; }

/* Breadcrumb */
.breadcrumb { font-size: 0.88rem; margin-bottom: 1.75rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--bronze-light); }
.breadcrumb a { color: #d8d2c2; }
.breadcrumb [aria-current] { color: var(--ivory); }

/* Grids & cards */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split--even { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.card__media { margin: 0; aspect-ratio: 4 / 3; background: var(--ivory-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card__num { font-family: var(--serif); font-style: italic; color: var(--bronze); font-size: 1.15rem; margin: 0 0 0.4rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card .text-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }

.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; }

/* People */
.person { border-top: 2px solid var(--bronze); padding-top: 1.5rem; }
.person__role { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); margin: -0.2rem 0 0.9rem; }
.section--forest .person__role { color: var(--bronze-light); }

/* Birds */
.birds { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.bird { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bird__media { margin: 0; aspect-ratio: 4 / 5; background: var(--ivory-deep); }
.bird__media img { width: 100%; height: 100%; object-fit: cover; }
.bird__body { padding: 1.5rem 1.6rem 1.75rem; }
.bird h3 { margin-bottom: 0.2rem; }
.bird__species { font-size: 0.95rem; color: var(--bronze); font-weight: 500; margin: 0 0 1rem; }
.bird__species i { font-family: var(--serif); font-size: 1.08rem; }
.bird p { color: var(--muted); }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.75rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.8rem; height: 2px; background: var(--bronze); }
.section--forest .check-list li::before { background: var(--bronze-light); }
.theme-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.theme-list li { background: var(--paper); padding: 1.5rem 1.6rem; margin: 0; }
.theme-list h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.theme-list p { color: var(--muted); font-size: 0.98rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(199,154,99,.45); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--bronze-light); margin-bottom: 0.35rem; }
.section:not(.section--forest) .steps li { border-top-color: var(--line); }
.section:not(.section--forest) .steps li::before { color: var(--bronze); }
.steps strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }

/* Callout */
.callout { border-left: 3px solid var(--bronze); background: var(--paper); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { color: var(--charcoal); }
.callout strong { color: var(--forest); }

/* Service article */
.service + .service { margin-top: var(--space); padding-top: var(--space); border-top: 1px solid var(--line); }
.service h3 { font-size: 1.3rem; margin-top: 1.75rem; margin-bottom: 0.4rem; }
.service .actions { margin-top: 1.75rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding-block: 1.4rem; }
.faq__item h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.faq__item p { color: var(--muted); }

/* Sister-business aside */
.sister { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.95rem; color: var(--muted); }
.sister p { margin: 0; }
.sister a { font-weight: 600; }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form__grid { display: grid; gap: 1.25rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label, .field legend { font-weight: 600; font-size: 0.97rem; color: var(--charcoal); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 0.88rem; color: var(--muted); margin: -0.15rem 0 0.1rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--charcoal); background: #fff; border: 1px solid #a99f8b; border-radius: var(--radius); padding: 0.75rem 0.85rem; width: 100%; min-height: 3rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--bronze); outline-offset: 1px; border-color: var(--forest); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { color: var(--error); font-size: 0.92rem; font-weight: 600; margin: 0; }
.field__error:empty { display: none; }
.form__error-summary { border: 2px solid var(--error); background: #fbf1ee; padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.form__error-summary h2 { font-family: var(--sans); font-size: 1.05rem; color: var(--error); margin-bottom: 0.4rem; }
.form__error-summary ul { margin: 0; }
.form__error-summary a { color: var(--error); font-weight: 600; }
.form__footer { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form__note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.honeypot { display: none !important; }

.contact-card { background: var(--forest); color: #e2ddcf; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); }
.contact-card h2, .contact-card h3 { color: var(--ivory); }
.contact-card a { color: var(--ivory); font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--bronze-light); }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } .cta-band .actions { justify-content: flex-end; margin-top: 0; } }
.cta-band h2 { margin-bottom: 0.5rem; }

/* Footer */
.site-footer { background: var(--forest-deep); color: #cfc9b9; font-size: 0.95rem; padding-block: 4rem 2rem; }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--bronze-light); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer__brand { font-family: var(--serif); font-size: 1.7rem; color: var(--ivory); font-weight: 600; margin-bottom: 0.5rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: 0.85rem; color: #a9a392; }

/* 404 / thank-you */
.simple-page { min-height: 55vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .actions, .form { display: none !important; }
  body { background: #fff; }
}

/* Spacing utilities */
.mt-1{margin-top:1rem}.mt-15{margin-top:1.5rem}.mt-2{margin-top:2rem}.mt-25{margin-top:2.5rem}.mb-2{margin-bottom:2rem}.mb-25{margin-bottom:2.5rem}.fs-h3{font-size:1.8rem}
@media (min-width: 900px) { .birds { grid-template-columns: repeat(2, 1fr); } }

/* ---- v1.1: logo, split hero with photography, focal points, film ---- */
.brand { gap: 0; }
.brand__logo { width: clamp(200px, 22vw, 280px); height: auto; }
.footer__brand { margin: 0 0 1rem; }
.footer__brand img { width: 240px; height: auto; }
.site-footer address, .contact-card address { font-style: normal; line-height: 1.6; margin-top: 1rem; }
.contact-card address { margin-top: 0; }

.op-left { object-position: 26% 50%; }
.op-midleft { object-position: 42% 50%; }
.op-top { object-position: 50% 30%; }
.op-centre { object-position: 50% 50%; }

.hero.has-media::before, .hero.has-media::after { content: none; }
.hero.has-media .hero__media::after { content: none; }
@media (max-width: 899px) {
  .hero.has-media { display: flex; flex-direction: column; }
  .hero.has-media .hero__media { position: relative; inset: auto; order: -1; aspect-ratio: 4 / 3; max-height: 60vh; width: 100%; z-index: 0; }
  .hero.has-media .wrap { padding-top: 2.5rem; }
}
@media (min-width: 900px) {
  .hero.has-media .hero__media { left: 50%; }
  .hero.has-media .wrap > * { max-width: calc(50% - 2rem); }
  .hero.has-media h1 { max-width: none; }
  .hero.has-media .wrap { min-height: clamp(30rem, 62vh, 42rem); display: flex; flex-direction: column; justify-content: center; }
  .hero--page.has-media .wrap { min-height: clamp(26rem, 50vh, 34rem); }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .hero.has-media h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
}

.film { margin: 2rem 0 0; }
.film video { width: 100%; height: auto; display: block; background: #000; border-radius: var(--radius); aspect-ratio: 1280 / 544; }
.film figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.75rem; max-width: 46rem; }
@media (min-width: 900px) { .bird__media { aspect-ratio: 3 / 2; } }
