/* ==========================================================================
   Creekside Haven — Design System & Styles
   New-construction apartment homes | Montgomery, Texas
   Static site: no build step, no dependencies.
   ========================================================================== */

/* ------------------------------- Tokens -------------------------------- */
:root {
  /* Brand palette — creekside / Piney Woods */
  --forest: #16362b;
  --forest-2: #1e4a3a;
  --moss: #2f6b4f;
  --moss-2: #3f8460;
  --sage: #8aa894;
  --creek: #2b7d92;
  --creek-2: #3f9bb0;
  --brass: #c08a3e;
  --brass-2: #dcab5f;
  --sand: #f6f1e7;
  --sand-2: #efe7d8;
  --cream: #fffdf9;
  --white: #ffffff;
  --line: #e5dccb;
  --ink: #1b2b25;
  --ink-soft: #55665e;

  /* Functional */
  --bg: var(--cream);
  --text: var(--ink);
  --muted: var(--ink-soft);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(22, 54, 43, .07);
  --shadow: 0 16px 44px rgba(22, 54, 43, .13);
  --shadow-lg: 0 34px 80px rgba(22, 54, 43, .2);
  --ring: 0 0 0 4px rgba(43, 125, 146, .25);

  /* One quiet green. It ends on --forest-2, which is also the fact strip's
     background, so the two meet with no visible seam. The gold and teal
     radial glows that used to sit on top of this are gone. */
  --grad-hero: linear-gradient(180deg, #143022 0%, #1a4030 58%, #1e4a3a 100%);
  --grad-brass: linear-gradient(135deg, var(--brass-2) 0%, var(--brass) 100%);
  --grad-moss: linear-gradient(135deg, var(--moss-2) 0%, var(--creek) 100%);
}

/* ------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--creek-2); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.015em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p + p { margin-top: .9rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--white); color: var(--forest); padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  padding: .85rem 1.6rem; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-brass); color: #2a1c06; }
.btn-moss { background: var(--grad-moss); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--forest); }
.btn-sm { padding: .6rem 1.15rem; font-size: .93rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-seal { width: 104px; height: 104px; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  color: var(--forest); letter-spacing: -.02em;
}
.brand-sub {
  font-size: .68rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--moss); font-weight: 600;
}
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  text-decoration: none; padding: .55rem .8rem; border-radius: 999px;
  font-weight: 500; font-size: .97rem; color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--sand); color: var(--forest); }
.nav a.active { color: var(--forest); font-weight: 600; }
.nav .btn { margin-left: .4rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  font-weight: 600; color: var(--forest); text-decoration: none; font-size: .97rem;
  padding: .55rem .7rem;
}
.nav-phone svg { width: 18px; height: 18px; flex: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: 12px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--forest); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle::before { top: 14px; }
.nav-toggle::after { top: 28px; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.4rem; gap: .2rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav .btn { margin: .6rem 0 0; }
}

/* -------------------------------- Hero --------------------------------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(2.8rem, 5.6vw, 4.9rem) 0 clamp(3.2rem, 6vw, 5.2rem);
}
/* Sized here rather than inheriting the global h1. The <br> puts each sentence
   on its own line; the job of the ceiling is to keep the longer of the two,
   "Close to what matters.", inside the text column so it does not wrap and
   strand its last word. The text column was widened for the same reason.
   text-wrap: balance only matters at the narrow end, where a sentence has to
   wrap however it is sized: it evens the two lines instead of leaving one word
   alone. Browsers without it fall back to ordinary wrapping. */
.hero h1 { color: #fff; font-size: clamp(2.05rem, 3.9vw, 3.15rem); text-wrap: balance; }
.hero p.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 34rem; margin-top: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--brass-2); background: rgba(220, 171, 95, .14);
  border: 1px solid rgba(220, 171, 95, .38);
  padding: .42rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow.dark { color: var(--moss); background: rgba(47, 107, 79, .09); border-color: rgba(47, 107, 79, .25); }
.hero .btn-row { margin-top: 1.9rem; }
.hero-art {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.16);
  background: #0e2a21;
}
.hero-art svg, .hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art { order: -1; }
}
/* Narrower than this, the 2.2rem floor above is wider than the column and the
   headline's second line breaks; track the viewport instead of holding it. */
@media (max-width: 408px) {
  .hero h1 { font-size: 8.1vw; }
}

/* ---------------------------- Fact strip -------------------------------- */
/* The strip rides up over the hero, and the transform does not shrink the
   section, so the matching negative margin takes back the band of dead green
   it would otherwise leave underneath. */
.facts { background: var(--forest-2); color: #fff; margin-bottom: -38px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden;
  transform: translateY(-38px); box-shadow: var(--shadow);
}
.fact { background: var(--forest-2); padding: 1.35rem 1.25rem; display: grid; align-content: start; }
.fact dt { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brass-2); font-weight: 700; }
/* "Washer & dryer included" is the longest of the four values; the ceiling is
   what keeps it on one line so the row does not end up one line taller than
   the other three. */
.fact dd { font-family: var(--font-display); font-size: clamp(1.02rem, 1.02vw + .18rem, 1.2rem); margin-top: .34rem; }
.facts.flat { margin-bottom: 0; }
.facts.flat .facts-grid { transform: none; }
/* The strip already supplies the separation; the section below it does not
   need a full helping of its own on top. */
.why-section { padding-top: clamp(2.6rem, 4.4vw, 3.9rem); }
/* Three benefit cards in two columns leave the third alone with a hole beside
   it, which reads as a mistake rather than a layout. Go three to one. Scoped
   to this section so .grid-3 keeps its two-column step elsewhere, where the
   grids do not hold exactly three items. */
@media (max-width: 980px) { .why-section .grid-3 { grid-template-columns: 1fr; } }
/* These step down earlier than they used to. "Washer & dryer included" is a
   good deal longer than the "Now leasing" it replaced, and a column under
   roughly 224px wraps it onto a second line while the other three stay on one,
   which leaves the row visibly lopsided. Measured, not guessed. */
@media (max-width: 1000px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .facts-grid { grid-template-columns: 1fr; } }

/* ------------------------------ Sections -------------------------------- */
.section { padding: clamp(3.4rem, 6.5vw, 5.6rem) 0; }
.section.tight { padding: clamp(2.4rem, 4vw, 3.4rem) 0; }
.section.sand { background: var(--sand); }
.section.forest { background: var(--forest); color: #fff; }
.section.forest h2, .section.forest h3 { color: #fff; }
.section.forest .muted { color: rgba(255,255,255,.72); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); margin-top: .85rem; font-size: 1.06rem; }
.section.forest .section-head p { color: rgba(255,255,255,.76); }

/* "Why Creekside Haven": the heading and its paragraph sit beside a photo,
   with the three benefit cards in a row underneath. The photo carries the
   hero's larger radius so the two read as the same family. */
.why-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 3.4vw, 3.2rem); align-items: center;
  margin-bottom: clamp(2.2rem, 3.8vw, 3.2rem);
}
.why-intro .section-head { max-width: none; margin-bottom: 0; }
.why-figure { margin: 0; }
.why-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.why-figure figcaption { margin-top: .75rem; font-size: .84rem; }
@media (max-width: 900px) {
  .why-intro { grid-template-columns: 1fr; gap: clamp(1.4rem, 3vw, 2rem); }
}

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* -------------------------------- Cards --------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .99rem; }
.section.forest .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section.forest .card p { color: rgba(255,255,255,.74); }

.pillar-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-moss); color: #fff; margin-bottom: 1rem;
}
.pillar-icon svg { width: 26px; height: 26px; }
.card.brass .pillar-icon { background: var(--grad-brass); color: #2a1c06; }

/* ----------------------------- Floor plans ------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600; font-size: .93rem; cursor: pointer;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--moss); color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

.plan-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-figure { background: #fff; border-bottom: 1px solid var(--line); padding: .9rem .9rem .4rem; }
.plan-figure svg, .plan-figure img { width: 100%; height: auto; display: block; }
.plan-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.plan-name h3 { margin: 0; }
.plan-type { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--moss); }
.plan-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1rem; }
.tag {
  background: var(--sand); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .75rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.plan-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--forest); }
.plan-price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 400; }
.plan-body ul { margin: 0 0 .9rem; padding-left: 1.1rem; color: var(--muted); font-size: .96rem; }
.plan-note { margin: 0 0 1.2rem; font-size: .84rem; color: var(--muted); }
.plan-body ul li { margin-bottom: .3rem; }
.plan-body .btn-row { margin-top: auto; }

/* ------------------------------ Amenities ------------------------------- */
.amenity-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem 1.6rem; }
.amenity-list li {
  list-style: none; display: flex; gap: .65rem; align-items: flex-start;
  padding: .45rem 0; font-size: 1rem;
}
.amenity-list li svg { width: 20px; height: 20px; flex: none; margin-top: .25rem; color: var(--brass); }
.section.forest .amenity-list li svg { color: var(--brass-2); }
@media (max-width: 860px) { .amenity-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenity-list { grid-template-columns: 1fr; } }

/* ------------------------------- Gallery -------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.shot {
  position: relative; border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: var(--sand);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* The filter chips hide items with the `hidden` attribute. These elements set an
   explicit display, which as author rules beat the browser's [hidden] rule, so the
   attribute alone would not hide them. */
.shot[hidden], .plan-card[hidden] { display: none; }
.shot svg { width: 100%; height: auto; }
.shot img { width: 100%; height: auto; display: block; aspect-ratio: 800 / 560; object-fit: cover; }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; text-align: left;
  background: linear-gradient(to top, rgba(16, 43, 34, .88), transparent);
  color: #fff; padding: 2.2rem .95rem .8rem; font-size: .93rem; font-weight: 600;
}
.shot.tall { grid-row: span 2; }

/* ---- Gallery page ------------------------------------------------------
   Scoped, because index.html reuses .gallery-grid and .shot for its strip.   */

/* The photographs are the page, so the run-up to them is short. */
.gallery-section { padding-top: clamp(2.4rem, 4.2vw, 3.6rem); padding-bottom: clamp(3rem, 5vw, 4.2rem); }
.gallery-section .section-head { margin-bottom: 1.05rem; }
.gallery-section .filter-bar { margin-bottom: .9rem; }

/* Every tile the same box: 3:2, three equal columns, 20px gaps. No masonry and
   no per-image height, so rows line up whichever filter is showing. */
.gallery-section .gallery-grid { gap: 20px; }
.gallery-section .shot { aspect-ratio: 3 / 2; }
.gallery-section .shot img {
  width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; object-position: center;
}

.gallery-section .shot img { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.gallery-section .shot:hover img,
.gallery-section .shot:focus-visible img { transform: scale(1.035); }

/* The neighborhood photographs introduce themselves from inside the grid, on a
   row of their own, so the filter keeps working and nothing is shown twice.
   It steps back out of the way when those tiles are filtered out. */
.gallery-break { grid-column: 1 / -1; max-width: 42rem; padding-block: clamp(1.6rem, 3vw, 2.6rem) .35rem; }
.gallery-break h2 { margin-top: .15rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.gallery-break p { color: var(--muted); margin-top: .5rem; font-size: 1rem; }
.gallery-grid:has(.shot[data-cat="neighborhood"][hidden]) .gallery-break { display: none; }


/* The photograph is the point; the caption sits under a softer wash, a step
   smaller and a weight lighter. */
.gallery-section .shot figcaption {
  background: linear-gradient(to top, rgba(16, 43, 34, .74), rgba(16, 43, 34, .32) 48%, transparent);
  color: rgba(255,255,255,.93); padding: 2rem .9rem .72rem;
  font-size: .86rem; font-weight: 500; line-height: 1.35;
}

.gallery-note { font-size: .88rem; margin-top: 1.4rem; max-width: 46rem; }

/* A clear break before the site plan, so it reads as its own section. */
.map-section { padding-top: clamp(4.4rem, 8vw, 7rem); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(11, 30, 24, .9); padding: 4vh 4vw; place-items: center;
}
.lightbox.open { display: grid; }
.lightbox figure { max-width: 1000px; width: 100%; }
.lightbox svg, .lightbox img { width: 100%; height: auto; display: block;
  border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; font-size: 1rem; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------------------------- Neighborhood ------------------------------ */
.drive-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.drive-table th, .drive-table td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.drive-table thead th { background: var(--sand); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.drive-table tbody tr:last-child td { border-bottom: 0; }
.drive-table th:last-child, .drive-table td:last-child { text-align: right; white-space: nowrap; }
.drive-table td:last-child { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.place-card, .highlight-list li { display: flex; gap: 1rem; align-items: flex-start; }
.place-card .dot, .highlight-list .dot {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--sand); color: var(--moss); border: 1px solid var(--line);
}
.place-card .dot svg, .highlight-list .dot svg { width: 20px; height: 20px; }

/* --------------------------- Neighborhood page --------------------------- */
.nb-hero { background: var(--cream); padding: clamp(3rem, 6vw, 5.6rem) 0 clamp(1.5rem, 2.6vw, 2.3rem); }
.nb-hero__grid {
  display: grid; grid-template-columns: 37fr 63fr; align-items: center;
  gap: clamp(1.8rem, 3.6vw, 3.2rem);
}
.nb-hero__text h1 {
  margin: 1rem 0 0; font-size: clamp(1.8rem, 2.85vw, 2.7rem); line-height: 1.16;
}
.nb-hero__text p {
  margin-top: 1.3rem; color: var(--muted); font-size: 1.06rem; max-width: 44ch;
}
.nb-hero__figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
/* 16:9, which is what the downtown photograph is: the street stays centred, the
   frame keeps both sides of it, and it matches the supporting photograph below.
   object-fit: cover stays so a replacement of another shape still fills the box. */
.nb-hero__figure img {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover;
}

.nb-highlights-band { border-top: 1px solid var(--line); background: var(--cream); }
.nb-highlights {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
}
.nb-highlights li {
  text-align: center; border-left: 1px solid var(--line);
  padding: clamp(1.8rem, 3.4vw, 2.8rem) clamp(1rem, 1.8vw, 1.7rem);
}
.nb-highlights li:first-child { border-left: 0; }
.nb-highlights .dot {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1.15rem; display: grid;
  place-items: center; background: var(--sand); color: var(--moss); border: 1px solid var(--line);
}
.nb-highlights .dot svg { width: 30px; height: 30px; }
.nb-highlights h3 { margin: 0 0 .55rem; font-size: 1.1rem; }
.nb-highlights p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contained rather than full-bleed: one supporting photograph should read as
   support for the page, not as a banner across it. Two share the row when The
   DEN joins Lake Conroe; data-count is how many there are. */
.nb-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  /* The section above already ends on its own padding, so the top here is
     small on purpose: the two together were leaving a dead band. */
  padding-block: clamp(.4rem, 1vw, .9rem) clamp(2.6rem, 5vw, 4.2rem);
}
.nb-strip[data-count="1"] { grid-template-columns: 1fr; max-width: 46rem; }
.nb-strip figure {
  position: relative; margin: 0; overflow: hidden; background: var(--forest);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.nb-strip svg, .nb-strip img {
  width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 3 / 2;
}
.nb-strip figure { aspect-ratio: 3 / 2; }
.nb-strip figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1.1rem 1.2rem; text-align: center;
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(12, 32, 25, .88), rgba(12, 32, 25, .5) 48%, transparent);
}
.nb-strip figcaption span {
  display: block; margin-top: .35rem; font-weight: 500; letter-spacing: .1em;
  color: rgba(255, 255, 255, .82);
}

/* Unused since the closing lake band came off the neighborhood page; kept so
   restoring that section needs nothing but its markup. */
.lake-band { display: block; background: var(--forest); }
.lake-band img { width: 100%; height: auto; display: block; }

/* The FAQ sits between the ISD band and the lake image; a little more air
   on each side keeps it from reading as part of either. */
.nb-faq { padding-block: clamp(4.4rem, 8vw, 7rem); }

.nb-isd { background: #eaf0e9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nb-isd .container {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1.3rem, 3vw, 2.6rem); padding-block: clamp(2rem, 3.6vw, 2.9rem);
}
.nb-isd .dot {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: #dbe6d9; color: var(--moss);
}
.nb-isd .dot svg { width: 30px; height: 30px; }
.nb-isd h3 { margin: 0 0 .5rem; }
.nb-isd p { margin: 0; color: var(--muted); max-width: 48ch; }
.nb-isd__link { border-left: 1px solid rgba(47, 107, 79, .22); padding-left: clamp(1.3rem, 3vw, 2.6rem); }
.nb-isd__link a {
  display: inline-block; padding-bottom: .5rem; border-bottom: 2px solid var(--brass);
  color: var(--moss); font-size: .8rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none;
}
.nb-isd__link a:hover { color: var(--forest); }

@media (max-width: 960px) {
  .nb-highlights { grid-template-columns: 1fr 1fr; }
  .nb-highlights li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .nb-highlights li:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  /* Stack rather than squeeze: copy first, then a full-width landscape photo. */
  .nb-hero__grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 2.6rem); }
  .nb-hero__text h1 br { display: none; }
  .nb-isd .container { grid-template-columns: auto 1fr; }
  .nb-isd__link { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}
@media (max-width: 1099px) {
  /* Three tiles never split evenly in two columns -- two up and a lone
     third leaves an obvious hole -- so go straight from three to one.
     1099 rather than a rounder number because that is where the cards fall
     under ~330px and "Historic Downtown Montgomery" wraps to two lines,
     leaving one caption taller than the other two. */
  .nb-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nb-highlights { grid-template-columns: 1fr; }
  .nb-highlights li { border-left: 0; border-top: 1px solid var(--line); }
  .nb-highlights li:first-child { border-top: 0; }
}

/* -------------------------------- Steps --------------------------------- */
.steps, .grid { counter-reset: step; }
.steps { display: grid; gap: 1.2rem; }
.step {
  position: relative; padding-left: 4rem; min-height: 3rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-moss); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); }
.section.forest .step p { color: rgba(255,255,255,.74); }

/* -------------------------------- Forms --------------------------------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.field { display: grid; gap: .4rem; margin-bottom: 1.05rem; }
.field label { font-weight: 600; font-size: .94rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem;
  background: var(--cream); width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--creek); box-shadow: var(--ring);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.checkline input { width: auto; margin-top: .25rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .9rem; }
.form-success {
  display: none; background: rgba(47, 107, 79, .1); border: 1px solid var(--moss);
  color: var(--forest); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.1rem; font-weight: 600;
}
.form-success.show { display: block; }

/* ----------------------------- Contact page ------------------------------
   Scoped to .contact-page / .contact-faq: the form and FAQ styles above are
   shared, and nothing else on the site should move. --------------------- */

/* Near-equal columns, the form a little wider because it carries more. */
.contact-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 4.5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Lighter than the shared card: one hairline, no drop shadow. */
.contact-page .form-card {
  box-shadow: none; border-color: var(--line);
  border-radius: var(--radius); background: var(--white);
}

/* Every control exactly the same height. A date input and a select each come
   with their own idea of one, so the height is set rather than suggested and
   the vertical padding comes off; both centre their own text. */
.contact-page .field input,
.contact-page .field select {
  height: 54px; padding-block: 0; line-height: normal; box-sizing: border-box;
}
.contact-page .field { margin-bottom: 1.15rem; }
.contact-page .field-row { gap: 1.1rem; }
.field-opt { font-weight: 400; color: var(--muted); }

/* A select sized for its own arrow, so the longest option still reads in full. */
.contact-page .field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316362b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px 18px;
  text-overflow: ellipsis;
}
.contact-page .form-actions { margin-top: 1.4rem; }

/* The honeypot. Off-screen rather than display:none, which some bots check for,
   and out of the tab order and the accessibility tree so no person meets it. */
.hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The three things a submit can honestly say. */
.form-error, .form-offline { display: none; border-radius: 12px; padding: 1rem 1.1rem;
  margin-bottom: 1.1rem; font-weight: 600; }
.form-error.show, .form-offline.show { display: block; }
.form-error { background: rgba(176, 58, 46, .09); border: 1px solid #b03a2e; color: #8c2d24; }
.form-offline { background: rgba(192, 138, 62, .12); border: 1px solid var(--brass); color: #6b4a16; }
.form-error a, .form-offline a { color: inherit; }

/* One panel, no box: whitespace and hairlines do the separating. */
.connect { padding-top: .35rem; }
.connect h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0 0 1.4rem; }
.connect-list { list-style: none; margin: 0; padding: 0; }
.connect-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.connect-list li:last-child { border-bottom: 1px solid var(--line); }
.connect-ico {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(192, 138, 62, .45); border-radius: 50%; color: var(--brass);
}
.connect-ico svg { width: 18px; height: 18px; }
.connect-body { display: grid; gap: .15rem; }
.connect-label {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
}
.connect-body a { color: var(--forest); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.connect-body a:hover { text-decoration: underline; }
.connect-note { color: var(--muted); font-size: .95rem; margin: 1.3rem 0 1.6rem; max-width: 34ch; }
/* Directions sit off the end of the panel, separated by the same hairline the
   contact rows use rather than a box of their own. */
.connect-find { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.connect-find h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.connect-find p { color: var(--muted); font-size: .95rem; margin: 0 0 1.4rem; max-width: 38ch; }
.connect-find p a { color: var(--forest); font-weight: 600; }
/* A quiet second route out of the directions block: the page stays about
   getting here, with one link to what is nearby. */
.connect-explore { margin: 1rem 0 0; font-size: .95rem; }
.connect-explore a { color: var(--moss); font-weight: 600; text-decoration: none; }
.connect-explore a:hover { text-decoration: underline; }
/* Solid deep green, not the teal gradient. */
.connect-cta { background: var(--forest); color: #fff; }
.connect-cta:hover { background: var(--forest-2); }

/* The FAQ loses its shadows here too. */
.contact-faq .faq details { box-shadow: none; }

/* --------------------------- Neighborhood map ---------------------------
   The map itself is a Google My Maps embed: Google places every pin from its
   own index, so no coordinate here is anyone's recollection. Everything around
   it is ours. --------------------------------------------------------- */
.nb-map__grid {
  display: grid; grid-template-columns: 2.1fr 1fr;
  gap: clamp(1.4rem, 2.6vw, 2.2rem); align-items: start;
}
@media (max-width: 900px) { .nb-map__grid { grid-template-columns: 1fr; } }

/* No overlay and no cropping: Google's attribution sits inside the frame and
   has to stay legible. */
/* The My Maps header -- title, owner, "made with Google My Maps", share and
   fullscreen -- has no parameter that turns it off, so it is clipped instead:
   the clip box is the size we want, the iframe inside is taller by exactly the
   header and shifted up by the same amount, so the header renders above the
   visible area. Google's map-data attribution is at the BOTTOM of the canvas
   and is deliberately untouched. --map-header is the one number to tune. */
.nb-map__clip {
  --map-header: 64px;
  position: relative; overflow: hidden; aspect-ratio: 5 / 4;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-2);
}
.nb-map__clip > iframe {
  position: absolute; left: 0; top: calc(var(--map-header) * -1);
  width: 100%; height: calc(100% + var(--map-header));
  border: 0; display: block;
}
/* Narrow enough and the header wraps to two lines, so more has to come off. */
@media (max-width: 560px) { .nb-map__clip { --map-header: 88px; } }

/* Clipping takes the fullscreen control with it; this is the way out. */
.nb-map__larger { margin-left: auto; font-weight: 600; color: var(--moss); text-decoration: none; }
.nb-map__larger:hover { text-decoration: underline; }
/* My Maps will not guarantee a permanent label on a pin, so the anchor names
   itself here instead: always visible, in our palette, and outside the frame so
   it covers nothing Google needs to show. */
.nb-map__legend {
  display: flex; align-items: center; gap: .55rem; margin: .8rem 0 0;
  font-size: .9rem; font-weight: 600; color: var(--forest);
}
.nb-map__legend-pin {
  flex: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--forest); box-shadow: 0 0 0 3px rgba(22, 54, 43, .16);
}

.nb-map__list { list-style: none; margin: 0; padding: 0; }
.nb-map__list li + li { border-top: 1px solid var(--line); }
.nb-map__list a {
  display: flex; align-items: center; gap: .85rem; padding: .85rem .2rem;
  text-decoration: none; color: var(--ink);
  transition: background .16s ease, padding-left .16s ease;
  border-radius: var(--radius-sm);
}
.nb-map__list a:hover { background: var(--sand); padding-left: .6rem; }
.nb-map__ico {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(192, 138, 62, .45); border-radius: 50%; color: var(--brass);
}
.nb-map__ico svg { width: 17px; height: 17px; }
.nb-map__body { display: grid; gap: .1rem; min-width: 0; }
.nb-map__name { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.nb-map__kind { color: var(--muted); font-size: .84rem; }
.nb-map__go { margin-left: auto; color: var(--brass); font-size: 1.05rem; flex: none; }

/* The property is the anchor of the map, so it reads as the anchor of the list. */
.nb-map__list .is-home a { background: var(--forest); color: #fff; padding-inline: .9rem; }
.nb-map__list .is-home a:hover { background: var(--forest-2); }
.nb-map__list .is-home .nb-map__ico {
  border-color: rgba(220, 171, 95, .55); color: var(--brass-2);
}
.nb-map__list .is-home .nb-map__kind { color: rgba(255,255,255,.72); }
.nb-map__list .is-home .nb-map__go { color: var(--brass-2); }
.nb-map__list .is-home + li { border-top: 0; }

/* The site plan is a wide drawing in a white card: let it fill the card and
   keep its own proportions. */
.site-plan img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* --------------------------------- FAQ ---------------------------------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--moss); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* ------------------------------ Quote card ------------------------------ */
.quote-card {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.quote-card p { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; }
.quote-card footer { margin-top: .9rem; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ------------------------------- CTA band -------------------------------- */
.cta-band { background: var(--grad-moss); color: #fff; }
.cta-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: clamp(2.2rem, 4vw, 3.2rem) 1.25rem;
}
.cta-band h2 { color: #fff; max-width: 30rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .5rem; max-width: 34rem; }

/* -------------------------------- Footer --------------------------------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.78); padding: 3.2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: .9rem; font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .96rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--brass-2); }
.footer-brand p { font-size: .95rem; margin-top: .9rem; max-width: 24rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .87rem;
}
.eho { display: flex; align-items: center; gap: .6rem; }
.eho svg { width: 26px; height: 26px; flex: none; color: #fff; }

/* ------------------------------- Reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .plan-card:hover, .shot:hover { transform: none; }
  .gallery-section .shot img,
  .gallery-section .shot:hover img,
  .gallery-section .shot:focus-visible img { transform: none; transition: none; }
}
