/* Gracewood Acres — shared styles
   Working farm / editorial — ink + bone + hunter green + signal clay
*/

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;900&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=JetBrains+Mono:wght@400;500&display=block');

:root {
  /* palette */
  --ink: #0e0d0b;
  --ink-2: #1a1814;
  --bone: #f1ecdd;
  --bone-2: #e6dfca;
  --bone-3: #d9d0b6;
  --paper: #faf7ec;
  --forest: #243a2c;       /* hunter green */
  --forest-2: #18261d;
  --signal: #d24b1a;       /* signal clay / hot orange */
  --signal-2: #b73e12;
  --gold: #c79a3b;
  --muted: rgba(14, 13, 11, 0.62);
  --rule: rgba(14, 13, 11, 0.18);
  --rule-strong: rgba(14, 13, 11, 0.42);

  /* type */
  --f-display: 'Big Shoulders Display', 'Archivo Black', 'Impact', sans-serif;
  --f-edit:    'Bricolage Grotesque', 'Inter Tight', system-ui, sans-serif;
  --f-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Isolate big layout regions from each other so a reflow in one (e.g.
   font-swap height change) doesn't cascade into the host iframe's
   body-resize observer. */
body > section,
body > nav,
body > footer,
body > .gs-ticker { contain: layout style; }

a { color: inherit; text-decoration: none; }

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

/* ─── nav ───────────────────────────────── */
.gs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.gs-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.gs-logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  white-space: nowrap;
}
.gs-logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  position: relative;
  color: var(--ink);
}
.gs-logo-mark svg { width: 100%; height: 100%; display: block; }
.gs-logo .gs-logo-word {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}
.gs-logo .gs-logo-word b {
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.95;
  font-size: 20px;
}
.gs-logo .gs-logo-word small {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.gs-nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gs-nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.gs-nav-links a.active::after,
.gs-nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--signal);
}
.gs-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}
.gs-nav-cta {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gs-nav-cta:hover { background: var(--signal); }

/* hamburger toggle — injected by booking.js / forms.js, hidden on desktop */
.gs-nav-toggle { display: none; }

/* small star separators between desktop nav items */
@media (min-width: 1161px) {
  .gs-nav-links { gap: 30px; }
  .gs-nav-links a:not(:first-child)::before {
    content: '★';
    color: var(--signal);
    font-size: 8px;
    position: absolute;
    left: -19px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ─── buttons ───────────────────────────────── */
.gs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 22px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.gs-btn:hover { transform: translateY(-1px); }
.gs-btn-primary { background: var(--signal); color: var(--paper); }
.gs-btn-primary:hover { background: var(--ink); }
.gs-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.gs-btn-ghost:hover { background: var(--ink); color: var(--bone); }
.gs-btn-arrow {
  width: 14px; height: 14px;
  display: inline-block;
}

/* ─── eyebrows / labels ─── */
.gs-eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gs-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--signal);
}

/* ─── image placeholders ─── */
.gs-img {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--bone-2) 0,
      var(--bone-2) 14px,
      var(--bone-3) 14px,
      var(--bone-3) 28px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.gs-img.dark {
  background:
    repeating-linear-gradient(135deg,
      var(--ink-2) 0,
      var(--ink-2) 14px,
      #25221c 14px,
      #25221c 28px);
  color: var(--bone);
}
.gs-img.forest {
  background:
    repeating-linear-gradient(135deg,
      var(--forest-2) 0,
      var(--forest-2) 14px,
      var(--forest) 14px,
      var(--forest) 28px);
  color: var(--bone);
}
.gs-img-cap {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 14px;
  background: rgba(14,13,11,0.78);
  color: var(--bone);
  border-radius: 0;
}
.gs-img.dark .gs-img-cap,
.gs-img.forest .gs-img-cap { background: rgba(241,236,221,0.92); color: var(--ink); }

/* ─── dropping in a real photo ───
   Put an <img> inside any .gs-img placeholder and it fills the slot
   automatically — keeps the same shape, crops nicely, hides the caption.
   Example:
     <div class="gs-img hero-img-tall">
       <img src="photos/hero.jpg" alt="A rider schooling at Gracewood Acres" />
     </div>
*/
.gs-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.gs-img > img ~ .gs-img-cap { display: none; }

/* ─── section structure ─── */
.gs-section {
  padding: clamp(40px, 5vw, 76px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.gs-section.tight { padding-top: 32px; padding-bottom: 32px; }
.gs-section.full { max-width: none; }
.gs-section.ink { background: var(--ink); color: var(--bone); }
.gs-section.forest { background: var(--forest); color: var(--bone); }
.gs-section.paper { background: var(--paper); }

.gs-rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.gs-rule.strong { background: var(--rule-strong); }

.gs-section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 32px;
}
.gs-section-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}
.gs-section-head .lede {
  font-family: var(--f-edit);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
  margin: 0;
}
.gs-section.ink .lede, .gs-section.forest .lede { color: rgba(241,236,221,0.78); }
.gs-section.ink .gs-eyebrow, .gs-section.forest .gs-eyebrow { color: var(--bone); }

/* ─── footer ─── */
.gs-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px var(--gutter) 32px;
}
.gs-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}
.gs-footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241,236,221,0.55);
  margin: 0 0 18px;
}
.gs-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.gs-footer ul a:hover { color: var(--signal); }
.gs-footer-brand {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.gs-footer-brand span { color: var(--signal); }
.gs-footer-tagline {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 24px;
  color: rgba(241,236,221,0.62);
  max-width: 38ch;
  line-height: 1.6;
}
.gs-footer-legal {
  max-width: var(--maxw);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(241,236,221,0.16);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241,236,221,0.55);
}

/* ─── ticker ─── */
.gs-ticker {
  background: var(--ink);
  color: var(--bone);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  display: flex;
}
.gs-ticker-track {
  display: flex;
  gap: 56px;
  padding: 16px 0;
  white-space: nowrap;
  animation: gs-ticker-scroll 38s linear infinite;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  will-change: transform;
}
.gs-ticker-track span { display: inline-flex; align-items: center; gap: 56px; }
.gs-ticker-track span::after {
  content: '★';
  color: var(--signal);
  font-size: 14px;
  display: inline-block;
  transform: translateY(-3px);
}
@keyframes gs-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── responsive ─── */
@media (max-width: 1160px) {
  .gs-nav-inner {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    align-items: center;
  }

  /* hamburger button */
  .gs-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 8px;
    justify-self: end;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .gs-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .22s ease, opacity .18s ease;
  }
  .gs-nav[data-open] .gs-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gs-nav[data-open] .gs-nav-toggle span:nth-child(2) { opacity: 0; }
  .gs-nav[data-open] .gs-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* drawer: stacked links + contact, revealed when nav is open */
  .gs-nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0;
    font-size: 15px;
    letter-spacing: 0.08em;
    margin-top: 6px;
    border-top: 1px solid var(--rule);
  }
  .gs-nav[data-open] .gs-nav-links { display: flex; }
  .gs-nav-links a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--rule);
  }
  .gs-nav-links a.active::after,
  .gs-nav-links a:hover::after { display: none; }
  .gs-nav-links a.active { color: var(--signal); }

  .gs-nav-right {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    gap: 14px;
    margin-top: 16px;
  }
  .gs-nav[data-open] .gs-nav-right { display: flex; }
  .gs-nav-right span { font-size: 15px; }
  .gs-nav-cta { justify-content: center; padding: 14px 16px; font-size: 14px; }
}

@media (max-width: 860px) {
  .gs-section-head { grid-template-columns: 1fr; }
  .gs-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════
   GRACEWOOD — shared components (Rev. 2)
   ════════════════════════════════════════════════════ */

/* ─── footer statute ─── */
.gs-footer-statute {
  max-width: var(--maxw);
  margin: 20px auto 0;
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(241,236,221,0.42);
  max-width: 96ch;
}
.gs-footer-contactline {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(241,236,221,0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241,236,221,0.7);
}
.gs-footer-contactline a:hover { color: var(--signal); }
.gs-footer-contactline .dot { color: var(--signal); }

/* ─── tag / waitlist pill ─── */
.gs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
  border-radius: 2px;
  width: fit-content;
}
.gs-tag.wait { border-color: var(--gold); color: var(--gold); }
.gs-tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.gs-section.ink .gs-tag, .gs-section.forest .gs-tag { color: rgba(241,236,221,0.7); border-color: rgba(241,236,221,0.3); }

/* ─── price chip on cards/tiles ─── */
.gs-price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gs-price small {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
}

/* ─── checklist (boarding inclusions, training specialties) ─── */
.gs-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.gs-checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}
.gs-checklist li::before {
  content: '✓';
  color: var(--signal);
  font-weight: 700;
  font-size: 13px;
}
.gs-checklist.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gs-section.forest .gs-checklist, .gs-section.ink .gs-checklist { border-top-color: rgba(241,236,221,0.22); }
.gs-section.forest .gs-checklist li, .gs-section.ink .gs-checklist li { border-bottom-color: rgba(241,236,221,0.16); color: var(--bone); }

/* ─── add-on / line-item rows ─── */
.gs-lineitems {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.gs-lineitems li {
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.gs-lineitems .li-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.gs-lineitems .li-note { font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.gs-lineitems .li-price {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--signal);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* ─── plain-english fine print ─── */
.gs-fineprint {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: start;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.gs-fineprint h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 14px 0 0;
}
.gs-fineprint .fp-body { display: flex; flex-direction: column; gap: 16px; }
.gs-fineprint p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 64ch;
  text-wrap: pretty;
}
.gs-fineprint p strong { font-weight: 700; }

/* ─── crew cards (about) ─── */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: clamp(300px, 82vw, 900px);
  margin: 0 auto;
}
.crew-card { display: flex; flex-direction: column; gap: 10px; }
.crew-photo { aspect-ratio: 4 / 5; min-height: 0; }
.crew-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
}
.crew-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin: -2px 0 0;
}
.crew-bio { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.crew-bio strong { color: var(--ink); font-weight: 600; }

/* ─── herd band ─── */
.herd-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.herd-chip {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.herd-chip b { color: var(--signal); font-weight: 700; }

/* ─── signup (name + email) ─── */
.gs-signup {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.gs-signup .su-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.gs-signup label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241,236,221,0.6);
}
.gs-signup input {
  appearance: none;
  border: 0;
  border-bottom: 1.5px solid rgba(241,236,221,0.4);
  background: transparent;
  padding: 10px 0;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--bone);
  border-radius: 0;
  outline: none;
  transition: border-color .12s ease;
}
.gs-signup input::placeholder { color: rgba(241,236,221,0.4); }
.gs-signup input:focus { border-bottom-color: var(--signal); }
.gs-signup .gs-btn { flex: 0 0 auto; }
/* light variant on paper backgrounds */
.gs-signup.on-light label { color: var(--muted); }
.gs-signup.on-light input { border-bottom-color: var(--ink); color: var(--ink); }
.gs-signup.on-light input::placeholder { color: var(--muted); }
.gs-signup-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(241,236,221,0.55);
  margin: 14px 0 0;
}
.gs-signup-note.on-light { color: var(--muted); }

/* ─── photo duo band ─── */
.photo-duo { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; height: clamp(340px, 44vw, 520px); }
.photo-duo .gs-img { height: 100%; }
@media (max-width: 700px) {
  .photo-duo { grid-template-columns: 1fr; height: auto; }
  .photo-duo .gs-img { aspect-ratio: 3 / 2; height: auto; }
  .photo-duo .gs-img:last-child { aspect-ratio: 3 / 4; }
}

/* ─── generic two-col intro for subpages ─── */
.gs-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}
.gs-intro p {
  font-family: var(--f-edit);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

@media (max-width: 1100px) {
  .crew-grid { gap: clamp(10px, 1.8vw, 18px); }
}
@media (max-width: 560px) {
  /* phone: keep all three on one line as a compact photo strip; drop the cramped bios */
  .crew-grid { max-width: 100%; gap: 9px; }
  .crew-card { gap: 7px; }
  .crew-bio { display: none; }
  .crew-name { font-size: 15px; }
  .crew-role { font-size: 8.5px; letter-spacing: 0.07em; }
}
@media (max-width: 860px) {
  .gs-checklist, .gs-checklist.cols-3 { grid-template-columns: 1fr; }
  .gs-lineitems li { grid-template-columns: 1fr; gap: 6px; }
  .gs-lineitems .li-price { text-align: left; }
  .gs-fineprint, .gs-intro { grid-template-columns: 1fr; }
}
