/* Scottsdale Parade of Homes — shared styles */
:root {
  --ink: #12110E;
  --nav: #343434;
  --text: #222222;
  --muted: #555555;
  --line: #E2E2E2;
  --gray: #F4F4F4;
  --accent: #98857B; /* RETSY taupe (from retsy.com): selected map pin + list badge */
  --white: #FFFFFF;
  --sans: "Montserrat", sans-serif;
  --serif: "Playfair Display", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
h1, h2, h3 { font-weight: 400; color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h1, .section-dark h2 { color: var(--white); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head h2 { font-size: 48px; }
.section-head p { font-size: 17px; color: #666666; }
.section-dark .section-head p { color: #CCCCCC; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2C2B27; color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: #E9E9E9; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo .l1 { font-weight: 500; font-size: 9px; letter-spacing: 0.32em; }
.logo .l2 { font-family: var(--serif); font-size: 30px; letter-spacing: 0.04em; margin-top: 2px; }
.logo .l3 { font-family: var(--serif); font-size: 19px; letter-spacing: 0.06em; }
.logo.center { align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--nav); transition: transform 0.3s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header.overlay { background: rgba(52, 52, 52, 0.92); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 14px; font-weight: 400; }
.main-nav a { color: var(--white); text-decoration: none; }
.main-nav a:hover { color: #CCCCCC; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.main-nav .btn { color: var(--ink); }

/* Dropdown (e.g. 2027 Homes > Tour Homes / Map) */
.nav-group { position: relative; }
.nav-group::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 18px; } /* hover bridge to the submenu */
.nav-parent { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--white); font: inherit; cursor: pointer; }
.nav-parent:hover { color: #CCCCCC; }
.nav-parent::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.nav-group.open .nav-parent::after { transform: translateY(1px) rotate(225deg); }
.nav-parent[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.submenu { display: none; position: absolute; top: calc(100% + 10px); left: -18px; z-index: 60; min-width: 190px; padding: 8px 0; flex-direction: column; background: var(--nav); border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.nav-group:hover .submenu, .nav-group.open .submenu { display: flex; }
.submenu a { padding: 11px 18px; white-space: nowrap; }
.submenu a:hover { background: #484848; color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid #777777; border-radius: 4px; width: 46px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); margin: 4px auto; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #484848; }
  .main-nav .btn { margin-top: 12px; border-bottom: 0; }
  .nav-group::after, .nav-parent::after { display: none; }
  .nav-parent { width: 100%; min-height: 0; padding: 12px 0; border-bottom: 1px solid #484848; cursor: default; }
  .nav-parent:hover { color: var(--white); }
  .submenu, .nav-group:hover .submenu { display: flex; position: static; min-width: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .submenu a { padding: 12px 0 12px 18px; }
  .submenu a:hover { background: none; color: #CCCCCC; }
}

/* ---------- Countdown bar ---------- */
.countdown-bar { background: var(--gray); border-bottom: 1px solid var(--line); padding: 10px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--ink); }
.countdown-bar .label { letter-spacing: 0.12em; font-weight: 500; }
.countdown-bar .value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: pre; }

/* ---------- Page title banner ---------- */
.title-banner { background: var(--ink); color: var(--white); padding: 80px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.title-banner h1 { color: var(--white); font-size: 55px; }
.title-banner p { font-size: 17px; color: #CCCCCC; max-width: 660px; line-height: 1.7; }

/* ---------- Homepage hero ---------- */
.hero { position: relative; min-height: 720px; margin-top: -86px; background: #4A4844 center / cover no-repeat; color: var(--white); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(18, 17, 14, 0.35); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; bottom: 18px; right: 22px; font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 140px 24px 60px; }
.hero-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hero-logo .l1 { font-weight: 500; font-size: 15px; letter-spacing: 0.4em; }
.hero-logo .l2 { font-family: var(--serif); font-size: clamp(64px, 9vw, 104px); letter-spacing: 0.04em; }
.hero-logo .l3 { font-family: var(--serif); font-size: clamp(40px, 5.5vw, 64px); letter-spacing: 0.06em; }
.hero-date { font-weight: 700; font-size: 30px; letter-spacing: 0.06em; }
.hero-countdown { display: flex; gap: 28px; justify-content: center; }
.hero-countdown .unit { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.hero-countdown .num { font-weight: 400; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-countdown .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Guidelines ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.collage .ph { background: #D9D5CE center / cover; border-radius: 6px; height: 200px; }
.collage .ph.tall { grid-row: span 2; height: auto; min-height: 420px; }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; font-size: 17px; color: #333333; }
.rules li { display: flex; gap: 16px; align-items: flex-start; }
.rules li::before { content: ""; flex: none; margin-top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 4px solid #CCCCCC; background: var(--ink); }

/* ---------- Home cards ---------- */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 34px 30px; }
.home-card { display: flex; flex-direction: column; gap: 12px; text-align: center; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.home-card .photo { aspect-ratio: 4 / 3; border-radius: 18px 18px 0 0; background: #CFC8BD center / cover no-repeat; }
.home-card .name { font-weight: 700; font-size: 17px; }
.home-card .builder { font-size: 15px; color: var(--muted); margin-top: -6px; }
.home-card:hover .name { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 36px; }
.filters label { font-weight: 700; font-size: 16px; }
.filters select { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border: 1px solid #CCCCCC; border-radius: 4px; font-family: var(--sans); font-size: 14px; color: #333333; background: var(--white); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* ---------- Tickets ---------- */
.price-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.price { border: 1px solid #444444; border-radius: 6px; padding: 22px 34px; display: flex; flex-direction: column; gap: 6px; }
.price .k { font-size: 14px; letter-spacing: 0.08em; color: #BBBBBB; }
.price .v { font-size: 34px; font-weight: 400; }

/* ---------- Sponsors ---------- */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.logo-box { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: #999999; font-size: 14px; text-decoration: none; background: var(--white); }
.logo-box.title { width: 360px; max-width: 100%; height: 170px; }
.logo-grid { display: grid; gap: 18px; }
.logo-grid.gold { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.logo-grid.gold .logo-box { height: 120px; }
.logo-grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.logo-grid.small .logo-box { height: 96px; border-color: #EEEEEE; font-size: 13px; color: #AAAAAA; }
.tier-heading { font-size: 36px; margin: 48px 0 24px; text-align: center; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.tier { border: 1px solid #444444; border-radius: 6px; padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.tier .k { font-size: 14px; letter-spacing: 0.12em; color: #BBBBBB; }
.tier .v { font-size: 36px; }
.tier ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #DDDDDD; }

/* ---------- Award mark ---------- */
.award { width: 150px; height: 150px; border-radius: 50%; border: 2px solid currentColor; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.award .a1 { font-family: var(--serif); font-size: 20px; }
.award .a2 { font-size: 10px; letter-spacing: 0.2em; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid #DDDDDD; }
.faq-q { width: 100%; min-height: 60px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--sans); font-weight: 500; font-size: 18px; color: var(--ink); }
.faq-q .sign { font-size: 22px; font-weight: 300; }
.faq-a { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: #444444; }
.faq-a[hidden] { display: none; }
.faq-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.faq-cats { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 110px; }
.faq-cats button { min-height: 48px; padding: 12px 16px; text-align: left; background: none; border: 0; border-left: 3px solid var(--line); font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink); cursor: pointer; }
.faq-cats button[aria-pressed="true"] { border-left-color: var(--ink); font-weight: 700; }
.faq-main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 860px) { .faq-cats { position: static; } } /* stacked above the questions: don't pin over them */
.faq-main h2 { font-size: 36px; margin-bottom: 12px; }

/* ---------- Map ---------- */
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.map-wrap { display: flex; flex-wrap: wrap; border: 1px solid var(--line); }
.map-list { position: relative; flex: 1 1 320px; min-width: 0; max-height: 720px; overflow-y: auto; border-right: 1px solid var(--line); }
.map-row { width: 100%; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid #EEEEEE; background: var(--white); text-align: left; cursor: pointer; font-family: var(--sans); color: var(--ink); }
.map-row[aria-pressed="true"] { background: #F2F2F2; }
.map-row .t { display: flex; flex-direction: column; gap: 2px; }
.map-row .t b { font-size: 15px; }
.map-row .t span { font-size: 14px; color: var(--muted); font-weight: 300; }
.badge { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--white); background: var(--ink); }
[aria-pressed="true"] > .badge { background: var(--accent); }
.map-side { flex: 2.4 1 560px; min-width: 0; display: flex; flex-direction: column; }
.map-canvas { position: relative; height: 600px; background: #E8E6E1; overflow: hidden; }
.map-canvas svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-note { position: absolute; bottom: 10px; left: 12px; font-size: 11px; color: #777777; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--white); background: var(--ink); color: var(--white); font-family: var(--sans); font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); z-index: 1; padding: 0; }
.pin.active { width: 44px; height: 44px; font-size: 16px; background: var(--accent); z-index: 2; }
.map-popup { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px; background: var(--ink); color: var(--white); }
.map-popup .photo { flex: none; width: 150px; aspect-ratio: 4 / 3; background: #CFC8BD center / cover; border-radius: 10px 10px 0 0; }
.map-popup .body { flex: 1 1 260px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; font-size: 14px; color: #CCCCCC; }
.map-popup .info { display: flex; flex-direction: column; gap: 4px; }
.map-popup .info b { font-size: 18px; color: var(--white); }
.map-popup .actions { display: flex; gap: 8px; }
.map-popup .actions .btn { font-size: 12px; min-height: 44px; padding: 0 16px; }
@media (max-width: 900px) {
  .map-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .map-canvas { height: 460px; }
}

/* ---------- Voting ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 36px; text-align: center; }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 30px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step .n { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.step b { font-size: 18px; color: var(--ink); }
.step p { font-size: 16px; color: var(--muted); max-width: 300px; }
.ballot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px; margin-bottom: 32px; }
.ballot-card { display: flex; flex-direction: column; background: var(--white); border: 0; padding: 0; border-radius: 14px 14px 0 0; outline: 1px solid var(--line); cursor: pointer; font-family: var(--sans); color: var(--ink); text-align: center; }
.ballot-card[aria-pressed="true"] { outline: 3px solid var(--ink); }
.ballot-card .photo { position: relative; aspect-ratio: 4 / 3; border-radius: 14px 14px 0 0; background: #CFC8BD center / cover; }
.ballot-card .check { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--white); background: rgba(18, 17, 14, 0.25); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ballot-card[aria-pressed="true"] .check { background: var(--ink); }
.ballot-card .t { padding: 12px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ballot-card .t b { font-size: 15px; }
.ballot-card .t span { font-size: 14px; color: var(--muted); font-weight: 300; }
.thanks { background: var(--white); padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.thanks[hidden] { display: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid #CCCCCC; border-radius: 4px; background: var(--white); font-family: var(--sans); font-size: 15px; color: var(--text); }
.field textarea { padding: 12px 14px; resize: vertical; }
.inline-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 14px; }
.inline-form .field { flex: 0 1 280px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.fee-note { border: 1px solid var(--line); border-left: 4px solid var(--ink); background: var(--gray); padding: 18px 20px; font-size: 15px; line-height: 1.7; color: #333333; }
.check-field { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: #333333; }
.check-field input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); }
.form-msg { text-align: center; font-weight: 500; color: var(--ink); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 24px 40px; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 14px; line-height: 1.8; }
.footer-inner .h { font-weight: 400; font-size: 20px; }
.footer-inner .muted { color: #CCCCCC; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-nav a { color: #CCCCCC; }
.footer-signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 460px; }
.footer-signup input { flex: 1 1 220px; min-height: 46px; padding: 0 14px; border: 1px solid #555555; border-radius: 4px; background: transparent; color: var(--white); font-family: var(--sans); font-size: 14px; }
.footer-signup .btn { min-height: 46px; }
.presented { margin-top: 18px; font-size: 12px; letter-spacing: 0.24em; color: #BBBBBB; }
.brand { font-weight: 500; font-size: 22px; letter-spacing: 0.3em; }
.copyright { width: 100%; border-top: 1px solid #333333; margin-top: 18px; padding-top: 20px; font-size: 13px; color: #AAAAAA; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 36px; }
  .title-banner h1 { font-size: 40px; }
  .hero-countdown { gap: 14px; }
  .hero-countdown .num { font-size: 30px; }
  .hero-date { font-size: 22px; }
}

@media (max-width: 400px) {
  .hero-countdown { gap: 8px; }
  .hero-countdown .unit { min-width: 56px; }
  .hero-countdown .lbl { font-size: 10px; letter-spacing: 0.1em; }
}
