/* Southern Backwater Outfitters — single stylesheet
   Palette and type are client-approved. Do not swap for a generic template.
   The brass-on-ink pairing comes from the client's neon-sign logo. */

:root {
  --ink: #16140F;
  --ink-soft: #211E17;
  --brass: #D9B872;
  --brass-bright: #EAD49A;
  --bone: #F3EEE1;
  --bone-dim: #EAE3D2;
  --marsh: #33473A;
  --rust: #A6522E;
  --text-dark: #221F1A;
  --text-on-ink: #ECE6D6;
  --text-on-ink-dim: #B8AF98;

  --maxw: 1120px;
  --gutter: 32px;
  --radius: 3px;
  --section-y: 88px;

  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bone);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }

p { margin: 0 0 1.1em; }
a { color: var(--rust); }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 10px 16px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* Two-tone halo, not a single-color outline: this palette has no one color
   that reads at 3:1 against everything the ring can land on — brass CTA
   buttons (the site's most common focus target — every "Book a Hunt"), the
   ink header/footer, and arbitrary hero-photo pixels behind the two home-hero
   buttons. --ink and --bone are opposite ends of the palette by construction,
   so whichever ring the background swallows, the other one still shows;
   measured against every real button/link background and the actual hero
   photo pixels — see PROJECT-LOG. `outline` (not just box-shadow) is kept as
   the outer ring specifically so forced-colors/high-contrast mode — which
   respects native `outline` but strips `box-shadow` — still gets a real
   focus ring from the browser's own substituted color. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bone);
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--ink);
  color: var(--text-on-ink);
  border-bottom: 2px solid var(--brass);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo { text-decoration: none; color: var(--text-on-ink); display: flex; flex-direction: column; line-height: 1; }
.logo__script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.55rem;
  color: var(--brass-bright);
  letter-spacing: 0.01em;
}
.logo__sub {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  margin-top: 3px;
  color: var(--text-on-ink-dim);
}

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}
.site-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--text-on-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brass-bright); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--brass-bright); }

.site-nav__cta a {
  background: var(--brass);
  color: var(--ink);
  padding: 9px 16px;
  border: none;
}
.site-nav__cta a:hover { background: var(--brass-bright); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--brass);
  width: 44px; height: 44px;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--brass-bright);
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-bright); color: var(--ink); }
.btn--ghost { border-color: var(--brass); color: var(--brass-bright); background: transparent; }
.btn--ghost:hover { background: var(--brass); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--text-on-ink); }
.btn--dark:hover { background: var(--ink-soft); color: var(--brass-bright); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--dim { background: var(--bone-dim); }
.section--ink {
  background: var(--ink);
  color: var(--text-on-ink);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--text-on-ink); }
.section--ink a { color: var(--brass-bright); }
/* .btn--primary keeps a brass fill inside an ink section, so it must NOT pick
   up .section--ink a's brass-bright text color — that rule is one class + a
   type selector (0,0,1,1), which already out-specifies .btn--primary's single
   class (0,0,1,0) regardless of source order, so plain declaration order
   never fixed this. Compound selector wins outright: brass-bright-on-brass
   measured 1.3:1 before this; ink-on-brass (the button's own intended colors)
   is 9.68:1. */
.section--ink .btn--primary,
.section--ink .btn--primary:hover { color: var(--ink); }

.section__head { max-width: 60ch; margin-bottom: 44px; }
.section__head p { font-size: 1.15rem; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--rust);
  margin-bottom: 12px;
  display: block;
}
.section--ink .eyebrow { color: var(--brass); }
/* rust on the tinted --bone-dim ground falls just under WCAG AA for small text;
   use the darker --marsh accent in alternating sections instead. Same problem,
   same fix, for a plain inline link: --rust on --bone-dim measured 4.24:1
   (needs 4.5:1) on Home's "Read the full story" link — --marsh clears 7.81:1. */
.section--dim .eyebrow,
.section--dim .hunt__facts .k,
.section--dim a { color: var(--marsh); }
.section--dim a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
/* Full-bleed photo band. The photo is a plain <img class="hero__bg">, absolutely
   positioned and object-fit:cover — its own width/height attributes don't affect
   layout, so CLS is controlled entirely by the section's own min-height instead.
   ::before carries the ink scrim above the photo, below the text. Scrim is a
   left-to-right gradient (stronger over the text, which is always left-aligned)
   rather than a flat tint, verified per-image against the real photograph —
   see PROJECT-LOG for the two pages that needed a darker pull. */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  color: var(--text-on-ink);
  background: var(--marsh); /* shows only for the instant before hero__bg paints */
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 2; }

.hero--home {
  min-height: 75vh;
  padding-block: clamp(64px, 12vw, 128px);
}
.hero--home::before {
  background: linear-gradient(100deg, rgba(22,20,15,0.58) 0%, rgba(22,20,15,0.45) 42%, rgba(22,20,15,0.32) 100%);
}

.hero--chapter {
  min-height: clamp(260px, 36vh, 420px);
  padding-block: clamp(40px, 7vw, 76px);
}
.hero--chapter::before {
  background: linear-gradient(100deg, rgba(22,20,15,0.74) 0%, rgba(22,20,15,0.66) 50%, rgba(22,20,15,0.60) 100%);
}
/* Rates and Contact hero photos skew brighter across more of the frame
   (open sky / pale water) than About and Hunts, so their text-side scrim
   is pulled darker to hold 4.5:1 — see PROJECT-LOG contrast notes. */
.hero--chapter.hero--deep::before {
  background: linear-gradient(100deg, rgba(22,20,15,0.82) 0%, rgba(22,20,15,0.74) 50%, rgba(22,20,15,0.66) 100%);
}

.hero h1 { color: var(--text-on-ink); max-width: 15ch; }
/* --rust reads fine on the flat --bone-dim sections but measures well under
   4.5:1 against every one of the photo scrims below (pixel-sampled, not
   assumed) — reuse the same --brass the ink sections already use for eyebrows
   on a dark ground, which clears 6.6:1+ on all four. */
.hero .eyebrow { color: var(--brass); }
.hero__sub {
  font-size: 1.25rem;
  max-width: 46ch;
  color: var(--text-on-ink-dim);
  margin-bottom: 28px;
}
/* Home's subtitle sits over the brightest, least-scrimmed part of the photo
   (open water/sky) — --text-on-ink-dim measured 4.27:1 there, just under AA.
   Full-brightness on-ink text clears 7.5:1 in the same spot. */
.hero--home .hero__sub { color: var(--text-on-ink); }
.hero--chapter p { max-width: 56ch; font-size: 1.1rem; color: var(--text-on-ink-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* ---------- Fixed-ratio photo crop (object-fit:cover box) ---------- */
/* For spots that must hold a consistent shape (service cards, hunt-section
   banners) no matter the source photo's native orientation — e.g. one of the
   three Hunts photos is a portrait frame and would otherwise blow out the
   row height. */

.figure-crop {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: var(--ratio, 16 / 7);
  border-radius: var(--radius);
}
.figure-crop__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Photo placeholders ---------- */

.photo-ph {
  margin: 0;
  aspect-ratio: var(--ratio, 16 / 9);
  min-height: 130px;
  border: 2px dashed var(--brass);
  background: repeating-linear-gradient(
    45deg,
    var(--bone-dim),
    var(--bone-dim) 12px,
    var(--bone) 12px,
    var(--bone) 24px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
  border-radius: var(--radius);
  color: var(--text-dark);
}
.photo-ph--ink {
  background: repeating-linear-gradient(45deg, var(--ink-soft), var(--ink-soft) 12px, var(--ink) 12px, var(--ink) 24px);
  color: var(--text-on-ink-dim);
  border-color: var(--brass);
}
.photo-ph__tag {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  background: var(--brass);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: var(--radius);
}
.photo-ph__label {
  font-size: 0.92rem;
  max-width: 40ch;
  line-height: 1.4;
}

/* ---------- TBD tokens ---------- */

.tbd {
  background: rgba(217, 184, 114, 0.22);
  border-bottom: 2px solid var(--brass);
  padding: 0 4px;
  font-weight: 500;
  overflow-wrap: anywhere;
  color: var(--text-dark);
  border-radius: 2px;
}
.section--ink .tbd { color: var(--text-on-ink); background: rgba(217, 184, 114, 0.28); }
/* The footer is its own dark band (.site-footer, not .section--ink), so the
   rule above never reached it: .tbd fell back to dark --text-dark on a dark
   footer — 1.42:1, functionally invisible, on every page's Instagram/Facebook
   placeholders. Same override, scoped to the footer instead of importing
   .section--ink (which also carries padding/heading-color rules the footer
   already handles itself). */
.site-footer .tbd { color: var(--text-on-ink); background: rgba(217, 184, 114, 0.28); }

/* ---------- Grid helpers ---------- */

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Service cards ---------- */

.card {
  background: var(--bone);
  border: 1px solid var(--bone-dim);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.section--dim .card { background: #fff; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--marsh);
}
.card__price span { display: block; font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rust); }
.card__cta { margin-top: auto; padding-top: 16px; }
.card__cta a {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 2px;
}
.card__cta a:hover { color: var(--rust); }

/* ---------- Booking band / who ---------- */

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.who__photo { max-width: 460px; width: 100%; }

.arealine {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--marsh);
}

/* ---------- Hunt detail sections ---------- */

.hunt { padding-block: var(--section-y); border-top: 1px solid var(--bone-dim); }
.hunt:first-of-type { border-top: none; }
.hunt__lede { font-size: 1.18rem; max-width: 62ch; }
.hunt__price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--marsh);
  margin-bottom: 8px;
}
.hunt__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: 36px; }
.hunt__facts { list-style: none; padding: 0; margin: 0 0 20px; }
.hunt__facts li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bone-dim); }
.hunt__facts dt, .hunt__facts .k {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--rust);
  min-width: 130px;
}

/* ---------- Rates tables ---------- */

.rate-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.rate-table caption {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.rate-table th, .rate-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bone-dim);
  vertical-align: top;
}
.rate-table thead th {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--rust);
  border-bottom: 2px solid var(--brass);
}
.rate-table .price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--marsh);
  white-space: nowrap;
}
.table-scroll { overflow-x: auto; }

.callout {
  background: var(--bone-dim);
  border-left: 3px solid var(--brass);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.callout h3 { margin-bottom: 0.4em; }

/* ---------- Gallery ---------- */

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.gallery-filter button {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  min-height: 44px;
  padding: 9px 20px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--brass-bright);
}

.gallery-grid {
  columns: 3;
  column-gap: 20px;
}
.gallery-grid__item {
  break-inside: avoid;
  margin-bottom: 20px;
}
.gallery-grid__item[hidden] { display: none; }

/* ---------- Contact form ---------- */

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.contact-lines a { font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.contact-lines a:hover { color: var(--rust); }

.form-note { font-size: 0.92rem; color: var(--text-dark); margin-top: -8px; margin-bottom: 24px; }
/* Required marked in actual words, not color/asterisk alone — inherits the
   label's own (already-AA) color rather than setting a new one. */
.req { text-transform: none; letter-spacing: 0; font-weight: 400; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--rust);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-dark);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Site footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-dim);
  border-top: 2px solid var(--brass);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}
.site-footer__brand p {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 0.95rem;
  color: var(--text-on-ink-dim);
}
.site-footer h2 {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--brass);
  margin: 0 0 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.site-footer li { margin-bottom: 8px; color: var(--text-on-ink-dim); }
.site-footer a { color: var(--text-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--brass-bright); }
.site-footer__legal {
  border-top: 1px solid var(--ink-soft);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}
.site-footer__legal p { margin: 0; font-size: 0.82rem; color: var(--text-on-ink-dim); }

/* ---------- Utility ---------- */

.lead { font-size: 1.2rem; max-width: 62ch; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  :root { --section-y: 60px; --gutter: 24px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--ink);
    border-bottom: 2px solid var(--brass);
    z-index: 40;
  }
  .site-header { position: relative; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav li { margin: 0; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ink-soft); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--ink-soft); }
  .site-nav__cta a { text-align: center; margin-top: 12px; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; gap: 28px; }
  .hunt__grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { columns: 2; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 44px; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .hunt__facts li { flex-direction: column; gap: 2px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }

  .hero__photo .photo-ph { aspect-ratio: 16 / 10; }
  .photo-ph__label { font-size: 0.85rem; }
}

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