/* ============================================================
   Myers Home Buyers — shared styles
   Brand: Myers Gold #F5B021 · Avenir (Nunito Sans web fallback)
   Headlines: sentence case. CTAs: heavy weight (Avenir Black).
   ============================================================ */

:root {
  --gold: #F5B021;
  --gold-dark: #D99A0E;
  --ink: #1E2430;
  --ink-soft: #4A5262;
  --paper: #FFFFFF;
  --paper-soft: #F7F8FA;
  --line: #E6E9EF;
  --ok: #1F8A4C;
  --err: #C0392B;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(30, 36, 48, .08);
  --font: 'Avenir Next', 'Avenir', 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 12px;
}
.sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 640px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 44px; width: auto; }
.site-footer .wordmark img { height: 40px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius); transition: all .15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C3547; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }

/* ---------- Hero (seller funnel) ---------- */
.hero {
  background: linear-gradient(160deg, #FFF9EC 0%, #FFFFFF 55%);
  padding: 72px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 strong { color: var(--gold-dark); }
.hero .assurances { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--ink-soft); font-size: .95rem; }
.hero .assurances li { list-style: none; display: flex; gap: 8px; align-items: center; }
.hero .assurances li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- Form card / multi-step ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 32px;
}
.form-card h3 { margin-bottom: 4px; }
.form-card .step-hint { color: var(--ink-soft); font-size: .9rem; margin-bottom: 18px; }
.progress { height: 6px; background: var(--paper-soft); border-radius: 99px; margin-bottom: 22px; overflow: hidden; }
.progress-fill { height: 100%; width: 33%; background: var(--gold); border-radius: 99px; transition: width .25s ease; }

.form-step { display: none; }
.form-step.active { display: block; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-family: var(--font); font-size: 1rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field .err-msg { color: var(--err); font-size: .82rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field.invalid .err-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }

/* Single-line address entry: input + button on one row */
.addr-row { display: flex; gap: 8px; }
.addr-row input { flex: 1; min-width: 0; }
.addr-row .btn { white-space: nowrap; padding: 13px 22px; }

.condition-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.condition-cards label {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 18px 10px;
  text-align: center; cursor: pointer; font-weight: 700; transition: all .12s;
}
.condition-cards label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; margin-top: 4px; }
.condition-cards input { display: none; }
.condition-cards input:checked + span, .condition-cards label.selected {
  border-color: var(--gold); background: #FFF9EC;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: var(--ink-soft); margin: 14px 0; }
.consent input { margin-top: 3px; }
.form-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; }
.form-nav .btn { flex: 1; }
.btn-back { background: var(--paper-soft); color: var(--ink-soft); }
.form-success { text-align: center; padding: 30px 10px; display: none; }
.form-success .big { font-size: 2.4rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-alt { background: var(--paper-soft); }
.center { text-align: center; }
.center .sub { margin: 12px auto 0; }

.stat-strip { background: var(--ink); color: #fff; padding: 34px 0; }
.stat-strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.stat { text-align: center; flex: 1; min-width: 140px; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.stat .lbl { font-size: .85rem; opacity: .85; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Photos ---------- */
.photo {
  width: 100%; height: 100%; min-height: 240px;
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.cards-3 .photo { aspect-ratio: 4 / 3; min-height: 0; }

/* ---------- Photo placeholders ---------- */
.photo-ph {
  background: repeating-linear-gradient(45deg, #EEF1F6, #EEF1F6 12px, #F7F8FA 12px, #F7F8FA 24px);
  border: 2px dashed #C6CDD9; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-weight: 700; font-size: .9rem;
  min-height: 240px; text-align: center; padding: 20px;
}

/* ---------- Agent signal band ---------- */
.agent-band { background: var(--ink); color: #fff; }
.agent-band .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.agent-band h2 span { color: var(--gold); }
.agent-band p { opacity: .9; margin-top: 12px; }
.agent-band .actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Tables (comp / rev share) ---------- */
.tbl { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tbl th { background: var(--ink); color: #fff; font-size: .85rem; letter-spacing: .04em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .hl { color: var(--gold-dark); font-weight: 800; }

.example-box {
  background: #FFF9EC; border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin-top: 24px; font-size: .98rem;
}

/* ---------- Video (click-to-load facade — saves ~1MB of YouTube JS) ---------- */
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap iframe, .video-wrap .yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { cursor: pointer; padding: 0; background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-facade .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 54px; background: var(--gold); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.yt-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt-facade .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent var(--ink); }

/* ---------- Modal (Tell me more) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,24,32,.6);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 14px; padding: 34px; max-width: 440px; width: 100%; position: relative; }
.modal .close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-soft); }
.modal h3 { margin-bottom: 6px; }
.modal p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 16px; }

/* ---------- Deals coming soon ---------- */
.coming-soon { text-align: center; padding: 96px 0 64px; }
.coming-soon .glow { color: var(--gold-dark); }
.invest-box { max-width: 560px; margin: 0 auto; }

/* ---------- Blog ---------- */
.post-meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.post-meta .tag { background: #FFF3D6; color: var(--gold-dark); font-weight: 800; padding: 3px 10px; border-radius: 99px; margin-right: 8px; font-size: .75rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--gold-dark); }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { margin-top: 10px; }
.article h2 { margin: 40px 0 12px; font-size: 1.45rem; }
.article p, .article li { color: #333A47; margin-bottom: 16px; line-height: 1.7; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 16px; }
.article .lede { font-size: 1.15rem; color: var(--ink-soft); }
.article .tbl { margin-bottom: 24px; }
.article-cta {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 28px; margin-top: 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.article-cta p { color: #C9D0DC; margin: 6px 0 0; }
.fineprint { font-size: .78rem; color: var(--ink-soft); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #14181F; color: #B9C0CC; font-size: .85rem; padding: 56px 0 32px; }
.site-footer a { color: #D7DCE5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.disclaimer { border-top: 1px solid #2A303B; padding-top: 22px; line-height: 1.7; font-size: .8rem; color: #8B94A3; }
.disclaimer strong { color: #B9C0CC; }
.agent-login { border-top: 1px solid #2A303B; padding-top: 22px; margin-bottom: 22px; text-align: center; }
.agent-login .btn-agent { background: transparent; color: #D7DCE5; border: 1.5px solid #3A4150; padding: 11px 26px; font-size: .85rem; }
.agent-login .btn-agent:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.agent-login + .disclaimer { border-top: 0; padding-top: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 18px 22px;
  display: none; align-items: center; gap: 18px; box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto; font-size: .85rem;
}
.cookie-banner.show { display: flex; }
.cookie-banner .btn { padding: 9px 18px; font-size: .85rem; white-space: nowrap; }

/* ---------- Conversion additions ---------- */
.sticky-cta {
  display: none; position: sticky; top: 72px; z-index: 45;
  background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08);
}
.sticky-cta a {
  flex: 1; text-align: center; color: #fff; text-decoration: none;
  font-weight: 800; padding: 11px 10px; font-size: .9rem;
}
.sticky-cta a:first-child { background: var(--gold); color: var(--ink); }
.consent.invalid span { color: var(--err); }
.condition-cards.invalid { outline: 2px solid var(--err); outline-offset: 4px; border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  .hero { padding-top: 48px; }
  .hero-grid, .agent-band .container, .footer-grid { grid-template-columns: 1fr; }
  .agent-band .actions { justify-content: flex-start; }
  .cards-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
         background: #fff; flex-direction: column; align-items: flex-start;
         padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .condition-cards { grid-template-columns: 1fr; }
}
