/* ==========================================================================
   The Fair Grounds — design system
   Palette + type per DESIGN.md (plum/clay — "grand champion"). Flat single-class selectors throughout.
   ========================================================================== */

:root {
  --plum: #4A2D5A;
  --plum-deep: #33203F;
  --clay: #B4433A;
  --clay-soft: #C9665C;
  --linen: #F7F4EE;
  --prairie: #A9AD93;
  --prairie-pale: #E4E6DA;
  --marigold: #E6B94E;
  --ink: #23262B;
  --ink-soft: #545962;
  --white: #FDFCFA;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Caveat", "Bradley Hand", cursive;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --shadow: 0 14px 40px -18px rgba(51, 32, 63, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; }

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

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--plum);
  color: var(--white);
  padding: 10px 18px;
  z-index: 100;
}

.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Script eyebrow — the Mayfair family signature
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  color: var(--clay);
  display: block;
  margin-bottom: 0.1em;
  text-transform: lowercase;
}

.section--dark .eyebrow, .hero .eyebrow { color: var(--marigold); }

/* --------------------------------------------------------------------------
   Announcement bar + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--clay);
  color: var(--white);
  text-align: center;
  padding: 8px var(--pad);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.topbar a { color: var(--white); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--plum);
  color: var(--white);
  padding: 0 var(--pad);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark { flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--prairie-pale);
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--marigold); }

.site-nav a[aria-current="page"] { border-bottom-color: var(--clay-soft); }

.nav-cta {
  background: var(--clay);
  border-bottom: none !important;
  padding: 12px 18px !important;
  font-weight: 700;
}

.nav-cta:hover { background: var(--clay-soft); }

/* Burger button — visible on every screen size, top-right of the header. */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 42px;
  padding: 0;
  background: none;
  border: 2px solid var(--prairie-pale);
  color: transparent;
  font-size: 0; /* keeps the "Menu" label in the accessibility tree, hides it visually */
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.menu-btn::before {
  content: "";
  width: 22px;
  height: 15px;
  background:
    linear-gradient(var(--white), var(--white)) top / 100% 2.5px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--white), var(--white)) bottom / 100% 2.5px no-repeat;
}
.menu-btn:hover { border-color: var(--marigold); background: rgba(255, 255, 255, 0.08); }
.menu-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(84vw, 360px);
  background: var(--plum-deep);
  color: var(--white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.42, 0, 0.08, 1.04);
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(169, 173, 147, 0.25);
}

.drawer a:hover { color: var(--marigold); }

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--prairie-pale);
  font: 700 0.85rem var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 12px;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.9rem;
  color: var(--prairie-pale);
}

/* Section labels + Guest Card CTA inside the full-site drawer menu */
.drawer-title {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--prairie-pale);
  margin: 4px 0 2px;
  padding: 0 8px;
}
.drawer-title--sub { margin-top: 20px; }

.drawer a.drawer-cta {
  margin-top: 16px;
  background: var(--clay);
  color: var(--white);
  text-align: center;
  border-bottom: none;
  font-weight: 700;
}
.drawer a.drawer-cta:hover { background: var(--clay-soft); color: var(--white); }

/* Offset in-page anchor targets so the sticky header doesn't cover them
   (e.g. the "Work Order" menu link jumps to #work-order on residents.html). */
#work-order { scroll-margin-top: 96px; }

/* Mayfair corporate logo at the top of the footer (family convention — mirrors
   the sister Delafield site: white corp logo linking to mayfairmgt.com). */
.footer-corp {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 30px;
}
.footer-corp img {
  height: 52px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.footer-corp a:hover img { opacity: 1; }

/* "What life feels like here" cards — static large type (no carousel by design: easy
   reading for everyone). House-voice vignettes about the homes and the place
   (.vignette-tag + p); blockquote/figcaption rules are kept only for real, permissioned
   resident quotes if any ever arrive — nothing is fabricated in the meantime. */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote-card {
  margin: 0;
  background: var(--linen);
  border-left: 5px solid var(--marigold);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.quote-card blockquote {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--plum);
}
.quote-card figcaption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.quote-card .vignette-tag {
  display: block;
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}
.quote-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--plum);
}
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(51, 32, 63, 0.55);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.scrim.show { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Buttons — hard-square, uppercase (family convention)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font: 700 0.85rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 15px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary { background: var(--clay); color: var(--white); }

.btn--primary:hover { background: var(--plum); color: var(--white); }

.btn--pine { background: var(--plum); color: var(--white); }

.btn--pine:hover { background: var(--clay); }

.btn--ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}

.btn--ghost:hover { background: var(--plum); color: var(--white); }

.btn--light {
  background: var(--linen);
  color: var(--plum);
}

.btn--light:hover { background: var(--marigold); color: var(--ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--plum-deep);
  color: var(--white);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 100px) var(--pad) clamp(180px, 27vh, 280px);
  text-align: center;
}

.hero h1 {
  color: var(--plum-deep);
  text-shadow: 0 0 22px rgba(247, 244, 238, 0.9);
}

.hero p {
  max-width: 620px;
  margin: 0 auto 1.6em;
  font-size: 1.12rem;
  color: var(--ink);
  text-shadow: 0 0 16px rgba(247, 244, 238, 0.95), 0 0 32px rgba(247, 244, 238, 0.8);
}

.hero .eyebrow { color: var(--clay); }

/* Subpage hero: solid plum, no illustration */
.hero--page .hero-inner { padding: clamp(56px, 9vh, 100px) var(--pad); }

.hero--page h1 { color: var(--white); text-shadow: none; }

.hero--page p { color: var(--prairie-pale); text-shadow: none; }

.hero--page .eyebrow { color: var(--marigold); }

/* Photo hero: real photograph behind a plum scrim, white text */
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(51, 32, 63, 0.74) 0%, rgba(51, 32, 63, 0.38) 52%, rgba(51, 32, 63, 0.68) 100%);
}

.hero--photo .hero-inner { z-index: 2; }

.hero--photo h1 { color: var(--white); text-shadow: 0 2px 18px rgba(51, 32, 63, 0.6); }

.hero--photo p { color: var(--linen); text-shadow: 0 1px 12px rgba(51, 32, 63, 0.65); }

.hero--photo .eyebrow { color: var(--marigold); }

.hero--photo:not(.hero--page) .hero-inner {
  padding: clamp(88px, 15vh, 150px) var(--pad) clamp(100px, 17vh, 175px);
}

/* Subpage photo heroes: focus on the upper-middle of the photograph (the homes, not the lawn) */
.hero--page.hero--photo .hero-art { object-position: center 38%; }

.hero--page.hero--photo::before {
  background: linear-gradient(180deg, rgba(51, 32, 63, 0.8) 0%, rgba(51, 32, 63, 0.58) 55%, rgba(51, 32, 63, 0.66) 100%);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(44px, 7vw, 76px) var(--pad); }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section--dark { background: var(--plum-deep); color: var(--prairie-pale); }

.section--dark h2, .section--dark h3 { color: var(--white); }

.section--moss { background: var(--prairie-pale); }

.section--white { background: var(--white); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

.section--dark .lead { color: var(--prairie-pale); }

/* Pennant-string divider strip — a line of small bunting triangles (see divider-pennants.svg) */
.divider-pennants {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Card grid (3-up feature cards)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.card {
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
}

.card:hover { transform: translateY(-6px); }

.card-art { border-radius: 0; background: var(--prairie-pale); }

.card-art img { width: 100%; height: 220px; object-fit: cover; }

.card-body { padding: 24px 26px 30px; }

.card-label {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 { margin-top: 6px; }

.card p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   50/50 split rows
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.split--flip .split-art { order: 2; }

.split-art img {
  height: auto; /* beat the height="1000" attribute so aspect-ratio applies */
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* Brand SVG scenes are drawn on a 1200x700 canvas — show them whole rather
   than cropping to 4:3 (the map's edge labels were getting cut off). */
.split-art img[src$=".svg"] {
  height: auto; /* beat the height="700" attribute so aspect-ratio applies */
  aspect-ratio: 12 / 7;
  object-fit: contain;
  background: var(--prairie-pale);
}

/* --------------------------------------------------------------------------
   Stats row
   -------------------------------------------------------------------------- */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--clay);
  line-height: 1;
}

.section--dark .stat-num { color: var(--marigold); }

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Plan sheet — the signature annotated floor plan
   -------------------------------------------------------------------------- */

.plan-sheet {
  background: var(--white);
  border: 1px solid var(--prairie);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px);
  position: relative;
}

.plan-sheet::after {
  content: "county footprint sketches — two home sizes, thirty-two front doors";
  position: absolute;
  bottom: 10px;
  right: 18px;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--prairie);
}

.plan-disclaimer {
  margin: 14px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px dashed var(--prairie);
  list-style: none;
}

.plan-meta li { font-size: 0.95rem; }

.plan-meta strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.avail-chip {
  display: inline-block;
  background: var(--plum);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
}

.avail-chip--open { background: var(--clay); }

/* Inline floor-plan SVG typography + linework */
.fp-svg { width: 100%; height: auto; }

.fp-svg .fp-room {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--plum);
}

.fp-svg .fp-dim {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  fill: var(--ink-soft);
}

.fp-svg .fp-note {
  font-family: var(--font-accent);
  font-size: 22px;
  fill: var(--clay);
}

.fp-svg .fp-wall { stroke: var(--plum); stroke-width: 7; fill: none; stroke-linecap: square; }

.fp-svg .fp-wall-in { stroke: var(--plum); stroke-width: 4; stroke-linecap: square; }

.fp-svg .fp-dash { stroke: var(--prairie); stroke-width: 2.5; stroke-dasharray: 7 6; fill: none; }

.fp-svg .fp-furn { fill: var(--prairie-pale); stroke: var(--prairie); stroke-width: 2; }

.fp-svg .fp-door { stroke: var(--clay); stroke-width: 2.5; fill: none; }

/* --------------------------------------------------------------------------
   Amenity lists
   -------------------------------------------------------------------------- */

.amenity-cols {
  columns: 2;
  column-gap: 48px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenity-cols li {
  break-inside: avoid;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--prairie-pale);
  position: relative;
}

.amenity-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--clay);
  clip-path: polygon(0 0, 100% 0, 50% 100%); /* small downward pennant */
}

.section--dark .amenity-cols li { border-bottom-color: rgba(169, 173, 147, 0.3); }

.section--dark .amenity-cols li::before { background: var(--marigold); }

.footnote { font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }

.section--dark .footnote { color: var(--prairie); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  background: var(--white);
  border: 2px solid var(--prairie);
  color: var(--plum);
  font: 700 0.8rem var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
}

.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item { margin: 0; }

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--prairie-pale);
}

.gallery-item figcaption {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--plum);
  padding: 10px 6px 0;
  text-align: center;
}

.gallery-item.hidden { display: none; }

/* --------------------------------------------------------------------------
   Accordion (FAQ)
   -------------------------------------------------------------------------- */

.accordion { max-width: 820px; margin: 0 auto; }

.accordion details {
  background: var(--white);
  border: 1px solid var(--prairie-pale);
  border-left: 5px solid var(--plum);
  margin-bottom: 12px;
}

.accordion summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--plum);
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--clay);
}

.accordion details[open] summary::after { content: "–"; }

.accordion details[open] { border-left-color: var(--clay); }

.accordion-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Policy card (pets)
   -------------------------------------------------------------------------- */

.policy-card {
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
}

.policy-art { background: var(--linen); display: flex; align-items: flex-end; }

.policy-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

.policy-body { padding: clamp(28px, 4vw, 52px); }

.policy-list { list-style: none; padding: 0; margin: 0; }

.policy-list li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--prairie-pale);
  position: relative;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay);
}

/* --------------------------------------------------------------------------
   Neighborhood POI tabs
   -------------------------------------------------------------------------- */

.poi-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.poi-panel { display: none; }

.poi-panel.active { display: block; }

.poi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.poi-list li {
  background: var(--white);
  border-top: 4px solid var(--plum);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}

.poi-name { font-weight: 700; color: var(--plum); font-size: 1.02rem; }

.poi-addr { color: var(--ink-soft); font-size: 0.92rem; }

.poi-dist {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

/* --------------------------------------------------------------------------
   Forms / contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

.form-card {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--prairie);
  background: var(--linen);
  font: 1rem var(--font-body);
  color: var(--ink);
}

.field textarea { min-height: 130px; resize: vertical; }

.info-block {
  border-left: 5px solid var(--clay);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 20px;
}

.info-block h3 { margin-bottom: 6px; }

.info-block p { margin: 0; color: var(--ink-soft); }

.form-note { font-size: 0.9rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Assistant hook — floating chat button (future AI assistant)
   -------------------------------------------------------------------------- */

.assistant-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  background: var(--clay);
  color: var(--white);
  text-decoration: none;
  font: 700 0.85rem var(--font-body);
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(51, 32, 63, 0.5);
  display: flex;
  align-items: center;
  gap: 9px;
}

.assistant-fab:hover { background: var(--plum); }

/* On phones the 128px text pill sits on top of form fields and body copy in the
   default view — collapse it to an icon-only circle. The label text stays in the
   DOM (accessible name) but is not painted. */
@media (max-width: 640px) {
  .assistant-fab {
    padding: 14px;
    gap: 0;
    width: 52px;
    height: 52px;
    justify-content: center;
    font-size: 0; /* hides the bare "Ask Mira" text node; the 20x20 svg is sized by attribute */
  }
  .assistant-fab span { display: none; }
}

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--clay);
  color: var(--white);
  text-align: center;
  padding: clamp(48px, 8vw, 80px) var(--pad);
}

.cta-band h2 { color: var(--white); }

.cta-band .eyebrow { color: var(--marigold); }

.site-footer {
  background: var(--plum-deep);
  color: var(--prairie-pale);
  padding: 56px var(--pad) 28px;
}

.footer-cols {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(169, 173, 147, 0.3);
}

.footer-cols h3 {
  font-family: var(--font-accent);
  font-size: 1.7rem;
  color: var(--marigold);
  text-transform: lowercase;
  margin-bottom: 10px;
}

.footer-cols a { color: var(--prairie-pale); }

.footer-legal a, .footer-bottom a { color: var(--marigold); text-decoration: underline; }

.footer-cols ul { list-style: none; padding: 0; margin: 0; }

.footer-cols li { padding: 4px 0; }

.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.eho {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .drawer { transition: none; }
  .card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1279px) {
  /* Primary tabs collapse into the burger menu; the burger stays visible at all sizes. */
  .site-nav { display: none; }
}

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split-art { order: 0; }
  .policy-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-cols { columns: 1; }
  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Mira — leasing assistant chat widget (structure modeled on OmniEcho's Echo)
   -------------------------------------------------------------------------- */

.mira-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: min(392px, calc(100vw - 32px));
  height: min(560px, 78vh);
  background: var(--linen);
  border: 1px solid var(--prairie);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(51, 32, 63, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mira-hidden { display: none; }

.mira-head {
  background: var(--plum);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.mira-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay);
  display: grid;
  place-items: center;
  flex: none;
}

.mira-name { font-weight: 700; font-size: 0.95rem; line-height: 1.15; }

.mira-sub { font-size: 0.72rem; color: var(--prairie-pale); }

.mira-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 1.05rem;
  line-height: 1;
}

.mira-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mira-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.mira-bubble--bot {
  background: var(--white);
  border: 1px solid var(--prairie-pale);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.mira-bubble--bot a { color: var(--clay); font-weight: 600; }

.mira-bubble--user {
  background: var(--plum);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  white-space: pre-wrap;
}

.mira-starters { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.mira-starter {
  background: var(--white);
  border: 1.5px solid var(--prairie);
  color: var(--plum);
  font: 600 0.85rem var(--font-body);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
}

.mira-starter:hover { border-color: var(--clay); color: var(--clay); }

.mira-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--prairie-pale);
  background: var(--white);
}

.mira-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--prairie);
  background: var(--linen);
  font: 0.95rem var(--font-body);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  max-height: 110px;
  min-height: 42px;
}

.mira-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
}

.mira-send:hover { background: var(--plum); }

.mira-send:disabled { opacity: 0.4; cursor: not-allowed; }

.mira-note {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 10px 8px;
  background: var(--white);
  margin: 0;
}

.mira-dots { display: inline-flex; gap: 4px; padding: 4px 0; }

.mira-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--prairie);
  animation: mira-bounce 1s infinite;
}

.mira-dots span:nth-child(2) { animation-delay: 0.15s; }

.mira-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes mira-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .mira-dots span { animation: none; }
}

body.mira-open .assistant-fab { display: none; }

/* --------------------------------------------------------------------------
   Guest card form
   -------------------------------------------------------------------------- */

.form-legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--plum);
  margin: 22px 0 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--prairie-pale);
  width: 100%;
}

.form-legend:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* Yardi-style rows: name + MI + suffix / city-state-zip / DOB + license */
.field-row--name { grid-template-columns: 1fr 54px 1fr 90px; }
.field-row--csz { grid-template-columns: 1.5fr 0.8fr 1fr; }
.field-row--id { grid-template-columns: 1fr 1.1fr 0.9fr; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 6px 0 18px;
}

.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--clay); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Top-left call icon (Call Mira) */
/* Header "Call Us" button — matches the Guest Card CTA */
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clay);
  color: var(--white);
  font: 700 0.85rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-decoration: none;
  margin-right: auto;
  margin-left: 8px;
  white-space: nowrap;
}

.header-call:hover { background: var(--clay-soft); }

.topbar-call {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 6px 15px;
  border: 1.5px solid rgba(253, 252, 250, 0.55);
  border-radius: 999px;
  white-space: nowrap;
}

.topbar-call:hover { background: rgba(253, 252, 250, 0.18); }

@media (max-width: 760px) {
  .topbar { padding-left: 58px; padding-right: 58px; font-size: 0.85rem; }
  .topbar-call { padding: 5px 8px; }
  .topbar-call span { display: none; }
}

/* ==========================================================================
   Availability, range pricing & community site map  (added 2026-08-13)
   ========================================================================== */
.section--tint { background: linear-gradient(180deg, var(--prairie-pale), var(--linen)); }
.section-lead { max-width: 620px; margin: 12px auto 0; color: var(--ink-soft); }
.btn--sm { padding: 10px 18px; font-size: 0.75rem; }
.btn--wheat { background: var(--marigold); color: var(--ink); }
.btn--wheat:hover { background: var(--white); color: var(--plum); }

.avail-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font: 700 0.8rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}

.avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}
.avail-card {
  background: var(--white);
  border: 1px solid var(--prairie-pale);
  border-top: 5px solid var(--prairie);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.avail-card.is-available { border-top-color: var(--clay); }
.avail-card.is-coming { border-top-color: var(--marigold); }
.avail-card-tag {
  font: 700 0.72rem var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}
.avail-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 6px; }
.avail-card-spec { color: var(--ink-soft); margin: 0 0 14px; }
.avail-card-rent { font-family: var(--font-display); font-size: 1.7rem; color: var(--plum); margin: 0 0 4px; }
.avail-card-rent span { font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-soft); font-weight: 400; }
.avail-card-when { color: var(--ink-soft); margin: 0 0 18px; font-weight: 600; }

.avail-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--prairie);
  border-radius: 14px;
  padding: clamp(32px, 6vw, 60px);
  max-width: 640px;
  margin: 0 auto;
}
.avail-empty h3 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 12px; }
.avail-empty p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 22px; }

.price-card {
  background: var(--white);
  border: 1px solid var(--prairie-pale);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--prairie-pale);
}
.price-k { color: var(--ink-soft); font-weight: 600; }
.price-v { text-align: right; font-weight: 700; color: var(--plum); }
.price-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }

.sitemap-wrap { max-width: var(--max); margin: 0 auto; }
.sitemap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 20px;
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.legend-swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.08); }
.sitemap-frame {
  background: var(--linen);
  border: 1px solid var(--prairie-pale);
  border-radius: 14px;
  padding: 12px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.sitemap-svg { width: 100%; height: auto; min-width: 640px; display: block; }
/* The 640px floor is for the dense unit-by-unit site map, not the 2-row
   "Open homes by home size" strip: inside .sitemap-frame's overflow-x:auto it
   pushed the strip's right-anchored count labels off-screen on phones. */
.sitemap-svg.planstrip { min-width: 0; }
.home-open { animation: homePulse 2.2s ease-in-out infinite; transform-origin: center; }
@keyframes homePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.72; } }
@media (prefers-reduced-motion: reduce) { .home-open { animation: none; } }

/* ==========================================================================
   Interactive neighborhood map (Leaflet)  (added 2026-08-13)
   ========================================================================== */
.area-map-wrap { max-width: var(--max); margin: 0 auto 36px; }
.area-map {
  height: 440px;
  border-radius: 14px;
  border: 1px solid var(--prairie-pale);
  box-shadow: var(--shadow);
  z-index: 0;
}
.map-note { text-align: center; font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; }
.fv-home-pin span {
  display: block;
  width: 22px; height: 22px;
  background: var(--plum);
  border: 3px solid var(--marigold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(51,32,63,0.45);
}
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.92rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--plum); }
@media (max-width: 560px) { .area-map { height: 340px; } }

/* ==========================================================================
   Promotions (scheduled specials)  (added 2026-08-13)
   ========================================================================== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto 32px;
}
.promo-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--prairie-pale);
  border-top: 5px solid var(--clay);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.promo-card--demo { border-top-color: var(--prairie); opacity: 0.96; }
.promo-flag {
  display: inline-block;
  font: 700 0.68rem var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.promo-card--demo .promo-flag { color: var(--ink-soft); }
.promo-card h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 10px; }
.promo-card p { color: var(--ink-soft); margin: 0 0 12px; }
.promo-code { font-size: 0.95rem; color: var(--plum); }
.promo-code strong { background: var(--marigold); color: var(--ink); padding: 2px 8px; border-radius: 5px; letter-spacing: 0.04em; }
.promo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 18px; }
.promo-when { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.promo-countdown {
  font: 700 0.78rem var(--font-body);
  color: var(--white);
  background: var(--clay);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   Cinemagraph hero (Ken Burns) + video background  (added 2026-08-13)
   ========================================================================== */
.hero--cine .hero-art {
  animation: fvKenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes fvKenBurns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.2%, 0); }
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero--cine .hero-art { animation: none; }
}

/* ==========================================================================
   Video tour  (added 2026-08-13)
   ========================================================================== */
.tour-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--plum-deep);
}
.tour-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(51,32,63,0.25), rgba(51,32,63,0.72));
  color: var(--white);
}
.tour-overlay p { max-width: 460px; margin: 0; }
.tour-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btn--on-dark { color: var(--white); border-color: var(--white); }
.btn--on-dark:hover { background: var(--white); color: var(--plum); }

/* ==========================================================================
   PREMIUM POLISH LAYER  (added 2026-08-14)
   Overrides above to lift perceived quality: cinematic hero, refined sticky
   header, tighter type, richer motion + depth. Kept disciplined on purpose.
   ========================================================================== */

/* ---- Sticky header: refine on scroll -------------------------------------- */
.site-header {
  transition: box-shadow .3s ease, background .3s ease, padding .3s ease;
  will-change: box-shadow;
}
.site-header.is-scrolled {
  background: rgba(51, 32, 63, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
}
.site-header.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.header-inner { transition: padding .3s ease; }

/* ---- Immersive homepage hero --------------------------------------------- */
.hero--photo:not(.hero--page) {
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero--photo:not(.hero--page) .hero-inner {
  padding-top: clamp(60px, 10vh, 105px);
  padding-bottom: clamp(72px, 12vh, 122px);
  max-width: 900px;
}
/* Deeper, more cinematic scrim (darker foot for text, soft vignette) */
.hero--photo:not(.hero--page)::before {
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(51,32,63,0) 40%, rgba(51,32,63,0.35) 100%),
    linear-gradient(180deg, rgba(51,32,63,0.62) 0%, rgba(51,32,63,0.30) 42%, rgba(51,32,63,0.78) 100%);
}
.hero--photo:not(.hero--page) h1 {
  font-size: clamp(2.3rem, 4.9vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(33, 21, 41, 0.55);
}
.hero--photo:not(.hero--page) p {
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero .eyebrow { letter-spacing: 0.18em; }

/* Orchestrated entrance on load (hero text staggers up) */
@media (prefers-reduced-motion: no-preference) {
  .hero--photo:not(.hero--page) .hero-inner > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise .9s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero--photo:not(.hero--page) .hero-inner > *:nth-child(1) { animation-delay: .12s; }
  .hero--photo:not(.hero--page) .hero-inner > *:nth-child(2) { animation-delay: .24s; }
  .hero--photo:not(.hero--page) .hero-inner > *:nth-child(3) { animation-delay: .36s; }
  .hero--photo:not(.hero--page) .hero-inner > *:nth-child(4) { animation-delay: .48s; }
}
@keyframes heroRise { to { opacity: 1; transform: none; } }

/* Scroll cue at the foot of the immersive hero */
.hero--photo:not(.hero--page)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 22px; height: 22px;
  margin-left: -11px;
  border-right: 2px solid rgba(255,255,255,0.75);
  border-bottom: 2px solid rgba(255,255,255,0.75);
  transform: rotate(45deg);
  z-index: 2;
  animation: scrollCue 1.9s ease-in-out infinite;
}
@keyframes scrollCue { 0%,100% { transform: rotate(45deg) translateY(0); opacity:.55 } 50% { transform: rotate(45deg) translateY(7px); opacity:1 } }
@media (prefers-reduced-motion: reduce) { .hero--photo:not(.hero--page)::after { animation: none; } }

/* ---- Typography rhythm ---------------------------------------------------- */
.section-head h2 { font-size: clamp(1.7rem, 2.9vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; }
.section-head .lead { font-size: clamp(0.96rem, 1.3vw, 1.08rem); line-height: 1.62; }
.section { padding: clamp(48px, 7.5vw, 84px) var(--pad); }

/* ---- Cards: lift, shadow, image zoom ------------------------------------- */
.card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px -20px rgba(51,32,63,0.5);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.card-art { overflow: hidden; }
.card-art img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -26px rgba(51,32,63,0.55); }
.card:hover .card-art img { transform: scale(1.06); }

/* ---- Buttons: subtle lift + shadow on hover ------------------------------ */
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s ease, box-shadow .2s ease; }
.btn--primary:hover, .btn--pine:hover, .btn--wheat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(51,32,63,0.6);
}

/* ---- Scroll reveals: smoother + staggered grids -------------------------- */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.card-grid > .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.card-grid > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---- Section-tint softening + image rounding ----------------------------- */
.split-art img { border-radius: 14px; }

/* ==========================================================================
   PREMIUM INTERACTIONS  (added 2026-08-14)
   Stats band, live quick-action bar, gallery lightbox, hero parallax
   ========================================================================== */

/* ---- Stats band ---------------------------------------------------------- */
.stats-band {
  background: var(--plum-deep);
  color: var(--white);
  padding: clamp(28px, 5vw, 44px) var(--pad);
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  height: 46px; width: 1px;
  background: rgba(255,255,255,0.16);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--marigold);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font: 600 0.82rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prairie-pale);
}
@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .stat-item:nth-child(3)::before, .stat-item:nth-child(odd)::before { display: none; }
}

/* ---- Live quick-action bar ----------------------------------------------- */
.quickbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100vw - 28px);
  padding: 10px 12px 10px 20px;
  background: rgba(51, 32, 63, 0.97);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.6);
  backdrop-filter: saturate(140%) blur(6px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.quickbar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.quickbar-status { display: inline-flex; align-items: center; gap: 9px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.quickbar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 0 rgba(230,185,78,0.7); animation: qbPulse 2s infinite; }
@keyframes qbPulse { 0%{box-shadow:0 0 0 0 rgba(230,185,78,0.6)} 70%{box-shadow:0 0 0 8px rgba(230,185,78,0)} 100%{box-shadow:0 0 0 0 rgba(230,185,78,0)} }
.quickbar-actions { display: inline-flex; align-items: center; gap: 8px; }
.quickbar-link { color: var(--prairie-pale); text-decoration: none; font-size: 0.86rem; font-weight: 600; padding: 6px 4px; }
.quickbar-link:hover { color: var(--white); }
.quickbar-cta {
  background: var(--clay); color: var(--white); text-decoration: none;
  font: 700 0.78rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; transition: background .2s;
}
.quickbar-cta:hover { background: var(--marigold); color: var(--ink); }
.quickbar-call { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--white); }
.quickbar-call:hover { background: rgba(255,255,255,0.22); }
/* lift the Contact Us fab so it never overlaps the bar */
body.quickbar-open .assistant-fab { transform: translateY(-64px); }
.assistant-fab { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 620px) {
  .quickbar { gap: 10px; padding: 9px 10px 9px 16px; }
  .quickbar-link { display: none; }
  .quickbar-status { font-size: 0.84rem; }
  .quickbar-status { white-space: normal; min-width: 0; flex: 1 1 auto; }
  .quickbar-cta { flex: 0 0 auto; white-space: nowrap; }
  .quickbar-dot { animation: none; }
  /* 64px only clears the 58px desktop bar; the phone bar is taller (two-line status) */
  body.quickbar-open .assistant-fab { transform: translateY(-104px); }
}
@media (prefers-reduced-motion: reduce) { .quickbar { transition: opacity .3s ease; } .quickbar-dot { animation: none; } }

/* ---- Gallery lightbox ---------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(26, 16, 32, 0.94);
  backdrop-filter: blur(4px);
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; animation: lbFade .25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-img { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.lb-cap { color: var(--prairie-pale); font-size: 0.92rem; margin-top: 14px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .2s;
}
.lb-close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 1.3rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.26); }
body.lb-open { overflow: hidden; }
@media (max-width: 620px) { .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.6rem; } }

/* ---- Hero parallax -------------------------------------------------------- */
.hero--page.hero--photo .parallax-art { height: 136%; top: -18%; will-change: transform; }

/* --------------------------------------------------------------------------
   Specials popup — big, bold, once per session (reviewer feedback 2026-09-08)
   -------------------------------------------------------------------------- */
.special-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(26, 16, 32, 0.62); opacity: 0; transition: opacity 0.25s ease; }
.special-pop.is-open { opacity: 1; }
.special-pop-card { position: relative; max-width: 520px; width: 100%; background: var(--plum-deep); color: var(--white); text-align: center; padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px); border-top: 6px solid var(--marigold); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); transform: translateY(14px) scale(0.98); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.special-pop.is-open .special-pop-card { transform: none; }
.special-pop-eyebrow { font-family: var(--font-accent); color: var(--marigold); font-size: 1.5rem; display: block; margin-bottom: 4px; }
.special-pop-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.2rem, 9vw, 4.6rem); line-height: 0.95; text-transform: uppercase; margin: 6px 0 14px; color: var(--white); }
.special-pop-sub { color: var(--prairie-pale); max-width: 40ch; margin: 0 auto 22px; }
.special-pop-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.special-pop-later { background: none; border: 0; color: var(--prairie); font: 600 0.85rem var(--font-body); cursor: pointer; text-decoration: underline; }
.special-pop-later:hover, .special-pop-close:hover { color: var(--white); }
.special-pop-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--prairie-pale); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 6px; }
@media (prefers-reduced-motion: reduce) { .special-pop, .special-pop-card { transition: none; } }

/* Floor plans → availability drill-down */
.plan-avail { margin: 4px 0 16px; border-top: 1px solid var(--prairie-pale); padding-top: 12px; }
.plan-avail-title { font: 700 0.76rem var(--font-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--plum); margin: 0 0 8px; }
.plan-avail ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-avail li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.plan-avail li strong { color: var(--ink); font-weight: 600; }
.plan-avail-more, .plan-avail-none { font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   The Fair Grounds additions  (added 2026-09-14)
   Honest-unknown states, photo provenance captions, county footprint art.
   ========================================================================== */

/* Tiny muted caption under photos — provenance ("field photo, county records"). */
.photo-credit {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.section--dark .photo-credit { color: var(--prairie); }

/* Muted note inside a plan card when the live feed has no numbers yet ("ask our team"). */
.plan-avail-unknown { font-size: 0.88rem; margin: 0; color: var(--ink-soft); }

/* Honest empty state for the availability grid: counts unknown — never "every home is spoken for". */
.avail-unknown {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--prairie-pale);
  border-radius: 14px;
  padding: clamp(28px, 5vw, 52px);
  max-width: 640px;
  margin: 0 auto;
}
.avail-unknown h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 10px; }
.avail-unknown p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 20px; }
.avail-unknown p:last-child { margin-bottom: 0; }

/* Plan-card art holding the county footprint SVG drawings (palette line-work on white).
   Compound form included so it outranks a page-level .plan-card-art padding rule. */
.plan-card-art--svg, .plan-card-art.plan-card-art--svg {
  padding: 18px;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   Header "Call Us" button — the one posted number 405-266-6602 (added 2026-09-15, number swapped 2026-09-16)
   The full nav (natural width ~780px) and the brand (~300px) already fill the
   row, which is capped at var(--max) = 1200px, so a labelled button cannot fit
   beside them at any desktop width. Tighten the tabs, and show the button
   icon-only wherever the full nav is visible (>=1280px) and on phones
   (<=760px); the "Call Us" text shows in the tablet band between. The
   aria-label keeps announcing "Call us at 405-266-6602" whenever the text is
   hidden, and the title attribute gives a tooltip with the number.
   -------------------------------------------------------------------------- */
.site-nav a { white-space: nowrap; }
@media (min-width: 1280px) {
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 7px; letter-spacing: 0.06em; }
  .header-call { margin-left: 4px; }
}
@media (max-width: 760px), (min-width: 1280px) {
  .header-call-label { display: none; }
  .header-call { padding: 12px 13px; }
}
@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .header-call { margin-left: 0; }
}
/* Focus ring in marigold like .menu-btn (clay-on-plum was ~2:1); hover goes
   darker rather than lighter so the white label stays above 4.5:1. */
.header-call:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.header-call:hover { background: var(--clay); filter: brightness(0.88); }

/* Sticky quick-bar: keep it clear of the footer's legal lines (Equal
   Housing, policy links) when the page is scrolled to the end. */
body.quickbar-open .site-footer { padding-bottom: 100px; }

/* The button never shrinks below its icon; at the very narrowest phones the brand
   name drops a notch (and wraps to two lines — see the 2026-09-16 note below). Nav tabs collapse into the burger
   below 1280px because brand + tabs + button need the full 1200px row. */
.header-call { flex: none; }
@media (max-width: 380px) { .brand-name { font-size: 1.1rem; } }
/* 2026-09-16: the wordmark grew to "The Fair Grounds at JFK". On phones it sits on two
   lines and the small "Rental Homes · Oklahoma City" line steps aside so the header keeps
   its 74px height. Desktop is unaffected — the sub-line is wider than the name there. */
@media (max-width: 480px) { .brand-sub { display: none; } .brand-name { line-height: 1.05; } }
.brand-at { white-space: nowrap; } /* wraps as "The Fair Grounds / at JFK", never "…at / JFK" */
