/* Matt Bowers REI - prairie homestead design system
   Ink: slate navy / Paper: warm ivory / Brick: Kansas brick / Wheat: harvest accent
   Type: Bricolage Grotesque (display) + Public Sans (body) */

:root {
  --ink: #232a34;
  --ink-2: #2c3440;
  --ink-soft: #4c5561;
  --paper: #faf8f4;
  --paper-deep: #f1ece1;
  --card: #fffdf9;
  --line: #e4ddcf;
  --line-dark: rgba(235, 230, 220, 0.16);
  --brick: #9d4b2c;
  --brick-deep: #7e3a21;
  --brick-drench: #8a4023;
  --wheat: #c08a2d;
  --cream: #ece5d7;
  --cream-muted: #a8afb8;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(30, 36, 46, 0.05), 0 12px 32px rgba(30, 36, 46, 0.09);
  --shadow-photo: 0 2px 6px rgba(30, 36, 46, 0.12), 0 24px 48px rgba(30, 36, 46, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

/* height:auto is load-bearing: width/height attributes reserve layout space
   (CLS), but without it a grid-narrowed image keeps its attribute height and
   stretches. */
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 28px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 2px;
}

/* ---------- header ---------- */

header.site {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand .mark svg { display: block; width: 100%; height: 100%; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.brand .rei {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--brick);
  border-radius: 5px;
  padding: 3px 7px 2px;
  transform: translateY(-1px);
}
.head-phone {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.head-phone:hover { border-color: var(--wheat); background: rgba(192, 138, 45, 0.14); }
.head-phone svg { width: 15px; height: 15px; color: var(--wheat); }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(172deg, var(--ink) 0%, var(--ink-2) 78%, #313a48 100%);
  color: var(--cream);
  position: relative;
  overflow: visible;
}
.hero::after {
  /* wheat horizon: thin harvest band along the bottom edge */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brick) 0%, var(--wheat) 55%, var(--paper-deep) 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 6.4fr 5.6fr;
  gap: 60px;
  align-items: center;
  padding-block: clamp(4.5rem, 10vh, 7.5rem) clamp(5.5rem, 12vh, 8.5rem);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(192, 138, 45, 0.14);
  border: 1px solid rgba(192, 138, 45, 0.35);
  border-radius: 999px;
  padding: 7px 15px;
}
.kicker svg { width: 14px; height: 14px; color: var(--wheat); }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  margin-top: 26px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--paper);
  background-image: linear-gradient(to top, rgba(157, 75, 44, 0.85) 0.14em, transparent 0.14em);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero .sub {
  margin-top: 26px;
  font-size: 1.1875rem;
  line-height: 1.72;
  color: var(--cream-muted);
  max-width: 33rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 15px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-brick { background: var(--brick); color: #fdfaf5; }
.btn-brick:hover {
  background: var(--brick-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.btn-brick:hover svg { transform: translateX(3px); }
.btn-ghost-dark {
  color: var(--cream);
  border: 1px solid var(--line-dark);
}
.btn-ghost-dark:hover { border-color: var(--cream-muted); transform: translateY(-2px); }
.hero-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--cream-muted);
}
.hero-trust svg { width: 15px; height: 15px; color: var(--wheat); flex-shrink: 0; }

.hero-photo { position: relative; }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--wheat);
  opacity: 0.45;
  border-radius: 6px;
}
.hero-photo img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-photo);
}
.hero-photo .badge {
  position: absolute;
  left: -18px;
  bottom: 30px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-photo .badge svg { width: 16px; height: 16px; color: var(--brick); }

/* ---------- sections ---------- */

section { padding-block: clamp(4.5rem, 9vh, 7rem); }
section h2 {
  font-size: clamp(1.95rem, 3.5vw, 2.7rem);
  text-wrap: balance;
}
.lede { color: var(--ink-soft); max-width: 36rem; margin-top: 18px; font-size: 1.125rem; }

/* situations: asymmetric 5/7, numbered ledger rows */
.situations .wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.situations .aside-note {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--paper-deep);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.9688rem;
  line-height: 1.6;
}
.situations .aside-note strong { color: var(--ink); }
.situation-list { border-top: 2px solid var(--ink); }
.situation {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.situation:hover { background: rgba(157, 75, 44, 0.04); }
.situation .no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brick);
  padding-top: 4px;
  letter-spacing: 0.02em;
}
.situation h3 { font-size: 1.25rem; font-weight: 700; }
.situation p { color: var(--ink-soft); font-size: 0.9875rem; margin-top: 5px; line-height: 1.6; }

/* how it works: timeline + photo */
.process { background: var(--paper-deep); }
.process .wrap {
  display: grid;
  grid-template-columns: 6.5fr 5.5fr;
  gap: 72px;
  align-items: center;
}
.timeline { margin-top: 44px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.tstep {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding-bottom: 40px;
}
.tstep:last-child { padding-bottom: 0; }
.tstep .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4375rem;
  color: var(--brick);
  background: var(--card);
  border: 1px solid var(--line);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(30, 36, 46, 0.06);
}
.tstep h3 { font-size: 1.3125rem; padding-top: 12px; }
.tstep p { color: var(--ink-soft); margin-top: 8px; max-width: 30rem; }
.process-photo { position: relative; }
.process-photo::after {
  content: '';
  position: absolute;
  inset: -22px -22px 22px 22px;
  background: var(--card);
  border-radius: 6px;
  z-index: -1;
}
.process-photo img { border-radius: 6px; box-shadow: var(--shadow-card); }

/* local band: brick drench */
.local { background: linear-gradient(168deg, var(--brick-drench) 0%, var(--brick-deep) 100%); color: #f6ede4; }
.local .wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}
.local-photo { position: relative; }
.local-photo img {
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.local h2 { color: #fdf8f1; }
.local p { color: #ecd9c8; margin-top: 18px; max-width: 34rem; font-size: 1.0938rem; }
.local .btn { margin-top: 30px; }
.local .btn-paper { background: var(--paper); color: var(--brick-deep); }
.local .btn-paper:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.local .btn-paper:hover svg { transform: translateX(3px); }

/* contact + form */
.inquiry-section { background: var(--paper); }
.inquiry-section .wrap {
  display: grid;
  grid-template-columns: 4.6fr 7.4fr;
  gap: 64px;
  align-items: start;
}
.contact-stack { margin-top: 38px; border-top: 2px solid var(--ink); }
.contact-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.contact-row svg { width: 20px; height: 20px; color: var(--brick); margin-top: 3px; }
.contact-row .k {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-row a, .contact-row .v {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.0313rem;
}
.contact-row a:hover { color: var(--brick); }
.reply-note {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.reply-note svg { width: 17px; height: 17px; color: var(--wheat); flex-shrink: 0; margin-top: 3px; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.form-card .form-head { margin-bottom: 28px; }
.form-card .form-head h3 { font-size: 1.5rem; }
.form-card .form-head p { color: var(--ink-soft); font-size: 0.9688rem; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: 0.9063rem; margin-bottom: 7px; }
.field { margin-bottom: 20px; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d6cfbe;
  border-radius: 9px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(157, 75, 44, 0.14);
}
.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 20px;
}
.consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brick); }
.consent .consent-copy { font-size: 0.8438rem; color: var(--ink-soft); line-height: 1.55; }
.consent label { display: inline; font-weight: 400; font-size: inherit; color: inherit; margin: 0; }
.consent a { color: var(--ink); }
.finePrint { font-size: 0.8125rem; color: #8d8779; margin-top: 16px; line-height: 1.55; }
.submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 16px 34px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.submit svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.submit:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 36, 46, 0.24);
}
.submit:hover svg { transform: translateX(3px); }
.submit:active { transform: translateY(0); }
.form-error {
  display: none;
  background: #fbeee8;
  border: 1px solid #e3bfab;
  color: #7e4022;
  border-radius: 9px;
  padding: 13px 15px;
  margin-bottom: 20px;
  font-size: 0.9063rem;
}
.hp-field {
  position: absolute;
  left: -6000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* faq */
.faq { background: var(--paper-deep); }
.faq .inner { max-width: 760px; margin-inline: auto; }
.faq h2 { margin-bottom: 34px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 18px;
  height: 18px;
  color: var(--brick);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 2px 24px; max-width: 42rem; }

/* footer */
footer.site {
  background: var(--ink);
  color: var(--cream-muted);
  padding-block: 52px;
  font-size: 0.9375rem;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
footer.site .brand .name { font-size: 1.1875rem; }
footer.site .addr { margin-top: 14px; line-height: 1.7; }
footer.site a { color: var(--cream); text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site nav { display: flex; gap: 24px; }
footer.site .legalline {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  margin-top: 10px;
  font-size: 0.8438rem;
  line-height: 1.7;
}

/* notice + legal pages */
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 52px;
  max-width: 640px;
  margin: 88px auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.notice h1 { font-size: 2rem; margin-bottom: 16px; }
.notice p { color: var(--ink-soft); margin-bottom: 10px; }
.notice a { color: var(--brick); font-weight: 600; }

.legal { max-width: 760px; margin-inline: auto; padding: 64px 28px; }
.legal h1 { font-size: 2.25rem; margin-bottom: 8px; }
.legal .updated { color: #8d8779; font-size: 0.875rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin-top: 36px; margin-bottom: 10px; }
.legal p { margin-bottom: 14px; color: var(--ink-2); }
.legal a { color: var(--brick); }

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .btn, .submit, .btn svg, .submit svg { transition: none; }
}

/* responsive */
@media (max-width: 900px) {
  .hero .wrap,
  .situations .wrap,
  .process .wrap,
  .local .wrap,
  .inquiry-section .wrap { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 64px 84px; gap: 48px; }
  .hero-photo::before { inset: 16px -14px -14px 16px; }
  .process .wrap { gap: 48px; }
  .process-photo { order: 2; }
  .local .wrap { gap: 44px; }
  .local-photo { max-width: 460px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  footer.site nav { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px; }
  section { padding-block: 3.5rem; }
  .hero-photo .badge { left: 10px; }
  .timeline::before { left: 23px; }
  .tstep { grid-template-columns: 48px 1fr; gap: 18px; }
  .tstep .num { width: 48px; height: 48px; font-size: 1.25rem; }
}
