/* My New Space Coast Home — Mike Koeppel, D.R. Horton new homes, Brevard County.
   Simple, clean, modern. Flyer navy + brass accent; Horton red used sparingly. */
:root {
  --navy: #0a2540;
  --navy-ink: #0a2540;
  --navy-soft: #12365c;
  --brass: #b9975b;
  --brass-ink: #8a6d3b;
  --horton-red: #c8102e;
  --horton-red-ink: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --text: #1c2733;
  --text-muted: #5a6b7c;
  --border: #d9e0e8;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

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

a { color: var(--navy); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* 44px minimum tap targets */
button, input, select, textarea, .btn, .chip {
  min-height: 44px;
  font-size: 16px;
}

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-red { background: var(--horton-red); color: var(--horton-red-ink); }
.btn-red:hover { background: #a50d26; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--bg-soft); }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--horton-red);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { text-decoration: none; color: var(--navy); line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 19px; display: block; }
.brand-sub { font-size: 13px; color: var(--text-muted); display: block; }
.site-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.nav-link:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero { background: var(--bg); }
.hero-photo { width: 100%; }
.hero-photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.hero-copy { padding: 28px 0 8px; text-align: center; }
.hero-eyebrow {
  color: var(--brass-ink);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero-copy h1 {
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
.hero-copy p.lede {
  font-size: 18px;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
}
.hero-copy p.lede::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--horton-red);
  margin: 0 auto 14px;
  border-radius: 2px;
}

/* ---------- Rate banner (full-width navy, red bars top + bottom) ---------- */
.rate-banner {
  background: var(--navy);
  color: #fff;
  border-top: 4px solid var(--horton-red);
  border-bottom: 4px solid var(--horton-red);
  margin-top: 28px;
  padding: 32px 0 28px;
  text-align: center;
}
.rate-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .rate-cols { grid-template-columns: 1fr 1fr; }
  .rate-col + .rate-col { border-left: 1px solid rgba(255, 255, 255, 0.25); }
}
.rate-col { padding: 4px 16px; }
.rate-value { font-size: 44px; font-weight: 800; line-height: 1.05; }
.rate-label { font-weight: 700; font-size: 17px; margin-top: 6px; }
.rate-note { font-size: 14px; opacity: 0.85; margin-top: 2px; }
.rate-badge {
  display: inline-block;
  background: var(--horton-red);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 999px;
  margin-top: 22px;
}

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 {
  color: var(--navy);
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.section .section-intro { color: var(--text-muted); margin: 0 0 20px; max-width: 680px; }
.section-head { text-align: center; }
.section-head .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Quiz ---------- */
.quiz {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.08);
}
.quiz-progress {
  height: 8px;
  background: #e6ebf0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--horton-red);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.quiz-step-label { font-size: 13px; font-weight: 700; color: var(--horton-red); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { color: var(--navy); font-size: 21px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text);
}
.chip:hover { border-color: var(--navy); }
.chip.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
}
.field input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.quiz-nav { display: flex; gap: 10px; margin-top: 20px; }
.quiz-nav .btn { flex: 1; }
.quiz-error { color: var(--horton-red); font-weight: 600; margin: 10px 0 0; display: none; }
.quiz-error.show { display: block; }
.quiz-success { text-align: center; }
.quiz-success h3 { color: var(--navy); font-size: 22px; margin: 0 0 10px; }
.quiz-success p { color: var(--text-muted); margin: 0 0 18px; }

/* ---------- Offer cards (identical internal spacing) ---------- */
.offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .offers { grid-template-columns: repeat(3, 1fr); }
}
.offer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.06);
}
.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--horton-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.offer-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.offer-card h3 { color: var(--navy); font-size: 19px; margin: 0 0 8px; }
.offer-body { margin: 0 0 12px; }
.offer-body p { margin: 0 0 8px; }
.offer-body p:last-child { margin-bottom: 0; }
.offer-fine {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 0;
}
.eho { font-size: 13px; color: var(--text-muted); text-align: center; margin: 20px 0 0; }

/* ---------- Featured community ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 760px) {
  .featured-grid { grid-template-columns: 1.15fr 1fr; }
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.photo-credit { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }
.featured-copy h2 { margin-top: 0; }
.featured-copy ul { margin: 0 0 14px; padding-left: 20px; }
.featured-copy li { margin-bottom: 4px; }
.featured-copy address { font-style: normal; color: var(--text-muted); margin: 0 0 16px; }

/* ---------- Area guides ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
}
.area-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.area-card.most-requested { border: 2px solid var(--horton-red); }
.area-card .area-tag {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--horton-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
}
.area-card h3 { color: var(--navy); font-size: 19px; margin: 0 0 10px; }
.area-card ul { margin: 0 0 10px; padding-left: 20px; }
.area-card li { margin-bottom: 4px; }
.area-card p { margin: 0 0 8px; }
.area-card p:last-child { margin-bottom: 0; }

/* ---------- Trust block ---------- */
.trust {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.trust h2 { color: #fff; margin: 0 0 8px; }
.trust p { margin: 0 auto 18px; max-width: 560px; opacity: 0.92; }
.trust .btn-red { min-width: 220px; }

/* ---------- Book a tour ---------- */
.book-tour { text-align: center; }
.book-tour .hours { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.book-tour .alt-time { color: var(--text-muted); margin: 0 0 20px; }
.book-tour .alt-time a { color: var(--navy); font-weight: 700; }

/* ---------- FAQ page ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  min-height: 44px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--horton-red); font-weight: 800; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 18px 16px; }
.faq-item .faq-answer p { margin: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}
.page-head { padding: 28px 0 8px; }
.page-head h1 { color: var(--navy); font-size: 28px; margin: 0 0 8px; }
.page-head p { color: var(--text-muted); margin: 0; }

/* ---------- Leads inbox ---------- */
.inbox { max-width: 760px; margin: 0 auto; }
.passcode-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.passcode-box input {
  width: 100%;
  max-width: 320px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  text-align: center;
  margin-bottom: 12px;
}
.lead-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.lead-card.new { border-left: 4px solid var(--horton-red); }
.lead-name { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.lead-meta { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lead-actions select {
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  background: #fff;
}
.status-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--bg-soft);
  color: var(--navy);
}
.empty-state, .error-state { text-align: center; color: var(--text-muted); padding: 32px 0; }
.error-state { color: var(--horton-red); font-weight: 600; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.inbox-head h1 { color: var(--navy); font-size: 24px; margin: 0; }
