/* ==========================================================================
   Swamp Donkey Firearms — site styles
   Palette taken from the logo: night black, sunset orange, gold trim,
   dusk purple, swamp green, cream script.
   ========================================================================== */

:root {
  /* Primitive */
  --black-900: #0b0908;
  --black-800: #13100d;
  --black-700: #1c1814;
  --black-600: #28221c;
  --cream-100: #fbf3df;
  --cream-200: #f1e4c3;
  --cream-400: #c9b891;
  --gold-400: #f0c05a;
  --gold-500: #e0a93b;
  --gold-700: #9c6f1c;
  --orange-500: #f07a1f;
  --orange-600: #d9620c;
  --purple-600: #5a2d82;
  --purple-800: #2e1747;
  --green-500: #5f8f55;
  --green-700: #2f5a3a;
  --green-900: #16291b;

  /* Semantic */
  --bg: var(--black-900);
  --surface: var(--black-800);
  --surface-2: var(--black-700);
  --border: #3a3027;
  --text: var(--cream-200);
  --text-strong: var(--cream-100);
  --text-muted: var(--cream-400);
  --accent: var(--gold-500);
  --accent-strong: var(--gold-400);
  --cta: var(--orange-500);
  --cta-hover: var(--gold-400);
  --on-cta: #1a0d02;
  --ring: var(--gold-400);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --header-h: 108px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--cream-100); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 600; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--cta);
  color: var(--on-cta);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

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

.script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  color: var(--gold-400);
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.eyebrow::after { transform: scaleX(-1); }

.lead { font-size: 1.2rem; color: var(--text); max-width: 62ch; }
.muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--cta); color: var(--on-cta); }
.btn-primary:hover { background: var(--cta-hover); color: var(--on-cta); }

.btn-outline { border-color: var(--accent); color: var(--text-strong); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--on-cta); }

.btn-ghost { color: var(--text-strong); background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-strong); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--green-900);
  border-bottom: 1px solid rgba(240, 192, 90, 0.2);
  font-size: 0.9rem;
  color: var(--cream-200);
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 8px;
}
.topbar a { color: var(--cream-100); text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 16px; height: 16px; color: var(--gold-400); }
.open-status { font-weight: 600; }
.open-status[data-open="true"] { color: #9fdc8a; }
.open-status[data-open="false"] { color: var(--cream-400); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* The blur sits on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile menu panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  width: 188px;
  height: auto;
}
@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .brand img { width: 144px; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--gold-400); background: rgba(255, 255, 255, 0.04); }
.nav-list a[aria-current="page"] { color: var(--gold-400); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 0 0;
    background: var(--bg);
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
  }
  .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.28s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: flex;
    font-size: 1.35rem;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold-500); padding-left: 16px; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 110px) clamp(80px, 12vw, 160px);
  background:
    radial-gradient(ellipse 60% 45% at 78% 38%, rgba(240, 192, 90, 0.55), transparent 60%),
    radial-gradient(ellipse 90% 60% at 60% 30%, rgba(240, 122, 31, 0.55), transparent 70%),
    linear-gradient(180deg, var(--purple-800) 0%, #5a2256 32%, #b3471c 62%, #2a1a10 82%, var(--black-900) 100%);
}
.hero-treeline {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  width: 100%;
  height: clamp(120px, 20vw, 240px);
  color: var(--black-900);
}
.hero-sun {
  position: absolute;
  z-index: -2;
  right: 18%;
  top: 22%;
  width: clamp(90px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe08a 0%, #f7b733 60%, rgba(247, 183, 51, 0) 72%);
  filter: blur(0.5px);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero h1 { text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45); }
.hero h1 .script { display: block; font-size: 0.85em; margin-bottom: 0.05em; }
.hero .lead { color: var(--cream-100); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero-logo {
  /* Transparent logo: a soft shadow lifts it off the sunset */
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: var(--cream-100);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 20px; height: 20px; color: var(--gold-400); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  /* The header already shows the logo on small screens */
  .hero-media { display: none; }
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 90px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(ellipse 70% 70% at 80% 10%, rgba(240, 122, 31, 0.45), transparent 60%),
    linear-gradient(180deg, var(--purple-800) 0%, #3b1a3f 45%, #1e130d 80%, var(--black-900) 100%);
}
.page-hero .hero-treeline { height: clamp(70px, 12vw, 140px); }
.page-hero .lead { color: var(--cream-100); }

.breadcrumb { font-size: 0.9rem; margin-bottom: 14px; color: var(--cream-400); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-700); }
.breadcrumb a { color: var(--cream-200); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-400); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-green {
  background:
    radial-gradient(ellipse 80% 80% at 10% 0%, rgba(95, 143, 85, 0.28), transparent 60%),
    var(--green-900);
  border-block: 1px solid rgba(240, 192, 90, 0.15);
}
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.divider {
  height: 4px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--purple-600), var(--orange-500) 35%, var(--gold-400) 50%, var(--orange-500) 65%, var(--green-700));
}

/* Grids */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: flex; text-decoration: none; color: inherit; }
.card-link > .card { flex: 1; }
.card-link:hover { color: inherit; }
.card-link:hover .card,
.card.is-hoverable:hover {
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--gold-400);
  background: linear-gradient(135deg, rgba(240, 122, 31, 0.22), rgba(90, 45, 130, 0.35));
  border: 1px solid rgba(240, 192, 90, 0.35);
}
.card-icon svg { width: 28px; height: 28px; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold-400);
}
.card-more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card-link:hover .card-more svg { transform: translateX(4px); }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--on-cta);
  background: var(--gold-500);
}

.tag-soon {
  margin-bottom: 0;
  padding: 6px 14px;
  font-size: 0.85rem;
  background: var(--cta);
  box-shadow: 0 0 0 4px rgba(240, 122, 31, 0.25);
}

/* Feature list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 22px; height: 22px; color: var(--green-500); margin-top: 3px; }

/* Stats / trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trust > div { background: var(--surface); padding: clamp(20px, 3vw, 36px) 16px; text-align: center; }
.trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-400);
  line-height: 1.1;
}
.trust span { color: var(--text-muted); font-size: 0.95rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 84px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-cta);
  background: linear-gradient(135deg, var(--gold-400), var(--orange-500));
}
.steps h3 { margin-bottom: 0.25em; font-size: 1.2rem; }
.steps p { margin: 0; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.price-table caption { text-align: left; color: var(--text-muted); padding-bottom: 12px; }
.price-table th,
.price-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.price-table th { font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-400); font-weight: 500; }
.price-table th:last-child { text-align: right; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }

/* Callout / notice */
.notice {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(240, 192, 90, 0.08);
  border: 1px solid rgba(240, 192, 90, 0.35);
  color: var(--cream-100);
}
.notice svg { width: 26px; height: 26px; color: var(--gold-400); }
.notice p:last-child { margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(240, 192, 90, 0.35), transparent 60%),
    linear-gradient(120deg, var(--purple-800), #7a2c3a 55%, var(--orange-600));
  border: 1px solid rgba(240, 192, 90, 0.4);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band h2 { margin-bottom: 0.25em; }
.cta-band p { margin: 0; color: var(--cream-100); }
.cta-band .btn-primary { background: var(--cream-100); color: var(--black-900); }
.cta-band .btn-primary:hover { background: var(--gold-400); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Brand strip */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-strip li {
  padding: 10px 18px;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-200);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

/* Testimonials */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 16px; font-size: 1.1rem; color: var(--cream-100); }
.quote figcaption { color: var(--text-muted); font-size: 0.95rem; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--gold-400); }
.stars svg { width: 18px; height: 18px; }

/* Hours table */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.hours li.is-today { color: var(--gold-400); font-weight: 700; }

/* Map */
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-lg);
  filter: grayscale(0.25) contrast(1.05);
  background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   FAQ (details/summary)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--gold-700); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold-400);
  border-bottom: 2px solid var(--gold-400);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

.faq-group + .faq-group { margin-top: 48px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; color: var(--text-strong); }
.field .req { color: var(--orange-500); }
.field .hint { font-size: 0.9rem; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-strong);
  background: var(--black-900);
  border: 1px solid #4a3e32;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(240, 192, 90, 0.3);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff7a6b; }
.field .error { display: none; color: #ff9b8f; font-size: 0.92rem; }
.field.has-error .error { display: block; }
.form-status { padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.is-success { display: block; background: rgba(95, 143, 85, 0.18); border: 1px solid var(--green-500); color: #d6f2cc; }
.form-status.is-error { display: block; background: rgba(255, 122, 107, 0.12); border: 1px solid #ff7a6b; color: #ffd6d0; }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #070605;
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 6vw, 72px);
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 220px; margin-bottom: 16px; }
.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold-400); }
.footer-contact { font-style: normal; display: grid; gap: 10px; }
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-contact a:hover { color: var(--gold-400); }
.footer-contact div { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-500); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--cream-200);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { color: var(--gold-400); border-color: var(--gold-500); }
.social svg { width: 20px; height: 20px; }
.footer-legal {
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-legal .container { display: grid; gap: 8px; }
.footer-legal p { margin: 0; }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }

.stack > * + * { margin-top: 1rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 6px 12px; border-radius: 999px; background: rgba(95, 143, 85, 0.18); border: 1px solid rgba(95, 143, 85, 0.5); color: #d6f2cc; font-size: 0.92rem; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); color: var(--gold-400); line-height: 1; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .hero-treeline { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}
