/* ==========================================================================
   ABC base styles: tokens, reset, typography, layout, header, footer,
   buttons, cards, chips, placeholders, forms. Mobile first.
   Breakpoints: 768px (tablet), 1100px (desktop).
   ========================================================================== */

/* 1. Design tokens */
:root {
  --green-deep: #00693B;
  --green: #00A651;
  --yellow: #FFD400;
  --red-action: #C8102E;
  --ink: #111111;
  --slate: #4A4A4A;
  --white: #FFFFFF;
  --offwhite: #FAF7F0;

  --radius: 12px;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --space: 8px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;

  /* Build helpers */
  --red-action-dark: #A50D26;
  --green-deep-dark: #00502D;
  --sand: #EBE6DB;       /* photo placeholder fill */
  --sand-line: #D8D3BF;  /* photo placeholder shapes */
  --max: 1200px;
  --header-h: 92px;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}

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

/* 3. Typography */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--s-2);
}
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1rem + 0.65vw, 1.5rem); }

p + p { margin-top: var(--s-2); }
.lead { font-size: 1.125rem; color: var(--slate); }
.small { font-size: 0.875rem; }
.muted { color: var(--slate); }

a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.eyebrow {
  margin-bottom: var(--s-2);
  font: 600 1.125rem/1.3 var(--font-head);
  color: var(--green-deep);
}

@media (min-width: 1100px) {
  body { font-size: 1.125rem; }
}

/* 4. Layout helpers */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--s-2);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-3); } }

.section { padding-block: var(--s-8); }
.section--alt { background: var(--offwhite); }
.section__head { max-width: 46rem; margin-bottom: var(--s-4); }
.section__head .btn { margin-top: var(--s-3); }
@media (min-width: 768px) { .section { padding-block: var(--s-12); } }

.grid { display: grid; gap: var(--s-3); }
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-1); }

.title-band { background: var(--green-deep); color: var(--white); padding-block: var(--s-6); }
.title-band h1 { color: var(--white); margin-bottom: var(--s-1); }
.title-band .lead { color: rgba(255, 255, 255, 0.92); }
 margin-bottom: var(--s-1); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Icons (sprite: /assets/img/icons.svg) */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shape marker above section headings: triangle, half circle, square */
.marker {
  display: block;
  width: 52px;
  height: 16px;
  margin-bottom: var(--s-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 16'%3E%3Cpath d='M1.5 14.5 8 1.8l6.5 12.7z' fill='%23FFD400' stroke='%23111' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M19 14.5a7 7 0 0 1 14 0z' fill='%2300A651' stroke='%23111' stroke-width='1.5' stroke-linejoin='round'/%3E%3Crect x='37.5' y='2.5' width='12' height='12' rx='2.5' fill='%23C8102E' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left center / contain;
}

/* Bunting divider along the top of a section */
.has-bunting { position: relative; padding-top: calc(var(--s-8) + 20px); }
.has-bunting::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20' viewBox='0 0 96 20'%3E%3Cg stroke='%23111' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M1 1l15 17L31 1z' fill='%23FFD400'/%3E%3Cpath d='M33 1l15 17L63 1z' fill='%2300A651'/%3E%3Cpath d='M65 1l15 17L95 1z' fill='%23C8102E'/%3E%3Cpath d='M0 1h96' fill='none'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top / 96px 20px;
}

/* Photo placeholder: sand block, faint shapes, icon and caption */
.ph {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-1);
  padding: var(--s-2);
  overflow: hidden;
  text-align: center;
  background: var(--sand);
  color: var(--slate);
}
.ph::before {
  content: "";
  position: absolute;
  left: 9%;
  top: 6%;
  width: 22%;
  aspect-ratio: 1;
  border: 3px solid var(--sand-line);
  border-radius: 50%;
}
.ph::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 40%;
  height: 62%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 2 98 100H2z' fill='none' stroke='%23D8D3BF' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.ph > * { position: relative; z-index: 1; }
.ph .icon { width: 32px; height: 32px; }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 48px;
  min-width: 48px;
  padding: 12px var(--s-3);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.05s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { box-shadow: var(--shadow), 0 0 0 6px var(--yellow); }
.btn--sm { padding: 8px 20px; }

.btn--primary { background: var(--red-action); color: var(--white); }
.btn--primary:hover, .btn--primary:active { background: var(--red-action-dark); }

.btn--secondary { background: var(--green-deep); color: var(--white); }
.btn--secondary:hover, .btn--secondary:active { background: var(--green-deep-dark); }

.btn--tertiary { background: transparent; color: var(--ink); box-shadow: none; }
.btn--tertiary:hover { background: var(--yellow); }
.btn--tertiary:active { transform: translate(1px, 1px); box-shadow: none; }
.btn--tertiary:focus-visible { box-shadow: 0 0 0 6px var(--yellow); }

.btn[disabled], .btn.is-loading { opacity: 0.7; cursor: progress; pointer-events: none; }

/* 6. Cards, media cards, chips */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s-3);
}
.card--flat { box-shadow: none; }
.card h3 { margin-bottom: var(--s-1); }
.card p { color: var(--slate); }

.media-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.media-card__media { width: 100%; aspect-ratio: 16 / 9; border-bottom: var(--border); }
img.media-card__media { object-fit: cover; }
.media-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
  padding: var(--s-3);
}
.media-card__body .btn { margin-top: var(--s-2); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-3);
  border: var(--border);
  border-radius: var(--radius);
  color: var(--ink);
}
.icon-tile--yellow { background: var(--yellow); }
.icon-tile--green { background: var(--green); }
.icon-tile--red { background: var(--red-action); color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-1); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 48px;
  padding: 0 var(--s-2);
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 600;
}
.chip .icon { color: var(--green); }

/* 7. Forms */
.field { display: grid; gap: 6px; margin-bottom: var(--s-3); }
.field label { font-weight: 600; }
.field__hint { font-size: 0.875rem; color: var(--slate); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: 8px;
}
textarea { min-height: 140px; resize: vertical; }

.field--error input, .field--error select, .field--error textarea {
  border-color: var(--red-action);
  box-shadow: 0 0 0 1px var(--red-action);
}
.field__error { color: var(--red-action); font-size: 0.875rem; font-weight: 600; }
.field__error::before { content: "! "; font-weight: 800; }

.form-status {
  margin-bottom: var(--s-3);
  padding: var(--s-2);
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 600;
}
.form-status--error { border-color: var(--red-action); background: #FFF4F5; }
.form-status--success { border-color: var(--green-deep); background: #F0FAF4; }
.form-note { font-size: 0.875rem; color: var(--slate); margin-bottom: var(--s-3); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 8. Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { height: 68px; width: auto; max-width: 100%; }
@media (max-width: 380px) {
  .brand img { height: 56px; } /* very small phones: leave room for the buttons */
}
@media (min-width: 1100px) {
  .brand img { height: 84px; }
}
.brand__name {
  max-width: 9rem;
  font: 700 clamp(0.95rem, 4.3vw, 1.125rem) / 1.2 var(--font-head);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-toggle:focus-visible { box-shadow: var(--shadow), 0 0 0 6px var(--yellow); }
.menu-toggle .icon { grid-area: 1 / 1; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-3) var(--s-2) var(--s-6);
  overflow-y: auto;
  background: var(--white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav__list { display: flex; flex-direction: column; }
.nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font: 700 1.25rem var(--font-head);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #D9D9D9;
}
.nav__list a[aria-current="page"] { border-bottom: 3px solid var(--yellow); }

@media (min-width: 1100px) {
  :root { --header-h: 108px; }
  .menu-toggle { display: none; }
  .nav {
    position: static;
    margin-right: var(--s-2);
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav__list { flex-direction: row; gap: var(--s-3); }
  .nav__list a {
    min-height: 48px;
    font: 600 0.9375rem var(--font-body);
    border-bottom: 3px solid transparent;
  }
  .nav__list a:hover { border-bottom-color: var(--yellow); }
  .nav__mobile-only { display: none; }
}

/* 9. Final call to action (scalloped green band) */
.cta {
  position: relative;
  padding-block: var(--s-8);
  background: var(--green-deep);
  color: var(--white);
}
.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M0 14C0 6 8 1 20 1s20 5 20 13z' fill='%2300693B'/%3E%3Cpath d='M0 14C0 6 8 1 20 1s20 5 20 13' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") repeat-x left bottom / 40px 14px;
}
.cta h2 { color: var(--white); }
.cta .lead { color: rgba(255, 255, 255, 0.92); margin-bottom: var(--s-4); }
.cta .btn { width: 100%; }
@media (min-width: 768px) {
  .cta { text-align: center; }
  .cta .btn { width: auto; }
}

/* 10. Footer */
.site-footer {
  background: var(--green-deep);
  color: var(--white);
  border-top: var(--border);
  padding-block: var(--s-8) var(--s-4);
}
.site-footer a { color: var(--white); }
.site-footer .brand { color: var(--white); margin-right: 0; margin-bottom: var(--s-3); }
.site-footer .brand img {
  width: min(180px, 100%);
  height: auto;
  padding: var(--s-1) var(--s-2);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.site-footer h2 { margin-bottom: var(--s-2); font-size: 1.5rem; color: var(--white); }
.site-footer p { color: rgba(255, 255, 255, 0.88); }
.footer__grid { display: grid; gap: var(--s-6); margin-bottom: var(--s-6); }
.footer__tagline { margin-top: var(--s-2); font: 700 1.125rem var(--font-head); color: var(--white) !important; }
.footer__brand .btn { margin-top: var(--s-3); }

.footer__links a { display: inline-block; padding: 12px 0; text-decoration: none; font-size: 1.125rem; }
.footer__links a:hover { text-decoration: underline; }

.footer__contact { display: grid; gap: var(--s-3); }
.footer__contact li { display: flex; gap: var(--s-2); align-items: flex-start; }
.footer__contact .icon { margin-top: 2px; color: var(--yellow); }
.footer__label { display: block; font-size: 0.9375rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

.social-list { display: flex; gap: var(--s-2); }
.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.site-footer a.social { color: var(--ink); }

.footer__bottom {
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9375rem;
}
.footer__bottom p + p { margin-top: var(--s-2); }

@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }