/* ==========================================================================
   Crawford Homes — design system
   Modelled on royalbay.ca: cream canvas, forest green, bronze accent, Poppins.
   ========================================================================== */

:root {
  --cream: #E3DDD2;
  --cream-2: #F0EEEA;
  --forest: #1E3A2A;
  --forest-2: #152A1F;
  --bronze: #AB6728;
  --gold: #A57840;
  --sage: #4F6E66;
  --charcoal: #21272A;
  --ink: #292929;
  --body: #4E4E4E;
  --muted: #7A776F;
  --hair: rgba(41, 41, 41, .14);
  --theme: var(--forest);          /* per-page / per-product colour */
  --theme-ink: #ffffff;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h1: clamp(40px, 5.2vw, 72px);
  --h2: clamp(28px, 3vw, 40px);
  --h3: clamp(22px, 1.8vw, 24px);
  --body-size: clamp(16px, 1.05vw, 18px);

  --gutter: 20px;
  --bleed: 16px;
  --container: 1180px;
  --sec: clamp(64px, 8vw, 104px);  /* section spacing */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: 1.7;
  font-weight: 400;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--forest); color: #fff; }

/* ---------- type ---------- */
h1, .h1 { font-size: var(--h1); line-height: 1.1; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
h2, .h2 { font-size: var(--h2); line-height: 1.2; font-weight: 400; color: var(--ink); }
h3, .h3 { font-size: var(--h3); line-height: 1.3; font-weight: 400; color: var(--ink); }
.lead { font-size: clamp(20px, 2.4vw, 40px); line-height: 1.25; font-weight: 400; color: var(--ink); max-width: 1150px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow--light { color: rgba(255, 255, 255, .72); }
.rule { width: 72px; height: 2px; background: var(--bronze); border: 0; margin: 32px 0 0; }
.rule--light { background: #fff; width: 32px; height: 1px; margin: 12px 0 18px; }
.fine { font-size: 12px; line-height: 1.5; opacity: .6; }
.measure { max-width: 560px; }
.center { text-align: center; }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.white { color: #fff; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: none; padding: 0 var(--bleed); }
.section { padding-top: var(--sec); }
.section--bottom { padding-bottom: var(--sec); }
.section--tight { padding-top: calc(var(--sec) * .6); }
.stack > * + * { margin-top: 24px; }
.grid { display: grid; gap: 24px; }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-12 { grid-column: span 12; }
.ratio { position: relative; overflow: hidden; background: #d8d2c6; }
.ratio > img, .ratio > video, .ratio > .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.ratio-16-7 { aspect-ratio: 16 / 7; } .ratio-16-9 { aspect-ratio: 16 / 9; } .ratio-4-3 { aspect-ratio: 4 / 3; } .ratio-3-4 { aspect-ratio: 3 / 4; } .ratio-1-1 { aspect-ratio: 1 / 1; }
.bleed-right { margin-right: calc(50% - 50vw); }
.bleed-left { margin-left: calc(50% - 50vw); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  padding: 14px 18px; border: 2px solid var(--ink); color: var(--ink); background: transparent; border-radius: 0;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--cream-2); border-color: var(--cream-2); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--white { border-color: #fff; color: #fff; }
.btn--white:hover { background: #fff; color: var(--ink); }
.btn--theme { background: var(--theme); border-color: var(--theme); color: #fff; }
.btn--theme:hover { filter: brightness(1.12); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-style: italic; color: inherit;
}
.link-arrow .circ {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; flex: none;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.link-arrow .circ svg { width: 12px; height: 12px; }
.link-arrow:hover .circ { transform: translateX(4px); }
.circ-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); display: grid; place-items: center;
  transition: opacity .3s, background .3s, color .3s;
}
.circ-btn svg { width: 14px; height: 14px; }
.circ-btn:hover { background: var(--ink); color: #fff; }
.circ-btn[disabled], .circ-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }
.circ-btn--light { border-color: #fff; color: #fff; }
.circ-btn--light:hover { background: #fff; color: var(--ink); }

/* select */
.select {
  position: relative; display: inline-block; width: 250px; max-width: 100%;
}
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: #fff; border: 1px solid rgba(41, 41, 41, .3); border-radius: 2px; padding: 11px 44px 11px 16px; cursor: pointer;
}
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  color: #fff; transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header .logo img { height: 64px; width: auto; }
.header .logo .logo--dark { display: none; }
.header.is-solid { background: rgba(227, 221, 210, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--hair); }
.header.is-solid .logo .logo--light { display: none; }
.header.is-solid .logo .logo--dark { display: block; }
.header--onlight { color: var(--ink); }
.header--onlight .logo .logo--light { display: none; }
.header--onlight .logo .logo--dark { display: block; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.menu-btn .bars { width: 26px; display: grid; gap: 5px; }
.menu-btn .bars i { display: block; height: 2px; background: currentColor; transition: transform .3s, width .3s; }
.menu-btn .bars i:nth-child(2) { width: 70%; justify-self: end; }
.menu-btn:hover .bars i:nth-child(2) { width: 100%; }
.header .phone { font-size: 14px; letter-spacing: .04em; margin-right: 28px; opacity: .9; }

/* ---------- drawer (menu + forms) ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .65); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(420px, 100%); background: var(--cream-2); transform: translateX(100%); transition: transform .55s var(--ease); overflow-y: auto; overscroll-behavior: contain; padding: 96px 36px 48px; color: var(--ink); }
.drawer--wide { width: min(520px, 100%); }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer .close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; }
.drawer .close svg { width: 12px; height: 12px; }
#d-menu { display: flex; flex-direction: column; padding-top: 64px; padding-bottom: 24px; }   /* rows stretch to fill the screen height; on short screens they shrink to their text and the drawer scrolls */
#d-menu nav { flex: 1 1 auto; display: flex; flex-direction: column; }
#d-menu nav a { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
#d-menu .socials { flex: none; }
.drawer nav a { display: block; position: relative; font-size: 22px; line-height: 1.25; font-weight: 400; color: var(--ink); padding: 9px 0 10px; border-bottom: 1px solid var(--hair); transition: padding-left .3s var(--ease), color .3s; }
@media (hover: hover) { .drawer nav a:hover { padding-left: 8px; color: var(--forest); } }   /* slide only on devices with a real hover — phones kept it "stuck" after a tap */
.drawer nav a.is-active { color: var(--forest); }   /* current page: green with a bronze dot, no slide, so it doesn't look like a hover that never finished */
.drawer nav a.is-active::before { content: ""; position: absolute; left: -17px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--bronze); }
.drawer nav a.is-active:has(small)::before { margin-top: -12px; }   /* line the dot up with the title when there's a subtitle */
.drawer nav a small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 400; margin-top: 3px; }
.drawer .sub { padding: 6px 0 14px; border-bottom: 1px solid var(--hair); }
.drawer .sub a { font-size: 16px; padding: 7px 0 7px 16px; border: 0; color: var(--body); }
/* "Find Your Home" group: a parent row that opens a sub-menu (hover on desktop, tap on phones) */
#d-menu .nav-group { flex: 1 1 auto; display: flex; flex-direction: column; border-bottom: 1px solid var(--hair); }
.drawer .nav-parent { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; position: relative; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 22px; line-height: 1.25; font-weight: 400; color: var(--ink); padding: 9px 36px 10px 0; transition: padding-left .3s var(--ease), color .3s; }
.drawer .nav-parent small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 400; margin-top: 3px; }
.drawer .nav-chev { position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--ease), margin-top .35s var(--ease); }
.nav-group.is-open .nav-chev { transform: rotate(-135deg); margin-top: -2px; }
.nav-group.is-current .nav-parent { color: var(--forest); }
.drawer .nav-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.drawer .nav-sub-in { min-height: 0; overflow: hidden; }
.nav-group.is-open .nav-sub { grid-template-rows: 1fr; }
.drawer .nav-sub { overflow: hidden; }
.drawer .nav-sub a { display: block; flex: none !important; font-size: 17px; line-height: 1.3; padding: 7px 0 8px 18px; border-bottom: 0; color: var(--body); }
.drawer .nav-sub a:last-child { margin-bottom: 10px; }
.drawer .nav-sub a small { font-size: 11.5px; margin-top: 1px; }
.drawer .nav-sub a.is-active::before { left: 2px; }
@media (hover: hover) {
  .drawer .nav-parent:hover { padding-left: 8px; color: var(--forest); }
  .nav-group:hover .nav-sub { grid-template-rows: 1fr; }
  .nav-group:hover .nav-chev { transform: rotate(-135deg); margin-top: -2px; }
}
.drawer .socials { display: flex; gap: 18px; margin-top: 22px; }
.drawer .socials a svg { width: 22px; height: 22px; }
.drawer h3 { font-size: 24px; margin-bottom: 8px; }
.drawer p { font-size: 15px; }

/* forms */
.form { display: grid; gap: 14px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid rgba(41, 41, 41, .25); border-radius: 2px; padding: 11px 14px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }
.form .btn { justify-self: start; margin-top: 6px; }
.form .ok { background: var(--forest); color: #fff; padding: 14px 16px; font-size: 15px; display: none; }
.form.is-sent .ok { display: block; }
.form.is-sent > *:not(.ok) { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: var(--forest); }
.hero--short { height: 70svh; min-height: 480px; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img.kb { animation: kenburns 18s var(--ease) both; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__slides img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.hero__slides img.is-active { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, .08) 28%, rgba(0, 0, 0, .42) 52%, rgba(0, 0, 0, .88) 100%); }
.hero__inner { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0 var(--gutter) 64px; }
.hero__inner .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.hero .hero__sub { margin-top: 18px; font-size: 18px; opacity: .95; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.hero__video-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 16px; opacity: .9; }
.hero__video-link svg { width: 16px; height: 16px; }
.hero__cta { flex: none; }
.hero__cta .label { font-size: 18px; margin-bottom: 10px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.cta-pair { display: flex; gap: 14px; }
.cta-pair .select { width: 200px; }
.cta-pair .select select, .cta-pair .pill { background: rgba(240, 238, 234, .9); border: 0; border-radius: 5px; padding: 15px 44px 15px 18px; font-size: 16px; color: var(--ink); }
.cta-pair .pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; padding-right: 18px; min-width: 200px; transition: background .3s; }
.cta-pair .pill:hover { background: #fff; }
.cta-pair .pill svg { width: 22px; height: 22px; }
.hero--photo h1 { max-width: 16ch; }
.hero__fade { opacity: 0; transform: translateY(16px); animation: fadeup 1.1s var(--ease) .4s forwards; }
.hero__fade.d2 { animation-delay: .7s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* split hero (product page) */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 70svh; }
.split-hero__panel { background: var(--theme); color: #fff; display: grid; place-items: center; padding: 140px 40px 64px; text-align: center; }
.split-hero__panel .ptitle { font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; color: #fff; }
.split-hero__panel .ptags { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: 14px; }
.split-hero__panel .rule { background: #fff; margin: 28px auto; }
.split-hero__panel .tagline { font-size: clamp(20px, 2vw, 30px); line-height: 1.3; }
.split-hero__panel .status { margin-top: 24px; font-size: 18px; opacity: .9; }
.split-hero__media { position: relative; min-height: 50vw; }
.split-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }

/* sticky sub nav */
.subnav { position: sticky; top: 0; z-index: 50; background: rgba(227, 221, 210, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.subnav ul { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 22px 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color .3s; }
.subnav a.is-active, .subnav a:hover { border-color: var(--ink); }

/* ---------- product / overlay card ---------- */
.pcard { position: relative; display: block; overflow: hidden; background: #ccc5b8; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 1.2s var(--ease); }
.pcard:hover img { transform: scale(1.04); }
.pcard__box {
  position: absolute; left: 24px; bottom: 24px; width: min(424px, calc(100% - 48px)); background: var(--theme); color: #fff; padding: 20px 20px 18px;
  display: grid; gap: 2px;
}
.pcard__box .eyebrow { color: #fff; font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; margin: 0 0 8px; }
.pcard__box .ptitle { font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; color: #fff; }
.pcard__box .ptags { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-top: 10px; }
.pcard__box .pmeta { font-size: 14px; opacity: .9; margin-top: 4px; }
.pcard__box .link-arrow { justify-self: end; margin-top: 10px; }
.pcard--theme-bronze { --theme: var(--bronze); } .pcard--theme-sage { --theme: var(--sage); } .pcard--theme-charcoal { --theme: var(--charcoal); } .pcard--theme-forest { --theme: var(--forest); }

/* feature slider */
.fslider { position: relative; }
.fslider .swiper-slide .pcard { aspect-ratio: 16 / 7; }
.slider-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 0; }
.dots { display: flex; gap: 10px; }
.dots .swiper-pagination-bullet { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; opacity: 1; margin: 0 !important; transition: background .3s; }
.dots .swiper-pagination-bullet-active { background: var(--ink); }
.dots--light .swiper-pagination-bullet { border-color: #fff; } .dots--light .swiper-pagination-bullet-active { background: #fff; }
.arrows { display: flex; align-items: center; gap: 8px; }
.arrows .btn { margin-left: 16px; }

/* card grid (hub) */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pgrid .pcard { aspect-ratio: 4 / 3; }
.pgrid .pcard:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.pgrid .pcard.is-hidden { display: none; }
.pgrid .pcard:not(:first-child) .pcard__box .ptitle { font-size: clamp(22px, 2vw, 30px); }

/* ---------- two-tile ---------- */
.two-tile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.two-tile .tile-sm { grid-column: 1 / span 5; padding-top: 14%; }
.two-tile .tile-sm .ratio { aspect-ratio: 4 / 3; }
.two-tile .tile-lg { grid-column: 7 / span 6; margin-right: calc(50% - 50vw + 0px); }
.two-tile .tile-lg .ratio { aspect-ratio: 4 / 3.4; }
.two-tile--tall .tile-lg .ratio { aspect-ratio: 4 / 5; }   /* portrait photo (programs page) */
.two-tile .copy { margin-top: 40px; max-width: 460px; }
.two-tile .copy h2 { margin-bottom: 20px; }
.two-tile .copy .btn { margin-top: 28px; }
.two-tile--flip .tile-lg { grid-column: 1 / span 6; margin-right: 0; margin-left: calc(50% - 50vw); }
.two-tile--flip .tile-sm { grid-column: 8 / span 5; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stats .num { font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--theme); font-weight: 300; }
.stats h3 { margin: 10px 0 8px; }
.stats p { font-size: 16px; }

/* values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.values h3 { margin-bottom: 10px; }
.values .n { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--bronze); margin-bottom: 14px; }

/* ---------- testimonial ---------- */
.testi { text-align: center; }
.testi .swiper { max-width: 930px; margin: 0 auto; min-height: 240px; }
.testi .swiper-slide { height: auto; display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.testi blockquote { margin: 0; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.45; color: var(--ink); font-weight: 400; }
.testi cite { display: block; margin-top: 22px; font-style: normal; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.testi .arrows { justify-content: center; margin-top: 36px; gap: 16px; }
.testi .dots { justify-content: center; margin-top: 20px; }

/* ---------- CTA band ---------- */
.cta { position: relative; padding: clamp(96px, 12vw, 160px) var(--gutter); text-align: center; color: #fff; background: var(--theme); overflow: hidden; }
.cta--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; }
.cta--photo::before { content: ""; position: absolute; inset: 0; background: rgba(20, 30, 25, .55); z-index: 1; }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; margin-bottom: 28px; }
.cta p { max-width: 560px; margin: -12px auto 28px; opacity: .9; }

/* ---------- map ---------- */
.map { height: clamp(420px, 60vh, 680px); width: 100%; background: var(--cream); position: relative; z-index: 0; }
.map .maplibregl-canvas { outline: none; }
.map .pin { width: 14px; height: 14px; border-radius: 50%; background: var(--forest); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(30, 58, 42, .25); cursor: pointer; }
.map .pin--office { background: var(--bronze); box-shadow: 0 0 0 4px rgba(171, 103, 40, .3); }
.map .maplibregl-popup-content { border-radius: 2px; background: var(--cream-2); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 14px 18px; font-family: var(--font); font-size: 14px; line-height: 1.5; }
.map .maplibregl-popup-content b { display: block; font-size: 16px; font-weight: 500; }
.map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--cream-2); }
.map .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--cream-2); }
.map .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--cream-2); }
.map .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--cream-2); }
.map .maplibregl-ctrl-group { background: var(--cream-2); border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--hair); }
.map .maplibregl-ctrl-attrib { background: rgba(240, 238, 234, .85); font-size: 10px; font-family: var(--font); }
.map .maplibregl-ctrl-attrib a { color: var(--ink); }
.map-tabs { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.map-tabs button { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid transparent; opacity: .55; transition: opacity .3s, border-color .3s; }
.map-tabs button.is-active, .map-tabs button:hover { opacity: 1; border-color: var(--ink); }

/* ---------- community cards ---------- */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ccard { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--cream-2); text-align: left; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }   /* flex column: a <button> otherwise centres its content when a neighbour in the row is taller */
.ccard .ratio { width: 100%; flex: none; }
.ccard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); }
.ccard .ratio { aspect-ratio: 4 / 3; }
.ccard .body { padding: 22px 24px 26px; }
.ccard h3 { margin-bottom: 4px; }
.ccard .area { font-size: 14px; font-style: italic; color: var(--muted); }
.ccard p { font-size: 15px; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .link-arrow { margin-top: 16px; font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- floorplan table ---------- */
.fp-filters { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; margin-bottom: 40px; }
.fp-search { flex: 1 1 260px; max-width: 340px; }
.fp-search__box { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid rgba(41, 41, 41, .3); border-radius: 2px; }
.fp-search__box > svg { width: 18px; height: 18px; margin-left: 14px; color: var(--muted); flex: none; }
.fp-search__box input { flex: 1; min-width: 0; font: inherit; font-size: 18px; color: var(--ink); background: transparent; border: 0; padding: 11px 12px; outline: none; }
.fp-search__box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fp-search__box:focus-within { border-color: var(--ink); }
.fp-search__clear { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); margin-right: 4px; }
.fp-search__clear svg { width: 12px; height: 12px; }
.fp-table { display: grid; gap: 10px; }
.fp-row { background: var(--cream-2); border: 1px solid var(--hair); }
.fp-row.is-hidden { display: none; }
.fp-row__head { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.4fr 64px; align-items: stretch; width: 100%; text-align: center; font-size: 18px; color: var(--ink); }
.fp-row__head > span { padding: 20px 10px; border-right: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; }
.fp-row__head > span:first-child { font-weight: 500; }
.fp-row__head > span:last-child { border-right: 0; }
.fp-row__head .chev { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.fp-row.is-open .fp-row__head .chev { transform: rotate(180deg); }
.fp-row__head small { display: none; }
.fp-row__head > span:first-child { flex-direction: column; gap: 2px; }
.fp-from { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); }
.fp-more { margin-top: 36px; border-top: 1px solid var(--ink); }
.fp-more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; color: var(--ink); }
.fp-more summary::-webkit-details-marker { display: none; }
.fp-more summary b { font-size: 22px; font-weight: 400; display: block; }
.fp-more summary small { font-size: 14px; color: var(--muted); display: block; margin-top: 2px; }
.fp-more summary .chev { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease); }
.fp-more[open] summary .chev { transform: rotate(180deg); }
.fp-more .fp-table { margin-bottom: 12px; }
.fp-row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.fp-row.is-open .fp-row__body { grid-template-rows: 1fr; }
.fp-row__body > div { overflow: hidden; }
.fp-row__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 8px 36px 36px; border-top: 1px solid var(--hair); }
.fp-row__inner h4 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 24px 0 12px; }
.fp-row__inner p { font-size: 15px; }
.fp-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.fp-links a { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.fp-links a svg { width: 14px; height: 14px; }
.fp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 24px; font-size: 15px; }
/* plan drawing (brand-palette render) inside an expanded row */
.fp-row__inner--plan { grid-template-columns: minmax(260px, 1.05fr) 1.1fr .85fr; }
.fp-plan { position: relative; display: block; width: 100%; max-height: 460px; aspect-ratio: 4 / 3; margin-top: 24px; background: var(--cream); border: 1px solid var(--hair); overflow: hidden; cursor: zoom-in; }
.fp-plan img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .7s var(--ease); }
.fp-plan:hover img { transform: scale(1.03); }
.fp-plan__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--forest); color: var(--cream-2); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.fp-plan__zoom svg { width: 12px; height: 12px; }
.fp-plan:hover .fp-plan__zoom, .fp-plan:focus-visible .fp-plan__zoom { opacity: 1; transform: none; }
@media (hover: none) { .fp-plan__zoom { opacity: 1; transform: none; } }
.subnav-scope { position: relative; }
.fp-spec b { font-weight: 500; color: var(--ink); display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fp-count { font-size: 14px; color: var(--muted); margin-left: auto; }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--hair); }
.acc details { border-bottom: 1px solid var(--hair); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 24px; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease); }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc .acc__body { padding: 0 0 26px; max-width: 720px; font-size: 16px; }
.acc .acc__body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.acc .acc__body li { padding-left: 18px; position: relative; }
.acc .acc__body li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--bronze); }

/* ---------- gallery ---------- */
.gtabs { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.gtabs button { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .5; padding-bottom: 6px; border-bottom: 2px solid transparent; transition: opacity .3s, border-color .3s; }
.gtabs button.is-active, .gtabs button:hover { opacity: 1; border-color: var(--ink); }
.ggrid { columns: 3; column-gap: 16px; }
.ggrid button { display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: #d8d2c6; }
.ggrid img { width: 100%; transition: transform 1s var(--ease); }
.ggrid button:hover img { transform: scale(1.03); }
.ggrid button.is-hidden { display: none; }
/* ---- Showhomes page ---- */
.sh { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.sh--flip .sh__photo { order: 2; }
.sh__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ccc5b8; }
.sh__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .8s var(--ease); display: block; }
.sh__photo:hover img { transform: scale(1.04); }
.sh__info h2 { margin-top: 14px; }
.sh__meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.hours { margin-top: 28px; border-top: 1px solid var(--hair); }
.hours__title { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 16px 0 6px; }
.hours__row { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 16px; color: var(--ink); }
.hours__row span:last-child { color: var(--body); white-space: nowrap; }
.hours__row span:first-child { white-space: nowrap; }
.hours__row.is-today span:first-child::after { white-space: nowrap; }
.hours__row.is-today { font-weight: 500; color: var(--forest); }
.hours__row.is-today span:last-child { color: var(--forest); }
.hours__row.is-today span:first-child::after { content: "today"; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.sh__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15, 20, 17, .96); display: none; align-items: center; justify-content: center; padding: 64px 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff; color: #fff; display: grid; place-items: center; }
.lightbox .close svg, .lightbox .nav svg { width: 14px; height: 14px; }
.lightbox.is-single .nav { display: none; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #fff; color: #fff; display: grid; place-items: center; }
.lightbox .nav.prev { left: 20px; } .lightbox .nav.next { right: 20px; }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; opacity: .8; }

/* gallery slider (full bleed) */
.gslider { position: relative; }
.gslider .swiper-slide .ratio { aspect-ratio: 16 / 9; }
.gslider .dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; }
.gslider .arrows { position: absolute; right: 24px; bottom: 16px; z-index: 2; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team .ratio { aspect-ratio: 3 / 4; }
.team .ratio img { object-position: top; }
.team h3 { font-size: 18px; margin: 14px 0 2px; }
.team p { font-size: 14px; color: var(--muted); }
.team a { font-size: 14px; color: var(--body); }

/* ---------- index cards (programs / news) ---------- */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icard { background: var(--cream-2); display: flex; flex-direction: column; }
.icard .ratio { aspect-ratio: 4 / 3; }
.icard .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.icard h3 { margin-bottom: 4px; }
.icard .cat { font-size: 14px; font-style: italic; color: var(--muted); }
.icard p { font-size: 15px; margin: 14px 0 20px; }
.icard .link-arrow { margin-top: auto; }

/* ---------- contact rows ---------- */
.rows { border-top: 1px solid var(--hair); max-width: 560px; }
.rows button, .rows a { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); font-size: 18px; color: var(--ink); text-align: left; transition: padding-left .3s var(--ease); }
.rows button:hover, .rows a:hover { padding-left: 8px; }
.rows .circ { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; }
.rows .circ svg { width: 12px; height: 12px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.hours td:last-child { text-align: right; color: var(--ink); }
.phone-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .12em; margin: 8px 8px 0 0; }

/* ---------- pattern band ---------- */
.band { height: clamp(140px, 17vw, 245px); background: var(--theme); overflow: hidden; margin-top: var(--sec); }
.band svg { width: 100%; height: 100%; }
.band--flush, main:has(> .cta:last-child) + .band { margin-top: 0; }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: #fff; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; }
.footer .logo img { width: 220px; }
.footer .blurb { font-size: 18px; line-height: 1.5; max-width: 260px; margin: 28px 0; }
.footer h4 { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 10px 0 28px; }
.footer .col a, .footer .col p { display: block; font-size: 15px; line-height: 1.5; margin-bottom: 14px; opacity: .9; }
.footer .col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer .fine { padding: 0 0 40px; max-width: 1180px; }
.footer .bottom { background: var(--forest-2); font-size: 14px; }
.footer .bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.footer .bottom .links { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; }
.footer .bottom .links a + a::before { content: "|"; margin-right: 10px; opacity: .5; }
.footer .socials { display: flex; gap: 14px; }
.footer .socials svg { width: 22px; height: 22px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal-group].is-in > * { opacity: 1; transform: none; }
[data-reveal-group].is-in > *:nth-child(2) { transition-delay: .12s; }
[data-reveal-group].is-in > *:nth-child(3) { transition-delay: .24s; }
[data-reveal-group].is-in > *:nth-child(4) { transition-delay: .36s; }
[data-reveal-group].is-in > *:nth-child(n+5) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .hero__media img.kb { animation: none; }
}

/* ---------- misc ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.notice { background: var(--cream-2); border-left: 2px solid var(--bronze); padding: 18px 22px; font-size: 15px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.spec-row div { flex: 1 1 140px; padding: 20px 16px; border-right: 1px solid var(--hair); }
.spec-row div:last-child { border-right: 0; }
.spec-row b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.spec-row span { font-size: 20px; color: var(--ink); }
.price-tag { font-size: clamp(26px, 2.6vw, 36px); color: var(--ink); font-weight: 400; }
.price-tag small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.status-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; background: var(--theme); color: #fff; }

/* ---------- Available Lots: map + list ---------- */
.lots__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.lots__asof { font-size: 14px; color: var(--muted); margin-top: 8px; }
.lots__filters { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border: 1px solid rgba(41, 41, 41, .3); color: var(--ink); background: transparent; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.select--sm { width: 240px; }
.select--sm select { font-size: 14px; padding: 10px 40px 10px 14px; background: var(--cream-2); }
.legend { display: flex; gap: 18px 22px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend__approx { color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--forest); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(41, 41, 41, .15); flex: none; }
.dot--available { background: var(--forest); } .dot--hold { background: var(--bronze); } .dot--home { background: var(--sage); } .dot--showhome { background: var(--gold); } .dot--sold { background: #A09B91; }
.dot--home, .dot--showhome { background-image: radial-gradient(circle, #fff 0 1.6px, transparent 1.9px); }
.lotmap-wrap { position: relative; margin-top: 28px; }
.map--lots { height: clamp(480px, 72vh, 760px); }
.lotmap__full { position: absolute; right: 14px; bottom: 34px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; background: var(--cream-2); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); border-radius: 2px; }
.lotmap__full svg { width: 16px; height: 16px; }
.lotmap__full span { display: inline-flex; align-items: center; gap: 8px; }
.lotmap__full .lotmap__full-close { display: none; }
.lotmap__count { position: absolute; left: 14px; bottom: 34px; z-index: 5; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; background: rgba(240, 238, 234, .9); color: var(--ink); border-radius: 2px; pointer-events: none; }
.lotmap__count:empty { display: none; }
body.map-full { overflow: hidden; }
body.map-full .lotmap-wrap { position: fixed; inset: 0; z-index: 80; margin: 0; }
body.map-full .map--lots { height: 100%; }
body.map-full .lotmap__full .lotmap__full-open { display: none; } body.map-full .lotmap__full .lotmap__full-close { display: inline-flex; }
body.map-full .lotmap__full { bottom: max(24px, env(safe-area-inset-bottom)); }
body.map-full .lotmap__count { bottom: max(24px, env(safe-area-inset-bottom)); }
body.map-full .header { display: none; }
/* popup */
.map .lotpop .maplibregl-popup-content { padding: 16px 18px 14px; max-width: 300px; }
.map .lotpop .maplibregl-popup-close-button { font-size: 20px; color: var(--muted); padding: 4px 8px; right: 2px; top: 2px; }
.map .lotpop .maplibregl-popup-close-button:hover { background: transparent; color: var(--ink); }
.lp b { font-size: 17px; font-weight: 500; line-height: 1.25; margin: 4px 0 6px; padding-right: 18px; }
.lp__town { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.lp__eyebrow { display: flex; align-items: center; gap: 7px; padding-right: 22px; line-height: 1.35; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lp__meta { font-size: 13px; line-height: 1.45; color: var(--body); }
.lp__note { font-size: 13px; line-height: 1.45; color: var(--ink); margin-top: 4px; }
.lp__price { font-size: 20px; font-weight: 500; color: var(--ink); margin-top: 10px; line-height: 1.2; }
.lp__price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.lp__fine { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 8px; }
.lp__approx { color: var(--bronze); }
.lp__actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.lp__btn { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; background: var(--forest); color: #fff; transition: background .3s; }
.lp__btn:hover { background: var(--ink); }
.lp--hold .lp__btn { background: var(--bronze); } .lp--home .lp__btn, .lp--showhome .lp__btn { background: var(--sage); }
.lp__ask { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.lp__dir { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
/* list */
.lgroups { display: grid; gap: 40px; }
.lgroup.is-hidden { display: none; }
.lgroup__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.lgroup__head p { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.lrows { display: grid; }
.lrow { display: grid; grid-template-columns: 1.5fr 1fr 1.6fr .9fr 1fr; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--body); transition: background .25s; }
.lrow:hover, .lrow.is-active { background: var(--cream-2); }
.lrow.is-hidden { display: none; }
.lrow__addr { color: var(--ink); font-weight: 500; }
.lrow__addr small { color: var(--bronze); font-weight: 400; margin-left: 2px; }
.lrow__price { color: var(--ink); font-weight: 500; white-space: nowrap; }
.lrow__price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.lrow__status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); justify-self: end; white-space: nowrap; }
.lgroup__foot { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- home: Build & Price promo ---------- */
.promo { display: flex; justify-content: space-between; align-items: center; gap: 32px; background: var(--forest); color: #fff; padding: clamp(28px, 4vw, 48px); }
.promo .eyebrow { color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.promo h2, .promo p { color: #fff; }
.promo .measure { color: rgba(255, 255, 255, .85); max-width: 640px; }
.promo .btn--theme { --theme: var(--bronze); flex: none; }
@media (max-width: 720px) { .promo { flex-direction: column; align-items: flex-start; } }

/* ---------- Build & Price configurator ---------- */
.builder { padding-bottom: 120px; }
.bsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 40px; counter-reset: none; }
.bstep-tab { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n t" "n s"; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--cream-2); border-top: 2px solid transparent; cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s; }
.bstep-tab.is-current { opacity: 1; border-top-color: var(--bronze); }
.bstep-tab.is-done { opacity: 1; }
.bstep-tab.is-locked { cursor: default; }
.bsteps__n { grid-area: n; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--cream); color: var(--ink); }
.bstep-tab.is-current .bsteps__n { background: var(--forest); color: #fff; }
.bstep-tab.is-done .bsteps__n { background: var(--bronze); color: #fff; }
.bsteps__t { grid-area: t; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.bstep-tab small { grid-area: s; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bstep { display: none; }
.bstep.is-current { display: block; animation: bstep-in .45s var(--ease); }
@keyframes bstep-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bstep__head { margin-bottom: 28px; }
.bstep__head p { margin-top: 12px; }
.bfilters { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 22px; }
.bfilters__selects { display: flex; gap: 10px; flex-wrap: wrap; }
.bfilters__count { font-size: 13px; color: var(--muted); margin-left: auto; }
.bfine { font-size: 13px; color: var(--muted); margin-top: 22px; }
.bfine a { text-decoration: underline; text-underline-offset: 3px; }
.bplan__check { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; z-index: 2; }
.bplan__check svg { width: 14px; height: 14px; }
.is-selected > .bplan__check, .is-selected > .bplan__pick .bplan__check { opacity: 1; transform: scale(1); }
/* step 1 */
.pgrid-b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bplan { position: relative; }
.bplan.is-hidden { display: none; }
.bplan__pick { display: block; width: 100%; text-align: left; background: var(--cream-2); border: 2px solid transparent; transition: border-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; }
.bplan__pick:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .35); }
.bplan.is-selected .bplan__pick { border-color: var(--forest); }
.bplan__img { display: block; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.bplan__img img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 10px; }
.bplan__body { display: block; padding: 14px 16px 18px; }
.bplan__name { display: block; font-size: 18px; color: var(--ink); font-weight: 500; }
.bplan__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.bplan__price { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 10px; }
.bplan__zoom { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(240, 238, 234, .92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); z-index: 2; }
.bplan__zoom svg { width: 15px; height: 15px; }
/* step 2 */
.bspecs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.bspec { position: relative; text-align: left; background: var(--cream-2); border: 2px solid transparent; padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 6px; transition: border-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.bspec:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .35); }
.bspec.is-selected { border-color: var(--forest); }
.bspec__tag { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.bspec__name { font-size: 30px; color: var(--ink); line-height: 1.1; }
.bspec__price { font-size: 22px; font-weight: 500; color: var(--ink); margin-top: 4px; }
.bspec__price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.bspec__blurb { font-size: 15px; line-height: 1.55; color: var(--body); margin-top: 10px; }
.bspec__list { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.bspec__list li { display: flex; align-items: center; gap: 8px; }
.bspec__list svg { width: 14px; height: 14px; color: var(--forest); flex: none; }
/* step 3 */
.blot-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.blot-map { position: sticky; top: 88px; }
.map--build { height: clamp(360px, 56vh, 560px); }
.blot-group { margin-bottom: 26px; }
.blot-group.is-hidden { display: none; }
.blot-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.blot-group__head h3 { font-size: 19px; }
.blot-group__head p { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blot { position: relative; display: grid; grid-template-columns: 1.2fr 1.3fr auto auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 40px 12px 8px; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--body); transition: background .25s; }
.blot:hover, .blot.is-selected { background: var(--cream-2); }
.blot.is-hidden { display: none; }
.blot[data-fit-state="no"] { opacity: .55; }
.blot__addr { color: var(--ink); font-weight: 500; }
.blot__addr small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.blot__spec { font-size: 13px; color: var(--muted); }
.blot__fit { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; white-space: nowrap; }
.blot__fit--fits { background: var(--forest); color: #fff; }
.blot__fit--tight { background: var(--bronze); color: #fff; }
.blot__fit--no { background: var(--cream); color: var(--muted); }
.blot__price { color: var(--ink); font-weight: 500; white-space: nowrap; }
.blot .bplan__check { top: 50%; margin-top: -14px; right: 6px; }
/* step 4 */
.best { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.best__card { background: var(--cream-2); padding: 28px; }
.best__top { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.best__img { background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.best__img img { width: 100%; height: auto; padding: 8px; }   /* full drawing at its own proportions — nothing cropped */
.best__zoom { position: relative; display: block; width: 100%; cursor: zoom-in; }
.best__zoom .bplan__zoom { top: 6px; left: 6px; width: 28px; height: 28px; pointer-events: none; }
.best__top h3 { font-size: 26px; margin-top: 2px; }
.best__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.best__lot { font-size: 15px; color: var(--ink); margin-top: 10px; }
.best__lines { margin: 24px 0 0; display: grid; }
.best__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.best__lines dt { color: var(--body); } .best__lines dd { margin: 0; color: var(--ink); font-weight: 500; white-space: nowrap; }
.best__sub dt, .best__sub dd { color: var(--ink); }
.best__credit dd { color: var(--forest); }
.best__credit dt small { display: block; font-size: 11px; color: var(--muted); }
.best__total { border-bottom: 0 !important; padding-top: 14px !important; }
.best__total dt { font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.best__total dd { font-size: 28px; }
.best__rebate { margin-top: 14px; padding: 14px 16px; background: rgba(30, 58, 42, .08); border-left: 2px solid var(--forest); font-size: 14px; line-height: 1.55; }
.best__rebate a { text-decoration: underline; text-underline-offset: 3px; }
.best__fine { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.best__share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.best__share .btn { gap: 8px; } .best__share svg { width: 16px; height: 16px; }
.best__shared { font-size: 13px; color: var(--forest); font-weight: 700; word-break: break-all; }
.best__form { background: var(--forest); color: #fff; padding: 28px; }
.best__form .eyebrow { color: rgba(255, 255, 255, .7); }
.best__form h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.best__form > p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.best__form .form { margin-top: 22px; }
.best__form .form label { color: rgba(255, 255, 255, .85); }
.best__form .form input, .best__form .form textarea { background: rgba(255, 255, 255, .95); border-color: transparent; color: var(--ink); }
.best__form .btn--theme { --theme: var(--bronze); }
.best__form .bfine { color: rgba(255, 255, 255, .7); }
.best__form .bfine a { color: #fff; }
/* sticky bar */
.bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--cream-2); border-top: 1px solid var(--hair); box-shadow: 0 -10px 30px rgba(0, 0, 0, .08); transform: translateY(100%); transition: transform .45s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.bbar.is-ready { transform: none; }
.bbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.bbar__sum { min-width: 0; }
.bbar__label { display: block; font-size: 14px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbar__total { display: block; font-size: 13px; color: var(--muted); }
.bbar__btns { display: flex; gap: 10px; flex: none; }
.bbar .btn { padding: 12px 16px; font-size: 12px; }
.bbar .btn:disabled { opacity: .45; cursor: default; }
.bbar .btn:disabled:hover { background: var(--theme); }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .header .logo img { height: 52px; }
  .header .phone { display: none; }
  .two-tile .tile-sm { grid-column: 1 / span 6; }
  .two-tile .tile-lg { grid-column: 7 / span 6; }
  .two-tile--flip .tile-lg { grid-column: 1 / span 6; }
  .two-tile--flip .tile-sm { grid-column: 7 / span 6; }
  .team, .ccards, .icards { grid-template-columns: repeat(2, 1fr); }
  .ggrid { columns: 2; }
  .footer .top { grid-template-columns: 1fr 1fr; }
  .fp-row__inner { grid-template-columns: 1fr; gap: 8px; }
  .sh { grid-template-columns: 1fr; gap: 28px; }
  .sh--flip .sh__photo { order: 0; }
  .fp-row__inner--plan { grid-template-columns: 1fr 1fr; }
  .fp-plan { grid-column: 1 / -1; max-height: 60vh; }
  .lrow { grid-template-columns: 1.4fr 1fr 1.4fr 1fr; }
  .lrow__spec { display: none; }
  .pgrid-b { grid-template-columns: repeat(3, 1fr); }
  .blot-layout, .best { grid-template-columns: 1fr; }
  .blot-map { position: static; }
  .map--build { height: 50vh; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --bleed: 12px; }
  body { line-height: 1.6; }
  .hero { min-height: 100svh; }
  .hero__inner { padding-bottom: 36px; }
  .hero__inner .container { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero h1 { max-width: none; }
  .hero__cta .label { font-size: 15px; }
  .cta-pair { flex-direction: column; gap: 10px; }
  .cta-pair .select, .cta-pair .pill { width: 100%; }
  .split-hero { grid-template-columns: 1fr; }
  .split-hero__panel { padding: 120px 24px 48px; }
  .split-hero__media { min-height: 62vw; }
  .two-tile, .two-tile--flip { display: flex; flex-direction: column-reverse; gap: 28px; }
  .two-tile .tile-sm { padding-top: 0; }
  .two-tile .tile-lg, .two-tile--flip .tile-lg { margin: 0 calc(-1 * var(--gutter)); }
  .two-tile .copy { margin-top: 24px; }
  .two-tile--lgfirst, .two-tile--flip.two-tile--lgfirst { flex-direction: column; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .pgrid { grid-template-columns: 1fr; }
  /* phones: photo on top (centred crop), details box underneath — nothing covers the photo */
  .pcard, .pgrid .pcard, .pgrid .pcard:first-child, .fslider .swiper-slide .pcard { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--theme); }
  .pcard img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .pcard__box { position: static; width: 100%; padding: 18px 20px 16px; }
  .pcard__box .ptitle { font-size: 24px; }
  .slider-foot { flex-wrap: wrap; }
  .team, .ccards, .icards { grid-template-columns: 1fr; }
  .ggrid { columns: 2; column-gap: 10px; }
  .ggrid button { margin-bottom: 10px; }
  .footer .top { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .footer .bottom .container { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .fp-row__head { grid-template-columns: 1fr 1fr 56px; grid-template-rows: auto auto; text-align: left; font-size: 15px; }
  .fp-row__head > span { padding: 12px 14px; border-right: 0; justify-content: flex-start; }
  .fp-row__head > span:first-child { grid-column: 1 / 3; font-size: 18px; padding-bottom: 4px; border-bottom: 0; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .fp-from { font-size: 11px; }
  .fp-row__head > span:nth-child(5) { grid-column: 1 / 3; padding-top: 0; }
  .fp-row__head > span:nth-child(2), .fp-row__head > span:nth-child(3), .fp-row__head > span:nth-child(4) { padding-top: 0; padding-bottom: 4px; }
  .fp-row__head > span:nth-child(4) { grid-column: 1 / 3; }
  .fp-row__head > span:last-child { grid-row: 1 / 4; grid-column: 3; justify-content: center; }
  .fp-row__head small { display: inline; color: var(--muted); font-size: 12px; margin-right: 6px; }
  .fp-search { flex-basis: 100%; max-width: none; }
  .fp-row__inner { padding: 8px 16px 24px; }
  .fp-row__inner--plan { grid-template-columns: 1fr; }
  .fp-plan { margin-top: 16px; max-height: 70vh; }
  .acc summary { font-size: 19px; padding: 18px 0; }
  .acc .acc__body ul { grid-template-columns: 1fr; }
  .subnav ul { gap: 24px; }
  .subnav a { padding: 16px 0 14px; font-size: 12px; }
  .map { height: 60vh; }
  .map--lots { height: 68svh; }
  .lots__head { align-items: stretch; }
  .lots__head > * { width: 100%; min-width: 0; }
  .lots__filters { align-items: stretch; flex-direction: column; gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .select--sm { width: 100%; }
  .legend { gap: 10px 16px; font-size: 12px; }
  .lotmap__full { bottom: 28px; right: 10px; }
  .lotmap__count { left: 10px; bottom: 28px; font-size: 11px; }
  .lrow { grid-template-columns: 1fr auto; grid-template-areas: "addr price" "lot status" "spec spec"; gap: 4px 12px; padding: 14px 4px; font-size: 14px; }
  .lrow__addr { grid-area: addr; } .lrow__price { grid-area: price; } .lrow__lot { grid-area: lot; font-size: 13px; color: var(--muted); } .lrow__status { grid-area: status; font-size: 11px; }
  .lrow__spec { grid-area: spec; display: block; font-size: 12px; color: var(--muted); }
  .builder { padding-bottom: 110px; }
  .bsteps { grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 28px; }
  .bstep-tab { grid-template-columns: 1fr; grid-template-areas: "n" "t"; justify-items: center; padding: 10px 4px; row-gap: 6px; }
  .bstep-tab small { display: none; }
  .bsteps__n { width: 26px; height: 26px; font-size: 12px; }
  .bsteps__t { font-size: 10px; letter-spacing: .12em; }
  .bfilters { gap: 10px; }
  .bfilters .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .bfilters__selects { width: 100%; }
  .bfilters__selects .select--sm { flex: 1; width: auto; }
  .bfilters__count { margin-left: 0; width: 100%; }
  .pgrid-b { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bplan__body { padding: 10px 12px 14px; }
  .bplan__name { font-size: 15px; } .bplan__meta { font-size: 11px; } .bplan__price { font-size: 13px; margin-top: 6px; }
  .bplan__zoom { width: 28px; height: 28px; top: 6px; left: 6px; }
  .bplan__check { width: 24px; height: 24px; top: 8px; right: 8px; }
  .bspecs { grid-template-columns: 1fr; gap: 12px; }
  .bspec { padding: 20px 18px; }
  .bspec__name { font-size: 24px; } .bspec__price { font-size: 19px; }
  .blot { grid-template-columns: 1fr auto; grid-template-areas: "addr price" "spec fit"; gap: 4px 10px; padding: 12px 36px 12px 4px; }
  .blot__addr { grid-area: addr; } .blot__price { grid-area: price; } .blot__spec { grid-area: spec; } .blot__fit { grid-area: fit; justify-self: end; }
  .best__card, .best__form { padding: 20px 18px; }
  .best__top { grid-template-columns: 110px 1fr; gap: 14px; }
  .best__top h3 { font-size: 22px; }
  .best__total dd { font-size: 24px; }
  .bbar__inner { gap: 12px; }
  .bbar__back { display: none; }
  .bbar.is-ready .bbar__back { display: inline-flex; }
  .bbar .btn { padding: 12px 14px; }
  .drawer { padding: 84px 24px 40px; }
  #d-menu { padding-top: 60px; padding-bottom: 20px; }
  .drawer nav a { padding: 8px 0 9px; }
  .spec-row div { flex-basis: 50%; }
  .spec-row div:nth-child(2n) { border-right: 0; }
  .band { margin-top: calc(var(--sec) * .8); }
}
