/* ===== 408 Pennsylvania Ave — Listing Site ===== */
/* Art direction: black surfaces, off-white text, pink accent.
   Fraunces (display serif) + Inter (body). */

:root,
[data-theme='light'] {
  /* Surfaces — black */
  --color-bg: #0e0e11;
  --color-surface: #151519;
  --color-surface-2: #1b1b21;
  --color-surface-offset: #191920;
  --color-surface-offset-2: #202028;
  --color-divider: #26262e;
  --color-border: #30303a;

  /* Text — off-white */
  --color-text: #f3f3f5;
  --color-text-muted: #a6a6b0;
  --color-text-faint: #6c6c78;
  --color-text-inverse: #0e0e11;

  /* Accent — pink */
  --color-primary: #cf6f8e;
  --color-primary-hover: #db89a3;
  --color-primary-active: #b85c78;
  --color-primary-soft: #2a1820;

  /* Secondary — pink-soft */
  --color-sage: #db89a3;
  --color-sage-soft: #2a1820;

  /* Neutrals */
  --color-gold: #cf6f8e;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --tr: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);

  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.22vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.15rem, 1.02rem + 0.65vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --text-3xl: clamp(2.6rem, 1.2rem + 5vw, 4.6rem);
  --text-hero: clamp(3rem, 0.8rem + 8vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --space-32: 8rem;

  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1240px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #050506;
  --color-surface: #0d0d10;
  --color-surface-2: #131316;
  --color-surface-offset: #101013;
  --color-surface-offset-2: #18181c;
  --color-divider: #1e1e24;
  --color-border: #26262e;

  --color-text: #f5f5f7;
  --color-text-muted: #9a9aa6;
  --color-text-faint: #5e5e6a;
  --color-text-inverse: #050506;

  --color-primary: #cf6f8e;
  --color-primary-hover: #db89a3;
  --color-primary-active: #b85c78;
  --color-primary-soft: #2a1820;

  --color-sage: #db89a3;
  --color-sage-soft: #2a1820;
  --color-gold: #cf6f8e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #050506;
    --color-surface: #0d0d10;
    --color-surface-2: #131316;
    --color-surface-offset: #101013;
    --color-surface-offset-2: #18181c;
    --color-divider: #1e1e24;
    --color-border: #26262e;
    --color-text: #f5f5f7;
    --color-text-muted: #9a9aa6;
    --color-text-faint: #5e5e6a;
    --color-text-inverse: #050506;
    --color-primary: #cf6f8e;
    --color-primary-hover: #db89a3;
    --color-primary-active: #b85c78;
    --color-primary-soft: #2a1820;
    --color-sage: #db89a3;
    --color-sage-soft: #2a1820;
    --color-gold: #cf6f8e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.7);
  }
}

/* ===== Base ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-feature-settings: "kern", "liga", "calt";
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.1;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p, li, figcaption { text-wrap: pretty; max-width: 68ch; }

::selection { background: color-mix(in oklab, var(--color-primary) 28%, transparent); color: var(--color-text); }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover { color: var(--color-primary-hover); }

button { cursor: pointer; background: none; border: none; }

a, button, input, textarea, select {
  transition: color var(--tr), background var(--tr), border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.container-narrow { max-width: var(--content-narrow); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: var(--color-primary);
  opacity: 0.6;
}

.section-title {
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
  max-width: 18ch;
}
.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 52ch;
  line-height: 1.6;
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color var(--tr), box-shadow var(--tr);
}
.header--scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header--hidden { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand-mark { color: var(--color-primary); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .b-street { font-family: var(--font-display); font-weight: 520; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-text .b-sub { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 0.18rem; }

.nav { display: none; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.5rem); }
.nav a {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-muted); position: relative;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--color-text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--color-primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--tr);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
  color: var(--color-text-muted); border: 1px solid transparent;
}
.icon-btn:hover { color: var(--color-text); background: var(--color-surface-offset); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em;
  padding: 0.7rem 1.25rem; border-radius: var(--radius-full);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-text-inverse); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-border); color: var(--color-text); background: var(--color-surface-2); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost { color: var(--color-text); }
.btn-ghost:hover { color: var(--color-primary); }
.btn-lg { padding: 0.95rem 1.75rem; font-size: var(--text-base); }

.menu-btn { display: inline-flex; }

@media (min-width: 940px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  #hdr-cta-lg { display: inline-flex; }
}

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
  background: var(--color-surface); z-index: 60;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  padding: var(--space-12) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2);
  box-shadow: var(--shadow-lg); border-left: 1px solid var(--color-border);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text);
  padding: var(--space-3) var(--space-2); border-radius: var(--radius-md);
}
.mobile-nav a:hover { background: var(--color-surface-offset); color: var(--color-primary); }
.mobile-nav .btn { margin-top: var(--space-4); }
.scrim { position: fixed; inset: 0; background: rgba(20,16,11,0.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity var(--tr); }
.scrim.show { opacity: 1; pointer-events: auto; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(in oklab,
    rgba(24,20,15,0.78) 0%,
    rgba(24,20,15,0.45) 38%,
    rgba(24,20,15,0.62) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: clamp(560px, 92vh, 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
  color: #fbf8f2;
}
.hero-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fbf8f2; padding: 0.45rem 0.9rem; border-radius: var(--radius-full);
  background: rgba(207, 111, 142, 0.92); margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}
.hero-address {
  font-family: var(--font-display); font-weight: 460;
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.5rem);
  color: rgba(251,248,242,0.85); letter-spacing: 0.02em;
}
.hero-title {
  font-size: var(--text-hero); line-height: 0.98; margin-top: var(--space-2);
  max-width: 16ch; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-title em { font-style: italic; color: #ecc6d6; }
.hero-tag {
  font-family: var(--font-display); font-style: italic; font-size: var(--text-lg);
  color: rgba(251,248,242,0.92); margin-top: var(--space-5); max-width: 38ch; font-weight: 420;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1rem, 4vw, 3rem);
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid rgba(251,248,242,0.22);
}
.hero-stat .v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 520; color: #fff; }
.hero-stat .l { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,248,242,0.7); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-cta .btn-outline { background: rgba(251,248,242,0.1); border-color: rgba(251,248,242,0.4); color: #fff; backdrop-filter: blur(4px); }
.hero-cta .btn-outline:hover { background: rgba(251,248,242,0.2); border-color: #fff; color: #fff; }

.scroll-cue { position: absolute; bottom: var(--space-5); right: clamp(1.25rem,4vw,3rem); z-index: 2; color: rgba(251,248,242,0.7); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.scroll-cue .line { width: 1px; height: 2.5rem; background: rgba(251,248,242,0.5); position: relative; overflow: hidden; }
.scroll-cue .line::after { content:""; position:absolute; inset:0; background:#fff; transform: translateY(-100%); animation: cue 2.2s cubic-bezier(0.16,1,0.3,1) infinite; }
@keyframes cue { 0%{transform:translateY(-100%);} 50%{transform:translateY(100%);} 100%{transform:translateY(100%);} }
@media (max-width: 640px){ .scroll-cue{ display:none; } }

/* ===== Quick facts strip ===== */
.facts {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.facts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 720px){ .facts-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px){ .facts-grid { grid-template-columns: repeat(8, 1fr); } }
.fact { padding: var(--space-6) var(--space-4); border-bottom: 1px solid var(--color-border); }
@media (min-width: 720px){ .fact:nth-child(odd){ border-right: 1px solid var(--color-border); } }
@media (min-width: 1080px){ .fact { border-right: 1px solid var(--color-border); border-bottom: none; } .fact:last-child{ border-right: none; } }
.fact .l { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.fact .v { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 520; margin-top: 0.25rem; }

/* ===== Story / editorial ===== */
.story { background: var(--color-bg); }
.story-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}
@media (min-width: 860px){ .story-grid { grid-template-columns: 0.9fr 1.1fr; } }

.prose { font-size: var(--text-base); color: var(--color-text); line-height: 1.75; }
.prose p + p { margin-top: var(--space-5); }
.prose .lead { font-size: var(--text-lg); color: var(--color-text); font-family: var(--font-display); font-weight: 420; line-height: 1.5; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-10); margin-bottom: var(--space-2); }

.pullquote {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); line-height: 1.35;
  color: var(--color-text); border-left: 2px solid var(--color-primary);
  padding-left: var(--space-6); margin: var(--space-8) 0;
  max-width: 30ch;
}
.pullquote cite { display: block; font-style: normal; font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); letter-spacing: 0.04em; }

.story-figure { position: relative; }
.story-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.story-figure figcaption { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); letter-spacing: 0.04em; }

/* ===== Virtual tour ===== */
.tour { background: var(--color-surface-offset); }
.tour-frame {
  margin-top: var(--space-8); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  position: relative; padding-top: 56.25%;
}
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-note { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.tour-note svg { flex: none; margin-top: 0.15rem; color: var(--color-primary); }

/* ===== Features grid ===== */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  margin-top: var(--space-10);
}
@media (min-width: 640px){ .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.feature-card .ic { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-soft); color: var(--color-primary); margin-bottom: var(--space-4); }
.feature-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.feature-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* updates highlight band */
.updates {
  margin-top: var(--space-12);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10)); position: relative; overflow: hidden;
}
.updates::before { content:""; position:absolute; inset-block:0; left:0; width:4px; background: var(--color-primary); }
.updates h3 { font-size: var(--text-xl); }
.updates-list { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-6); }
@media (min-width: 720px){ .updates-list { grid-template-columns: repeat(3, 1fr); } }
.update-item .yr { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 520; color: var(--color-primary); line-height: 1; }
.update-item .lbl { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 0.35rem; letter-spacing: 0.04em; }

/* ===== Spec sheet ===== */
.spec { background: var(--color-bg); }
.spec-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-12);
  margin-top: var(--space-10);
}
@media (min-width: 880px){ .spec-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); } }
.spec-block h3 {
  font-size: var(--text-sm); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); font-family: var(--font-body); font-weight: 700;
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-2);
}
.spec-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
.spec-row .k { color: var(--color-text-muted); font-size: var(--text-sm); }
.spec-row .v { color: var(--color-text); font-weight: 500; text-align: right; font-size: var(--text-sm); }

/* ===== Neighborhood ===== */
.nbhd { background: var(--color-surface); }
.nbhd-lead-grid { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
@media (min-width: 880px){ .nbhd-lead-grid { grid-template-columns: 1.05fr 0.95fr; } }
.nbhd-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.nbhd-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
@media (min-width: 560px){ .nbhd-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.nbhd-stat { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.nbhd-stat .v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 520; color: var(--color-primary); }
.nbhd-stat .l { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.3rem; letter-spacing: 0.04em; }

.nbhd-cards { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-10); }
@media (min-width: 640px){ .nbhd-cards { grid-template-columns: repeat(3, 1fr); } }
.nbhd-card { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.nbhd-card h4 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.nbhd-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ===== Schools ===== */
.schools { background: var(--color-bg); }
.schools-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-10); }
@media (min-width: 760px){ .schools-grid { grid-template-columns: repeat(3, 1fr); } }
.school-card { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; }
.school-card .grade { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 520; color: var(--color-sage); line-height: 1; }
.school-card h4 { font-size: var(--text-base); margin-top: var(--space-3); }
.school-card .type { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.06em; margin-top: 0.25rem; }
.school-card .rating { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-divider); }

.schools-banner {
  margin-top: var(--space-8); background: var(--color-sage-soft);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8); display: flex; flex-wrap: wrap; gap: clamp(1rem,5vw,3rem); align-items: center;
}
.schools-banner .item .v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 520; color: var(--color-text); }
.schools-banner .item .l { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.05em; }

/* ===== Location / commute ===== */
.location { background: var(--color-surface); }
.location-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); margin-top: var(--space-8); }
@media (min-width: 880px){ .location-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); min-height: 340px; background: var(--color-surface-offset); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.commute-list { display: flex; flex-direction: column; gap: var(--space-3); }
.commute-item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.commute-item .ic { color: var(--color-primary); flex: none; }
.commute-item .dest { font-weight: 600; font-size: var(--text-sm); }
.commute-item .meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.15rem; }
.commute-item .time { margin-left: auto; font-family: var(--font-display); font-weight: 520; color: var(--color-text); white-space: nowrap; }

/* ===== FAQ ===== */
.faq { background: var(--color-bg); }
.faq-list { margin-top: var(--space-8); border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  text-align: left; padding: var(--space-5) 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 480; color: var(--color-text);
}
.faq-q:hover { color: var(--color-primary); }
.faq-q .toggle { flex: none; color: var(--color-primary); transition: transform var(--tr); }
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.faq-a-inner { padding-bottom: var(--space-5); color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.7; max-width: 70ch; }

/* ===== CTA / contact ===== */
.cta { background: var(--color-surface-offset); border-block: 1px solid var(--color-border); }
.cta-card {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 860px){ .cta-card { grid-template-columns: 1.1fr 0.9fr; } }
.cta-left { padding: clamp(var(--space-8), 5vw, var(--space-16)); }
.cta-left h2 { font-size: var(--text-2xl); }
.cta-left p { color: var(--color-text-muted); margin-top: var(--space-4); }
.agent { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); }
.agent-avatar { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 520; flex: none; }
.agent .name { font-weight: 650; font-size: var(--text-base); }
.agent .role { font-size: var(--text-sm); color: var(--color-text-muted); }
.agent .broker { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: 0.15rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.cta-right { background: var(--color-surface-offset-2); padding: clamp(var(--space-8), 5vw, var(--space-16)); }
.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.75rem 0.9rem; background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--text-base); color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 560px){ .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); }
.form-error { font-size: var(--text-sm); color: #ff9aa8; margin-top: var(--space-3); }
.form-error a { color: #ff9aa8; text-decoration: underline; }
.form-field input[aria-invalid="true"] { border-color: #e07a8c; box-shadow: 0 0 0 3px rgba(207,111,142,0.18); }
.form-success { text-align: center; padding: var(--space-8) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.form-success[hidden] { display: none; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); margin-bottom: var(--space-2); }
.form-success h3 { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-text); margin: 0; }
.form-success p { color: var(--color-text-muted); max-width: 38ch; margin: 0; }
#tour-submit[disabled] { opacity: 0.7; cursor: progress; }

/* ===== Footer ===== */
.footer { background: var(--color-bg); border-top: 1px solid var(--color-border); padding-block: var(--space-12); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 720px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { margin-bottom: var(--space-4); }
.footer p { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer h5 { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 700; }
.footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer ul a { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer ul a:hover { color: var(--color-primary); }
.footer-bottom { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: var(--text-xs); color: var(--color-text-faint); max-width: none; }
.eho { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-logo { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); text-align: center; }
.footer-logo img { display: block; width: auto; max-width: 100%; height: clamp(54px, 8vw, 76px); margin-inline: auto; opacity: 0.96; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Toast ===== */
.toast { display: none; }

/* ===== Photo Gallery ===== */
.gallery { background: var(--color-surface-2); }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.gal-item { margin: 0; }
.gal-btn {
  display: block; position: relative; width: 100%; padding: 0; margin: 0;
 border: none; background: none; cursor: pointer; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.gal-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.gal-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gal-btn:hover img { transform: scale(1.05); }
.gal-btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.85rem 0.65rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em;
  color: #fbf8f2; text-align: left;
  background: linear-gradient(to top, rgba(20,16,11,0.82), rgba(20,16,11,0));
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(18,14,9,0.92);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-md); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.lightbox figcaption { color: #f0e9da; margin-top: 0.85rem; font-size: var(--text-sm); font-family: var(--font-display); }
.lightbox-close, .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #f0e9da; cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s ease;
}
.lightbox-close { top: 1.25rem; right: 1.25rem; transform: none; width: 44px; height: 44px; }
.lightbox-nav.prev { left: 1rem; } .lightbox-nav.next { right: 1rem; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 600px){ .lightbox-nav { width: 40px; height: 40px; } .lightbox-close { width: 40px; height: 40px; } }
