/* Blaidd Field Archers. Built from DESIGN.md: change that first. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colour tokens ----------
   Dark (woodland evening) and light (spring daylight).
   The site follows the visitor's device; the theme button overrides it.
   The choice lives in <meta name="color-scheme">, so the CSS works without JS. */
:root {
  color-scheme: light dark;
  --green: #54B124;        /* button fills (both themes) */
  --on-green: #190D01;
  --forest: #192C0F;       /* footer (both themes) */
  --cream: #F1F4D0;        /* open FAQ answer (both themes) */
  --ink: #1F1F1F;
  --radius: 4px;
  --wrap: 1302px;

  /* light */
  --page: #F6F4EA;
  --card: #FFFFFF;
  --panel: #E2EBD0;         /* photo-tile text panels */
  --panel-text: #190D01;
  --faq-bar: #FFFFFF;
  --faq-bar-text: #190D01;
  --faq-icon: #192C0F;
  --text: #190D01;
  --text-muted: #4A3F33;
  --link: #2E6B10;          /* green for text on light backgrounds */
  --card-heading: #357215;
  --line: #190D01;
  --btn-hover-bg: #190D01;
  --btn-hover-text: #FFFFFF;
  --hero-fade: none;        /* light: hard edge under the hero photo */
  --rule: #D9D2C5;          /* thin dividing lines */
}
:root:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
    --page: #190D01; --card: #0D0700; --panel: #192C0F; --panel-text: #FFFFFF;
    --faq-bar: #192C0F; --faq-bar-text: #FFFFFF; --faq-icon: #274518;
    --text: #FFFFFF; --text-muted: #D9D2C8; --link: #54B124; --card-heading: #357215;
    --line: rgb(255 255 255 / 0.85); --btn-hover-bg: #FFFFFF; --btn-hover-text: #190D01;
    --hero-fade: linear-gradient(transparent, var(--page)); --rule: rgb(255 255 255 / 0.15);
  }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  --page: #190D01; --card: #0D0700; --panel: #192C0F; --panel-text: #FFFFFF;
  --faq-bar: #192C0F; --faq-bar-text: #FFFFFF; --faq-icon: #274518;
  --text: #FFFFFF; --text-muted: #D9D2C8; --link: #54B124; --card-heading: #357215;
  --line: rgb(255 255 255 / 0.85); --btn-hover-bg: #FFFFFF; --btn-hover-text: #190D01;
  --hero-fade: linear-gradient(transparent, var(--page)); --rule: rgb(255 255 255 / 0.15);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; accent-color: var(--green); }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; font-weight: 400; line-height: 1.55;
  font-size-adjust: from-font;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 2vw + 1.25rem, 3.5rem); }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--green); color: var(--on-green); padding: 0.75rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: 5rem; }
@media (min-width: 900px) { .section { padding-block: 8rem; } }
.caps { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 13.875rem; min-height: 3rem; padding: 0.6rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--text); font: inherit; font-size: 1.125rem;
  text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); }
.btn--green { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 500; }
.btn--green:hover { background: #63C52F; border-color: #63C52F; color: var(--on-green); }
.btn--green-outline { border-color: var(--link); color: var(--link); }
.btn--green-outline:hover { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn svg { width: 1.5rem; height: 1.5rem; flex: none; }
/* Buttons sitting on a photo are always white outline */
.on-photo .btn:not(.btn--green) { border-color: rgb(255 255 255 / 0.85); color: #FFFFFF; }
.on-photo .btn:not(.btn--green):hover { background: #FFFFFF; color: #190D01; }

/* ---------- Header (always over the hero photo) ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: #FFFFFF; }
.header-bar { background: rgb(25 13 1 / 0.8); backdrop-filter: blur(2px); }
.header-bar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 6.5rem; }
.logo { align-self: flex-start; margin-top: 0.75rem; margin-bottom: -3.25rem; flex: none; }
.logo img { width: 8.9375rem; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2.75rem; }
.nav-links { display: flex; gap: 2.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding-block: 0.5rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.btn--whatsapp { min-width: 0; min-height: 3rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.icon-button { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgb(255 255 255 / 0.7); border-radius: var(--radius); background: transparent; color: #FFFFFF; cursor: pointer; }
.icon-button svg { width: 1.4rem; height: 1.4rem; }
.menu-button { display: none; }
.header-actions { display: none; }

/* Theme button: show the icon for the theme you'd switch to */
.theme-switch .to-dark { display: inline; } .theme-switch .to-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-switch .to-dark { display: none; }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-switch .to-light { display: inline; }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-switch .to-dark { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-switch .to-light { display: inline; }

@media (max-width: 1099px) {
  .header-bar .wrap { min-height: 4rem; }
  .logo img { width: 4.25rem; }
  .logo { margin-bottom: -1.75rem; }
  .header-actions { margin-left: auto; display: flex; gap: 0.5rem; }
  .menu-button { display: inline-grid; }
  .nav .theme-switch { display: none; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem 1.25rem 2rem; background: #190D01; border-top: 1px solid rgb(255 255 255 / 0.1); }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding-block: 0.9rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
  .nav .btn--whatsapp { margin-top: 1.5rem; }
}
.header-actions .icon-whatsapp { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--green); color: var(--on-green); }
.header-actions .icon-whatsapp svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 72rem); display: grid; align-items: center; overflow: hidden; color: #FFFFFF; }
.hero__photo { position: absolute; inset: 0; z-index: -1; background: #190D01; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: var(--hero-fade); }
.hero__panel {
  margin: 9rem 0 6rem auto; width: min(100%, 38.5rem); padding: 3rem;
  background: linear-gradient(180deg, rgb(25 13 1 / 0.72), rgb(25 13 1 / 0.55) 75%, rgb(25 13 1 / 0.2));
}
.hero__eyebrow { color: var(--green); font-size: 1.5rem; margin: 0 0 0.25rem; }
.hero h1 { font-size: clamp(3.5rem, 6vw + 1rem, 5.5rem); font-weight: 700; line-height: 0.88; text-transform: uppercase; letter-spacing: -0.005em; margin: 0; }
.hero__place { font-size: 1.5rem; margin: 0.75rem 0 4.5rem; }
.hero__text { font-size: 1.125rem; max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.75rem; }

@media (max-width: 899px) {
  /* On phones the text sits below the photo, on the page colour */
  .hero { min-height: 0; align-items: end; color: var(--text); }
  .hero.on-photo .btn:not(.btn--green) { border-color: var(--line); color: var(--text); }
  .hero.on-photo .btn:not(.btn--green):hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); }
  .hero__photo { bottom: auto; height: 26rem; }
  .hero__photo img { object-position: 30% 25%; }
  .hero::after { top: 21rem; bottom: auto; height: 5rem; }
  .hero__panel { margin: 27rem 0 2rem; padding: 0; background: none; }
  .hero__eyebrow { font-size: 1rem; color: var(--link); }
  .hero__place { font-size: 1rem; margin-bottom: 2rem; }
  .hero__actions { gap: 1rem; }
  .hero__actions .btn { flex: 1 1 12rem; min-width: 0; }
}

/* ---------- Intro + feature cards ---------- */
.intro { display: grid; gap: 3rem; align-items: center; }
.intro__text p { max-width: 24rem; }
.intro__text h2 { margin-bottom: 2.25rem; }
.intro__text .btn { margin-top: 1rem; }
.cards { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border-radius: 30px; padding: 2.75rem 2.75rem 2.5rem; min-height: 19.5rem; display: flex; flex-direction: column; }
.card svg { width: 3.25rem; height: 3.25rem; color: var(--text); margin-bottom: auto; }
.card svg .cut { fill: var(--card); stroke: var(--card); }
.card h3 { color: var(--card-heading); font-size: clamp(1.75rem, 1vw + 1.25rem, 2.5rem); margin: 2.5rem 0 0.75rem; }
.card p { font-size: 1rem; margin: 0; max-width: 21rem; }
@media (min-width: 1000px) { .intro { grid-template-columns: 1fr 2.1fr; gap: 4rem; } }
@media (max-width: 639px) { .card { min-height: 0; padding: 2rem; border-radius: 24px; } .card h3 { margin-top: 1.5rem; } }

/* ---------- Photo and text tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; }
.tile-photo { aspect-ratio: 651 / 416; overflow: hidden; }
.tile-photo picture, .tile-photo img { width: 100%; height: 100%; }
.tile-photo img { object-fit: cover; }
.tile-text { background: var(--panel); color: var(--panel-text); padding: 2.5rem 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tile-text h2 { font-size: clamp(1.75rem, 1.2vw + 1.25rem, 2.5rem); margin-bottom: 0.6rem; }
.tile-text p { font-size: 1rem; max-width: 30rem; }
.tile-text .btn { margin-top: 1rem; border-color: currentColor; color: inherit; }
.tile-text .btn:hover { background: var(--panel-text); color: var(--panel); }
@media (min-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-text { padding: 3.5rem 4rem; min-height: 26rem; }
  /* photos stretch to match the text panel beside them, so each row lines up */
  .tile-photo { aspect-ratio: auto; min-height: 26rem; }
}
@media (max-width: 899px) {
  .tiles .tile-photo--second { order: 3; }
  .tiles .tile-text--second { order: 4; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
.faq-layout h2 { margin-bottom: 1.5rem; }
.faq-layout .lead { font-size: 1rem; max-width: 22rem; }
.faq-layout .lead a { color: var(--link); font-weight: 700; text-decoration: none; }
.faq-layout .lead a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 1fr 2.1fr; gap: 4rem; } }
.faq { display: grid; gap: 1.25rem; }
.faq details { border-radius: 8px; overflow: hidden; background: var(--faq-bar); color: var(--faq-bar-text); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 2.25rem; min-height: 4.6rem; font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.375rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 3.6rem; height: 3.6rem; border-radius: var(--radius);
  background: var(--faq-icon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M450-450H230q-12.75 0-21.37-8.68-8.63-8.67-8.63-21.5 0-12.82 8.63-21.32 8.62-8.5 21.37-8.5h220v-220q0-12.75 8.68-21.38 8.67-8.62 21.5-8.62 12.82 0 21.32 8.62 8.5 8.63 8.5 21.38v220h220q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5H510v220q0 12.75-8.68 21.37-8.67 8.63-21.5 8.63-12.82 0-21.32-8.63-8.5-8.62-8.5-21.37v-220Z' fill='%23fff'/%3E%3C/svg%3E") center / 2rem no-repeat;
}
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M480-438 270-228q-9 9-21 9t-21-9q-9-9-9-21t9-21l210-210-210-210q-9-9-9-21t9-21q9-9 21-9t21 9l210 210 210-210q9-9 21-9t21 9q9 9 9 21t-9 21L522-480l210 210q9 9 9 21t-9 21q-9 9-21 9t-21-9L480-438Z' fill='%23fff'/%3E%3C/svg%3E"); background-size: 2rem; }
.faq details > div { background: var(--cream); color: var(--ink); padding: 2.5rem 2.25rem; font-size: 1.125rem; }
.faq details > div p { margin: 0; }
@media (max-width: 599px) { .faq summary { padding-left: 1.25rem; } .faq summary::after { width: 3rem; height: 3rem; } .faq details > div { padding: 1.5rem 1.25rem; font-size: 1rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 2.1fr; gap: 4rem; } }
.contact h2 { text-transform: uppercase; }
.contact .lead { max-width: 23rem; }
.contact-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.contact-links a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--link); font-weight: 700; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.contact-links svg { width: 1.4rem; height: 1.4rem; }
.form { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.6rem; }
.field label { font-size: 1.125rem; }
.field input, .field textarea { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; min-height: 3.75rem; }
.field textarea { min-height: 13.5rem; resize: vertical; }
/* Keep browser-autofilled fields in the site's colours (browsers add their own blue/yellow) */
.field input:autofill,
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--page) inset;
  box-shadow: 0 0 0 100px var(--page) inset;
  transition: background-color 600000s 0s;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #C2410C; border-width: 2px; }
.form-actions { display: flex; justify-content: flex-end; }
.optional { color: var(--text-muted); font-size: 0.9375rem; }
.turnstile:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--cream); color: var(--ink); font-weight: 500; }
.form-status.is-error { background: #FDE7E2; color: #7A1E0E; }
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Footer (forest green in both themes) ---------- */
.site-footer { background: var(--forest); color: #FFFFFF; padding-block: 5.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.footer-grid .footer-logo { width: 8rem; }
.footer-grid p { font-size: 1.125rem; max-width: 35rem; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.footer-links a { text-decoration: none; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links a:hover { color: var(--green); }
.socials { list-style: none; margin: 1.75rem 0 0 -0.375rem; padding: 0; display: flex; gap: 1.25rem; align-items: center; }
.socials a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #FFFFFF; }
.socials a:hover { color: var(--green); }
.socials svg { width: 2rem; height: 2rem; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 8rem 1fr auto auto; gap: 5rem; } }
.bottom-bar { padding-block: 2.25rem; color: var(--text-muted); font-size: 1.125rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Plain pages (no hero photo): solid header, title band, readable text ---------- */
.plain-page .site-header { position: relative; }
.plain-page .header-bar { background: #190D01; }
.page-title { padding-block: 6rem 3rem; border-bottom: 1px solid var(--rule); }
.page-title .eyebrow { color: var(--link); font-size: 1rem; margin: 0 0 0.75rem; }
.page-title h1 { font-size: clamp(2.5rem, 3vw + 1.5rem, 4.5rem); font-weight: 700; text-transform: uppercase; line-height: 0.95; margin: 0 0 1.25rem; }
.page-title .lead { font-size: 1.1875rem; max-width: 42rem; color: var(--text-muted); margin: 0; }
@media (max-width: 1099px) { .page-title { padding-top: 4rem; } }
.prose { padding-block: 3rem 5rem; }
.prose > * { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--link); }
.prose a { color: var(--link); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .updated { color: var(--text-muted); font-size: 0.9375rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
@media (max-width: 599px) {
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .prose tbody td { display: block; border: 0; padding: 0.15rem 0; }
  .prose tbody td:first-child { font-weight: 600; }
  .prose td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--text-muted); }
}
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; }
.prose code { font-size: 0.875em; }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; inset: auto 0 0; z-index: 60; background: var(--forest); color: #FFFFFF; border-top: 1px solid rgb(255 255 255 / 0.15); box-shadow: 0 -8px 24px rgb(0 0 0 / 0.25); }
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.25rem; }
.consent__text { margin: 0; flex: 1 1 28rem; font-size: 1rem; }
.consent__text a { color: #FFFFFF; font-weight: 600; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent .btn { min-width: 11rem; }
.consent .consent__reject { border-color: rgb(255 255 255 / 0.85); color: #FFFFFF; }
.consent .consent__reject:hover { background: #FFFFFF; color: #190D01; }
@media (max-width: 599px) { .consent .btn { flex: 1 1 100%; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.link-button:hover { color: var(--green); }
.prose .link-button { text-transform: none; letter-spacing: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
