/* Long Draw Archery
   Palette: olive dark base, bone text, leather tan, blaze accent */

:root {
  --olive-900: #1f221a;
  --olive-800: #272b21;
  --olive-700: #333829;
  --olive-600: #4a5139;
  --bone: #ece6d6;
  --bone-dim: #b9b3a4;
  --leather: #b8935a;
  --leather-dim: #8a6e43;
  --blaze: #f26a1b;
  --blaze-deep: #c9500c;
  --line: rgba(236, 230, 214, 0.14);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: 20px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--olive-900);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blaze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ff8a44; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.4em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
small { font-size: 0.85em; color: var(--bone-dim); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--olive-900);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}
.brand img { width: 52px; height: auto; }
.brand span { padding-top: 2px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  font: 600 1rem var(--font-body);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--bone);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}
.site-nav a:hover { background: var(--olive-700); color: var(--bone); }
.site-nav a[aria-current="page"] { color: var(--leather); }
.site-nav a.cta {
  background: var(--blaze);
  color: var(--olive-900);
  margin-left: 8px;
}
.site-nav a.cta:hover { background: #ff8a44; }

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--olive-800);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 8px; font-size: 1.1rem; }
  .site-nav a.cta { margin: 8px 0 0; text-align: center; }
}
@media (min-width: 761px) {
  .nav-toggle { display: none; }
}

/* ---------- Mobile action bar ---------- */

.action-bar { display: none; }
@media (max-width: 760px) {
  body.has-action-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .action-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--olive-800);
    border-top: 1px solid var(--line);
  }
  .action-bar a {
    flex: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: 600 1.05rem var(--font-body);
    border-radius: 4px;
    border: 2px solid var(--bone-dim);
    color: var(--bone);
  }
  .action-bar a.primary { background: var(--blaze); border-color: var(--blaze); color: var(--olive-900); }
}

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

.btn {
  display: inline-block;
  font: 600 1.05rem var(--font-body);
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.1;
}
.btn-primary { background: var(--blaze); color: var(--olive-900); border-color: var(--blaze); }
.btn-primary:hover { background: #ff8a44; border-color: #ff8a44; color: var(--olive-900); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone-dim); }
.btn-ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

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

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }
.section-alt { background: var(--olive-800); }

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--bone);
  max-width: 54ch;
}
.muted { color: var(--bone-dim); }

.cols {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}
@media (min-width: 760px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-sidebar { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}
.hero-logo {
  width: min(70%, 320px);
  margin-bottom: 24px;
}
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 16px; }

/* ---------- String band (signature divider) ---------- */

.string-band {
  display: block;
  width: 100%;
  height: 34px;
  overflow: hidden;
}
.string-band svg { width: 100%; height: 100%; display: block; }

/* ---------- Placeholder callouts (Skyler owes us this) ---------- */

.needs {
  border: 2px dashed var(--blaze);
  background: rgba(242, 106, 27, 0.08);
  border-radius: 6px;
  padding: 18px 20px;
  color: var(--bone);
  font-size: 1rem;
  line-height: 1.45;
}
.needs b {
  display: inline-block;
  background: var(--blaze);
  color: var(--olive-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.needs p { margin: 0; max-width: none; }
.needs-media {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(242, 106, 27, 0.06) 0 14px,
      rgba(242, 106, 27, 0.12) 14px 28px
    );
}
.needs-media.tall { min-height: 340px; }
.needs-media.wide { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------- Photos ---------- */

.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: 6px; display: block; }
.photo figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--bone-dim); }
.photo-hero img { aspect-ratio: 16 / 10; object-fit: cover; }
.photo-tall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 35%; }

/* ---------- Lists & details ---------- */

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.plain-list li:first-child { border-top: 0; }
.plain-list strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: clamp(32px, 5vw, 56px); }
.step {
  counter-increment: step;
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) {
  .step { grid-template-columns: 1fr 1fr; align-items: start; }
  .step:nth-child(even) .step-text { order: 2; }
}
.step-text h3::before {
  content: counter(step) ". ";
  color: var(--leather);
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .needs-media { min-height: 0; aspect-ratio: 4 / 3; }

/* ---------- Visualizer ---------- */

.viz {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .viz { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.viz-preview {
  background: var(--olive-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 18px;
  position: sticky;
  top: 90px;
  z-index: 5;
}
.viz-preview svg { width: 100%; height: auto; display: block; }
.viz-caption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  min-height: 1.4em;
}
.viz-note { margin-top: 6px; color: var(--bone-dim); font-size: 0.95rem; }
@media (max-width: 859px) {
  .viz-preview { padding: 10px 12px; top: 76px; }
  .viz-preview svg { max-height: 64px; }
  .viz-preview .btn-row { margin-top: 0; }
  .viz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .viz-foot .viz-caption { font-size: 1.05rem; margin-top: 6px; }
  .viz-foot .btn { padding: 10px 14px; font-size: 0.95rem; white-space: nowrap; }
  .viz-note { font-size: 0.85rem; }
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.swatch {
  position: relative;
}
.swatch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.swatch label {
  display: block;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--bone-dim);
}
.swatch label::before {
  content: "";
  display: block;
  height: 44px;
  border-radius: 4px;
  background: var(--sw);
  margin-bottom: 6px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}
.swatch input:checked + label { border-color: var(--bone); color: var(--bone); }
.swatch input:checked + label::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--olive-900);
  border-bottom: 3px solid var(--olive-900);
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.9));
}
.swatch input:focus-visible + label { outline: 3px solid var(--blaze); outline-offset: 2px; }

.viz-group { margin-bottom: 28px; }
.viz-group h3 { margin-bottom: 10px; }

.seg {
  display: inline-flex;
  border: 1px solid var(--bone-dim);
  border-radius: 6px;
  overflow: hidden;
}
.seg label {
  position: relative;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}
.seg label + label { border-left: 1px solid var(--bone-dim); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg input:checked ~ span { color: var(--olive-900); }
.seg label:has(input:checked) { background: var(--bone); color: var(--olive-900); }
.seg input:focus-visible ~ span { outline: 3px solid var(--blaze); outline-offset: 6px; border-radius: 2px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 22px; max-width: 760px; }
.form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 20px 8px;
  margin: 0;
  display: grid;
  gap: 16px;
}
.form legend {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0 8px;
}
.field { display: grid; gap: 6px; }
.field label, .field .field-label { font-weight: 600; }
.field .hint { color: var(--bone-dim); font-size: 0.92rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font: 1rem var(--font-body);
  color: var(--bone);
  background: var(--olive-800);
  border: 1px solid var(--bone-dim);
  border-radius: 4px;
  padding: 12px 12px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%), linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--bone-dim); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blaze); outline: none; box-shadow: 0 0 0 3px rgba(242,106,27,0.25); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.choices label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; min-height: 44px; padding: 4px 0; }
.choices input { width: 22px; height: 22px; accent-color: var(--blaze); }
.form-note { color: var(--bone-dim); font-size: 0.95rem; }
.form-status {
  border-radius: 6px;
  padding: 16px 18px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(97, 143, 76, 0.18); border: 1px solid rgba(97,143,76,0.6); }
.form-status.bad { background: rgba(242, 106, 27, 0.12); border: 1px solid var(--blaze); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bone);
  text-decoration: none;
  font-size: 1.15rem;
}
.contact-list a:hover { border-color: var(--leather); color: var(--bone); }
.contact-list svg { width: 26px; height: 26px; flex: none; color: var(--leather); }
.contact-list b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; display: block; line-height: 1.1; }
.contact-list span { display: block; color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- Fine print ---------- */

.fine { font-size: 1rem; }
.fine h3 { margin-top: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  color: var(--bone-dim);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer img { width: 72px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--blaze); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Checklist page ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; }
.checklist li::before { content: "☐"; color: var(--blaze); font-size: 1.3rem; line-height: 1; }
.checklist li a { color: var(--leather); }

/* ---------- Utilities ---------- */

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