/* The Pines Townhomes — design tokens */
:root {
  --pine: #24422F;
  --pine-deep: #1A3223;
  --needle: #4A7C59;
  --paper: #F7F8F5;
  --bark: #6B4F3A;
  --amber: #C9862B;
  --amber-dark: #A96D1C;
  --ink: #222B25;
  --ink-soft: #55605A;
  --line: #DDE4DE;
  --band: #EAF0EA;
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--needle); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: var(--pine); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--needle);
  margin-bottom: 10px;
}

section { padding: 72px 0; }

/* ---------- announcement bar ---------- */
.announce { background: var(--amber-dark); color: #fff; font-size: 1.08rem; }
.announce .wrap {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  padding: 19px 56px 19px 24px; position: relative; text-align: center;
}
.announce span { font-weight: 600; }
.announce a { color: #fff; font-weight: 700; }
.announce .dismiss {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: rgba(255,255,255,0.9);
  font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 6px;
}
.announce .dismiss:hover { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--pine);
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.01em; white-space: nowrap;
}
.wordmark svg { flex: none; }
.wordmark small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bark);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--pine); }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-deep); color: #fff; }
.site-nav .btn { padding: 9px 16px; font-size: 0.88rem; }
@media (max-width: 800px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 0; color: #fff;
  min-height: 78vh; display: flex; align-items: flex-end;
}
.hero picture, .hero img.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 34, 25, 0.82) 0%, rgba(20, 34, 25, 0.25) 55%, rgba(20, 34, 25, 0.12) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 64px; padding-top: 140px; text-shadow: 0 1px 12px rgba(15, 26, 18, 0.45); }
.hero .eyebrow { color: #E8D9A8; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.015em; max-width: 17ch;
}
.hero p {
  margin-top: 18px; max-width: 54ch; font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}
.hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- facts band ---------- */
.facts { background: var(--pine); color: #fff; padding: 34px 0; }
.facts .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.fact strong {
  display: block; font-family: var(--display); font-size: 1.5rem;
  font-weight: 700; color: #fff;
}
.fact span { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
@media (max-width: 720px) {
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- floor plans (gable cards) ---------- */
.plans { background: var(--paper); }
.plans-intro { max-width: 60ch; margin-top: 10px; color: var(--ink-soft); }
.plan-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.plan-card {
  clip-path: polygon(0 9%, 50% 0, 100% 9%, 100% 100%, 0 100%);
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.plan-roof {
  clip-path: polygon(0 62%, 50% 0, 100% 62%, 100% 100%, 0 100%);
  background: var(--pine);
  color: #fff; text-align: center;
  padding: 42px 12px 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
}
.plan-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.plan-body .sqft { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.plan-body .count { font-size: 0.86rem; color: var(--ink-soft); }
.plan-price {
  margin-top: auto; padding-top: 14px;
  font-weight: 700; color: var(--pine); font-size: 1rem;
}
.plan-price .avail {
  display: inline-block; margin-left: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--amber-dark);
}
.plan-price.quiet { font-weight: 500; color: var(--ink-soft); font-size: 0.92rem; }
.plans-note { margin-top: 22px; font-size: 0.9rem; color: var(--ink-soft); max-width: 70ch; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- amenities ---------- */
.amenities { background: var(--band); }
.amenities .cols {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: start; margin-top: 8px;
}
.amenities h3 {
  font-size: 1.12rem; margin: 30px 0 12px; color: var(--pine);
}
.amenities ul { list-style: none; }
.amenities li {
  padding: 9px 0 9px 30px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 0.99rem;
}
.amenities li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 14px; height: 14px;
  background: var(--needle);
  clip-path: polygon(50% 0, 100% 70%, 66% 70%, 88% 100%, 12% 100%, 34% 70%, 0 70%);
}
.amenities figure img { border-radius: 8px; }
.amenities figcaption { font-size: 0.84rem; color: var(--ink-soft); margin-top: 10px; }
.terms {
  margin-top: 26px; padding: 16px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.94rem; color: var(--ink-soft);
}
.terms strong { color: var(--ink); }
@media (max-width: 860px) { .amenities .cols { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- gallery ---------- */
.gallery-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery-grid a { display: block; border-radius: 6px; overflow: hidden; }
.gallery-grid img {
  width: 100%; height: 190px; object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- availability ---------- */
.availability { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.availability .intro { max-width: 62ch; margin-top: 10px; color: var(--ink-soft); }
.listings-embed { margin-top: 34px; min-height: 320px; }
.listings-embed iframe { border: 0; width: 100%; }
.availability .fallback {
  margin-top: 26px; font-size: 0.95rem; color: var(--ink-soft);
  padding: 16px 20px; background: var(--band); border-radius: 8px;
}

/* ---------- neighborhood ---------- */
.neighborhood .cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px;
  align-items: start;
}
.neighborhood ul { list-style: none; margin-top: 18px; }
.neighborhood li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 12px; font-size: 0.99rem;
}
.neighborhood li strong { color: var(--pine); font-weight: 600; }
.neighborhood .mapframe { border: 0; width: 100%; height: 360px; border-radius: 8px; }
@media (max-width: 860px) { .neighborhood .cols { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- contact ---------- */
.contact { background: var(--pine); color: #fff; }
.contact h2 { color: #fff; }
.contact .cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.contact p { color: rgba(255,255,255,0.85); max-width: 50ch; }
.contact .phone {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff;
  text-decoration: none; margin: 18px 0 6px;
}
.contact .hours { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.contact .ctas { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.contact figure img { border-radius: 8px; }
@media (max-width: 860px) { .contact .cols { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--pine-deep); color: rgba(255,255,255,0.72);
  padding: 34px 0; font-size: 0.88rem;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer .legal { font-size: 0.8rem; }
