/* ============================================================
   YVONNE KATZ REALTY — MAIN STYLESHEET
   Design: Dark Luxury | Font: Raleway + Cormorant Garamond
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --black:        #0a0a0a;
  --dark:         #111111;
  --dark-card:    #1a1a1a;
  --dark-border:  #2a2a2a;
  --gold:         #C9A96E;
  --gold-light:   #E8D5B0;
  --gold-dark:    #9E7B45;
  --white:        #FFFFFF;
  --off-white:    #F5F2EE;
  --text-light:   #CCCCCC;
  --text-muted:   #888888;

  --font-main:    'Raleway', sans-serif;
  --font-accent:  'Cormorant Garamond', serif;

  --nav-h:        80px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:       2px;
  --max-w:        1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-main);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.serif { font-family: var(--font-accent); font-weight: 300; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.8;
}

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--dark  { background: var(--dark); }
.section--card  { background: var(--dark-card); }

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--dark-border);
  padding: 0.7rem 1.6rem;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn:hover svg { transform: translateX(3px); }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 1px 0 var(--dark-border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo .logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo .logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--gold);
  padding: 0.6rem 1.4rem;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -12px;
  right: -12px;
  height: 20px;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-top: 2px solid var(--gold);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.85rem 1.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.dropdown-menu a:hover { color: var(--gold); background: rgba(201,169,110,0.06); }
.dropdown-menu a::after { display: none !important; }

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  padding: 3rem 2rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--dark-border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mobile-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 1.5rem;
  padding-bottom: 0.25rem;
}
.mobile-menu .btn-gold {
  margin-top: 2rem;
  text-align: center;
  justify-content: center;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video hero background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Fallback static bg */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/headshot.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Hero inner layout: text left, portrait right */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
  width: 100%;
}

/* Headshot portrait in hero */
.hero-portrait {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.hero-portrait-frame {
  width: 300px;
  height: 400px;
  border: 2px solid var(--gold);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(201,169,110,0.2);
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: none;
  outline: none;
}
/* Gold accent offset frame */
.hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201,169,110,0.3);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 2rem; }
  .hero-portrait { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.hero-title em {
  font-style: normal;
  font-family: var(--font-accent);
  font-weight: 300;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-family: var(--font-accent);
  font-style: italic;
}

.hero-company-logo {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,169,110,0.25);
}
.hero-company-logo img {
  height: 52px !important;
  width: auto !important;
  max-width: 220px !important;
  opacity: 0.92;
  border-radius: 3px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--dark-border);
}

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

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

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

/* ── Neighborhood Cards ── */
.neighborhoods-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  padding: 0;
}

.neighborhood-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

/* all neighborhood cards equal size */

.neighborhood-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.neighborhood-card:hover .neighborhood-card-img {
  transform: scale(1.06);
}

.neighborhood-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  transition: background var(--transition);
}
.neighborhood-card:hover .neighborhood-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%);
}

.neighborhood-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transform: translateY(4px);
  transition: transform var(--transition);
}
.neighborhood-card:hover .neighborhood-card-content {
  transform: translateY(0);
}

.neighborhood-card-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.neighborhood-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.neighborhood-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 300;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition) 0.05s;
  line-height: 1.6;
}
.neighborhood-card:hover .neighborhood-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.neighborhood-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition) 0.08s;
}
.neighborhood-card:hover .neighborhood-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ── About Section ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--dark-card);
  border: 1px dashed var(--dark-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 1rem;
}

.about-image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold);
  z-index: -1;
}

.about-badge {
  position: absolute;
  top: 2rem;
  left: -2rem;
  background: var(--gold);
  color: var(--black);
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.about-badge .badge-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.about-badge .badge-text {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-text p {
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.credential-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--dark-border);
  padding: 0.45rem 1rem;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-top: 2px solid var(--gold);
  padding: 2rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--off-white);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Process / How it works ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.process-step {
  text-align: center;
}

.process-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.process-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.process-step h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  font-family: var(--font-accent);
  font-style: italic;
}

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

/* ── Footer ── */
footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-brand .logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: 2px;
  margin-bottom: 1.2rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 260px;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.1);
}
.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: fill var(--transition);
}
.social-link:hover svg { fill: var(--gold); }

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0.8rem;
}
.footer-contact-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Footer Logo Strip ── */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--dark-border);
}
.footer-logos img {
  height: 36px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.footer-logos img:hover { opacity: 1; }
.footer-logos .cambridge-logo {
  height: 28px;
  filter: brightness(0) invert(1);
}
.footer-logos .personal-logo {
  height: 44px;
  filter: none;
  opacity: 1;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Page Hero (interior pages) ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }
.breadcrumb-sep { color: var(--dark-border); }

/* ── Neighborhood Detail ── */
.neighborhood-hero {
  height: 60vh;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.neighborhood-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.neighborhood-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.highlight-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 1.5rem;
  text-align: center;
}

.highlight-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.highlight-card h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 300;
}

.form-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-top: 2px solid var(--gold);
  padding: 2.5rem;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--dark-border);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: var(--dark); }

.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ── Buy / Sell pages ── */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-check svg {
  width: 10px;
  height: 10px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 3;
}

.service-list-item p {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 300;
}

.service-list-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

/* ── Scroll Animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { gap: 1.5rem; }
  .neighborhoods-grid { grid-template-columns: 1fr 1fr; }
  /* uniform cards */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-split { gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .hero-title { font-size: 2.5rem; }

  .neighborhoods-intro { flex-direction: column; align-items: flex-start; }
  .neighborhoods-grid { grid-template-columns: 1fr; gap: 1px; }
  .neighborhood-card { height: 260px; }

  .about-split { grid-template-columns: 1fr; }
  .about-badge { left: 1rem; top: 1rem; }
  .about-image-accent { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .service-intro { grid-template-columns: 1fr; }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
img { border: none; outline: none; max-width: 100%; }

/* ── iOS parallax fix — background-attachment:fixed is broken on Safari mobile ── */
@media (max-width: 1024px) {
  .cta-banner-bg {
    background-attachment: scroll;
  }
}

/* ── Tablet + mobile (768px) additions ── */
@media (max-width: 768px) {
  /* Shrink logo to fit 64px nav bar */
  .nav-logo img {
    height: 52px !important;
  }

  /* Hero: don't exceed viewport on mobile (iOS address bar issue) */
  .hero {
    min-height: 560px;
    height: 100svh; /* svh = small viewport height, excludes address bar */
  }

  /* Stack hero buttons vertically, full width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 360px;
  }

  /* Proper card gap (not 1px divider look) */
  .neighborhoods-grid {
    gap: 0.75rem;
  }

  /* Tighten neighborhood card height */
  .neighborhood-card {
    height: 240px;
  }

  /* CTA padding tighter on mobile */
  .cta-banner {
    padding: 5rem 0;
  }

  /* Stat numbers tighter */
  .stat-number {
    font-size: 2rem;
  }

  /* Page hero tighter */
  .page-hero {
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3rem;
  }

  /* Neighborhood detail hero */
  .neighborhood-hero {
    height: 50vh;
    min-height: 320px;
  }

  /* About badge: don't hang off the left edge */
  .about-badge {
    left: 0.5rem;
  }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  :root { --nav-h: 58px; }

  .nav-logo img {
    height: 44px !important;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Stats: keep 2-column but tighten padding */
  .stat-item {
    padding: 0.75rem 0.75rem;
  }
  .stat-number {
    font-size: 1.7rem;
  }
  .stat-label {
    font-size: 0.58rem;
  }

  /* Neighborhood cards: short on tiny screens */
  .neighborhood-card {
    height: 200px;
  }

  /* Collapse 4-step process to 1 column */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* Collapse highlights to 1 column */
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Form card: tighter padding */
  .form-card {
    padding: 1.5rem 1rem;
  }

  /* Footer logos: stack vertically */
  .footer-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* Cambridge logo slightly smaller on tiny phones */
  .hero-company-logo img {
    height: 40px !important;
    max-height: 40px !important;
  }

  /* About badge: stay inside bounds */
  .about-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1.5rem;
  }
  .about-image-wrap {
    padding-top: 0;
  }

  /* CTA section */
  .cta-banner {
    padding: 4rem 0;
  }

  /* Buttons: slightly smaller on tiny screens */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.68rem;
  }

  /* Neighborhood detail hero */
  .neighborhood-hero {
    height: 45vh;
    min-height: 280px;
  }
  .neighborhood-hero-title {
    font-size: 2rem;
  }
}
