/* ==========================================================
   Foundry Homes Theme — Complete Stylesheet
   Ported from HTML block library
   ========================================================== */

/* ── Reset + Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #F5F1E8;
  --cream-dark:   #EDE8DA;
  --green:        #2C5F3F;
  --green-light:  #4A8C62;
  --green-pale:   #A8D4B8;
  --navy:         #1A1F1A;
  --navy-mid:     #232A23;
  --navy-light:   #2E3D2E;
  --stone:        #8A877E;
  --stone-light:  #C8C4B8;
  --white:        #FFFFFF;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --mw:           1200px;
  --pad:          64px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); }

/* ── Shared Layout Shell ───────────────────────────────── */
.shell {
  width: min(calc(100% - 32px), var(--mw));
  margin: 0 auto;
}

/* ── Shared Typography ─────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--green);
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.center::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--green);
  flex-shrink: 0;
}
.eyebrow.light { color: rgba(255,255,255,0.5); }
.eyebrow.light::before, .eyebrow.light::after { background: rgba(255,255,255,0.5); }

.stitle {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--navy);
}
.stitle em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stitle.light { color: var(--white); }
.stitle.light em {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shared Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(14,28,42,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(14,28,42,0.35); }

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(44,95,63,0.3);
}
.btn-green:hover { transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--stone-light);
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--navy); background: var(--cream-dark); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ── Trust Pills ───────────────────────────────────────── */
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--stone);
  padding: 6px 12px;
  background: var(--cream-dark);
  border-radius: 100px;
}

/* ── Photo placeholders ────────────────────────────────── */
.ph1 { background: linear-gradient(135deg, #C2BDA8 0%, #96907E 100%); }
.ph2 { background: linear-gradient(135deg, #BDB8A4 0%, #908B78 100%); }
.ph3 { background: linear-gradient(135deg, #C8C4B0 0%, #9A9480 100%); }
.ph4 { background: linear-gradient(135deg, #B8B4A0 0%, #84806E 100%); }
.ph5 { background: linear-gradient(135deg, #C4C0AC 0%, #8E8A78 100%); }
.ph6 { background: linear-gradient(135deg, #BAB6A4 0%, #86826E 100%); }

/* ==========================================================
   SITE NAV
   ========================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-nav.scrolled,
.site-nav--solid {
  background: rgba(245,241,232,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
/* Transparent nav — clear until scroll (pages with dark full-bleed hero) */
.site-nav--transparent { background: transparent; box-shadow: none; }
.site-nav--transparent.scrolled {
  background: rgba(245,241,232,0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
/* Solid nav — always opaque, no need to wait for scroll */
.site-nav--solid { background: rgba(245,241,232,0.97) !important; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  max-width: calc(var(--mw) + var(--pad) * 2);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  gap: 2px;
  flex-shrink: 0;
}
.nav-logo-top {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-logo-bottom {
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--stone);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav--transparent .nav-links {
  margin-right: 28px;
  margin-left: auto;
}
.site-nav--transparent .nav-inner{
  max-width: unset;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--green); }
.nav-links li { list-style: none; }
.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--navy-light); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-nav-links li { list-style: none; }
.mobile-nav-links a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.mobile-cta {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
}

/* ==========================================================
   ANNOUNCEMENT BANNER
   ========================================================== */
.announcement-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.ab-text { font-size: 13.5px; font-weight: 500; color: var(--white); }
.ab-link {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
}
.ab-close {
  position: absolute;
  right: var(--pad);
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   HERO SPLIT
   ========================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}
.hero-split-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px var(--pad);
  background: var(--cream);
  position: relative;
  z-index: 2;
}
.hero-split-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(44,95,63,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero-split h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 5.5vw, 82px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.hero-split h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.72;
  max-width: 400px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.hero-split-right { position: relative; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #BDB8A4 0%, #969080 50%, #7A7568 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,28,42,0.5) 0%, transparent 50%);
}
.hero-photo-placeholder span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}
.hero-stat-card {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 10;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.2);
  min-width: 220px;
  border-top: 3px solid var(--green);
}
.stat-prefix {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--stone); line-height: 1.4; }
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(44,95,63,0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

/* ==========================================================
   HERO CENTERED
   ========================================================== */
.hero-centered {
  padding: 160px var(--pad) 100px;
  background: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-centered::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(44,95,63,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-centered h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -2px;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.hero-centered h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-centered-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.hero-centered-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-trust.center { justify-content: center; }

/* ==========================================================
   HERO DARK
   ========================================================== */
.hero-dark {
  min-height: 85vh;
  background: linear-gradient(160deg, var(--navy) 0%, #0A1510 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px var(--pad);
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(44,95,63,0.15) 0%, transparent 65%);
}
.hero-dark-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-dark h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-dark h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-dark-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}
.hero-dark-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ==========================================================
   VALUES GRID
   ========================================================== */
.values-grid-section {
  padding: 100px var(--pad);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.values-grid-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(44,95,63,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.vg-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.vg-intro { font-size: 18px; font-weight: 300; color: var(--stone); line-height: 1.75; }
.vg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  position: relative;
  z-index: 1;
}
.vg-card {
  background: var(--cream-dark);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s;
  cursor: default;
}
.vg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.vg-card-first { border-radius: 16px 0 0 16px; }
.vg-card-last  { border-radius: 0 16px 16px 0; }
.vg-card:hover { background: var(--navy); transform: translateY(-4px); }
.vg-card:hover::before { transform: scaleX(1); }
.vg-card:hover .vg-num, .vg-card:hover .vg-title, .vg-card:hover .vg-desc { color: var(--white); }
.vg-card:hover .vg-desc { color: rgba(255,255,255,0.5); }
.vg-card:hover .vg-line { background: var(--green); }
.vg-num { font-family: var(--serif); font-size: 13px; color: var(--stone); letter-spacing: 1px; margin-bottom: 20px; transition: color 0.3s; }
.vg-line { width: 32px; height: 2px; background: var(--stone-light); margin-bottom: 24px; transition: background 0.3s; }
.vg-title { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 12px; line-height: 1.2; transition: color 0.3s; }
.vg-desc { font-size: 14px; font-weight: 300; color: var(--stone); line-height: 1.7; transition: color 0.3s; }

/* ==========================================================
   STATS ROW
   ========================================================== */
.stats-row { padding: 80px var(--pad); background: var(--cream-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.stat-cell {
  background: var(--white);
  padding: 44px 36px;
  text-align: center;
}
.stat-first { border-radius: 16px 0 0 16px; }
.stat-last  { border-radius: 0 16px 16px 0; }
.stat-val {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 8px;
}
.stat-val em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-desc { font-size: 14px; font-weight: 300; color: var(--stone); line-height: 1.5; }

/* ==========================================================
   PRICE ANCHOR
   ========================================================== */
.price-anchor {
  padding: 100px var(--pad);
  background: linear-gradient(145deg, #0F2318 0%, var(--navy-mid) 50%, #0A1A10 100%);
  position: relative;
  overflow: hidden;
}
.price-anchor::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,95,63,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.pa-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: var(--mw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.pa-features { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.pa-feat { display: flex; gap: 16px; align-items: flex-start; }
.pa-feat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); flex-shrink: 0; margin-top: 6px; }
.pa-feat-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 3px; }
.pa-feat-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.55; }
.pa-ctas { margin-top: 44px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pa-box {
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 52px 48px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.pa-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
}
.pa-label { font-size: 10.5px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.pa-them {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  color: rgba(255,255,255,0.22);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.12);
  letter-spacing: -1px;
  line-height: 1;
}
.pa-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.06); margin: 24px 0; }
.pa-us {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pa-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(44,95,63,0.3);
}
.pa-note { font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 8px; }

/* ==========================================================
   HOW WE DO IT
   ========================================================== */
.how-we-do-it {
  padding: 100px var(--pad);
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.how-we-do-it::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(44,95,63,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hwdi-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.hwdi-sub { font-size: 17px; font-weight: 300; color: var(--stone); line-height: 1.72; margin-top: 12px; }
.hwdi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.hwdi-item {
  background: var(--white);
  padding: 40px 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.hwdi-tl { border-radius: 16px 0 0 0; }
.hwdi-tr { border-radius: 0 16px 0 0; }
.hwdi-bl { border-radius: 0 0 0 16px; }
.hwdi-br { border-radius: 0 0 16px 0; }
.hwdi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hwdi-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); margin-bottom: 6px; line-height: 1.2; }
.hwdi-desc { font-size: 13.5px; font-weight: 300; color: var(--stone); line-height: 1.65; }

/* ==========================================================
   FEATURES
   ========================================================== */
.features-section {
  padding: 100px var(--pad);
  background: var(--cream);
  position: relative;
}
.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(44,95,63,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.feat-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: var(--mw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.feat-photo-wrap { position: relative; }
.feat-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #BDB8A4 0%, #8E8A78 100%);
  position: relative;
}
.feat-photo-ph {
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(14,28,42,0.4) 0%, transparent 50%);
}
.feat-photo-ph p { font-size: 12px; color: rgba(255,255,255,0.4); }
.feat-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-left: 3px solid var(--green);
  min-width: 200px;
}
.feat-badge-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); margin-bottom: 3px; }
.feat-badge-value { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--navy); }
.feat-sub { font-size: 17px; font-weight: 300; color: var(--stone); line-height: 1.7; margin-top: 16px; margin-bottom: 36px; max-width: 420px; }
.feat-list { display: flex; flex-direction: column; }
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.feat-item:first-child { border-top: 1px solid var(--cream-dark); }
.feat-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feat-name { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 2px; }
.feat-detail { font-size: 13px; font-weight: 300; color: var(--stone); line-height: 1.5; }
.feat-cta { margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.feat-cta-note { font-size: 13px; color: var(--stone); }

/* ==========================================================
   TWO COL TEXT + IMAGE
   ========================================================== */
.two-col-text-image { padding: 100px var(--pad); background: var(--cream); }
.tcti-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--mw);
  margin: 0 auto;
}
.tcti-reverse .tcti-text { order: 2; }
.tcti-reverse .tcti-image-wrap { order: 1; }
.tcti-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 20px;
}
.tcti-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tcti-body { font-size: 16px; font-weight: 300; color: var(--stone); line-height: 1.8; margin-bottom: 24px; }
.tcti-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5/4;
}
.tcti-image-ph { background: linear-gradient(135deg, #C2BDA8 0%, #96907E 100%); }

/* ==========================================================
   PROCESS STEPS
   ========================================================== */
.process-steps { padding: 100px var(--pad); background: var(--cream-dark); }
.ps-header { text-align: center; margin-bottom: 64px; }
.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.ps-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  z-index: 0;
}
.ps-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.ps-num {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  box-shadow: 0 4px 20px rgba(44,95,63,0.15);
}
.ps-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.2; }
.ps-desc { font-size: 13.5px; font-weight: 300; color: var(--stone); line-height: 1.65; }

/* ==========================================================
   PHOTO SLIDER
   ========================================================== */
.photo-slider-section {
  padding: 100px var(--pad);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.photo-slider-section::before {
  content: '';
  position: absolute;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,95,63,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.psl-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  position: relative;
  z-index: 2;
}
.psl-nav { display: flex; gap: 10px; align-items: center; }
.psl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.psl-btn:hover { background: var(--green); border-color: var(--green); }
.psl-counter { font-size: 13px; color: rgba(255,255,255,0.35); min-width: 36px; text-align: center; }
.psl-wrap { position: relative; z-index: 2; overflow: hidden; border-radius: 20px; }
.psl-track { display: flex; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); will-change: transform; }
.psl-slide { flex: 0 0 100%; position: relative; height: 560px; cursor: pointer; overflow: hidden; }
.psl-slide-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.psl-slide:hover .psl-slide-bg { transform: scale(1.03); }
.psl-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%); }
.psl-label { position: absolute; bottom: 28px; left: 32px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: -0.3px; }
.psl-zoom-btn {
  position: absolute;
  bottom: 28px; right: 32px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.psl-slide:hover .psl-zoom-btn { background: rgba(255,255,255,0.25); }
.psl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}
.psl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.psl-dot.active { background: var(--white); transform: scale(1.3); }
.psl-cta { margin-top: 44px; text-align: center; position: relative; z-index: 2; }

/* Lightbox */
.psl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.psl-lightbox.open { opacity: 1; pointer-events: all; }
.psl-lb-img { width: 80vw; max-width: 1100px; height: 70vh; border-radius: 12px; }
.psl-lb-close {
  position: fixed;
  top: 24px; right: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.psl-lb-close:hover { background: rgba(255,255,255,0.2); }
.psl-lb-prev, .psl-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.psl-lb-prev { left: 24px; }
.psl-lb-next { right: 24px; }
.psl-lb-prev:hover, .psl-lb-next:hover { background: rgba(255,255,255,0.2); }
.psl-lb-label {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

/* ==========================================================
   IMAGE GALLERY
   ========================================================== */
.image-gallery-section { padding: 100px var(--pad); background: var(--cream); }
.ig-header { margin-bottom: 48px; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px 240px;
  gap: 8px;
  border-radius: 20px;
  overflow: hidden;
}
.ig-item { position: relative; overflow: hidden; cursor: pointer; }
.ig-item:first-child { grid-row: span 2; }
.ig-item-bg { transition: transform 0.5s ease; }
.ig-item:hover .ig-item-bg { transform: scale(1.05); }
.ig-item-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,28,42,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ig-item:hover .ig-item-ov { opacity: 1; }
.ig-item-zoom {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.ig-item:hover .ig-item-zoom { opacity: 1; }
.ig-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ig-lb.open { opacity: 1; pointer-events: all; }
.ig-lb-img { width: 80vw; max-width: 1100px; height: 70vh; border-radius: 12px; }
.ig-lb-close, .ig-lb-prev, .ig-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-lb-close { top: 24px; right: 28px; width: 44px; height: 44px; font-size: 20px; }
.ig-lb-prev, .ig-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.ig-lb-prev { left: 24px; }
.ig-lb-next { right: 24px; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials-section { padding: 100px var(--pad); background: var(--cream-dark); }
.test-header { text-align: center; margin-bottom: 64px; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card { background: var(--white); border-radius: 16px; padding: 36px; }
.test-quote { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--navy); margin-bottom: 24px; }
.test-author { display: flex; align-items: center; gap: 14px; }
.test-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.test-photo-ph { width: 48px; height: 48px; border-radius: 50%; background: var(--stone-light); flex-shrink: 0; }
.test-name { font-size: 14px; font-weight: 500; color: var(--navy); }
.test-detail { font-size: 12px; color: var(--stone); margin-top: 2px; }

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner { padding: 100px var(--pad); }
.cta-banner--dark  { background: linear-gradient(145deg, #0F2318 0%, var(--navy-mid) 50%, #0A1A10 100%); }
.cta-banner--green { background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%); }
.cta-banner--cream { background: var(--cream); }
.cta-banner-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-banner-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 16px auto 40px;
  max-width: 520px;
}
.cta-banner--cream .cta-banner-sub { color: var(--stone); }

/* ==========================================================
   PAGE HEADERS
   ========================================================== */
.page-header-light {
  padding: 140px var(--pad) 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-header-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 100%, rgba(44,95,63,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.phl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: var(--mw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.ph-eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--green); }
.page-header-light h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--navy);
}
.page-header-light h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.phl-right { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 8px; }
.phl-desc { font-size: 17px; font-weight: 300; color: var(--stone); line-height: 1.7; }
.phl-stats { display: flex; gap: 36px; }
.phl-stat-val { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.5px; }
.phl-stat-label { font-size: 12px; color: var(--stone); margin-top: 4px; }

.page-header-dark {
  padding: 160px var(--pad) 100px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header-dark::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,95,63,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-dark h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.phd-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   TEAM GRID
   ========================================================== */
.team-grid-section { padding: 100px var(--pad); background: var(--cream); }
.tg-header { margin-bottom: 64px; }
.founder-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3px;
}
.founder-photo { position: relative; overflow: hidden; min-height: 380px; }
.founder-photo img { position: absolute; inset: 0; object-fit: cover; }
.founder-photo-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #C8C4B0 0%, #8A8678 100%);
  position: absolute;
  inset: 0;
}
.founder-body { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.founder-name { font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--navy); letter-spacing: -1.5px; line-height: 1; margin-bottom: 4px; }
.founder-role { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.founder-bio { font-size: 15px; font-weight: 300; color: var(--stone); line-height: 1.75; max-width: 460px; margin-bottom: 24px; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.founder-tag { font-size: 12px; color: var(--navy); background: var(--cream-dark); padding: 5px 14px; border-radius: 100px; }
.team-members-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.team-member-card { background: var(--white); overflow: hidden; position: relative; }
.team-member-card.tm-tl { border-radius: 0 0 0 16px; }
.team-member-card.tm-br { border-radius: 0 0 16px 0; }
.tm-photo { aspect-ratio: 3/4; position: relative; overflow: hidden; }
.tm-photo img { position: absolute; inset: 0; object-fit: cover; }
.tm-photo-ph { position: absolute; inset: 0; background: linear-gradient(160deg, #C2BDA8 0%, #8E8A78 100%); }
.tm-body { padding: 20px 24px; }
.tm-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.tm-title { font-size: 12px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); }

/* ==========================================================
   HOMES GRID
   ========================================================== */
.homes-grid-section { padding: 64px var(--pad); background: var(--cream); }
.hg-header { margin-bottom: 48px; }
.homes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-card { background: var(--white); border-radius: 16px; overflow: hidden; }
.home-card--contract { opacity: 0.75; }
.home-card-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.home-card-photo img { position: absolute; inset: 0; object-fit: cover; }
.home-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.badge-new { background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%); color: var(--white); }
.badge-contract { background: rgba(26,31,26,0.8); color: var(--white); backdrop-filter: blur(6px); }
.home-card-body { padding: 24px; }
.home-price { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 4px; }
.home-address { font-size: 13px; color: var(--stone); margin-bottom: 16px; line-height: 1.4; }
.home-specs { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--stone);
}
.home-card-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}
.home-card-cta:hover { color: var(--green-light); }

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.contact-form-section { padding: 100px var(--pad); background: var(--cream); }
.cf-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--mw);
  margin: 0 auto;
}
.cf-sub { font-size: 17px; font-weight: 300; color: var(--stone); line-height: 1.7; margin-top: 16px; margin-bottom: 32px; }
.cf-contact-info { display: flex; flex-direction: column; gap: 14px; }
.cf-info-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--stone); }
.cf-info-item a { color: var(--green); text-decoration: none; }
.cf-form { background: var(--white); border-radius: 20px; padding: 40px; }
.foundry-contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; }
.foundry-contact-form input,
.foundry-contact-form select,
.foundry-contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--stone-light);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.foundry-contact-form input::placeholder,
.foundry-contact-form textarea::placeholder { color: var(--stone); }
.foundry-contact-form input:focus,
.foundry-contact-form select:focus,
.foundry-contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44,95,63,0.1);
}
.form-note { font-size: 12px; color: var(--stone); text-align: center; margin-top: 4px; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-section { padding: 100px var(--pad); background: var(--cream-dark); }
.faq-header { max-width: 600px; margin-bottom: 48px; }
.faq-list { max-width: 780px; display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--stone-light); }
.faq-item:last-child { border-bottom: 1px solid var(--stone-light); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-icon { flex-shrink: 0; color: var(--stone); transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px; font-size: 15px; font-weight: 300; color: var(--stone); line-height: 1.7; }

/* ==========================================================
   TEXT CONTENT
   ========================================================== */
.text-content-section { padding: 120px var(--pad); background: var(--cream); }
.tc-inner { max-width: 720px; }
.tc-title { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--navy); margin-bottom: 40px; }
.tc-body { font-size: 16px; font-weight: 300; color: var(--stone); line-height: 1.85; }
.tc-body h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); margin: 40px 0 16px; }
.tc-body h3 { font-size: 20px; font-weight: 500; color: var(--navy); margin: 32px 0 12px; }
.tc-body p { margin-bottom: 16px; }
.tc-body ul { list-style: disc; margin-left: 20px; margin-bottom: 16px; }

/* ==========================================================
   SITE FOOTER
   ========================================================== */
.site-footer { background: var(--navy); padding: 80px var(--pad) 40px; }
.footer-inner { max-width: var(--mw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 280px 1fr; gap: 80px; margin-bottom: 60px; }
.footer-logo { display: flex; flex-direction: column; text-decoration: none; margin-bottom: 16px; }
.footer-logo-top { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.footer-logo-bottom { font-size: 9px; font-weight: 400; letter-spacing: 4px; color: var(--stone); text-transform: uppercase; }
.footer-tagline { font-size: 14px; font-weight: 300; color: var(--stone); line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--green); color: var(--green); }
.footer-nav { display: flex; gap: 60px; }
.footer-nav-col h4 { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-nav-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }
.footer-legal span { color: rgba(255,255,255,0.15); }

/* ==========================================================
   ARCHIVE / BLOG
   ========================================================== */
.archive-page { padding-top: 62px; }
.blog-grid-section { padding: 80px var(--pad); background: var(--cream); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card { background: var(--white); border-radius: 16px; overflow: hidden; }
.blog-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card-thumb:hover img { transform: scale(1.04); }
.blog-card-body { padding: 28px; }
.blog-card-body h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.blog-card-body h2 a { text-decoration: none; color: inherit; }
.blog-excerpt { font-size: 14px; color: var(--stone); line-height: 1.65; margin-bottom: 16px; }
.blog-read-more { font-size: 13px; font-weight: 500; color: var(--green); }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }

/* ==========================================================
   SINGLE POST
   ========================================================== */
.single-post { padding: 140px var(--pad) 80px; background: var(--cream); }
.single-post .shell { max-width: 720px; }
.post-header { margin-bottom: 48px; }
.post-header h1 { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 58px); font-weight: 700; line-height: 1.1; letter-spacing: -1.5px; color: var(--navy); margin-top: 16px; }
.post-thumbnail { margin: 32px 0; border-radius: 16px; overflow: hidden; }
.post-thumbnail img { width: 100%; }
.post-content { font-size: 17px; font-weight: 300; color: var(--g700, var(--stone)); line-height: 1.85; }
.post-content h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--navy); margin: 40px 0 16px; }
.post-content p { margin-bottom: 20px; }
.post-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--cream-dark); }

/* ==========================================================
   FALLBACK PAGE CONTENT
   ========================================================== */
.page-content-fallback { padding: 160px var(--pad) 80px; }
.page-content-fallback h1 { font-family: var(--serif); font-size: 52px; font-weight: 700; color: var(--navy); margin-bottom: 32px; }
.wp-content { font-size: 16px; color: var(--stone); line-height: 1.8; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  :root { --pad: 40px; }

  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split-right { height: 400px; position: relative; }
  .hero-photo, .hero-photo-placeholder { position: absolute; }

  .vg-header { grid-template-columns: 1fr; gap: 20px; }
  .vg-grid { grid-template-columns: 1fr; }
  .vg-card-first { border-radius: 16px 16px 0 0; }
  .vg-card-last  { border-radius: 0 0 16px 16px; }

  .pa-inner { grid-template-columns: 1fr; gap: 48px; }
  .hwdi-header { grid-template-columns: 1fr; gap: 20px; }
  .hwdi-grid { grid-template-columns: 1fr; }
  .hwdi-tl, .hwdi-tr, .hwdi-bl, .hwdi-br { border-radius: 0; }
  .hwdi-tl { border-radius: 16px 16px 0 0; }
  .hwdi-br { border-radius: 0 0 16px 16px; }

  .feat-inner { grid-template-columns: 1fr; gap: 60px; }
  .feat-photo { aspect-ratio: 16/9; }
  .feat-badge { bottom: -16px; right: -8px; }

  .tcti-inner { grid-template-columns: 1fr; gap: 48px; }
  .tcti-reverse .tcti-text { order: 0; }
  .tcti-reverse .tcti-image-wrap { order: 0; }

  .ps-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ps-grid::before { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-first { border-radius: 16px 0 0 0; }
  .stat-last  { border-radius: 0 0 16px 0; }

  .test-grid { grid-template-columns: 1fr; }
  .homes-grid { grid-template-columns: 1fr 1fr; }
  .team-members-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }

  .cf-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-nav { flex-wrap: wrap; gap: 36px; }

  .founder-card { grid-template-columns: 240px 1fr; }
  .phl-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --pad: 24px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .site-nav.scrolled { background: rgba(245,241,232,0.96); }

  .hero-split h1 { font-size: 44px; }
  .hero-stat-card { bottom: 20px; right: 20px; }

  .hero-centered { padding: 100px var(--pad) 64px; }
  .hero-dark { padding: 100px var(--pad); min-height: auto; }

  .ps-grid { grid-template-columns: 1fr; }
  .homes-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .team-members-grid { grid-template-columns: 1fr 1fr; }

  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { min-height: 280px; }

  .ig-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .ig-item:first-child { grid-row: span 1; grid-column: span 2; }

  .psl-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .psl-slide { height: 300px; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  .announcement-banner { flex-wrap: wrap; padding: 14px var(--pad); }
  .ab-close { position: static; margin-left: auto; }
}

/* ============================================================
   Available Homes — Filter Bar
   (homes_grid ACF block, dynamic CPT query)
   ============================================================ */

/* ── Sticky filter bar — bleeds out of section's horizontal padding ── */
.hg-filter-bar {
  background: var(--white);
  border-top: 1px solid var(--cream-dark, #EDE8DA);
  border-bottom: 1px solid var(--cream-dark, #EDE8DA);
  position: sticky;
  top: 62px;   /* nav height */
  z-index: 50;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  margin-bottom: 40px;
}
.hg-filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  flex-wrap: wrap;
}

/* ── Status tabs (left side) ── */
.hg-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hg-tabs::-webkit-scrollbar { display: none; }

.hg-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--stone-light);
  background: transparent;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hg-tab:hover { border-color: var(--navy); color: var(--navy); }
.hg-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Right side: count + sort ── */
.hg-filter-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.hg-results-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--stone);
  white-space: nowrap;
}
.hg-count { font-weight: 600; color: var(--navy); }

.hg-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hg-sort-label {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--stone);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Extra filter row (visible_filters checkboxes in ACF) ── */
.hg-extra-filters {
  border-top: 1px solid var(--cream-dark, #EDE8DA);
  padding: 12px var(--pad) 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--white);
}
.hg-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 200px;
}
.hg-filter-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── Custom select (shared) ── */
.hg-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A877E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1.5px solid var(--stone-light);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.18s;
  width: 100%;
}
.hg-select:focus { outline: 2px solid var(--green); outline-offset: 2px; border-color: var(--green); }
.hg-select:hover { border-color: var(--navy); }

/* Sort select (in top bar — no full-width stretch) */
.hg-sort-group .hg-select { width: auto; min-width: 170px; }

/* ── Clear button ── */
.hg-clear-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--stone-light);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  white-space: nowrap;
  align-self: flex-end;
}
.hg-clear-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--cream-dark); }

/* Card additions (supplement existing .home-card styles) */
.home-card--sold        { opacity: 0.72; }
.home-card--coming-soon { opacity: 0.85; }
.home-card-cta--sold    { pointer-events: none; color: var(--stone); text-decoration: none; display: inline-block; margin-top: 12px; font-size: 14px; }
.home-city  { font-size: 13px; color: var(--stone); margin-top: 2px; margin-bottom: 12px; }
.home-desc  { font-size: 13px; color: var(--stone); line-height: 1.5; margin-bottom: 16px; }
.badge-sold { background: rgba(139,59,59,0.85); color: var(--white); backdrop-filter: blur(6px); }
.badge-soon { background: rgba(44,95,63,0.85);  color: var(--white); backdrop-filter: blur(6px); }

/* Empty state */
.hg-empty { grid-column: 1 / -1; text-align: center; padding: 64px 32px; color: var(--stone); font-family: var(--sans); }
.hg-empty-icon { margin-bottom: 16px; opacity: 0.4; color: var(--stone); }
.hg-empty-msg  { font-size: 16px; margin-bottom: 24px; }

/* Card entrance animation */
.home-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.home-card.hg-visible { opacity: 1; transform: none; }
/* Stagger delay for first 9 cards */
.home-card:nth-child(1) { transition-delay: 0.00s; }
.home-card:nth-child(2) { transition-delay: 0.05s; }
.home-card:nth-child(3) { transition-delay: 0.10s; }
.home-card:nth-child(4) { transition-delay: 0.05s; }
.home-card:nth-child(5) { transition-delay: 0.10s; }
.home-card:nth-child(6) { transition-delay: 0.15s; }
.home-card:nth-child(7) { transition-delay: 0.10s; }
.home-card:nth-child(8) { transition-delay: 0.15s; }
.home-card:nth-child(9) { transition-delay: 0.20s; }

/* Responsive filter bar */
@media (max-width: 768px) {
  .hg-filter-bar-inner  { gap: 12px; padding: 12px 24px; }
  .hg-extra-filters     { padding: 10px 24px 12px; gap: 8px; }
  .hg-filter-right      { gap: 10px; }
  .hg-sort-group .hg-select { min-width: 130px; }
  .hg-filter-group      { flex: 1 1 100%; max-width: 100%; }
}
