/* ============================================================
   ZEN CASA HOMES — shared stylesheet
   Used by every page. Brand tokens below match
   ZenCasaHomes_Brandguide_2025. See index.html for the font note
   about Hagrid vs. Bricolage Grotesque.
   ============================================================ */

:root{
  --umber:#2B160F;
  --silk:#F7F1E1;
  --antique:#B4833D;
  --sage:#81754C;
  --sand:#E3D8C2;
  --terracotta:#66381C;
  --monstera:#413F2B;

  --cream: var(--silk);
  --cream-2: var(--sand);
  --paper:#F7F1E1;
  --espresso: var(--umber);
  --espresso-2:#3B2013;
  --olive: var(--sage);
  --olive-dark: var(--monstera);
  --gold: var(--antique);
  --gold-light:#CDAB6E;
  --stone:#9C9277;
  --ink: var(--umber);
  --ink-soft:#5C4B3B;
  --line: rgba(43,22,15,0.15);
  --line-dark: rgba(247,241,225,0.16);
  --radius: 2px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Serif',serif;
  font-weight:200;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Bricolage Grotesque',sans-serif;
  font-weight:500;
  letter-spacing:0.03em;
  margin:0;
  color:var(--ink);
}
.eyebrow{
  font-family:'IBM Plex Serif',serif;
  font-style:italic;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-size:18px;
  color:var(--olive-dark);
}
.eyebrow.on-dark{ color:var(--gold-light); }
.brand-label{
  font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:13px;
  letter-spacing:0.18em; text-transform:uppercase; color:var(--olive-dark);
}
.brand-wordmark{ height:26px; width:auto; display:block; margin:0 auto; color:var(--olive-dark); }
.section-icon-mark{ height:40px; width:auto; display:block; margin:0 auto 18px; }
p{ color:var(--ink-soft); }
a{ color:inherit; }
img{max-width:100%;display:block;}
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
section{ position:relative; }
::selection{ background:var(--olive); color:var(--cream); }
button{ font-family:inherit; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

/* reveal animation */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity 0.9s ease, transform 0.9s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* buttons (shared) */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 26px; font-size:13.5px; font-weight:600; letter-spacing:0.03em;
  text-decoration:none; border:1px solid transparent; cursor:pointer; background:none;
  transition:all .3s ease; font-family:'IBM Plex Serif',serif;
}
.btn-gold{ background:var(--gold); color:var(--espresso); }
.btn-gold:hover{ background:var(--gold-light); }
.btn-outline-dark{ border-color:rgba(245,239,226,0.4); color:var(--cream); }
.btn-outline-dark:hover{ border-color:var(--cream); background:rgba(245,239,226,0.08); }
.btn-outline-light{ border-color:var(--ink); color:var(--ink); }
.btn-outline-light:hover{ background:var(--ink); color:var(--cream); }
.btn-solid-dark{ background:var(--ink); color:var(--cream); }
.btn-solid-dark:hover{ background:var(--olive-dark); }

/* ripple / topo signature (hero background) */
.ripple-field{ position:absolute; inset:0; z-index:1; opacity:0.5; }
.ripple-field svg{ width:100%; height:100%; }
.ripple-line{ fill:none; stroke:var(--gold); stroke-width:1; opacity:0.35; }
.ripple-line.r2{ stroke:var(--olive); opacity:0.28; }
@keyframes rippleMove{
  0%{ stroke-dashoffset:0; }
  100%{ stroke-dashoffset:-600; }
}
.ripple-anim{ stroke-dasharray:4 10; animation: rippleMove 34s linear infinite; }

.contour-divider{ width:100%; display:block; line-height:0; }
.contour-divider svg{ width:100%; height:64px; display:block; }

/* ============================================================
   TOP BAR + NAVIGATE OVERLAY
   A slim persistent bar (logo + "Navigate" trigger) opens a
   full-screen overlay: link list on the left under a static
   "Explore" label, and the two communities as clickable tiles
   on the right — so the nav itself doubles as a way in, not
   just a list of words.
   ============================================================ */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 40px;
  background:rgba(251,248,241,0.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .4s ease, background .4s ease, padding .4s ease;
}
.topbar.scrolled{ border-bottom:1px solid var(--line); padding:14px 40px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-logo{ height:46px; width:auto; display:block; transition:height .4s ease; }
.topbar.scrolled .brand-logo{ height:36px; }

.nav-trigger{
  display:flex; align-items:center; gap:12px;
  background:none; border:none; cursor:pointer; padding:6px 0;
  font-family:'Bricolage Grotesque',sans-serif; font-size:15px; font-weight:400;
  letter-spacing:0.13em; text-transform:uppercase; color:var(--ink);
}
.nav-trigger .glyph{ width:26px; height:16px; position:relative; }
.nav-trigger .glyph span{
  position:absolute; left:0; right:0; height:1.5px; background:var(--ink);
  transition:transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-trigger .glyph span:nth-child(1){ top:0; }
.nav-trigger .glyph span:nth-child(2){ top:7px; }
.nav-trigger .glyph span:nth-child(3){ top:14px; }
body.nav-open .nav-trigger .glyph span:nth-child(1){ top:7px; transform:rotate(45deg); }
body.nav-open .nav-trigger .glyph span:nth-child(2){ opacity:0; }
body.nav-open .nav-trigger .glyph span:nth-child(3){ top:7px; transform:rotate(-45deg); }

.nav-overlay{
  position:fixed; top:0; left:0; right:0; z-index:190;
  background:var(--paper);
  visibility:hidden; opacity:0;
  transition:opacity .45s ease, visibility 0s linear .45s;
  overflow-y:auto; max-height:100vh;
  box-shadow:0 30px 60px rgba(43,22,15,0.18);
}
body.nav-open .nav-overlay{ visibility:visible; opacity:1; transition:opacity .45s ease; }

.nav-overlay-inner{
  max-width:1180px; margin:0 auto; padding:170px 40px 70px;
  display:grid; grid-template-columns:0.85fr 1.15fr; gap:80px; align-items:start;
}
.nav-explore-label{
  font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:16px;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--olive-dark); margin-bottom:34px;
}
.nav-overlay-links{ list-style:none; margin:0 0 46px; padding:0; }
.nav-overlay-links li{ border-top:1px solid var(--line); }
.nav-overlay-links li:last-child{ border-bottom:1px solid var(--line); }
.nav-overlay-links a{
  display:block; padding:18px 2px; text-decoration:none;
  font-family:'IBM Plex Serif',serif; font-weight:300; font-size:clamp(26px,2.6vw,34px);
  color:var(--ink); transition:color .25s ease, padding-left .25s ease;
}
.nav-overlay-links a:hover{ color:var(--olive-dark); padding-left:10px; }
.nav-overlay-cta{
  display:inline-block; padding:16px 24px; border:1px solid var(--ink);
  font-family:'Bricolage Grotesque',sans-serif; font-size:12.5px; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase; text-decoration:none; color:var(--ink);
  transition:background .25s ease, color .25s ease;
}
.nav-overlay-cta:hover{ background:var(--ink); color:var(--cream); }

.nav-tiles{ display:grid; grid-template-columns:1fr; gap:20px; }
.nav-tile{ text-decoration:none; color:inherit; display:block; }
.nav-tile-media{
  aspect-ratio:16/9; background:var(--cream-2); overflow:hidden; position:relative;
}
.nav-tile-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.nav-tile:hover .nav-tile-media img{ transform:scale(1.04); }
.nav-tile-media .placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--stone); font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
  text-align:center; padding:20px;
  background:repeating-linear-gradient(135deg, rgba(43,22,15,0.03) 0px, rgba(43,22,15,0.03) 2px, transparent 2px, transparent 14px), var(--cream-2);
}
.nav-tile-caption{ margin-top:14px; }
.nav-tile-caption .name{ font-family:'IBM Plex Serif',serif; font-size:16px; color:var(--ink); display:block; margin-bottom:6px; }
.nav-tile-caption .view{
  font-family:'Bricolage Grotesque',sans-serif; font-size:11px; font-weight:600;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--olive-dark);
  border-bottom:1px solid var(--olive-dark); padding-bottom:2px;
}

@media (max-width: 900px){
  .nav-overlay-inner{ grid-template-columns:1fr; padding:130px 28px 60px; gap:48px; }
  .nav-overlay-links a{ font-size:26px; padding:16px 2px; }
  .hero-ctas{ justify-content:flex-start; }
}

/* ============================================================
   GUIDE POPUP
   Scroll-triggered on the homepage only; shows once per
   session. See main.js for the trigger logic.
   ============================================================ */
.guide-popup-overlay{
  position:fixed; inset:0; z-index:250; background:rgba(43,22,15,0.55);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:opacity .35s ease, visibility 0s linear .35s;
}
.guide-popup-overlay.show{ opacity:1; visibility:visible; transition:opacity .35s ease; }
.guide-popup{
  background:var(--paper); max-width:440px; width:100%; padding:44px 38px;
  position:relative; border:1px solid var(--line);
  transform:translateY(14px); transition:transform .35s ease;
}
.guide-popup-overlay.show .guide-popup{ transform:translateY(0); }
.guide-popup-close{
  position:absolute; top:16px; right:16px; width:32px; height:32px;
  background:none; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.guide-popup-close svg{ width:16px; height:16px; stroke:var(--ink-soft); }
.guide-popup-logo{ display:block; width:168px; height:auto; margin:0 auto 22px; }
.guide-popup h3{ font-size:24px; margin:12px 0 12px; line-height:1.15; }
.guide-popup p{ font-size:14.5px; margin-bottom:24px; }
.guide-popup .dl-form{ margin-bottom:10px; }

/* ============================================================
   DOWNLOAD FORM (shared: guide popup + guides page)
   ============================================================ */
.dl-form{ display:flex; gap:0; border-bottom:1px solid var(--ink); padding-bottom:10px; }
.dl-form input{
  flex-grow:1; border:none; background:none; font-family:'IBM Plex Serif',serif; font-size:14px;
  padding:6px 4px; outline:none; color:var(--ink);
}
.dl-form button{
  background:none; border:none; font-size:13px; font-weight:600; letter-spacing:0.05em;
  cursor:pointer; color:var(--olive-dark); text-transform:uppercase; white-space:nowrap;
}
.dl-note{ font-size:12px; color:var(--stone); margin-top:10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height:68vh;
  background:linear-gradient(180deg, rgba(43,22,15,0.62) 0%, rgba(59,32,19,0.52) 62%, rgba(65,63,43,0.66) 100%), url('images/jefferson-court-sketch.jpg');
  background-size:cover;
  background-position:center;
  color:var(--cream);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:130px 40px 90px;
  overflow:hidden;
}
.hero-inner{ max-width:1180px; margin:0 auto; width:100%; position:relative; z-index:2; }
.hero .eyebrow{ color:var(--gold-light); }
.hero h1{
  color:var(--cream);
  font-size:clamp(44px, 7vw, 92px);
  line-height:0.98;
  margin:18px 0 26px;
  max-width:14ch;
}
.hero h1 em{ font-style:italic; color:var(--gold-light); font-weight:400; }
.hero p.sub{
  color:var(--cream-2);
  font-size:18px; max-width:520px; margin:0 0 40px; line-height:1.7;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; justify-content:flex-end; }

/* page-header — same slot as .hero but for interior pages (shorter, no ripple required) */
.page-header{
  background:linear-gradient(180deg, var(--espresso) 0%, var(--espresso-2) 100%);
  color:var(--cream);
  padding:180px 40px 90px;
  overflow:hidden;
}
.page-header-inner{ max-width:1180px; margin:0 auto; width:100%; position:relative; z-index:2; text-align:center; }
.page-header .eyebrow{ color:var(--gold-light); }
.page-header h1{ color:var(--cream); font-size:clamp(38px,5vw,62px); line-height:1.05; margin:16px auto 0; max-width:18ch; }

/* ============================================================
   PHILOSOPHY (full page)
   ============================================================ */
.philosophy{ background:var(--cream); padding:140px 40px 120px; }
.phil-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:80px; align-items:start; }
.phil-grid h2{ font-size:clamp(32px,4vw,48px); line-height:1.08; margin:14px 0 26px; }
.phil-grid .lede{ font-size:19px; color:var(--ink-soft); max-width:44ch; }
.phil-quote{
  margin-top:34px; padding-left:22px; border-left:2px solid var(--gold);
  font-family:'IBM Plex Serif',serif; font-style:italic; font-size:20px; color:var(--olive-dark); max-width:40ch;
}
.process{ margin-top:70px; display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line); }
.process-step{ padding:30px 26px 0; border-right:1px solid var(--line); }
.process-step:last-child{ border-right:none; }
.process-step .stage{ font-family:'IBM Plex Serif',serif; font-style:italic; color:var(--stone); font-size:15px; }
.process-step h3{ font-size:19px; margin:10px 0 12px; line-height:1.25; }
.process-step p{ font-size:14.5px; line-height:1.6; }

/* ============================================================
   SERVICES (full page)
   ============================================================ */
.services{ background:var(--paper); padding:130px 40px 60px; }
.services-intro{ max-width:640px; margin:0 auto 70px; text-align:center; }
.services-intro h2{ font-size:clamp(30px,3.6vw,44px); margin:14px 0 20px; line-height:1.1; }
.services-intro p{ font-size:17px; line-height:1.75; }
.service-rows{ display:flex; flex-direction:column; }
.service-row{
  display:grid; grid-template-columns:0.5fr 1.5fr; gap:60px; align-items:center;
  padding:48px 0; border-top:1px solid var(--line);
}
.service-rows > .service-row:last-child{ border-bottom:1px solid var(--line); }
.service-row .num{
  font-family:'IBM Plex Serif',serif; font-style:italic; color:var(--ink);
  font-size:clamp(28px,2.8vw,38px); line-height:1.2;
}
.service-row-photo{ margin-top:26px; aspect-ratio:4/5; max-width:300px; overflow:hidden; border:1px solid var(--line); }
.service-row-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
/* Landscape variant — for a wide source image (like the Eagle Ridge
   rendering) that should show the whole home rather than being
   cropped into the default portrait frame. */
.service-row-photo.landscape{ aspect-ratio:1800/1005; max-width:360px; }
.service-row h3{ font-size:clamp(24px,2.4vw,30px); margin-bottom:16px; line-height:1.15; }
.service-row p{ font-size:16px; max-width:56ch; margin-bottom:0; }
.service-row .tag{
  display:inline-block; margin-top:22px; font-family:'Bricolage Grotesque',sans-serif;
  font-size:13px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--espresso);
  background:rgba(180,131,61,0.12); border:1px solid var(--gold); padding:8px 18px; border-radius:999px;
}

/* ============================================================
   ABOUT (full page)
   ============================================================ */
.about{ background:var(--paper); padding:130px 40px; }
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:90px; align-items:start; }
.about-visual-col{ align-self:end; }
.about-statement{ margin-bottom:28px; }
.about-statement .eyebrow{ margin-bottom:12px; display:block; }
.about-statement h2{ color:var(--ink); font-size:clamp(32px,3.6vw,48px); line-height:1.1; margin:0; }
.about-visual{ aspect-ratio:4/5; position:relative; overflow:hidden; }
.about-visual img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.about h2{ font-size:clamp(30px,3.6vw,44px); margin:14px 0 22px; line-height:1.1; }
.about p{ font-size:16px; margin-bottom:16px; }

/* ============================================================
   COMMUNITIES / WHERE WE BUILD (full page)
   ============================================================ */
.communities{ background:var(--paper); color:var(--ink); padding:130px 40px; }
.communities .wrap > .reveal > h2, .communities > .wrap > h2{ color:var(--ink); font-size:clamp(30px,3.6vw,44px); margin:6px auto 8px; max-width:none; text-align:center; }
.comm-intro{ max-width:640px; margin:0 auto 56px; text-align:center; }
.comm-intro p{ font-size:17px; line-height:1.75; color:var(--ink-soft); margin:0 0 16px; }
.comm-intro p:first-child{ color:var(--ink); }
/* Community features — editorial layout supporting a photo or video
   per community, with a compact facts row instead of a bulleted list.
   To use video once footage is ready, swap the <img> (or .placeholder)
   inside .community-media for: <video autoplay muted loop playsinline><source src="..."></video> */
.community-features{ display:flex; flex-direction:column; gap:100px; }
.community-feature{ scroll-margin-top:100px; }
.community-media{
  position:relative; width:100%; max-width:860px; margin-left:auto; margin-right:auto; aspect-ratio:16/9; overflow:hidden;
  background:var(--cream-2); margin-bottom:32px;
}
/* Site-plan / diagram variant — shown whole, never cropped. Sized to
   the plan's own proportions and centered, rather than filling the
   full-width 16:9 photo box other community media uses. */
.community-media.plan{
  max-width:760px; margin-left:auto; margin-right:auto; aspect-ratio:1052/620; max-height:none;
}
.community-media.plan .media-slide img{ object-fit:contain; background:var(--cream-2); }
/* Media carousel — holds any mix of photos and a video, one slide at
   a time. Add more later by duplicating a .media-slide inside
   .media-carousel; arrows and dots appear automatically once there's
   more than one slide, and hide themselves for a single slide. */
.media-carousel{
  display:flex; width:100%; height:100%; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
.media-carousel::-webkit-scrollbar{ display:none; }
.media-slide{ flex:0 0 100%; width:100%; height:100%; scroll-snap-align:start; position:relative; }
.media-slide img, .media-slide video{ width:100%; height:100%; object-fit:cover; display:block; }
.media-slide.clickable{ cursor:pointer; }
.media-slide .enlarge-icon{
  position:absolute; right:16px; top:16px; width:40px; height:40px; border-radius:50%;
  background:rgba(43,22,15,0.55); border:1px solid rgba(255,255,255,0.3);
  display:flex; align-items:center; justify-content:center; transition:background .2s ease, transform .2s ease; z-index:2;
}
.media-slide.clickable:hover .enlarge-icon{ background:rgba(43,22,15,0.75); transform:scale(1.06); }
.media-slide .enlarge-icon svg{ width:16px; height:16px; stroke:var(--cream); }
.media-slide .placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--stone); font-size:13px; letter-spacing:0.06em; text-transform:uppercase;
  background:repeating-linear-gradient(135deg, rgba(43,22,15,0.04) 0px, rgba(43,22,15,0.04) 2px, transparent 2px, transparent 14px), var(--cream-2);
}
.carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:40px; height:40px; border-radius:50%; background:rgba(43,22,15,0.55); border:1px solid rgba(255,255,255,0.3);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease;
}
.carousel-arrow:hover{ background:rgba(43,22,15,0.8); }
.carousel-arrow svg{ width:18px; height:18px; stroke:var(--cream); }
.carousel-prev{ left:16px; }
.carousel-next{ right:16px; }
.carousel-dots{ position:absolute; bottom:16px; left:0; right:0; display:flex; justify-content:center; gap:8px; z-index:3; }
.carousel-dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,0.55); border:none; padding:0; cursor:pointer; transition:background .2s ease, transform .2s ease; }
.carousel-dot.active{ background:var(--cream); transform:scale(1.35); }
.community-status-badge{
  position:absolute; top:20px; left:20px; font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
  font-weight:600; color:var(--ink); background:var(--paper); padding:7px 14px; z-index:2;
}
.community-info{ max-width:680px; margin:0 auto; text-align:center; }
.community-info h3{ font-size:clamp(26px,3vw,36px); margin-bottom:8px; }
.community-info .loc{ font-size:15px; color:var(--olive-dark); margin-bottom:20px; }
.community-info p{ font-size:16px; line-height:1.75; margin-bottom:28px; color:var(--ink-soft); }
.community-facts{ display:flex; justify-content:center; flex-wrap:wrap; row-gap:16px; }
.community-fact{ padding:0 22px; border-right:1px solid var(--line); }
.community-cta{ margin-top:34px; padding-top:34px; border-top:1px solid var(--line); }
.community-cta-note{
  font-family:'IBM Plex Serif',serif; font-style:italic; font-size:15px; color:var(--olive-dark); margin-bottom:16px;
}
/* Home spec band (Where We Build, under the address) */
.home-specs{ margin:0 0 32px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(227,216,194,0.35); }
.home-specs-row{ display:grid; grid-template-columns:repeat(3,1fr); }
.home-specs-row + .home-specs-row{ border-top:1px solid var(--line); }
.home-specs .spec{ padding:16px 12px; text-align:center; border-right:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.home-specs .spec:last-child{ border-right:none; }
.home-specs .num{ font-family:'Bricolage Grotesque',sans-serif; font-weight:500; font-size:clamp(28px,3vw,36px); line-height:1; color:var(--ink); letter-spacing:0.03em; }
.home-specs .label{ margin-top:7px; font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:var(--olive-dark); }
.home-specs .feature{ font-family:'Bricolage Grotesque',sans-serif; font-weight:500; font-size:clamp(15px,1.4vw,17px); line-height:1.2; color:var(--ink); letter-spacing:0.03em; }
.home-specs .detail{ margin-top:5px; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:12px; line-height:1.4; color:var(--olive-dark); max-width:26ch; }
@media (max-width:600px){
  .home-specs .spec{ padding:14px 8px; }
  .home-specs-row.features{ grid-template-columns:1fr; }
  .home-specs-row.features .spec{ border-right:none; }
  .home-specs-row.features .spec + .spec{ border-top:1px solid var(--line); }
}
.community-fact:last-child{ border-right:none; }
.community-fact .label{ display:block; font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--stone); margin-bottom:4px; }
.community-fact .value{ font-family:'Bricolage Grotesque',sans-serif; font-size:14.5px; font-weight:500; color:var(--ink); }
.community-fact .value a{ text-decoration:underline; text-underline-offset:2px; transition:color .2s ease; }
.community-fact .value a:hover{ color:var(--olive-dark); }
.lightbox-overlay{ position:fixed; inset:0; background:rgba(10,7,5,0.92); display:none; align-items:center; justify-content:center; z-index:300; padding:40px; }
.lightbox-overlay.show{ display:flex; }
.lightbox-overlay img{ max-width:100%; max-height:100%; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close{ position:absolute; top:24px; right:28px; width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.25); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.lightbox-close svg{ width:18px; height:18px; stroke:var(--cream); }
.media-caption{ font-size:12px; color:var(--stone); letter-spacing:0.03em; padding:10px 4px 0; }

/* ============================================================
   GUIDES PAGE (dedicated page, kept for direct-link/SEO value;
   the popup on the homepage is the primary path)
   ============================================================ */
.downloads{ background:var(--cream-2); padding:120px 40px; }
.dl-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.dl-grid-single{ grid-template-columns:1fr; max-width:520px; margin:0 auto; }
.dl-card{ background:var(--paper); border:1px solid var(--line); padding:44px 38px; display:flex; flex-direction:column; }
.dl-card .tag{ font-family:'IBM Plex Serif',serif; font-style:italic; color:var(--gold); font-size:14px; }
.dl-card h3{ font-size:26px; margin:12px 0 14px; }
.dl-card p{ font-size:14.5px; margin-bottom:26px; flex-grow:1; }

/* ============================================================
   HOMEPAGE TEASERS
   Condensed previews of each interior page, each ending in a
   link into the full page. Alternating tone for rhythm.
   ============================================================ */
.teaser{ padding:72px 40px; }
.teaser.bg-cream{ background:var(--cream); }
.teaser.bg-paper{ background:var(--paper); }
.teaser.bg-espresso{ background:var(--espresso); color:var(--cream); }
.teaser.bg-espresso .eyebrow{ color:var(--gold-light); }
.teaser.bg-espresso h2{ color:var(--cream); }
.teaser.bg-espresso p{ color:var(--cream-2); }
.teaser > .wrap{ width:100%; }
.teaser-inner{ max-width:780px; margin:0 auto; text-align:center; }
.teaser-inner.center{ margin:0 auto; text-align:center; }
.teaser h2{ font-size:clamp(30px,4.6vw,56px); line-height:1.1; margin:18px 0 24px; }
.teaser p{ font-size:clamp(16px,1.7vw,20px); line-height:1.7; margin:0 auto 32px; max-width:620px; }
.teaser-link{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  font-family:'Bricolage Grotesque',sans-serif; font-size:13.5px; font-weight:600;
  letter-spacing:0.1em; text-transform:uppercase; color:inherit;
  border-bottom:1px solid currentColor; padding-bottom:3px;
}
.teaser-links-row{ display:flex; gap:36px; justify-content:center; flex-wrap:wrap; }

/* Contained photo break between sections — sized to feel like a
   considered accent, not a full-bleed hero image. */
.image-break{ max-width:820px; margin:0 auto; text-align:center; display:block; text-decoration:none; color:inherit; }
.image-break img{ width:100%; height:auto; display:block; border:1px solid var(--line); transition:opacity .3s ease; }
.image-break:hover img{ opacity:0.92; }
.image-break-caption{ margin-top:18px; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:14.5px; color:var(--stone); }
.image-break-view{
  display:inline-block; margin-top:8px; font-family:'Bricolage Grotesque',sans-serif;
  font-size:11.5px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--olive-dark); border-bottom:1px solid var(--olive-dark); padding-bottom:2px;
}
.teaser-tight-after{ padding-bottom:28px; }
.teaser-tight-before{ padding-top:28px; }
.teaser-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line-dark); border:1px solid var(--line-dark); margin-top:32px; }
.teaser-tile{ background:var(--espresso-2); padding:30px 26px; text-decoration:none; color:inherit; transition:background .25s ease; }
.teaser-tile:hover{ background:#2E1810; }
.teaser-tile .status{ font-size:11px; letter-spacing:0.1em; text-transform:uppercase; font-weight:600; color:var(--gold-light); margin-bottom:14px; }
.teaser-tile h3{ color:var(--cream); font-size:20px; margin-bottom:8px; }
.teaser-tile .loc{ font-size:14px; color:var(--cream-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ background:var(--paper); padding:130px 40px 100px; }
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:90px; }
.contact h2{ font-size:clamp(30px,3.6vw,44px); margin:14px 0 22px; line-height:1.1; }
.contact-info-item{ margin-top:30px; padding-top:20px; border-top:1px solid var(--line); }
.contact-info-item .lbl{ font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--stone); margin-bottom:6px; }
.contact-info-item .val{ font-family:'IBM Plex Serif',serif; font-size:19px; }
form.lead{ display:flex; flex-direction:column; gap:22px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field label{ display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--stone); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; border:none; border-bottom:1px solid var(--line); background:none;
  font-family:'IBM Plex Serif',serif; font-size:15px; padding:9px 2px; outline:none; color:var(--ink);
  transition:border-color .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--olive); }
.field textarea{ resize:vertical; min-height:80px; }
form.lead .btn{ align-self:flex-start; margin-top:6px; }
.form-success{ display:none; padding:20px; border:1px solid var(--olive); color:var(--olive-dark); font-size:14.5px; }
.form-success.show{ display:block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer{ background:var(--espresso); color:var(--cream-2); padding:70px 40px 34px; }
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:40px; padding-bottom:44px; border-bottom:1px solid var(--line-dark); }
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ height:auto; width:200px; display:block; }
.footer-logo-svg{ height:44px; width:auto; display:block; }
.footer-links{ display:flex; gap:60px; }
.footer-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:0.1em; color:var(--gold-light); margin-bottom:16px; }
.footer-col a{ display:block; font-size:16px; color:var(--cream-2); text-decoration:none; margin-bottom:12px; }
.footer-col a:hover{ color:var(--gold-light); }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:26px; font-size:13px; color:var(--stone); flex-wrap:wrap; gap:10px; }

@media (max-width: 900px){
  .phil-grid, .about-grid, .contact-grid{ grid-template-columns:1fr; gap:40px; }
  .process{ grid-template-columns:1fr 1fr; }
  .process-step{ border-right:none; border-bottom:1px solid var(--line); padding-bottom:24px; margin-bottom:10px; }
  .service-row{ grid-template-columns:1fr; gap:16px; }
  .community-features{ gap:70px; }
  .community-fact{ border-right:none; padding:0 16px; }
  .teaser-tiles{ grid-template-columns:1fr; }
  .dl-grid{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }
}

/* Availability callouts (Eagle Ridge: available now) */
.hero-avail{ display:inline-flex; align-items:center; gap:10px; padding:9px 20px; border:1px solid var(--gold); border-radius:999px; background:rgba(43,22,15,0.62); font-family:'IBM Plex Serif',serif; font-style:italic; font-weight:400; font-size:15px; color:var(--cream); text-decoration:none; transition:background .25s ease; }
.hero-avail:hover{ background:rgba(43,22,15,0.8); }
.hero-avail .dot{ width:7px; height:7px; border-radius:50%; background:var(--gold-light); flex:0 0 auto; }
.nav-tile-badge{ position:absolute; top:10px; left:10px; z-index:2; font-family:'Bricolage Grotesque',sans-serif; font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink); background:var(--paper); padding:5px 10px; }
@media (max-width:600px){ .hero-avail{ font-size:13.5px; padding:8px 16px; white-space:nowrap; } .hero-avail .hide-sm{ display:none; } }

.hero h1{ text-shadow:0 2px 20px rgba(43,22,15,0.5); }

.community-credit{ margin-top:22px; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:14.5px; line-height:1.6; color:var(--olive-dark); }
.community-credit strong{ font-weight:500; }

/* Specs: main residence vs. casita distinction */
.home-specs-heading{ padding:9px 12px; text-align:center; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--olive-dark); background:rgba(129,117,76,0.12); border-bottom:1px solid var(--line); }
.home-specs-row + .home-specs-heading{ border-top:1px solid var(--line); }
.home-specs-row.two{ grid-template-columns:repeat(2,1fr); }
.home-specs-total{ padding:12px; text-align:center; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:14px; color:var(--ink); border-top:1px solid var(--line); }
@media (max-width:600px){
  .home-specs-row.features.casita{ grid-template-columns:repeat(3,1fr); }
  .home-specs-row.features.casita .spec{ border-right:1px solid var(--line); }
  .home-specs-row.features.casita .spec:last-child{ border-right:none; }
  .home-specs-row.features.casita .spec + .spec{ border-top:none; }
  .home-specs-row.features.two{ grid-template-columns:repeat(2,1fr); }
  .home-specs-row.features.two .spec{ border-right:1px solid var(--line); }
  .home-specs-row.features.two .spec:last-child{ border-right:none; }
  .home-specs-row.features.two .spec + .spec{ border-top:none; }
  .home-specs-row.features.casita .feature{ font-size:14px; }
}
.home-specs-row:not(.features) .spec{ justify-content:flex-start; }

/* Specs: compact scale */
.home-specs{ max-width:540px; margin-left:auto; margin-right:auto; }
.home-specs .spec{ padding:11px 8px; }
.home-specs .num{ font-size:clamp(24px,2.4vw,28px); }
.home-specs .label{ margin-top:5px; font-size:9px; }
.home-specs .feature{ font-size:clamp(13px,1.2vw,14.5px); }
.home-specs-heading{ padding:7px 10px; font-size:9.5px; }
.home-specs-total{ padding:9px; font-size:12.5px; }
@media (max-width:600px){
  .home-specs .spec{ padding:10px 6px; }
  .home-specs-row.features.casita .feature{ font-size:13px; }
}

/* Design-phase note under the address */
.community-info .loc-note{ margin:-12px 0 20px; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:14px; color:var(--antique); text-align:center; }

/* Our Partners page */
.partners{ background:var(--paper); color:var(--ink); padding:110px 40px 120px; }
.partners-intro{ max-width:720px; margin:0 auto 72px; text-align:center; }
.partners-intro .eyebrow{ margin-bottom:18px; display:block; }
.partners-intro p{ font-size:18px; line-height:1.8; color:var(--ink-soft); margin:0 0 16px; }
.partners-intro p:first-of-type{ color:var(--ink); }
.partner-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.partner-card{ display:flex; flex-direction:column; background:rgba(227,216,194,0.28); border:1px solid var(--line); padding:0 0 26px; text-align:center; }
.partner-logo{ display:flex; align-items:center; justify-content:center; height:140px; padding:26px 28px; background:var(--paper); border-bottom:1px solid var(--line); }
.partner-logo img{ max-width:100%; max-height:70px; width:auto; height:auto; object-fit:contain; }
.partner-wordmark{ font-family:'Bricolage Grotesque',sans-serif; font-weight:500; font-size:19px; line-height:1.2; letter-spacing:0.04em; color:var(--olive-dark); text-transform:uppercase; }
.partner-role{ margin:24px 18px 6px; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--antique); }
.partner-card h3{ margin:0 18px 10px; font-size:21px; line-height:1.2; color:var(--ink); }
.partner-card p{ margin:0 22px 4px; font-size:14.5px; line-height:1.65; color:var(--ink-soft); flex:1; }
.partner-link{ align-self:center; font-size:12px; letter-spacing:0.14em; text-transform:uppercase; font-weight:600; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--antique); padding-bottom:3px; }
.partner-link:hover{ color:var(--antique); }
@media (max-width:1100px){ .partner-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .partners{ padding:80px 24px 90px; } .partner-grid{ grid-template-columns:1fr; } .partners-intro{ margin-bottom:48px; } }
.partner-logo{ text-decoration:none; }

.partner-logo img.tall{ max-height:100px; }
.partner-logo{ height:150px; }

/* Partners ecosystem */
.eco-wrap{ margin:0 auto 70px; }
.eco{ position:relative; max-width:1080px; margin:0 auto; aspect-ratio:1080/820; }
.eco-web{ position:absolute; inset:0; width:100%; height:100%; }
.eco-web line{ stroke:var(--antique); stroke-width:1; stroke-dasharray:2 5; vector-effect:non-scaling-stroke; opacity:.7; }
.eco-web ellipse{ fill:none; stroke:var(--olive); stroke-width:1; vector-effect:non-scaling-stroke; opacity:.35; }
.eco-hub{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:23%; aspect-ratio:1; border-radius:50%; background:var(--umber); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; box-shadow:0 0 0 10px var(--paper), 0 0 0 11px var(--antique); }
.eco-mark{ width:30%; margin-bottom:10px; }
.eco-t1{ font-family:'Bricolage Grotesque',sans-serif; font-size:clamp(11px,1.5vw,18px); letter-spacing:.2em; color:var(--silk); }
.eco-t2{ font-family:'IBM Plex Serif',serif; font-style:italic; font-size:clamp(9px,1vw,12px); color:var(--gold-light); margin-top:6px; letter-spacing:.06em; padding:0 14%; }
.eco-node{ position:absolute; transform:translate(-50%,-50%); width:21%; background:var(--paper); border:1px solid var(--line); padding:14px 12px 11px; text-align:center; box-shadow:0 10px 30px rgba(43,22,15,.08); }
.eco-logo{ height:clamp(34px,5.4vw,58px); display:flex; align-items:center; justify-content:center; }
.eco-logo img{ max-width:100%; max-height:100%; object-fit:contain; }
.eco-logo.tall{ height:clamp(48px,7.4vw,80px); }
.eco-role{ margin-top:9px; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:clamp(8px,.95vw,11px); letter-spacing:.14em; text-transform:uppercase; color:var(--antique); }
.eco-divider{ display:flex; align-items:center; gap:22px; max-width:1080px; margin:64px auto 0; font-family:'IBM Plex Serif',serif; font-style:italic; font-size:13px; letter-spacing:.18em; text-transform:uppercase; color:var(--antique); }
.eco-divider:before, .eco-divider:after{ content:''; flex:1; height:1px; background:var(--line); }
@media (max-width:760px){
  .eco{ aspect-ratio:auto; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .eco-web{ display:none; }
  .eco-hub{ position:relative; left:auto; top:auto; transform:none; grid-column:1 / -1; justify-self:center; width:200px; margin:0 0 26px; }
  .eco-node{ position:relative; left:auto !important; top:auto !important; transform:none; width:auto; padding:12px 8px 9px; }
  .eco-logo{ height:48px; } .eco-logo.tall{ height:68px; }
  .eco-role{ font-size:9px; }
  .eco-divider{ margin-top:44px; }
}

.eco-node.sm{ width:17%; padding:11px 8px 9px; }
.eco-node.sm .eco-logo{ height:clamp(26px,4vw,44px); }
.eco-web line.far{ opacity:.35; }
@media (max-width:760px){ .eco-node.sm{ width:auto; padding:12px 8px 9px; } .eco-node.sm .eco-logo{ height:48px; } }

.eco-divider{ font-weight:600; font-size:15px; }

/* Partners page: tighter vertical rhythm */
.partners{ padding-top:90px; padding-bottom:36px; }
.partners + .teaser{ padding-top:36px; padding-bottom:84px; }
.eco-wrap{ margin-bottom:44px; }
.eco-divider{ margin-top:40px; }
