/* ============================================================
   6761 E Prospect Way — Design System
   Apple-inspired: restraint, depth, motion, typography.
   ============================================================ */

:root {
  /* Palette */
  --ink:        #1d1d1f;   /* near-black text */
  --ink-soft:   #424245;
  --ink-mute:   #6e6e73;
  --line:       #d2d2d7;
  --bg:         #ffffff;
  --bg-soft:    #f5f5f7;   /* Apple's signature off-white */
  --bg-dark:    #0b0b0c;
  --bg-dark-2:  #161617;

  /* Brand accents — warm Texas brick + verdant park */
  --brick:      #b5532e;
  --brick-deep: #8c3d20;
  --sky:        #2997ff;   /* Apple blue for links/CTAs */
  --sky-deep:   #0071e3;
  --leaf:       #2c7a4b;
  --gold:       #c9942f;

  /* Type */
  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;

  /* Spacing / rhythm */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 22px;
  --radius-lg: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--sky-deep); text-decoration: none; }

/* ---------- Typographic scale ---------- */
.eyebrow {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brick);
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.06; font-weight: 700; }
.display {
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2.section-title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
}
.lede {
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.35;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(80px, 12vw, 160px); }
.center { text-align: center; }

/* Reveal-on-scroll — only hidden when JS is active (graceful no-JS fallback) */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background .4s var(--ease-soft), transform .5s var(--ease);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.nav-brand span { color: var(--ink-mute); font-weight: 400; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 7px 16px; border-radius: 980px; font-size: 13px; font-weight: 500;
  transition: transform .2s var(--ease), background .2s;
}
.nav-cta:hover { transform: scale(1.04); background: #000; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 14s var(--ease-soft) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.34) 100%);
}
.hero-inner { padding-bottom: clamp(48px, 9vh, 120px); width: 100%; }
.hero h1 {
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 700; letter-spacing: -0.04em; line-height: .98;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
  max-width: 16ch;
}
.hero .lede { color: rgba(255,255,255,.92); max-width: 30ch; margin-top: 22px; font-weight: 500; text-shadow: 0 1px 20px rgba(0,0,0,.4); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 980px;
  font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff;
}
.chip b { font-weight: 700; }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.78); display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(rgba(255,255,255,.9), transparent); }
@keyframes floaty { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,7px);} }

/* ============================================================
   MARQUEE / KPI STRIP
   ============================================================ */
.kpis {
  background: var(--bg-dark); color: #fff;
  border-radius: 0;
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 60px);
}
.kpi { padding-block: clamp(40px, 6vw, 72px); }
.kpi .num {
  font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #b9b9bf);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi .lab { color: #a1a1a6; font-size: clamp(13px, 1.4vw, 15px); margin-top: 6px; font-weight: 500; }
@media (max-width: 740px){ .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0 24px; } .kpi { padding-block: 30px; } }

/* ============================================================
   FEATURE SECTIONS (alternating big image + copy)
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.feature.flip .feature-copy { order: 2; }
.feature-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.35);
  aspect-ratio: 4 / 3;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feature-media:hover img { transform: scale(1.05); }
.feature-copy h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.feature-copy p { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-soft); line-height: 1.5; max-width: 46ch; }
.feature-copy .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 980px; background: var(--bg-soft); border: 1px solid var(--line);
}
@media (max-width: 860px){
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-media { aspect-ratio: 16/11; }
}

/* Stacked / overlapping image cluster (master suite, schools) */
.stack {
  position: relative; aspect-ratio: 4/3.4;
}
.stack img {
  position: absolute; border-radius: 20px; object-fit: cover;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.45);
  border: 4px solid #fff;
  transition: transform .6s var(--ease);
}
.stack .s1 { width: 70%; height: 64%; top: 0; left: 0; z-index: 1; }
.stack .s2 { width: 56%; height: 56%; right: 0; top: 22%; z-index: 3; }
.stack .s3 { width: 50%; height: 46%; left: 14%; bottom: 0; z-index: 2; }
.stack:hover .s1 { transform: translate(-6px,-6px); }
.stack:hover .s2 { transform: translate(6px,-4px) scale(1.02); }
.stack:hover .s3 { transform: translate(-2px,6px); }
@media (max-width: 860px){ .stack { aspect-ratio: 4/3.2; } }

/* ============================================================
   ADVANTAGE CARDS GRID
   ============================================================ */
.adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.adv-card {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s;
  position: relative; overflow: hidden;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.28); background: #fff; }
.adv-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  background: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.25);
}
.adv-card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.adv-card p { font-size: 15px; color: var(--ink-mute); line-height: 1.45; }
.adv-card.tall { grid-row: span 2; }
.adv-card.span2 { grid-column: span 2; }
@media (max-width: 900px){ .adv-grid { grid-template-columns: repeat(2,1fr);} .adv-card.span2{grid-column:span 2;} }
@media (max-width: 560px){ .adv-grid { grid-template-columns: 1fr;} .adv-card.span2,.adv-card.tall{grid-column:auto;grid-row:auto;} }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  columns: 3; column-gap: 16px;
}
.gallery figure {
  break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden;
  position: relative; cursor: zoom-in; background: var(--bg-soft);
}
.gallery img { width: 100%; transition: transform .8s var(--ease), filter .4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 900px){ .gallery { columns: 2; } }
@media (max-width: 560px){ .gallery { columns: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 10px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 30px; color: #fff; cursor: pointer; opacity: .8; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 44px; color: #fff; cursor: pointer; opacity: .6; transition: opacity .2s; user-select: none; padding: 20px; }
.lightbox-nav:hover { opacity: 1; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }

/* ============================================================
   LOCATION / MAP
   ============================================================ */
.loc-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.map-card {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 460px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.4); border: 1px solid var(--line);
  position: relative; background: var(--bg-soft);
}
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 460px; }
.map-open {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  padding: 9px 14px; border-radius: 980px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
.map-open:hover { transform: scale(1.04); }
.dist-list { display: flex; flex-direction: column; gap: 12px; }
.dist {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 18px; background: var(--bg-soft);
  border: 1px solid rgba(0,0,0,.04); transition: transform .4s var(--ease), background .3s;
}
.dist:hover { transform: translateX(6px); background: #fff; box-shadow: 0 14px 30px -18px rgba(0,0,0,.25); }
.dist .d-ico { font-size: 22px; width: 44px; height: 44px; border-radius: 12px; background:#fff; display:grid; place-items:center; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); flex:none; }
.dist .d-main { font-weight: 600; font-size: 16px; }
.dist .d-sub { font-size: 13px; color: var(--ink-mute); }
.dist .d-val { margin-left: auto; font-weight: 700; font-size: 17px; color: var(--brick); white-space: nowrap; }
@media (max-width: 860px){ .loc-wrap { grid-template-columns: 1fr; } .map-card{min-height:360px;} .map-card iframe{min-height:360px;} }

/* ============================================================
   SCHOOLS
   ============================================================ */
.schools { background: var(--bg-soft); }
.school-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.6vw,20px); margin-top: 44px; }
.school-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,0,0,.05); transition: transform .5s var(--ease), box-shadow .5s; }
.school-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px -26px rgba(0,0,0,.3); }
.school-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.school-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.school-card:hover .school-photo img { transform: scale(1.06); }
.school-body { padding: clamp(20px,2.6vw,28px); }
.school-tier { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.school-card h3 { font-size: 21px; margin: 10px 0 6px; }
.school-card .grade { font-size: 14px; color: var(--ink-mute); }
.school-card .rating { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--leaf); background: rgba(44,122,75,.1); padding: 6px 12px; border-radius: 980px; }
@media (max-width: 760px){ .school-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ENERGY (dark, premium)
   ============================================================ */
.energy { background: var(--bg-dark); color: #fff; overflow: hidden; }
.energy .section-title { color: #fff; }
.energy .lede { color: #c7c7cc; }
.energy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,72px); align-items: center; margin-top: 50px; }
.energy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.estat { background: var(--bg-dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; }
.estat .num { font-size: clamp(30px,4vw,44px); font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(120deg,#fff,#9fd5ff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.estat .lab { color: #a1a1a6; font-size: 14px; margin-top: 6px; }
.energy-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.energy-visual img { width:100%; height:100%; object-fit: cover; }
@media (max-width: 860px){ .energy-grid { grid-template-columns: 1fr; } .energy-visual{aspect-ratio:16/10;} }

/* ============================================================
   VALUE / PRICING
   ============================================================ */
.value { background: var(--bg-soft); }
.price-hero {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px,5vw,64px);
  align-items: center; margin-bottom: clamp(40px,6vw,72px);
}
.price-tag {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(30px,4vw,48px);
  border: 1px solid rgba(0,0,0,.05); box-shadow: 0 30px 70px -38px rgba(0,0,0,.4);
  text-align: center;
}
.price-tag .amt {
  font-size: clamp(54px,8vw,84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: var(--ink);
}
.price-tag .amt span { font-size: .32em; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; }
.price-tag .sub { color: var(--ink-mute); font-size: 15px; margin-top: 10px; }
.price-tag .avail { margin-top: 18px; display:inline-flex; align-items:center; gap:7px; font-size: 13px; font-weight:600; color: var(--leaf); background: rgba(44,122,75,.1); padding: 7px 14px; border-radius: 980px; }
.price-intro h2 { font-size: clamp(28px,4vw,46px); margin-bottom: 16px; }
.price-intro p { font-size: clamp(16px,1.9vw,19px); color: var(--ink-soft); line-height: 1.5; max-width: 50ch; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.6vw,20px); }
.value-card {
  background: #fff; border-radius: var(--radius); padding: clamp(22px,2.6vw,30px);
  border: 1px solid rgba(0,0,0,.05);
}
.value-card .vnum { font-size: clamp(22px,2.6vw,30px); font-weight: 700; letter-spacing:-0.02em; color: var(--brick); }
.value-card h3 { font-size: 17px; margin: 8px 0 6px; }
.value-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.45; }
.value-foot {
  margin-top: clamp(24px,3vw,36px); padding: clamp(22px,3vw,30px) clamp(24px,3vw,34px);
  background: var(--ink); color:#fff; border-radius: var(--radius);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px;
}
.value-foot .vf-big { font-size: clamp(18px,2.2vw,24px); font-weight:600; letter-spacing:-0.01em; max-width: 40ch; }
.value-foot .vf-big b { color: #9fd5ff; }
@media (max-width: 860px){ .price-hero { grid-template-columns: 1fr; } .value-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta {
  position: relative; color: #fff; text-align: center; overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width:100%; height:100%; object-fit: cover; }
.cta::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.7)); }
.cta h2 { font-size: clamp(32px, 6vw, 68px); margin-bottom: 18px; }
.cta .lede { color: rgba(255,255,255,.9); max-width: 40ch; margin-inline: auto; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 980px; font-size: 17px; font-weight: 500;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn-primary { background: var(--sky-deep); color: #fff; }
.btn-primary:hover { transform: scale(1.04); background: var(--sky); box-shadow: 0 14px 40px -10px rgba(41,151,255,.6); }
.btn-ghost { background: rgba(255,255,255,.14); color:#fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: scale(1.04); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-soft); color: var(--ink-mute); font-size: 13px; padding-block: 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer a { color: var(--ink-soft); }
.disclaimer { font-size: 11px; color: #9a9aa0; line-height: 1.5; max-width: 70ch; margin-top: 8px; }

/* progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brick), var(--gold)); z-index: 101; transition: width .1s linear; }
