/* =========================================================
   LMBR — styles-how-it-works.css
   Unified How It Works page (/how-it-works)
   Tells the full system story: buyer → LMBR → yard → everyone

   FILE STRUCTURE
   =========================================================
   1.  Design Tokens
   2.  Base Reset
   3.  Navigation
   4.  Hero Section
   5.  Callback Line
   6.  Steps Layout
   7.  Step Tags (Buyer / LMBR / Yard / Everyone)
   8.  Step Illustrations
   9.  CTA / Form Section
   10. Footer
   11. Hamburger / Drawer
   12. Mobile Sticky CTA
   13. Responsive — Mobile (max 768px)
   14. Responsive — Small Mobile (max 480px)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --green-dark:   #0e1a0c;
  --green-mid:    #162314;
  --green-bright: #375e28;
  --warm-white:   #faf8f4;
  --cream-mid:    #ede8df;
  --border:       #d8d0c4;
  --text-dark:    #1a1a1a;
  --text-mid:     #444;
  --text-light:   #777;
  --gold:         #a67c52;
  --tag-buyer:    #e8f0ff;
  --tag-buyer-text: #2a4a8a;
  --tag-lmbr:     #f0ede8;
  --tag-lmbr-text: #5a4a2a;
  --tag-yard:     #eaf2ea;
  --tag-yard-text: #1e4a1e;
  --tag-both:     #f5f0ff;
  --tag-both-text: #4a2a8a;
}

/* =========================================================
   2. BASE RESET + BODY
   ========================================================= */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
}

/* =========================================================
   3. NAVIGATION
   ========================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  min-height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: var(--green-dark);
  border-color: rgba(255,255,255,0.08);
}
.logo img { height: 40px; width: auto; display: block; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.25s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #a67c52;
  border-radius: 0;
  padding-bottom: 4px;
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }

/* =========================================================
   4. HERO SECTION
   Two-column grid. Photo bleeds behind transparent nav.
   ========================================================= */
.hero {
  margin-top: 0;
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  background: var(--green-dark);
}
.hero-content {
  background: var(--green-dark);
  padding: 104px 56px 48px 72px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a67c52 !important;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-accent { color: var(--green-bright); filter: brightness(1.4); display: block; }
.hero-sub-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.3px;
  margin-top: 8px;
  font-style: italic;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-image { position: relative; overflow: hidden; background: var(--green-dark); }
.hero-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, var(--green-dark) 0%, rgba(22,35,20,0.6) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.82) saturate(1.05);
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--green-dark) 0%, rgba(14,26,12,0.6) 35%, transparent 65%);
  z-index: 1;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   5. CALLBACK LINE
   ========================================================= */
.callback-line {
  background: var(--cream-mid);
  padding: 22px 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.callback-quote {
  max-width: 760px;
  margin: 0 auto;
  border-left: 3px solid var(--gold);
  padding-left: 22px;
}
.callback-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 9px;
}
.callback-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.callback-tags {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-left: auto;
}
.callback-tags .dot { margin: 0 7px; opacity: 0.5; }
.callback-line p {
  font-size: 14px;
  font-style: italic;
  color: var(--text-mid);
  text-align: left;
  max-width: 100%;
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   6. STEPS LAYOUT
   Number left column | text+checklist center | illustration right
   ========================================================= */
.page-wrap { padding: 0 72px; }

.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 0 40px;
  padding: 0 0 48px;
  position: relative;
}
.step:first-child { padding-top: 40px; }

/* Connecting line between step numbers */
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 6px;
  box-shadow: 0 2px 12px rgba(22,35,20,0.25);
  align-self: start;
}
.step-num::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--border);
  bottom: calc(-64px);
  z-index: 1;
}
.step--last .step-num::after { display: none; }

.step-left { display: flex; flex-direction: column; gap: 14px; }

.step-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text-dark);
  margin-top: 8px;
}
.step-left p { font-size: 15.5px; color: var(--text-mid); line-height: 1.7; max-width: 440px; }

.step-checklist { display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
.step-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-mid); line-height: 1.5; list-style: none;
}
.check-icon {
  width: 18px; height: 18px;
  border: 1.5px solid var(--green-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.check-icon svg { width: 9px; height: 9px; }

/* =========================================================
   7. STEP TAGS
   Audience labels: Buyer / LMBR / Yard / Everyone
   ========================================================= */
.step-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 2px;
}
.step-tag--buyer  { background: var(--tag-buyer);  color: var(--tag-buyer-text); }
.step-tag--lmbr   { background: var(--tag-lmbr);   color: var(--tag-lmbr-text); }
.step-tag--yard   { background: var(--tag-yard);   color: var(--tag-yard-text); }
.step-tag--both   { background: var(--tag-both);   color: var(--tag-both-text); }

/* =========================================================
   8. STEP ILLUSTRATIONS
   ========================================================= */
.step-right {
  background: var(--cream-mid);
  border-radius: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  align-self: start;
  margin-top: 6px;
  transition: box-shadow 0.2s ease;
}
.step-right:hover { box-shadow: 0 4px 20px rgba(22,35,20,0.1); }

/* Form illustration */
.step-illustration--form { width: 100%; }
.ill-label { font-size: 11px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; letter-spacing: 0.04em; }
.ill-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ill-row span { font-size: 11px; color: var(--text-light); width: 70px; flex-shrink: 0; }
.ill-bar { height: 7px; border-radius: 4px; background: var(--green-bright); opacity: 0.35; }
.ill-bar--full { width: 100%; }
.ill-bar--lg   { width: 75%; }
.ill-bar--md   { width: 55%; }
.ill-bar--sm   { width: 35%; }

/* Check illustration */
.step-illustration--check { width: 100%; }
.ill-check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.ill-check-row i { font-size: 18px; }
.ill-check--done i { color: var(--green-bright); }
.ill-check--warn i { color: var(--gold); }
.ill-check--done span { color: var(--text-mid); }
.ill-check--warn span { color: var(--gold); }

/* Match illustration */
.step-illustration--match { width: 100%; }
.ill-match-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-light); text-transform: uppercase; margin-bottom: 10px; }
.ill-match-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.ill-match-row i { font-size: 16px; color: var(--text-mid); }
.ill-match-row span:first-of-type { flex: 1; color: var(--text-dark); }
.ill-match-badge { font-size: 10px; font-weight: 600; color: var(--green-bright); background: rgba(55,94,40,0.1); padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.ill-match--skip { opacity: 0.4; }
.ill-skip-badge { font-size: 10px; color: var(--text-light); background: var(--border); padding: 2px 7px; border-radius: 10px; white-space: nowrap; }

/* Response illustration */
.step-illustration--respond { width: 100%; }
.ill-respond-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-light); text-transform: uppercase; margin-bottom: 8px; }
.ill-respond-body { font-size: 13px; color: var(--text-dark); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.5; }
.ill-respond-actions { display: flex; gap: 8px; }
.ill-btn { flex: 1; text-align: center; padding: 8px 4px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; cursor: default; }
.ill-btn--yes     { background: rgba(55,94,40,0.12); color: var(--green-bright); border: 1px solid rgba(55,94,40,0.2); }
.ill-btn--partial { background: rgba(166,124,82,0.12); color: var(--gold); border: 1px solid rgba(166,124,82,0.2); }
.ill-btn--no      { background: rgba(0,0,0,0.05); color: var(--text-light); border: 1px solid var(--border); }

/* Result illustration */
.step-illustration--result { width: 100%; }
.ill-result-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--text-dark); }
.ill-result-row i { font-size: 18px; flex-shrink: 0; }
.ill-result-sub { font-size: 12px; color: var(--text-light); font-style: italic; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }

/* =========================================================
   9. CTA / FORM SECTION
   ========================================================= */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding: 36px 80px 44px;
  background: var(--green-dark);
  align-items: start;
}
.cta-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-left > p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.cta-divider { width: 40px; height: 2px; background: var(--gold); margin: 24px 0; }
.cta-trouble { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.cta-trouble a { color: rgba(255,255,255,0.55); text-decoration: underline; }

.cta-form { display: flex; flex-direction: column; gap: 12px; }
.form-top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.field-group input,
.field-group textarea,
.field-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
}
.field-group input::placeholder,
.field-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus { outline: none; border-color: rgba(255,255,255,0.35); }
.field-group select { color: rgba(255,255,255,0.7); }
.field-group select option { background: var(--green-dark); color: #fff; }
.field-group textarea { resize: vertical; min-height: 90px; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: var(--green-dark);
  border: none;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 8px;
  min-height: 52px;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.form-security { font-size: 11px; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.form-security i { font-size: 13px; }

/* =========================================================
   10. FOOTER
   ========================================================= */
footer {
  background: #141f14;
  padding: 20px 48px;
  text-align: center;
}
footer p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* =========================================================
   11. HAMBURGER / DRAWER NAV
   ========================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 201;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 0; left: 0; width: 260px; height: 100%;
  background: var(--warm-white); z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 80px 28px 40px;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}
.nav-drawer.open { transform: translateX(0); }
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.drawer-link {
  font-size: 16px; font-weight: 500; color: var(--text-mid);
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.drawer-link:last-child { border-bottom: none; }
.drawer-link:hover, .drawer-link.active { color: var(--text-dark); font-weight: 600; }
.drawer-cta {
  margin-top: 24px; padding: 12px 20px;
  background: var(--green-dark); color: #fff;
  text-decoration: none; border-radius: 20px;
  font-size: 13px; font-weight: 600; text-align: center;
}
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 199; opacity: 0; pointer-events: none;
  transition: opacity 0.32s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
body.nav-open { overflow: hidden; }

/* =========================================================
   12. MOBILE STICKY CTA
   ========================================================= */
.sticky-cta {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90; padding: 28px 20px 18px;
  background: linear-gradient(to top, var(--warm-white) 0%, var(--warm-white) 55%, rgba(250,248,244,0.85) 78%, rgba(250,248,244,0) 100%);
  pointer-events: none; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.sticky-cta a {
  flex: 1; display: block; text-align: center;
  background: var(--green-dark); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 15px 24px; border-radius: 30px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 24px rgba(22,35,20,0.28), 0 2px 6px rgba(22,35,20,0.18);
}

/* =========================================================
   13. RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }

  /* ── HERO ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 72px 24px 32px;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 44px);
    margin-bottom: 12px;
    line-height: 1.1;
  }
  .hero p {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .hero-image {
    height: 200px;
  }

  .callback-line { padding: 22px 20px; }
  .callback-quote { padding-left: 16px; }
  .callback-tags { margin-left: 0; flex-basis: 100%; }
  .callback-line p { font-size: 14px; line-height: 1.65; text-align: left; }

  .page-wrap { padding: 0 20px; }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 0 20px;
    padding: 0 0 40px;
    position: relative;
  }
  .step:first-child { padding-top: 36px; }
  .step-num { width: 36px; height: 36px; font-size: 13px; margin-top: 4px; }
  .step-num::after { top: 36px; bottom: -40px; display: none; }
  .step-right { display: none; }
  .step-left h2 { font-size: clamp(20px, 5.5vw, 28px); }
  .step-left p { font-size: 14px; max-width: 100%; }

  .cta-section { grid-template-columns: 1fr; padding: 28px 20px; gap: 20px; }
  .field-group input,
  .field-group textarea,
  .field-group select { font-size: 16px; padding: 12px 13px; }
  .form-top-row { grid-template-columns: 1fr; }
  .field-group input,
  .field-group textarea,
  .field-group select { font-size: 16px; }

  footer { padding: 18px 20px; }
  .sticky-cta { display: flex; }
}

/* =========================================================
   14. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {
  .hero-content { padding: 72px 20px 28px; }
  .page-wrap { padding: 0 16px; }
  .cta-section { padding: 28px 16px; }
}
