/* ==========================================================================
   FLATS HOUND FISHING CHARTERS — Design System
   Rugged guide aesthetic: deep marsh greens, weathered neutrals,
   bold slab typography, golden-hour photography.
   Edit the tokens below to re-theme the entire site.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #131d16;          /* deepest marsh — primary text / darkest bg */
  --marsh: #1e2f24;        /* dark section background */
  --moss: #33513d;         /* primary green */
  --fern: #4f7159;         /* lighter green for hovers/borders */
  --sage: #9db3a0;         /* muted text on dark */
  --bone: #f4efe4;         /* light background */
  --sand: #e7dec9;         /* alternate light background */
  --driftwood: #6e624c;    /* weathered neutral accents (AA contrast on bone) */
  --amber: #e08e2b;        /* golden-hour CTA */
  --amber-deep: #c47a1d;   /* CTA hover */
  --ember: #b5532a;        /* sparing secondary accent */

  /* Typography */
  --font-slab: "Alfa Slab One", "Rockwell", serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  /* Scale & rhythm */
  --radius: 6px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --container: 1200px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-slab);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; }
h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1.15rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--dark { background: var(--marsh); color: var(--bone); }
.section--dark .eyebrow { color: var(--amber); }
.section--sand { background: var(--sand); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--ember);
  margin-bottom: 0.85rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; }
.muted { color: var(--driftwood); }
.section--dark .muted { color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 2rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-deep); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--moss); }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(19, 29, 22, 0.96);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1320px;
  padding-block: 0.9rem;
}
.brand {
  font-family: var(--font-slab);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand small {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--amber);
  margin-top: 0.3rem;
}
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--amber); }
.main-nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
.nav-cta { margin-left: 0.4rem; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber) !important;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--bone);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--marsh);
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 120;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.5rem; }
}

/* ---------- Mobile sticky action bar ---------- */
.action-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: var(--ink);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
.action-bar .btn { flex: 1; min-height: 48px; padding-block: 0.6rem; }
@media (max-width: 760px) {
  .action-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  background: var(--marsh);
  isolation: isolate;
  padding-top: 7rem;
}
.page-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(19, 29, 22, 0.55) 0%, rgba(19, 29, 22, 0.25) 45%, rgba(19, 29, 22, 0.88) 100%);
}
.page-hero .container { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.breadcrumbs {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--amber); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(19, 29, 22, 0.08);
  box-shadow: 0 14px 40px rgba(19, 29, 22, 0.07);
  overflow: hidden;
}
.card__body { padding: clamp(1.4rem, 3vw, 2rem); }

/* Quick answer box (AEO) */
.quick-answer {
  background: var(--sand);
  border-left: 5px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
}
.quick-answer h2, .quick-answer h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.quick-answer p { margin: 0; font-size: 1.08rem; }

/* Key facts table */
.facts-table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 1rem; }
.facts-table th, .facts-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(19, 29, 22, 0.12); vertical-align: top; }
.facts-table th {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  width: 38%;
  color: var(--moss);
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid rgba(19, 29, 22, 0.14); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.2rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-slab);
  font-size: 1.4rem;
  color: var(--amber);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0.2rem 1.3rem; max-width: 65ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-field label {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(19, 29, 22, 0.18);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--moss); outline: none; }
.form-note { font-size: 0.88rem; color: var(--driftwood); }
.form-success {
  display: none;
  background: var(--moss);
  color: var(--bone);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.form-success.is-visible { display: block; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field--full { grid-column: 1 / -1; }
}

/* ---------- Review cards ---------- */
.review-card {
  background: rgba(244, 239, 228, 0.06);
  border: 1px solid rgba(244, 239, 228, 0.14);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card .stars { color: var(--amber); letter-spacing: 0.2em; font-size: 1.05rem; }
.review-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.review-card cite {
  font-style: normal;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--sage);
  padding: var(--section-pad) 0 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 3rem;
}
.footer-brand .brand { font-size: 1.5rem; }
.footer-col h4 { color: var(--bone); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-legal {
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* QA mode: force-reveal everything for screenshots */
.qa-mode .reveal, .qa-mode .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
.qa-mode .hero { min-height: 760px; }
.qa-mode .page-hero { min-height: 480px; }

/* ---------- Utility ---------- */
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.8rem 1.2rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }
