/* =========================================================
   Devonshire Business Park — Stylesheet
   Palette: Navy / White / Light Brown (Tan)
   ========================================================= */

:root {
  --navy: #101d38;
  --navy-2: #16274a;
  --navy-deep: #0a1326;
  --white: #ffffff;
  --off-white: #f7f5f1;
  --stone: #eee9e1;
  --tan: #b98f5a;
  --tan-light: #d9bd8f;
  --tan-pale: #f1e4cd;
  --ink: #1b1c1f;
  --ink-soft: #52565f;
  --line: #e3ddd2;
  --success: #2f6e4f;
  --shadow-sm: 0 2px 10px rgba(16, 29, 56, 0.06);
  --shadow-md: 0 12px 34px rgba(16, 29, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 29, 56, 0.20);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  transition: opacity 0.28s ease;
}
body.page-out { opacity: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark { width: 58px; height: 58px; animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader-mark img { width: 100%; height: 100%; }
.preloader-word { font-family: 'Fraunces', serif; color: rgba(255,255,255,0.85); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.preloader-bar { width: 130px; height: 2px; background: rgba(255,255,255,0.14); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; width: 36%; height: 100%; background: var(--tan); border-radius: 2px; animation: preloaderSlide 1.15s ease-in-out infinite; }
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.72; } }
@keyframes preloaderSlide { 0% { transform: translateX(-130%); } 100% { transform: translateX(370%); } }

/* ---------- Image fade-in (paired with script.js) ---------- */
img.fade-load { opacity: 0; transition: opacity 0.6s var(--ease); }
img.fade-load.is-loaded { opacity: 1; }
.feature-media, .plan-wrap { background: linear-gradient(120deg, #dfe3e8 0%, #eef0f2 50%, #dfe3e8 100%); background-size: 200% 100%; }
.feature-media img.is-loaded, .plan-wrap img.is-loaded { position: relative; }

h1, h2, h3, h4, .serif {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.12;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--tan);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

.pad { padding: 96px 0; }
.pad-sm { padding: 64px 0; }
@media (max-width: 720px) {
  .pad { padding: 64px 0; }
  .pad-sm { padding: 44px 0; }
}

.bg-navy { background: var(--navy); color: rgba(255,255,255,0.92); }
.bg-navy h2, .bg-navy h3, .bg-navy .serif { color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,0.68); }
.bg-off { background: var(--off-white); }
.bg-stone { background: var(--stone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn-primary { background: var(--tan); color: var(--navy-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--tan-light); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled { padding: 12px 0; background: rgba(16, 29, 56, 0.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Fraunces', serif; font-size: 1.06rem; letter-spacing: 0.01em; color: var(--white); }
.brand-text span { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan-light); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { color: rgba(255,255,255,0.8); font-size: 0.86rem; display: flex; align-items: center; gap: 8px; }
.header-phone svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--white); display: block; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav panel + scrim: always fixed/hidden off-canvas, regardless of
   viewport width, so they never affect normal document flow on desktop. */
.mobile-panel {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(320px, 84vw);
  background: var(--navy-deep);
  z-index: 600;
  padding: 100px 30px 40px;
  transition: right 0.4s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.mobile-panel.open { right: 0; }
.mobile-panel a { display: block; padding: 15px 0; color: rgba(255,255,255,0.85); font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-panel .btn { margin-top: 24px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 590; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  /* z-index:0 (not just position:relative) is what makes this element
     establish its own stacking context — without it, the negative
     z-index pseudo-elements below escape to the nearest ancestor
     stacking context instead of layering inside .hero, and the photo
     ends up painted behind almost everything (a real bug we hit and
     fixed: the hero photo was invisible until this was added). */
  position: relative;
  z-index: 0;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../assets/images/hero-exterior-1920.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 32%;
  z-index: -2;
  transform: scale(1.06);
}
@supports (background-image: image-set(url('x.jpg') 1x)) {
  .hero::after {
    background-image: image-set(
      url('../assets/images/hero-exterior-1920.jpg') 1x,
      url('../assets/images/hero-exterior-1920.webp') 1x
    );
  }
}
@media (max-width: 900px) {
  /* A dedicated portrait-cropped photo, not a CSS crop of the wide desktop
     shot — keeps the lit glass entrance framed instead of showing a thin,
     zoomed sliver of plain wall when a 16:9 photo is cover-fit into a tall
     narrow phone screen. */
  .hero::after {
    background-image: url('../assets/images/hero-exterior-mobile-810.jpg');
    background-position: center 38%;
    transform: scale(1.0);
  }
  @supports (background-image: image-set(url('x.jpg') 1x)) {
    .hero::after {
      background-image: image-set(
        url('../assets/images/hero-exterior-mobile-810.jpg') 1x,
        url('../assets/images/hero-exterior-mobile-810.webp') 1x
      );
    }
  }
}
@media (max-width: 480px) {
  .hero::after { background-image: url('../assets/images/hero-exterior-mobile-480.jpg'); }
  @supports (background-image: image-set(url('x.jpg') 1x)) {
    .hero::after {
      background-image: image-set(
        url('../assets/images/hero-exterior-mobile-480.jpg') 1x,
        url('../assets/images/hero-exterior-mobile-480.webp') 1x
      );
    }
  }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,19,38,0.4) 0%, rgba(10,19,38,0.52) 45%, rgba(10,19,38,0.96) 100%);
  z-index: -1;
}
/* padding-top/bottom only (not the shorthand) — this element also carries
   .container, and a shorthand here would zero out .container's left/right
   padding since both classes target the same element and this rule comes
   later in the cascade. That silent gutter loss was the real cause of hero
   text sitting flush against the screen edge on mobile. */
.hero-inner { padding-top: 200px; padding-bottom: 72px; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: var(--tan-light);
  max-width: 100%;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 820px;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em { color: var(--tan-light); font-style: normal; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.22rem); color: rgba(255,255,255,0.86); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 34px;
}
.hero-stats .stat { min-width: 0; }
.hero-stats .stat b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
}
.hero-stats .stat span { font-size: 0.8rem; color: rgba(255,255,255,0.62); letter-spacing: 0.03em; }

/* Page header (non-home hero, smaller) */
.page-hero {
  position: relative;
  padding: 168px 0 90px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(10,19,38,0.58), rgba(10,19,38,0.88)), url('../assets/images/aerial-alt-1800.jpg') center/cover;
}
@media (max-width: 720px) {
  .page-hero { background-image: linear-gradient(180deg, rgba(10,19,38,0.58), rgba(10,19,38,0.88)), url('../assets/images/aerial-alt-768.jpg'); }
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 700px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin-top: 16px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--tan-light); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.42s; }

/* ---------- Grids / Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.info-card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--tan-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.info-card .icon svg { width: 24px; height: 24px; stroke: var(--tan); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.info-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Feature split */
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.feature-media:hover img { transform: scale(1.04); }

/* Split media (shell vs. finished, two stacked photo cards) */
.split-media { display: flex; flex-direction: column; gap: 18px; }
.split-media-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: linear-gradient(120deg, #dfe3e8 0%, #eef0f2 50%, #dfe3e8 100%);
}
.split-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.split-media-item:hover img { transform: scale(1.05); }
.split-media-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(10, 19, 38, 0.82);
  color: var(--tan-light);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.feature-copy .eyebrow { margin-bottom: 16px; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.feature-copy ul.check-list { margin-top: 22px; }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.96rem; color: var(--ink); }
.check-list li:first-child { border-top: none; }
.check-list svg { width: 18px; height: 18px; stroke: var(--tan); flex-shrink: 0; margin-top: 2px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.stat-strip .stat-box {
  padding: 38px 26px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-strip .stat-box:last-child { border-right: none; }
.stat-strip .stat-box b { display: block; font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--tan-light); margin-bottom: 6px; }
.stat-strip .stat-box span { color: rgba(255,255,255,0.68); font-size: 0.82rem; letter-spacing: 0.03em; }

/* ---------- Specs table ---------- */
.specs-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--line); }
.specs-table td { padding: 16px 6px; font-size: 0.98rem; }
.specs-table td:first-child { color: var(--ink-soft); width: 46%; }
.specs-table td:last-child { font-weight: 600; color: var(--navy); text-align: right; }

.zoning-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.zoning-box h4 { font-size: 1rem; color: var(--navy); margin-bottom: 12px; letter-spacing: 0.02em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag-list span { background: var(--tan-pale); color: #7a5a2c; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.tag-list.m3 span { background: var(--stone); color: var(--navy); }

/* ---------- Interactive Site Plan ---------- */
.plan-scroll {
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
}
.plan-wrap {
  position: relative;
  background: #cfd6de;
  line-height: 0;
}
.plan-wrap img { width: 100%; height: auto; display: block; }
.plan-scroll-hint {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 10px;
}
.plan-scroll-hint svg { width: 15px; height: 15px; }
.unit-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(16,29,56,0.85);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  z-index: 2;
}
.unit-dot:hover, .unit-dot:focus-visible { transform: translate(-50%, -50%) scale(1.22); background: var(--tan); color: var(--navy-deep); }
.unit-dot.status-reserved { background: rgba(185,143,90,0.92); }
.unit-dot.status-sold { background: rgba(120,124,132,0.85); }
.unit-dot .pulse {
  position: absolute; inset: -6px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.7);
  animation: pulse 2.6s infinite;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }

.plan-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.plan-legend .item { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--ink-soft); }
.plan-legend .dot { width: 13px; height: 13px; border-radius: 999px; }
.dot.available { background: rgba(16,29,56,0.85); }
.dot.reserved { background: var(--tan); }
.dot.sold { background: #7c8088; }

.building-labels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.building-labels span { font-size: 0.78rem; color: var(--ink-soft); background: var(--stone); padding: 6px 14px; border-radius: 999px; }

.plan-download { margin-top: 22px; }
.download-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.86rem; font-weight: 600; color: var(--navy);
  border-bottom: 1px solid rgba(16,29,56,0.25);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.download-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.download-link:hover { color: var(--tan-deep, var(--tan)); border-color: currentColor; }

/* Unit table (fallback / detail list) */
.unit-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.unit-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.unit-table thead { background: var(--navy); color: var(--white); }
.unit-table th, .unit-table td { padding: 14px 18px; text-align: left; font-size: 0.9rem; }
.unit-table tbody tr { border-bottom: 1px solid var(--line); transition: background 0.2s; }
.unit-table tbody tr:hover { background: var(--off-white); }
.unit-table td:last-child { text-align: right; }
.status-pill { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; }
.status-pill.available { background: #e6f2ea; color: var(--success); }
.status-pill.reserved { background: var(--tan-pale); color: #8a6a35; }
.status-pill.sold { background: #eceef0; color: #63676f; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,19,38,0.6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 38px 34px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--off-white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--stone); }
.modal-box .unit-badge { display: inline-block; background: var(--tan-pale); color: #7a5a2c; font-weight: 700; font-size: 0.78rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.modal-box h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-box .modal-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.modal-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.modal-detail-grid div span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 4px; }
.modal-detail-grid div b { font-size: 0.98rem; color: var(--navy); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--tan); box-shadow: 0 0 0 4px rgba(185,143,90,0.15);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.form-status { margin-top: 16px; font-size: 0.9rem; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f2ea; color: var(--success); }
.form-status.err { background: #fbe9e7; color: #b23a2e; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.contact-form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 40px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step .num {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--tan-light);
  margin-bottom: 22px;
}
.step h3 { color: var(--white); margin-bottom: 10px; font-size: 1.15rem; }
.step p { color: rgba(255,255,255,0.65); font-size: 0.94rem; }
.step:not(:last-child)::after {
  content: '';
  position: absolute; top: 28px; left: 76px; right: -20px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

/* ---------- Partner / trust logos ---------- */
.partner-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.partner-chip {
  flex: 1 1 220px;
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.partner-chip .mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--tan-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}
.partner-chip .txt strong { display: block; font-size: 0.95rem; color: var(--navy); }
.partner-chip .txt span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Broker cards ---------- */
.broker-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.broker-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.broker-card .avatar {
  width: 68px; height: 68px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--tan-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.broker-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.broker-card .role { font-size: 0.8rem; color: var(--tan); font-weight: 600; margin-bottom: 14px; }
.broker-card a.contact-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.86rem; color: var(--ink-soft); padding: 6px 0; transition: color 0.2s; }
.broker-card a.contact-line:hover { color: var(--navy); }
.broker-card a.contact-line svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Map / location ---------- */
.locate-diagram {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 420px;
  overflow: hidden;
}
.locate-diagram svg { width: 100%; height: auto; }
.locate-pin-label { fill: rgba(255,255,255,0.85); font-size: 12px; font-family: 'Inter', sans-serif; }
.locate-road-label { fill: rgba(255,255,255,0.4); font-size: 10.5px; letter-spacing: 0.05em; }

.neighbor-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.neighbor-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.neighbor-list li .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tan); flex-shrink: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; position: relative; display: block; }
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a.big { grid-column: span 2; grid-row: span 2; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 22px;
  padding: 64px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 480px; }
.cta-banner p { color: rgba(255,255,255,0.68); margin-top: 10px; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 18px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 11px; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--tan-light); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--tan), var(--tan-light));
  z-index: 700;
  transition: width 0.12s linear;
}

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Interactive maps (Leaflet) ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--stone);
}
.map-wrap.map-tall { height: 460px; }
.map-wrap.map-mini { height: 380px; }
.map-wrap .leaflet-container { width: 100%; height: 100%; font-family: 'Inter', sans-serif; background: #eef0f2; }
.map-wrap .leaflet-control-attribution { font-size: 10px; }
.map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, #dfe3e8 0%, #eef0f2 50%, #dfe3e8 100%);
  background-size: 200% 100%;
  color: var(--ink-soft);
  font-size: 0.85rem;
  z-index: 1;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.map-loading.hide { opacity: 0; }
.map-pin-home {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--tan); border: 3px solid var(--navy-deep);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.map-pin-neighbor {
  width: 14px; height: 14px; border-radius: 999px;
  background: #fff; border: 2.5px solid var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { font-family: 'Inter', sans-serif; font-size: 0.85rem; margin: 12px 14px; line-height: 1.5; }
.leaflet-popup-content strong { font-family: 'Fraunces', serif; color: var(--navy); font-size: 0.95rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.map-legend .item { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--ink-soft); }
.map-legend .swatch { width: 13px; height: 13px; border-radius: 999px; flex-shrink: 0; }
.map-legend .swatch.home { background: var(--tan); border: 2px solid var(--navy-deep); }
.map-legend .swatch.neighbor { background: #fff; border: 2px solid var(--navy); }

/* ---------- Unit cards (mobile list, replaces table below 700px) ---------- */
.unit-cards { display: none; flex-direction: column; gap: 12px; }
.unit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.unit-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.unit-card-top .unit-name { font-family: 'Fraunces', serif; font-size: 1.08rem; color: var(--navy); }
.unit-card-top .unit-building { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; font-family: 'Inter', sans-serif; }
.unit-card .unit-size { font-size: 0.92rem; color: var(--ink); }
.unit-card .btn { width: 100%; }

@media (max-width: 700px) {
  .unit-table-wrap { display: none; }
  .unit-cards { display: flex; }
}
@media (min-width: 701px) {
  .unit-cards { display: none; }
}

/* ---------- Builder projects accordion ---------- */
.builder-projects { margin-top: 36px; border-top: 1px solid var(--line); }
.project-row { border-bottom: 1px solid var(--line); }
.project-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px;
  background: none; border: none; text-align: left;
  font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--navy);
}
.project-toggle .ptxt { display: flex; flex-direction: column; gap: 3px; }
.project-toggle .ploc { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.project-toggle .picon {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.project-toggle .picon svg { width: 14px; height: 14px; stroke: var(--tan); transition: transform 0.35s var(--ease); }
.project-toggle[aria-expanded="true"] .picon { background: var(--tan); border-color: var(--tan); }
.project-toggle[aria-expanded="true"] .picon svg { stroke: var(--navy-deep); transform: rotate(45deg); }
.project-body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.project-body-inner { padding: 0 2px 22px; }
.project-body-inner p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.project-meta div span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 3px; }
.project-meta div b { font-size: 0.95rem; color: var(--navy); }
.projects-more { margin-top: 22px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.disclaimer { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip, .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat-box:nth-child(2) { border-right: none; }
  .specs-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 46px; }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a.big { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-sm.desktop-only { display: none; }
}

@media (max-width: 480px) {
  .hero-tag { font-size: 0.66rem; padding: 7px 13px; gap: 7px; letter-spacing: 0.08em; }
}

@media (max-width: 720px) {
  .container { padding: 0 24px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem) !important; }
  .hero { min-height: 88vh; }
  .hero-inner { padding-top: 124px; padding-bottom: 48px; }
  .hero-tag { margin-bottom: 22px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-actions { margin-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; column-gap: 16px; padding-top: 26px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat-box { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-strip .stat-box:nth-child(2) { border-right: 1px solid rgba(255,255,255,0.12); }
  .cta-banner { flex-direction: column; text-align: center; padding: 44px 26px; align-items: stretch; }
  .cta-banner h2 { max-width: 100%; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .neighbor-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .page-hero { padding: 140px 0 64px; }
  .contact-form-card { padding: 26px; }
  .modal-box { padding: 30px 22px; }
  .modal-detail-grid { grid-template-columns: 1fr 1fr; }
  .unit-dot { width: 30px; height: 30px; font-size: 0.68rem; }
  .plan-wrap { min-width: 640px; }
  .plan-scroll-hint { display: flex; }
  .map-wrap.map-tall { height: 320px; }
  .map-wrap.map-mini { height: 260px; }
  .locate-diagram { padding: 22px; min-height: unset; }
  .project-toggle { font-size: 0.96rem; padding: 17px 2px; }
  .project-meta { gap: 8px 18px; }
  .builder-projects { margin-top: 28px; }
}
