/* Shared styles for the town pages (yorktown-heights/, mahopac/, ...).
   Colors and type match index.html. */
:root {
  --navy: #41493a;
  --navy-light: #59624e;
  --gold: #98795d;
  --cream: #f8f6f0;
  --cream-dark: #eee9df;
  --linen: #e7e5dc;
  --bronze: #765d4c;
  --ink: #3e3a33;
  --radius-card: 1rem;
  --radius-button: 0.65rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.display { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }

.shell { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 246, 240, 0.96);
  border-bottom: 1px solid rgba(118, 93, 76, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; gap: 1rem; }
.brand { font-size: 1.25rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta) { display: none; }
.nav-cta { background: var(--navy); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius-button); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; }
@media (min-width: 768px) { .site-nav a:not(.nav-cta) { display: inline; } }

/* Hero */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.crumbs { font-size: 12px; color: rgba(62, 58, 51, 0.6); margin: 0 0 1.25rem; }
.crumbs a { text-decoration: none; }
.kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 1.25rem; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 0 0 1.5rem; color: var(--navy); }
.lede, .body-copy { font-size: 15px; max-width: 36rem; margin: 0 0 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.75rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: var(--radius-button); text-decoration: none; font-family: inherit; cursor: pointer;
}
.btn { background: var(--navy); color: #fff; border: 0; font-weight: 500; }
.btn:hover { background: var(--navy-light); }
.btn-outline { border: 1px solid rgba(62, 58, 51, 0.42); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.6); }

.sale-card { margin: 0; background: #fff; border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(152, 121, 93, 0.18); box-shadow: 0 10px 30px rgba(62, 58, 51, 0.06); }
.sale-card img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.sale-card figcaption { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sale-meta { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.sale-card strong { font-size: 1.6rem; color: var(--navy); }
.sale-price { font-size: 14px; }

/* Bands */
.band { padding: 4rem 0; background: var(--linen); }
.band-white { background: #fff; }
#estimate { background: var(--cream-dark); }
.facts { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--cream); border: 1px solid rgba(152, 121, 93, 0.22); border-radius: var(--radius-card); padding: 1.5rem; }
.fact h3 { margin: 0 0 0.4rem; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.fact p { margin: 0; font-size: 14px; }

.two-col { display: grid; gap: 3rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.checklist { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.checklist li { padding: 0.75rem 0 0.75rem 1.5rem; border-bottom: 1px solid var(--linen); position: relative; }
.checklist li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

.faq-title { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.faq { border-top: 1px solid rgba(152, 121, 93, 0.3); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 400; font-size: 15px; }
.faq p { font-size: 14px; margin: 0.6rem 0 0; }

/* Form */
.form-card { background: #fff; border-radius: var(--radius-card); padding: 2rem 1.5rem; border: 1px solid rgba(152, 121, 93, 0.18); box-shadow: 0 10px 30px rgba(62, 58, 51, 0.06); align-self: start; }
@media (min-width: 768px) { .form-card { padding: 2.25rem; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; min-width: 0; }
.field-grid { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 12px; letter-spacing: 0.05em; font-weight: 400; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 0.75rem 0.85rem;
  border: 1px solid rgba(62, 58, 51, 0.25); border-radius: 0.5rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; margin-top: 0.5rem; }
.submit:disabled { opacity: 0.7; cursor: wait; }
.fine { font-size: 12px; color: rgba(62, 58, 51, 0.65); margin: 0.85rem 0 0; }
.status { font-size: 14px; margin-top: 0.85rem; }
.status.success { color: var(--navy); font-weight: 400; }
.status.error { color: #9b2c2c; }

/* Nearby */
.nearby { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nearby-link { border: 1px solid rgba(152, 121, 93, 0.35); border-radius: 999px; padding: 0.55rem 1.1rem; font-size: 13px; text-decoration: none; }
.nearby-link:hover { background: var(--cream); }

/* Footer */
.site-footer { background: #070f1a; padding: 1.5rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); text-align: center; }
@media (min-width: 900px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* Agent photo card (towns without one of Daniela's sales) */
.agent-card img { aspect-ratio: 4 / 3; object-position: center 25%; }

/* Local photo band under the hero */
.town-photo { margin: 3rem 0 0; }
.town-photo img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-card); }
@media (max-width: 640px) { .town-photo img { aspect-ratio: 4 / 3; } }
.town-photo figcaption { font-size: 11px; color: rgba(62, 58, 51, 0.6); margin-top: 0.5rem; }
.town-photo figcaption a { color: inherit; }
