/* ==========================================================================
   Fletcher Townhomes — "mountain gear" palette (retro National Park patch)
   Pulled from the Blue Ridge hero photo (assets/hero-ridge.jpg):
   canvas   #f2ead6  aged canvas / trail-map base (dominant background)
   canvas-2 #e8ddc2  deeper khaki panel
   pine     #1e3026  deep pine (hero overlay, footer, accents ONLY)
   rust     #b3532c  burnt orange, primary accent
   mustard  #d9a441  badge gold
   forest   #3d5c40  forest green
   denim    #52707f  faded slate blue (hazy ridge color)
   ink      #2b3229  warm dark text on canvas
   ========================================================================== */

:root {
  --canvas: #f2ead6;
  --canvas-2: #e8ddc2;
  --pine: #1e3026;
  --pine-2: #29402f;
  --rust: #b3532c;
  --rust-dark: #9a4523;
  --mustard: #d9a441;
  --forest: #3d5c40;
  --denim: #52707f;
  --denim-soft: #7d97a4;
  --ink: #2b3229;
  --ink-soft: #55604f;
  --line-dark: rgba(242, 234, 214, 0.16);
  --line-light: rgba(43, 50, 41, 0.16);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---- type helpers ---- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
}
.on-dark .kicker { color: var(--mustard); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.01em; }
h2 em, h1 em { font-style: italic; font-weight: 480; color: var(--rust); }
.on-dark h2 em, .on-dark h1 em { color: var(--mustard); }
.lede { font-size: 18px; max-width: 62ch; }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: linear-gradient(rgba(30, 48, 38, 0.94), rgba(30, 48, 38, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--rust);
  color: var(--canvas);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.brand-loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--denim-soft); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: rgba(242, 234, 214, 0.85);
}
.nav-links a:not(.btn):hover { color: var(--mustard); }
.nav-links a.active { color: var(--mustard); border-bottom: 2px solid var(--rust); padding-bottom: 3px; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---- buttons ---- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 13px 24px; border-radius: 4px; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--rust); color: var(--canvas); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost { border-color: rgba(242, 234, 214, 0.55); color: var(--canvas); background: transparent; }
.btn-ghost:hover { border-color: var(--mustard); color: var(--mustard); }
.btn-ghost-dark { border-color: rgba(43, 50, 41, 0.4); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--rust); color: var(--rust); }
.btn-sm { padding: 9px 14px; font-size: 11.5px; }

/* ---- hero ---- */
.hero {
  position: relative; min-height: 88vh; overflow: hidden;
  display: flex; align-items: center; color: var(--canvas);
  background: var(--pine);
}
.hero-bg {
  position: absolute; inset: -10% 0 0 0; z-index: 0;
  background: url('hero-ridge.jpg') center 62% / cover no-repeat;
  will-change: transform;
}
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(196deg, rgba(30, 48, 38, 0.18) 0%, rgba(30, 48, 38, 0.5) 55%, rgba(24, 38, 30, 0.9) 100%);
}
.hero-content { position: relative; z-index: 3; padding: 150px 24px 130px; }
.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  max-width: 12ch; margin: 18px 0 20px; letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(24, 38, 30, 0.5);
}
.hero .lede { color: rgba(242, 234, 214, 0.92); margin-bottom: 34px; text-shadow: 0 1px 14px rgba(24, 38, 30, 0.55); }
/* Fraunces at display optical sizes draws "f" with an exaggerated hooked
   terminal; render this one word at text optical size so the f stays plain. */
.of-fix { font-optical-sizing: none; font-variation-settings: 'opsz' 24; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-coords {
  position: absolute; right: 26px; bottom: 22px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(242, 234, 214, 0.6); text-align: right;
}

/* ---- ridge linework divider (badge-style motif) ---- */
.ridge-line { display: block; width: 100%; height: auto; }

/* ---- stat bar ---- */
.stats { background: var(--canvas); color: var(--ink); padding: 30px 0 60px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 2px solid var(--rust); padding-top: 40px;
}
.stat-num { font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); font-weight: 560; color: var(--rust); line-height: 1; }
.stat-num span { font-size: 0.55em; color: var(--ink); }
.stat-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); margin-top: 10px; }

/* ---- sections ---- */
section { position: relative; }
.section-head { margin-bottom: 44px; }
.section-head .kicker { display: block; margin-bottom: 14px; }
.sec-canvas { background: var(--canvas); color: var(--ink); padding: 84px 0 96px; }
.sec-khaki { background: var(--canvas-2); color: var(--ink); padding: 84px 0 96px; }
.sec-pine { background: var(--pine); color: var(--canvas); padding: 84px 0 96px; }

/* ---- homes grid ---- */
.homes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px;
}
.unit-card {
  background: #fbf7ec; border: 1px solid var(--line-light); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 0 rgba(43, 50, 41, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}
.unit-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(43, 50, 41, 0.16); }
.unit-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 3px; border: 1px solid rgba(43, 50, 41, 0.25);
}
.badge-available { background: var(--mustard); color: #2e2408; }
.badge-coming-soon { background: var(--denim); color: var(--canvas); border-color: rgba(242, 234, 214, 0.3); }
.badge-under-contract { background: var(--rust); color: var(--canvas); border-color: rgba(242, 234, 214, 0.3); }
.badge-sold { background: var(--pine); color: var(--mustard); border-color: rgba(242, 234, 214, 0.3); }
.unit-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.unit-name { font-family: var(--serif); font-size: 22px; font-weight: 580; }
.unit-specs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--denim); }
.unit-price { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--rust); }
.unit-price .tbd { font-size: 15px; color: var(--ink-soft); font-family: var(--mono); letter-spacing: 0.08em; }
.unit-note { font-size: 14px; color: var(--ink-soft); }
.unit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }

/* ---- financing band ---- */
.fin-band {
  margin-top: 56px; background: var(--pine); color: var(--canvas);
  border-radius: 10px; border: 2px solid var(--rust);
  padding: 40px 44px;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.fin-band h3 { font-size: clamp(22px, 3vw, 30px); max-width: 22ch; }
.fin-band h3 em { font-style: italic; color: var(--mustard); }
.fin-points { display: flex; gap: 28px; flex-wrap: wrap; flex: 1; min-width: 260px; }
.fin-point { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 234, 214, 0.85); }
.fin-point strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--mustard); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }
.fin-fine { flex-basis: 100%; font-size: 12.5px; color: var(--denim-soft); }

/* ---- gallery strip ---- */
.gallery-sec { background: var(--canvas); padding: 72px 0 64px; }
.gallery-strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 24px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rust) transparent;
}
.gallery-strip a { flex: 0 0 auto; scroll-snap-align: start; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-light); }
.gallery-strip img { height: 340px; width: auto; display: block; transition: transform 0.25s; }
.gallery-strip a:hover img { transform: scale(1.025); }
.gallery-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

/* ---- featured aerial (full-bleed community shot) ---- */
.feature-shot { position: relative; background: var(--pine); }
/* natural aspect ratio: never crop the buildings-plus-mountains composition */
.feature-shot img { width: 100%; height: auto; display: block; }
.feature-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 90px 0 34px;
  background: linear-gradient(180deg, rgba(30, 48, 38, 0) 0%, rgba(30, 48, 38, 0.78) 100%);
  color: var(--canvas);
}
.feature-line {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); font-weight: 560;
  margin-top: 8px; line-height: 1.1;
}
.feature-line em { font-style: italic; color: var(--mustard); }

/* ---- location ---- */
.location {
  position: relative; color: var(--canvas); padding: 110px 0 130px;
  background: var(--pine);
}
.location-bg {
  position: absolute; inset: 0;
  background: url('location-overhead.jpg') center center / cover no-repeat;
  opacity: 0.55;
}
.location-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 48, 38, 0.82) 0%, rgba(30, 48, 38, 0.22) 42%, var(--pine) 100%); }
.location .wrap { position: relative; z-index: 2; }
.location-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }
.dist-list { border-top: 1px solid var(--line-dark); }
.dist-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 2px; border-bottom: 1px solid var(--line-dark);
}
.dist-name { font-size: 16px; }
.dist-val { font-family: var(--mono); font-size: 14px; color: var(--mustard); letter-spacing: 0.06em; white-space: nowrap; }

/* ---- specs / details ---- */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 10px; }
.detail-card {
  background: #fbf7ec; border: 1px solid var(--line-light); border-left: 4px solid var(--forest);
  border-radius: 8px; padding: 26px 26px 28px;
}
.detail-card:nth-child(2) { border-left-color: var(--rust); }
.detail-card:nth-child(3) { border-left-color: var(--denim); }
.detail-card:nth-child(4) { border-left-color: var(--mustard); }
.detail-card .kicker { display: block; margin-bottom: 12px; }
.detail-card h3 { font-size: 21px; margin-bottom: 10px; }
.detail-card p { font-size: 15px; color: var(--ink-soft); }

/* ---- floor plan teaser (landing page) ---- */
.teaser-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.teaser-cols .fp-facts-row { margin: 26px 0 30px; }
.teaser-thumb { display: block; text-decoration: none; max-height: 480px; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; }
.teaser-thumb img { object-fit: cover; object-position: top; height: 444px; width: 100%; }
.teaser-thumb:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(43, 50, 41, 0.16); }

/* ---- floor plans page ---- */
.page-head { background: var(--pine); color: var(--canvas); padding: 140px 0 70px; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 58px); margin-top: 14px; letter-spacing: -0.01em; }
.badge-static { position: static; display: inline-block; }
.unit-head { margin-bottom: 10px; }
.unit-head h2 em { font-style: normal; color: var(--rust); }

/* ---- floor plan ---- */
.floorplan-sec { margin-top: 70px; }
.floorplan-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 34px 0 8px; }
.fp-card { background: #fff; border: 1px solid var(--line-light); border-radius: 8px; padding: 18px; }
.fp-card img { width: 100%; height: auto; }
.fp-card figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); padding-top: 12px; text-align: center; }
.fp-facts-row { display: flex; gap: 34px; flex-wrap: wrap; margin: 26px 0 26px; }
.fp-fact { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.fp-fact strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--forest); letter-spacing: 0; margin-bottom: 3px; }
.fp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- tour CTA ---- */
.tour { text-align: center; padding: 96px 0 104px; }
.tour h2 { max-width: 20ch; margin: 14px auto 16px; }
.tour p { max-width: 56ch; margin: 0 auto 34px; color: rgba(242, 234, 214, 0.85); }
.tour-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- contact ---- */
.contact-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-form { background: #fbf7ec; border: 1px solid var(--line-light); border-top: 4px solid var(--rust); border-radius: 8px; padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  /* 16px minimum: below that, iOS Safari zooms the page on focus */
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 12px 13px; border: 1px solid rgba(43, 50, 41, 0.25); border-radius: 4px;
  background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rust); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -6000px; top: -6000px; }
.form-status { margin-top: 14px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; color: var(--forest); }
.form-status.err { display: block; color: var(--rust-dark); }
.contact-aside h2 { margin-bottom: 18px; }
.contact-aside p { margin-bottom: 22px; color: var(--ink-soft); }
.broker-block { border-top: 2px solid var(--rust); padding-top: 22px; font-size: 15px; line-height: 1.9; }
.broker-block .kicker { display: block; margin-bottom: 10px; }
.broker-block a { color: var(--rust); text-decoration: none; }
.broker-block a:hover { text-decoration: underline; }

/* ---- footer ---- */
footer { background: var(--pine); color: rgba(242, 234, 214, 0.8); padding: 58px 0 46px; border-top: 3px solid var(--rust); }
.foot-cols { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--canvas); }
.foot-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--denim-soft); margin-top: 8px; }
.foot-contact { font-size: 14.5px; line-height: 2; }
.foot-contact a { color: var(--mustard); text-decoration: none; }
.foot-disclosure {
  display: flex; align-items: center; gap: 12px;
  margin-top: 34px; font-size: 13px; line-height: 1.6;
  color: rgba(242, 234, 214, 0.82);
}
.foot-disclosure img { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 6px; }
.foot-fine {
  border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--denim-soft);
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-toggle-label { display: block; margin-left: auto; cursor: pointer; padding: 10px; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 22px; height: 2px; background: var(--canvas); position: relative; content: '';
  }
  .nav-toggle-label span::before { position: absolute; top: -7px; }
  .nav-toggle-label span::after { position: absolute; top: 7px; }
  .brand { margin-right: 0; padding: 17px 0; }
  .brand-loc { display: none; }
  /* height:auto so the opened menu grows the bar and keeps its background */
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 64px; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 10px 0 22px;
  }
  .nav-links a { padding: 10px 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .location-cols, .contact-cols, .floorplan-imgs, .teaser-cols { grid-template-columns: 1fr; gap: 40px; }
  .page-head { padding: 120px 0 56px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-content { padding: 130px 24px 110px; }
  .hero-coords { display: none; }
  .gallery-strip img { height: 250px; }
  .fin-band { padding: 32px 26px; }
  /* phones: the natural-ratio aerial is short, so the caption sits under the
     photo in a pine band instead of covering half of it */
  .feature-cap { position: static; background: var(--pine); padding: 20px 0 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { transform: none !important; }
}
