/* Origination Boost — design system
   Editorial layout inspired by ashleyflowers.com, using Origination Boost's
   own brand: terracotta #C26F47, the white-wordmark logo, and Georgia as the
   editorial voice carried over from the previous site.

   The logo is a WHITE wordmark on transparency, so every surface it sits on
   (masthead, footer) must stay dark. That constraint drives the ink/cream rhythm. */

:root {
  --ink: #121212;
  --ink-soft: #1d1b19;
  --ink-hover: #262220;
  --cream: #f3f1ed;
  --cream-deep: #e7e3db;
  --terra: #c26f47;
  --rust: #a63f1b;
  --warm-grey: #6e6862;
  --bone: #ffffff;

  /* Arial Narrow stands in for the reference site's licensed condensed face.
     It ships on Windows and macOS; the rest of the stack covers Linux. */
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow",
                  "Nimbus Sans Narrow", "Roboto Condensed", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --rule: 1px solid rgba(18, 18, 18, 0.16);
  --rule-light: 1px solid rgba(243, 241, 237, 0.22);
  --page: min(1240px, 92vw);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: var(--page); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--terra);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.86;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.688rem;
  font-weight: 600;
  color: var(--terra);
  margin: 0;
}
.serif-sub {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--warm-grey);
  margin: 0;
  text-wrap: balance;
}
.lede { font-size: 1.0625rem; line-height: 1.75; max-width: 62ch; }
.prose p { max-width: 66ch; margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--terra);
  border: 2px solid var(--terra);
  padding: 0.95rem 1.85rem;
  cursor: pointer;
  box-shadow: 0 2px 0 0 rgba(18, 18, 18, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.12s ease, box-shadow 0.12s ease;
}
.cta .arrow { transition: transform 0.25s ease; }
.cta:hover { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.cta:hover .arrow { transform: translateX(4px); }
.cta:active { transform: translateY(2px); box-shadow: 0 0 0 0 rgba(18, 18, 18, 0.22); }
.cta[disabled] { opacity: 0.55; cursor: progress; }

.cta--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 241, 237, 0.45);
  box-shadow: none;
}
.cta--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- masthead ---------- */
.masthead {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--rule-light);
}
.masthead__inner {
  width: var(--page);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.15rem;
}
.masthead__logo img { width: 172px; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.9375rem;
  color: var(--cream);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { color: var(--terra); border-bottom-color: var(--terra); }
.nav a[aria-current="page"] { color: var(--terra); border-bottom-color: var(--terra); }
.nav__btn {
  background: var(--terra);
  color: var(--ink) !important;
  padding: 0.7rem 1.5rem !important;
  border-bottom: none !important;
}
.nav__btn:hover { background: var(--cream); }
.nav__btn[aria-current="page"] { background: var(--cream); }

/* ---------- mobile menu ---------- */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.9375rem;
  color: var(--cream);
  padding: 0.5rem 0;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__bars { display: grid; gap: 4px; }
.menu__bars span { display: block; width: 20px; height: 2px; background: var(--terra); }
.menu[open] > summary { color: var(--terra); }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 236px;
  background: var(--ink-soft);
  border: 1px solid rgba(243, 241, 237, 0.18);
  padding: 0.4rem 0;
  list-style: none;
  margin: 0;
  z-index: 60;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.menu__panel a {
  display: block;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
}
.menu__panel a:hover { background: var(--ink-hover); color: var(--terra); }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--rule { border-top: var(--rule); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .section__title { color: var(--cream); }
.section--dark .serif-sub { color: rgba(243, 241, 237, 0.68); }
.section--deep { background: var(--cream-deep); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section__title { font-size: clamp(2.4rem, 5.6vw, 4.75rem); max-width: 18ch; }

/* page masthead for interior pages */
.pagehead {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 3px solid var(--terra);
}
.pagehead__title { font-size: clamp(2.8rem, 7vw, 6rem); color: var(--cream); margin-block: 0.75rem 1.25rem; }
.pagehead .lede { color: rgba(243, 241, 237, 0.82); margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.foot__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: var(--rule-light);
}
.foot__title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); color: var(--cream); }
.foot__sub { color: rgba(243, 241, 237, 0.68); margin: 1rem 0 0; max-width: 46ch; }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.foot__nav a {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.0625rem;
  color: var(--cream);
  text-decoration: none;
}
.foot__nav a:hover { color: var(--terra); }
.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(243, 241, 237, 0.5);
}
.foot__bottom img { width: 150px; }
.foot__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot__legal a { color: rgba(243, 241, 237, 0.5); text-decoration: none; }
.foot__legal a:hover { color: var(--terra); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.field { display: grid; gap: 0.45rem; }
.field > label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--terra); }
.field .hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--warm-grey);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  display: block;
  margin-top: 0.2rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bone);
  border: 1px solid rgba(18, 18, 18, 0.22);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
/* iOS Safari zooms the whole page when a focused input is under 16px.
   Keyed on pointer:coarse so it covers phones AND tablets, not just
   whatever is narrower than a breakpoint. */
@media (pointer: coarse) {
  .field input, .field textarea { font-size: 16px; }
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(194, 111, 71, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rust); }
.form__foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.35rem; }
.form__note { font-size: 0.8125rem; color: var(--warm-grey); margin: 0; }

/* form status message — set by site.js after a real API response */
.form__status {
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  border: 1px solid var(--terra);
  background: rgba(194, 111, 71, 0.09);
  color: var(--ink);
}
.form__status[hidden] { display: none; }
.form__status--ok { border-color: #2f7d52; background: rgba(47, 125, 82, 0.1); }
.form__status--err { border-color: var(--rust); background: rgba(166, 63, 27, 0.1); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- motion ----------
   Modelled on the reference site's vocabulary, which is restrained: ~0.5s
   opacity fades, scroll parallax on a few layers, and nothing that bounces.
   Every effect here is opt-in per element and disabled under reduced-motion. */

/* scroll reveal — .reveal fades up when it enters the viewport.
   --d is a stagger delay set by site.js for items inside a [data-stagger] group. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* page-load entrance — one orchestrated sequence, hero only */
@keyframes ob-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.enter > * {
  animation: ob-rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

/* parallax — site.js writes --py (px) on elements carrying data-parallax.
   Desktop only: the scale() that hides the drift would otherwise crop the
   stacked mobile hero for no reason, and site.js doesn't run the loop there. */
@media (min-width: 1000px) {
  [data-parallax] { will-change: transform; }
  .hero__portrait img[data-parallax] {
    /* scale covers the ±42px drift so no edge is ever exposed */
    transform: translate3d(0, var(--py, 0px), 0) scale(1.14);
    transform-origin: center 30%;
  }
  .idaho__mark[data-parallax] {
    transform: translateY(-50%) translate3d(0, var(--py, 0px), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .enter > * { opacity: 1; transform: none; }
  /* keep the portrait's cover-crop, drop the motion */
  .hero__portrait img[data-parallax] { transform: none; }
  .idaho__mark[data-parallax] { transform: translateY(-50%); }
}

/* ---------- shared responsive ---------- */
@media (max-width: 1000px) {
  .nav__desktop { display: none; }
  .menu { display: block; }
  .foot__top { grid-template-columns: 1fr; }

  /* Touch tap targets: 44px minimum. The footer links were 20px tall —
     tappable in theory, missable in practice. */
  .foot__nav { gap: 0.25rem; }
  .foot__nav a { display: block; padding-block: 0.7rem; }
  .foot__legal { gap: 0.5rem 1.25rem; }
  .foot__legal a { display: inline-block; padding-block: 0.65rem; }
  .menu > summary { padding-block: 0.75rem; }
  .menu__panel a { padding-block: 0.9rem; }
  .nav__btn { padding: 0.85rem 1.4rem !important; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .cta { width: 100%; justify-content: center; }
  .masthead__inner { padding-block: 0.9rem; }
}
