/* ============================================================
   Honeybird Homes — design tokens
   Palette drawn from the brand mark: champagne artwork on a
   warm molasses ground, honey gold as the single working accent.
   Display: Marcellus (matches the wordmark's roman caps)
   Body:    Albert Sans
   ============================================================ */
:root {
  --molasses: #251a11;
  --molasses-2: #362817;
  --champagne: #eadcc3;
  --champagne-dim: #cbbda0;
  --honey: #dfa43f;
  --honey-deep: #a87a1e;
  --paper: #fdf9f0;
  --nectar: #f3e7ce;
  --ink: #2b2015;
  --warm-gray: #6e5e4b;
  --line: #e6dac4;
  --line-dark: #4a3a26;
  --max: 1140px;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 18px 50px rgba(37, 26, 17, 0.16);
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Albert Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--honey-deep); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(37, 26, 17, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--champagne); font-weight: 500; font-size: 0.98rem; opacity: 0.85; }
.nav a:hover { opacity: 1; }
.nav .phone { font-weight: 700; opacity: 1; }
.nav a.btn { color: var(--molasses); opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--honey);
  color: var(--molasses);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 15px 32px;
  border-radius: var(--pill);
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease;
}
.btn:hover { background: #eab653; box-shadow: 0 6px 22px rgba(223, 164, 63, 0.35); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-block { width: 100%; padding: 17px; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 18% 8%, rgba(223, 164, 63, 0.14), transparent 60%),
    linear-gradient(160deg, var(--molasses) 0%, var(--molasses-2) 100%);
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero .flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero .flight path {
  fill: none;
  stroke: var(--champagne);
  stroke-opacity: 0.35;
  stroke-width: 2;
  stroke-dasharray: 3 11;
  stroke-linecap: round;
}
.js .hero .flight path {
  stroke-dashoffset: 1400;
  animation: flight-draw 2.4s ease-out 0.3s forwards;
}
@keyframes flight-draw { to { stroke-dashoffset: 0; } }

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--champagne);
  margin: 18px 0 22px;
}
.hero h1 .sweet { color: var(--honey); }
.hero p.lead {
  font-size: 1.16rem;
  color: var(--champagne);
  opacity: 0.82;
  max-width: 34em;
  margin-bottom: 30px;
}
.hero .cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero .reassure { font-size: 0.95rem; color: var(--champagne); opacity: 0.65; }

.chips { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.chips li {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--champagne);
  border: 1px solid var(--line-dark);
  background: rgba(234, 220, 195, 0.06);
  padding: 7px 14px;
  border-radius: var(--pill);
}
.chips li::before { content: "✓"; color: var(--honey); margin-right: 8px; font-weight: 800; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 5px solid var(--honey);
  box-shadow: var(--shadow);
  padding: 30px 30px 26px;
}
.form-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.form-card .sub { color: var(--warm-gray); margin-bottom: 20px; font-size: 0.97rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(223, 164, 63, 0.25); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--nectar);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--warm-gray);
  line-height: 1.55;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--honey-deep); }
.consent .optional { font-style: italic; opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0 14px;
}
.section-head p { color: var(--warm-gray); font-size: 1.08rem; }

/* How it works — the flight path timeline */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(168, 122, 30, 0.45);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step .num {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  background: var(--honey);
  margin: 0 auto 22px;
  box-shadow: 0 6px 18px rgba(168, 122, 30, 0.35);
}
.step .num span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--molasses);
}
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; margin-bottom: 8px; }
.step p { color: var(--warm-gray); font-size: 0.98rem; max-width: 30em; margin: 0 auto; }
.step .step-note { display: block; margin-top: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--honey-deep); }
.steps .bird {
  position: absolute;
  top: -8px;
  left: calc(8% - 46px);
  width: 40px;
  opacity: 0.9;
}

/* Why Honeybird — convenience benefits */
.section.alt { background: var(--nectar); }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--honey);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.benefit p { color: var(--warm-gray); font-size: 1rem; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 320px at 82% 20%, rgba(223, 164, 63, 0.16), transparent 60%),
    var(--molasses);
  padding: 92px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  color: var(--champagne);
  margin-bottom: 14px;
}
.cta-band p { color: var(--champagne); opacity: 0.75; font-size: 1.12rem; margin-bottom: 34px; }
.cta-band .or { display: block; margin-top: 20px; color: var(--champagne); opacity: 0.7; font-size: 0.98rem; }
.cta-band .or a { color: var(--champagne); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--molasses); color: var(--champagne); padding: 64px 0 30px; border-top: 1px solid var(--line-dark); }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.site-footer .lockup { width: 130px; margin-bottom: 18px; }
.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer p, .site-footer a { color: var(--champagne); opacity: 0.72; font-size: 0.93rem; text-decoration: none; }
.site-footer a:hover { opacity: 1; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer .hours div { display: flex; justify-content: space-between; max-width: 250px; }
.site-footer .legal {
  border-top: 1px solid var(--line-dark);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: var(--champagne);
  opacity: 0.55;
}
.site-footer .legal a { text-decoration: underline; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(37, 26, 17, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
}
.mobile-cta.hidden { display: none !important; }
.mobile-cta a { flex: 1; padding: 13px 10px; font-size: 0.95rem; }
.mobile-cta .call {
  background: transparent;
  border: 1.5px solid var(--champagne);
  color: var(--champagne);
  border-radius: var(--pill);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 64px 0 80px; }
.legal-page .wrap { max-width: 800px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; margin-bottom: 8px; }
.legal-page .entity { color: var(--warm-gray); font-weight: 600; }
.legal-page .eff { color: var(--warm-gray); font-size: 0.9rem; margin-bottom: 30px; }
.legal-page h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 30px 0 10px; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { margin: 0 0 14px 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .back { display: inline-block; margin-bottom: 30px; font-weight: 600; text-decoration: none; }
.legal-page .highlight { background: var(--nectar); border-left: 3px solid var(--honey); padding: 14px 18px; border-radius: 8px; }

/* ---------- Thank you ---------- */
.ty { text-align: center; padding: 120px 0; }
.ty h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; margin-bottom: 14px; }
.ty p { color: var(--warm-gray); font-size: 1.15rem; margin-bottom: 30px; max-width: 44em; margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .flight path { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .flight { display: none; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 26px; bottom: 26px; left: 26px; right: auto; border-top: none; border-left: 2px dashed rgba(168, 122, 30, 0.45); }
  .steps .bird { display: none; }
  .step { text-align: left; padding-left: 72px; }
  .step .num { position: absolute; left: 0; top: 0; margin: 0; }
  .step p { margin: 0; }
  .benefits { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 30px; }
  .nav a:not(.phone):not(.btn) { display: none; }
  .nav { gap: 14px; }
  .nav .btn { padding: 10px 18px; font-size: 0.9rem; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
}
