/* ============================================================
   ALLEN TEXAS V2 — EDITORIAL DARK THEME
   Design language: Bold Editorial / Magazine
   Fonts: Playfair Display (serif) + Lato (sans)
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-primary:       #111111;
  --bg-secondary:     #131313;
  --bg-tertiary:      #1a1a1a;
  --bg-elevated:      #222222;
  --bg-card:          #1c1b1b;
  --bg-card-hover:    #252424;

  --gold:             #C9A96E;
  --gold-light:       #e4c285;
  --gold-dim:         #8a6f42;

  --text-primary:     #F5F0E8;
  --text-secondary:   #e5e2e1;
  --text-muted:       #9e9790;
  --text-dim:         #6b6560;

  --border-subtle:    rgba(255,255,255,0.06);
  --border-gold:      rgba(201,169,110,0.3);

  /* Fonts */
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-sans:        'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs:         0.5rem;
  --space-sm:         1rem;
  --space-md:         1.5rem;
  --space-lg:         2.5rem;
  --space-xl:         4rem;
  --space-2xl:        6rem;
  --space-3xl:        8rem;

  /* Layout */
  --container-max:    1280px;
  --header-height:    80px;

  /* Transitions */
  --ease:             cubic-bezier(0.4, 0, 0.2, 1);
  --transition:       0.25s var(--ease);
  --transition-slow:  0.5s var(--ease);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 0.8rem;
}

.btn-gold {
  background: var(--gold);
  color: #1a1000;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: #1a1000;
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #1a1000;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(245,240,232,0.5);
  color: var(--text-primary);
}
.btn-outline-light:hover {
  border-color: var(--text-primary);
  background: rgba(245,240,232,0.08);
  color: var(--text-primary);
}

/* ── Gold Bar Divider ── */
.gold-bar {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem 0 1.75rem;
}
.gold-bar--center {
  margin: 0.75rem auto 1.75rem;
}

/* ── Section Reusables ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.header.scrolled {
  background: rgba(17, 17, 17, 0.95);
  border-bottom-color: rgba(201, 169, 110, 0.15);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  padding: 0.4rem 0.65rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--gold);
}

/* City Selector */
.city-selector {
  position: relative;
}

.city-selector-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-subtle);
  transition: color var(--transition), border-color var(--transition);
}
.city-selector-btn:hover,
.city-selector-btn[aria-expanded="true"] {
  color: var(--gold);
  border-color: var(--border-gold);
}

.city-arrow {
  stroke: currentColor;
  transition: transform var(--transition);
}
.city-selector-btn[aria-expanded="true"] .city-arrow {
  transform: rotate(180deg);
}

.city-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  min-width: 170px;
  z-index: 100;
}
.city-dropdown.open {
  display: block;
}

.city-option {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.city-option:hover,
.city-option.active {
  background: var(--bg-tertiary);
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1rem 0;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem var(--space-lg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover {
  color: var(--gold);
  background: var(--bg-tertiary);
}
.mobile-nav-link--city {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mobile-nav-label {
  padding: 0.75rem var(--space-lg) 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.mobile-nav-cities {
  padding-top: 0.5rem;
}

.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem var(--space-lg);
}

/* ── Responsive Header ── */
@media (max-width: 1100px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-right .btn,
  .header-phone { display: none; }
  .header-inner { justify-content: space-between; }
  .city-selector { margin-left: auto; }
}

@media (max-width: 640px) {
  .city-selector { display: none; }
  .header-inner { padding: 0 1rem; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0.55) 0%,
    rgba(17,17,17,0.35) 40%,
    rgba(17,17,17,0.75) 80%,
    rgba(17,17,17,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: calc(var(--header-height) + 3rem) 2rem 4rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero-stats-line {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-arrow {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce-down 1.6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* =============================================================
   STATS TICKER
   ============================================================= */
.stats-ticker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 0;
  overflow: hidden;
  position: relative;
}

.stats-ticker::before,
.stats-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.stats-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}
.stats-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.ticker-track {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker-scroll 14s linear infinite;
  will-change: transform;
  /* Prevent initial flash/glitch by starting offscreen-left */
  transform: translateX(0);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ticker-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.ticker-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ticker-sep {
  color: var(--gold-dim);
  font-size: 0.5rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.stats-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* =============================================================
   NEIGHBORHOOD EXPLORER
   ============================================================= */
.neighborhood-explorer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Photo panel */
.neighborhood-photo-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.neighborhood-photo-wrap {
  position: absolute;
  inset: 0;
}

.neighborhood-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
  transition: opacity 0.5s var(--ease);
}

.neighborhood-photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.6) 60%, transparent 100%);
  z-index: 2;
}

.neigh-price {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.neigh-name-display {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.neigh-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
}

/* List panel */
.neighborhood-list-panel {
  padding: var(--space-3xl) var(--space-xl) var(--space-3xl) var(--space-xl);
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.neighborhood-list-panel .section-title {
  margin-bottom: 0.75rem;
}

.neighborhood-list-panel .section-intro {
  margin: 0 0 var(--space-xl) 0;
  text-align: left;
}

.neighborhood-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.neighborhood-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  transition: all var(--transition);
  position: relative;
}
.neighborhood-item:first-child {
  border-top: 1px solid var(--border-subtle);
}
.neighborhood-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.neighborhood-item:hover::after,
.neighborhood-item.active::after {
  width: 100%;
}

.neigh-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  min-width: 24px;
  transition: color var(--transition);
}
.neighborhood-item.active .neigh-num,
.neighborhood-item:hover .neigh-num {
  color: var(--gold);
}

.neigh-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--transition);
  line-height: 1.2;
}
.neighborhood-item:hover .neigh-name,
.neighborhood-item.active .neigh-name {
  color: var(--text-primary);
}
.neighborhood-item.active .neigh-name {
  color: var(--gold);
}

/* Responsive neighborhood explorer */
@media (max-width: 900px) {
  .neighborhood-explorer {
    grid-template-columns: 1fr;
  }
  .neighborhood-photo-panel {
    position: relative;
    height: 50vw;
    min-height: 300px;
    max-height: 450px;
  }
  .neighborhood-list-panel {
    padding: var(--space-xl) var(--space-sm);
  }
}

/* =============================================================
   WHY ALLEN
   ============================================================= */
.why-allen {
  background: var(--bg-primary);
}

.why-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.why-block--reverse {
  direction: rtl;
}
.why-block--reverse > * {
  direction: ltr;
}

.why-block-img {
  position: relative;
  overflow: hidden;
}
.why-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.75);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}
.why-block:hover .why-block-img img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.02);
}

.why-block-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-tertiary);
}

.why-block--reverse .why-block-content {
  background: var(--bg-secondary);
}

.why-stat {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.why-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.why-block-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}
.why-block-content p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .why-block {
    grid-template-columns: 1fr;
  }
  .why-block--reverse {
    direction: ltr;
  }
  .why-block-img {
    min-height: 260px;
  }
  .why-block-content {
    padding: var(--space-xl) var(--space-md);
  }
}

/* =============================================================
   EXPLORE GRID
   ============================================================= */
.explore-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.explore-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.explore-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.explore-card:hover {
  background: var(--bg-card-hover);
}
.explore-card:hover::before {
  width: 100%;
}

.explore-card-icon {
  color: var(--gold);
  margin-bottom: 0.25rem;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.explore-card:hover .explore-card-icon {
  opacity: 1;
}

.explore-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color var(--transition);
}
.explore-card:hover .explore-card-title {
  color: var(--gold);
}

.explore-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.explore-card-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  transition: letter-spacing var(--transition);
}
.explore-card:hover .explore-card-link {
  letter-spacing: 0.18em;
}

@media (max-width: 1024px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   BLOG SECTION
   ============================================================= */
.blog-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.blog-card:hover {
  background: var(--bg-card-hover);
}

.blog-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(20%);
}
.blog-card:hover .blog-card-img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.blog-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}
.blog-card-title a {
  color: inherit;
  transition: color var(--transition);
}
.blog-card-title a:hover {
  color: var(--gold);
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
  .blog-grid .blog-card:nth-child(3) {
    grid-column: span 2;
  }
}

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  text-align: center;
  background: var(--bg-secondary);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================================
   FOOTER
   ============================================================= */
#site-footer {
  background: #0e0e0e;
  padding: var(--space-3xl) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand img {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.footer-address {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-contact {
  font-size: 0.82rem;
  line-height: 1.8;
}
.footer-contact a {
  color: var(--text-muted);
}
.footer-contact a:hover {
  color: var(--gold);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgba(245,240,232,0.25);
  text-transform: uppercase;
}
.footer-bottom a {
  color: rgba(245,240,232,0.25);
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================================
   BACK TO TOP
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
}

/* =============================================================
   SECTION-LEVEL ALT BACKGROUNDS
   ============================================================= */
.section--alt {
  background: var(--bg-secondary);
}

/* =============================================================
   UTILITIES
   ============================================================= */
.gold {
  color: var(--gold);
}

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

/* =============================================================
   RESPONSIVE TWEAKS
   ============================================================= */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* Photo crossfade transition */
.neighborhood-photo.fading {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.neighborhood-photo.fading-in {
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

/* =============================================================
   INNER PAGE STYLES — Added for all section pages
   ============================================================= */

/* ── Page Hero (inner pages — ~50vh) ── */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-2xl);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) grayscale(20%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0.3) 0%,
    rgba(17,17,17,0.5) 50%,
    rgba(17,17,17,0.92) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--header-height) + 4rem) var(--space-lg) 0;
  width: 100%;
}

.page-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 820px;
}

.page-hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Content Section ── */
.content-section {
  padding: var(--space-3xl) 0;
}
.content-section--alt {
  background: var(--bg-secondary);
}
.content-section--dark {
  background: var(--bg-tertiary);
}

/* ── Card Grids ── */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }
}

/* ── Content Card ── */
.content-card {
  background: var(--bg-elevated);
  padding: 2rem;
  border-top: 2px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.content-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.content-card-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.content-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.content-card-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.content-card-meta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  width: 100%;
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-elevated);
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.stat-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.stat-card-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Split Block (alternating photo/text) ── */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.split-block--reverse {
  direction: rtl;
}
.split-block--reverse > * {
  direction: ltr;
}

.split-block-img {
  position: relative;
  overflow: hidden;
}
.split-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.split-block:hover .split-block-img img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.split-block-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-tertiary);
}

.split-block--reverse .split-block-content {
  background: var(--bg-secondary);
}

.split-block-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.split-block-content .eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.split-block-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

@media (max-width: 900px) {
  .split-block {
    grid-template-columns: 1fr;
  }
  .split-block--reverse { direction: ltr; }
  .split-block-img { min-height: 260px; }
  .split-block-content { padding: var(--space-xl) var(--space-md); }
}

/* ── FAQ Accordion ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover {
  color: var(--gold);
}

.faq-question-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform var(--transition), background var(--transition);
  font-style: normal;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}
.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: #1a1000;
}

.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item.open .faq-answer {
  display: block;
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison-table th {
  background: var(--bg-elevated);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--border-gold);
}

.comparison-table td {
  padding: 0.9rem 1.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.comparison-table tr:hover td {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.comparison-table .winner {
  color: var(--gold);
  font-weight: 700;
}

.comparison-table .city-col {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Highlight Box ── */
.highlight-box {
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.highlight-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* ── School Card ── */
.school-card {
  background: var(--bg-elevated);
  padding: 2rem;
  margin-bottom: 1rem;
  border-left: 3px solid transparent;
  transition: border-color var(--transition);
}
.school-card:hover {
  border-color: var(--gold);
}

.school-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.school-card-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.school-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Neighborhood Detail Card ── */
.neighborhood-detail-card {
  background: var(--bg-elevated);
  padding: 2rem;
  margin-bottom: 1.25rem;
  border-top: 2px solid transparent;
  transition: border-color var(--transition);
}
.neighborhood-detail-card:hover {
  border-color: var(--gold);
}

.neighborhood-detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.neighborhood-detail-meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.neighborhood-detail-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* ── Price Range Badges ── */
.price-badge {
  display: inline-block;
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
}

/* ── Content Article Body (wide prose) ── */
.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,169,110,0.3);
  text-underline-offset: 3px;
}
.article-body a:hover {
  text-decoration-color: var(--gold);
}

.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.article-body ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.article-body strong {
  color: var(--text-secondary);
  font-weight: 700;
}

/* ── Stats Bar (horizontal metric strip) ── */
.stats-strip {
  display: grid;
  gap: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-strip-4 { grid-template-columns: repeat(4, 1fr); }
.stats-strip-5 { grid-template-columns: repeat(5, 1fr); }

.stats-strip-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.stats-strip-item:last-child { border-right: none; }

.stats-strip-num {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stats-strip-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .stats-strip-4,
  .stats-strip-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip-item {
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* ── Blog Page ── */
.blog-page-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .blog-page-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .blog-page-grid {
    grid-template-columns: 1fr;
  }
}
