/* ============================================================
   KEYES OPENS DOORS — Design System
   Palette: Deep Navy + Warm Sand + Pacific Gold accent
   Fonts: Cormorant Garamond (display) + Work Sans (body)
   ============================================================ */

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

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 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;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16,1,0.3,1);
  --ease-out: cubic-bezier(0.16,1,0.3,1);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ── LIGHT MODE (Deep Navy / Warm Sand) ─────────────────── */
:root, [data-theme="light"] {
  --color-bg:              #f9f7f3;
  --color-surface:         #ffffff;
  --color-surface-2:       #f4f1eb;
  --color-surface-offset:  #ede9e0;
  --color-divider:         #ddd9d0;
  --color-border:          #d0ccc2;

  --color-text:            #1a1810;
  --color-text-muted:      #6b6860;
  --color-text-faint:      #b0ada5;
  --color-text-inverse:    #f9f7f3;

  /* Navy primary */
  --color-primary:         #14305a;
  --color-primary-hover:   #0e2245;
  --color-primary-active:  #091830;
  --color-primary-highlight: #dde4f0;

  /* Gold accent */
  --color-accent:          #b8944a;
  --color-accent-hover:    #a07d35;
  --color-accent-active:   #7d6025;
  --color-accent-highlight: #f2e8d4;

  --shadow-sm:  0 1px 3px oklch(0.1 0.02 250 / 0.08);
  --shadow-md:  0 4px 16px oklch(0.1 0.02 250 / 0.12);
  --shadow-lg:  0 12px 40px oklch(0.1 0.02 250 / 0.18);
  --shadow-xl:  0 24px 64px oklch(0.1 0.02 250 / 0.24);
}

/* ── DARK MODE ───────────────────────────────────────────── */
[data-theme="dark"] {
  --color-bg:              #0d0f18;
  --color-surface:         #131620;
  --color-surface-2:       #191c2a;
  --color-surface-offset:  #1e2232;
  --color-divider:         #252a3a;
  --color-border:          #2e344a;

  --color-text:            #e8e6e0;
  --color-text-muted:      #8a8a98;
  --color-text-faint:      #505060;
  --color-text-inverse:    #0d0f18;

  --color-primary:         #6b9cd8;
  --color-primary-hover:   #88b2e4;
  --color-primary-active:  #a4c6ee;
  --color-primary-highlight: #1a2540;

  --color-accent:          #d4aa6a;
  --color-accent-hover:    #e0bc80;
  --color-accent-active:   #ecca96;
  --color-accent-highlight: #2a2010;

  --shadow-sm:  0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md:  0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg:  0 12px 40px oklch(0 0 0 / 0.5);
  --shadow-xl:  0 24px 64px oklch(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #0d0f18;
    --color-surface:         #131620;
    --color-surface-2:       #191c2a;
    --color-surface-offset:  #1e2232;
    --color-divider:         #252a3a;
    --color-border:          #2e344a;
    --color-text:            #e8e6e0;
    --color-text-muted:      #8a8a98;
    --color-text-faint:      #505060;
    --color-text-inverse:    #0d0f18;
    --color-primary:         #6b9cd8;
    --color-primary-hover:   #88b2e4;
    --color-primary-active:  #a4c6ee;
    --color-primary-highlight: #1a2540;
    --color-accent:          #d4aa6a;
    --color-accent-hover:    #e0bc80;
    --color-accent-active:   #ecca96;
    --color-accent-highlight: #2a2010;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.5);
    --shadow-xl: 0 24px 64px oklch(0 0 0 / 0.6);
  }
}

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow { max-width: var(--content-default); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out), padding 300ms var(--ease-out), top 300ms var(--ease-out);
}
.nav.scrolled { top: 0; }
.nav.scrolled {
  background: oklch(from var(--color-bg) l c h / 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding-block: var(--space-3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-inverse);
  transition: opacity var(--transition-interactive);
}
.nav.scrolled .nav__logo { color: var(--color-text); }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  transition: color var(--transition-interactive), opacity var(--transition-interactive);
}
.nav.scrolled .nav__links a { color: var(--color-text-muted); }
.nav__links a:hover { color: var(--color-accent) !important; opacity: 1; }

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  cursor: pointer;
}
.nav.scrolled .nav__theme-toggle { color: var(--color-text-muted); }
.nav__theme-toggle:hover { color: var(--color-accent) !important; background: oklch(from var(--color-accent) l c h / 0.1); }

.nav__btn {
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.nav__btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav__btn:active { transform: translateY(0); }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: var(--space-2);
}
.nav__hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--color-text-inverse);
  border-radius: 2px;
  transition: all 300ms var(--ease-out);
}
.nav.scrolled .nav__hamburger span { background: var(--color-text); }
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-surface);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: var(--space-4);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--transition-interactive);
}
.nav__mobile a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .nav__links, .nav__btn { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/hero.png');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.hero__bg.loaded { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.08 0.03 250 / 0.92) 0%,
    oklch(0.08 0.03 250 / 0.5) 45%,
    oklch(0.08 0.03 250 / 0.15) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-32), 16vw, 16rem) clamp(var(--space-16), 8vw, var(--space-24));
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  max-width: 14ch;
}
.hero__headline em {
  font-style: italic;
  color: var(--color-accent);
}
.hero__sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: oklch(1 0 0 / 0.75);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive), color var(--transition-interactive),
              transform var(--transition-interactive), box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: oklch(1 0 0 / 0.4);
}
.btn--ghost:hover { border-color: #fff; background: oklch(1 0 0 / 0.08); transform: translateY(-1px); }

.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.45);
  margin-top: var(--space-16);
}
.hero__scroll-line {
  width: 40px; height: 1px;
  background: oklch(1 0 0 / 0.3);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--color-primary);
  padding-block: var(--space-8);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6);
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}
.stat__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
  margin-top: var(--space-1);
  display: block;
}

/* ── SECTIONS ────────────────────────────────────────────── */
section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--color-accent);
}
.section-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.section-headline em {
  font-style: italic;
  color: var(--color-accent);
}
.section-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 55ch;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about {
  background: var(--color-bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
}
.about__image-wrap {
  position: relative;
}
.about__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.about__badge {
  position: absolute;
  bottom: var(--space-6);
  right: calc(-1 * var(--space-6));
  background: var(--color-surface);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 160px;
}
.about__badge-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}
.about__badge-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
[data-theme="dark"] .tag {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

/* ── NEIGHBORHOODS ───────────────────────────────────────── */
.neighborhoods {
  background: var(--color-surface-2);
}
.neighborhoods__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.neighborhood-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: default;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.neighborhood-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.neighborhood-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 400ms var(--ease-out);
}
.neighborhood-card:hover .neighborhood-card__bg { transform: scale(1.05); }
.neighborhood-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.08 0.03 250 / 0.88) 0%, transparent 60%);
}
.neighborhood-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-6);
}
.neighborhood-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}
.neighborhood-card__price {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.neighborhood-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.65);
  margin-top: var(--space-2);
  line-height: 1.6;
  max-width: 100%;
}

/* ── WHY KEYES ───────────────────────────────────────────── */
.why {
  background: var(--color-bg);
}
.why__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}
.why__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.why__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.why-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.why-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-highlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.why-item__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.why-item__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 100%;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials {
  background: var(--color-primary);
}
.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.testimonials__header .section-eyebrow { justify-content: center; }
.testimonials__header .section-eyebrow::before { display: none; }
.testimonials__header .section-headline { color: #fff; margin-inline: auto; text-align: center; max-width: 100%; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.testimonial-card:hover { background: oklch(1 0 0 / 0.1); transform: translateY(-2px); }
.testimonial-card__stars {
  display: flex; gap: var(--space-1);
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 100%;
}
.testimonial-card__author {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
}
.testimonial-card__location {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: var(--space-1);
}

/* ── CONTACT / LEAD CAPTURE ──────────────────────────────── */
.contact {
  background: var(--color-bg);
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.contact__info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact__info-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
[data-theme="dark"] .contact__info-icon {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.contact__info-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.contact__info-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a.contact__info-value:hover { color: var(--color-accent); }

.contact__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.social-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive), border-color var(--transition-interactive),
              background var(--transition-interactive), transform var(--transition-interactive);
}
.social-icon:hover { color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px); }

/* Form */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.form-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group--full { grid-column: 1 / -1; }
label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
input, select, textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
select { appearance: none; cursor: pointer; }
textarea { resize: vertical; min-height: 100px; }
.form-submit {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding-block: var(--space-4);
  font-size: var(--text-sm);
}
.form-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-3);
  max-width: 100%;
}
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-8);
}
.form-success__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}
.form-success__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 100%;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--color-primary);
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  margin-bottom: var(--space-12);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--space-3);
}
.footer__brand-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.5);
  line-height: 1.7;
  max-width: 100%;
}
.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.footer__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.55);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__links a:hover { color: var(--color-accent); }
.footer__divider {
  width: 100%;
  height: 1px;
  background: oklch(1 0 0 / 0.1);
  margin-bottom: var(--space-6);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copyright {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.35);
}
.footer__dre {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.35);
  letter-spacing: 0.05em;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ── DIVIDER ORNAMENT ────────────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--color-accent);
  font-size: var(--text-lg);
  opacity: 0.4;
  letter-spacing: 0.5em;
  padding-block: var(--space-4);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__badge { right: var(--space-4); }
  .about__image { aspect-ratio: 4/3; }
  .why__layout { grid-template-columns: 1fr; }
  .why__image { height: 340px; }
  .contact__layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .neighborhood-card { aspect-ratio: 3/4; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── TICKER BAR ──────────────────────────────────────────── */
.ticker-bar {
  background: var(--color-primary);
  padding-block: var(--space-2);
  overflow: hidden;
  position: relative;
  z-index: 101;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  overflow: hidden;
  max-width: 100%;
}
.ticker-label {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: oklch(from var(--color-accent) l c h / 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.3);
  margin-left: var(--space-4);
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-items {
  display: flex;
  gap: var(--space-6);
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-items:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.65);
  white-space: nowrap;
}
.ticker-item strong { color: #fff; font-weight: 600; }
.ticker-sep {
  color: oklch(1 0 0 / 0.2);
  font-size: var(--text-xs);
}

/* ── NAV PHONE BUTTON ────────────────────────────────────── */
.nav__btn--call {
  display: none;
  background: transparent;
  border: 1.5px solid oklch(from var(--color-accent) l c h / 0.6);
  color: var(--color-accent);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  gap: var(--space-2);
  white-space: nowrap;
}
.nav__btn--call:hover { background: oklch(from var(--color-accent) l c h / 0.1); border-color: var(--color-accent); color: var(--color-accent); transform: none; }
.nav.scrolled .nav__btn--call { display: inline-flex; }

/* ── ABOUT CONTACT QUICK ────────────────────────────────── */
.about__contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.about__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.about__contact-link:hover { color: var(--color-accent); }
[data-theme="dark"] .about__contact-link { color: var(--color-primary); }

/* ── CALCULATOR SECTION ──────────────────────────────────── */
.calculator-section {
  background: var(--color-surface-2);
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}
.calculator-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: 100px;
}
.calc-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.calc-disclaimer svg { flex-shrink: 0; margin-top: 1px; color: var(--color-accent); }
.calc-disclaimer a { color: var(--color-accent); text-decoration: none; }
.calc-cta-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), oklch(from var(--color-primary) calc(l - 0.08) c h));
  border-radius: var(--radius-xl);
  margin-top: var(--space-2);
}
.calc-cta-box__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.8);
  line-height: 1.7;
  max-width: 100%;
}

/* Calculator Card */
.calculator-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}
.calc-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.calc-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.calc-field label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.calc-field-note {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.calc-input-wrap {
  display: flex;
  align-items: center;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.calc-input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}
.calc-prefix, .calc-suffix {
  padding: var(--space-3) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
  user-select: none;
}
.calc-input-wrap--suffix .calc-suffix {
  border-right: none;
  border-left: 1px solid var(--color-border);
}
.calc-input-wrap input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  min-width: 0;
}
.calc-input-wrap input[type="number"] {
  -moz-appearance: textfield;
}
.calc-input-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-slider-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px oklch(from var(--color-accent) l c h / 0.3);
  transition: transform 150ms ease;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-text-faint);
}

/* Results */
.calc-results {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  gap: var(--space-4);
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}
.calc-result-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
}
.calc-result-row--deduct .calc-result-value { color: var(--color-text-muted); }
.calc-result-row--total {
  background: var(--color-surface-offset);
  padding-block: var(--space-4);
}
.calc-result-row--total .calc-result-label {
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.calc-result-net {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  transition: color 200ms;
}
.calc-footnote {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-intro { position: static; }
}

/* ── MARKET NEWS ────────────────────────────────────────── */
.market-news {
  background: var(--color-primary);
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.market-news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.news-grid__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.news-card {
  background: oklch(1 0 0 / 0.05);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.news-card:hover { background: oklch(1 0 0 / 0.09); transform: translateY(-2px); }
.news-card--featured {
  padding: var(--space-8);
  border-color: oklch(from var(--color-accent) l c h / 0.3);
  background: oklch(1 0 0 / 0.07);
}
.news-card__tag {
  display: inline-block;
  padding: 2px var(--space-3);
  background: oklch(from var(--color-accent) l c h / 0.2);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.news-card__tag--green { background: oklch(0.7 0.15 145 / 0.2); color: oklch(0.7 0.15 145); }
.news-card__tag--blue  { background: oklch(0.65 0.15 250 / 0.2); color: oklch(0.75 0.15 250); }
.news-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.news-card--featured .news-card__title { font-size: var(--text-xl); }
.news-card__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.6);
  line-height: 1.7;
  max-width: 100%;
  margin-bottom: var(--space-4);
}
.news-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.35);
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .market-news__header { flex-direction: column; align-items: flex-start; }
}

/* ── NEWSLETTER ─────────────────────────────────────────── */
.newsletter {
  background: var(--color-bg);
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.newsletter__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: start;
}
.newsletter__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.newsletter__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin-top: var(--space-2);
}
.newsletter__benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 100%;
}
.newsletter__benefits svg {
  flex-shrink: 0;
  color: var(--color-accent);
}
.newsletter__card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.newsletter__card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.newsletter__card-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 100%;
}
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

/* ── REAL BROKERAGE SECTION ──────────────────────────────── */
.real-brokerage {
  background: #0d0f14;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.real-brokerage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.55 0.18 25) 40%, oklch(0.55 0.18 25) 60%, transparent);
}
.real-brokerage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.real-brokerage__logo-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.real-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.real-logo__mark {
  width: 56px;
  height: 56px;
  background: oklch(0.55 0.22 25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.real-logo__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.real-logo__sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.55 0.22 25);
}
.real-brokerage__tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: oklch(1 0 0 / 0.75);
  line-height: 1.4;
  max-width: 100%;
}
.real-brokerage__stat-row {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.real-stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: oklch(0.65 0.22 25);
  line-height: 1;
  display: block;
}
.real-stat__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.4);
  display: block;
  margin-top: var(--space-1);
}
.real-brokerage__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.real-brokerage__headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  max-width: 100%;
}
.real-brokerage__headline em {
  font-style: italic;
  color: oklch(0.65 0.22 25);
}
.real-brokerage__body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.55);
  line-height: 1.75;
  max-width: 100%;
}
.real-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.real-pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--radius-lg);
  transition: background 200ms;
}
.real-pillar:hover { background: oklch(1 0 0 / 0.07); }
.real-pillar__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: oklch(0.55 0.22 25 / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.65 0.22 25);
}
.real-pillar__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2px;
}
.real-pillar__desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.45);
  line-height: 1.5;
  max-width: 100%;
}
.real-brokerage__disclaimer {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.25);
  line-height: 1.6;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.08);
  max-width: 100%;
}

@media (max-width: 860px) {
  .real-brokerage__grid { grid-template-columns: 1fr; }
  .real-pillars { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   REAL BROKERAGE SECTION
   ══════════════════════════════════════════════════════ */

.real-section {
  background: #0d0f14;
  color: #f0ede8;
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal grain texture */
.real-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(232, 65, 42, 0.03) 40px,
    rgba(232, 65, 42, 0.03) 41px
  );
  pointer-events: none;
}

.real-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* Header row: logo + title + badge */
.real-section__header {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.real-logo-mark {
  flex-shrink: 0;
}

.real-logo-mark svg {
  width: clamp(52px, 6vw, 72px);
  height: clamp(52px, 6vw, 72px);
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(232, 65, 42, 0.35);
}

.real-section__title-group {
  flex: 1;
  min-width: 160px;
}

.real-section__eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8412a;
  margin: 0 0 0.3rem;
}

.real-section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem;
  line-height: 1.1;
}

.real-section__subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(240, 237, 232, 0.55);
  margin: 0;
  letter-spacing: 0.04em;
}

/* Badge */
.real-badge {
  margin-left: auto;
  background: rgba(232, 65, 42, 0.12);
  border: 1px solid rgba(232, 65, 42, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.real-badge__label {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8412a;
  letter-spacing: 0.03em;
}

.real-badge__sub {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(240, 237, 232, 0.55);
  margin-top: 0.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Headline */
.real-section__headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.7;
  color: rgba(240, 237, 232, 0.82);
  border-left: 3px solid #e8412a;
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  max-width: 820px;
}

/* Stats Row */
.real-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(240, 237, 232, 0.08);
  border: 1px solid rgba(240, 237, 232, 0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.real-stat {
  background: rgba(240, 237, 232, 0.03);
  padding: clamp(1.2rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  transition: background 0.2s ease;
}

.real-stat:hover {
  background: rgba(232, 65, 42, 0.07);
}

.real-stat__num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #e8412a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.real-stat__label {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  color: rgba(240, 237, 232, 0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Feature Pillars */
.real-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.real-pillar {
  background: rgba(240, 237, 232, 0.04);
  border: 1px solid rgba(240, 237, 232, 0.08);
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.1rem, 2vw, 1.5rem);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.real-pillar:hover {
  border-color: rgba(232, 65, 42, 0.4);
  background: rgba(232, 65, 42, 0.06);
  transform: translateY(-3px);
}

.real-pillar__icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 65, 42, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #e8412a;
}

.real-pillar__title {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

.real-pillar__copy {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(240, 237, 232, 0.6);
  margin: 0;
}

/* Legal Disclaimer */
.real-section__disclaimer {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(240, 237, 232, 0.3);
  text-align: center;
  border-top: 1px solid rgba(240, 237, 232, 0.08);
  padding-top: 1.75rem;
  max-width: 780px;
  margin: 0 auto;
}

/* Responsive — tablet */
@media (max-width: 900px) {
  .real-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .real-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .real-badge {
    margin-left: 0;
  }
}

/* Responsive — mobile */
@media (max-width: 540px) {
  .real-section__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .real-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .real-pillars {
    grid-template-columns: 1fr;
  }
  .real-badge {
    width: 100%;
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════
   AS SEEN IN / MEDIA BAR
   ══════════════════════════════════════════════════════ */

.media-bar {
  background: var(--color-navy, #14305a);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.media-bar .container {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.media-bar__label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

.media-bar__logos {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  flex: 1;
}

.media-bar__item {
  opacity: 0.55;
  transition: opacity 0.2s ease;
  color: #fff;
  display: flex;
  align-items: center;
}

.media-bar__item:hover {
  opacity: 0.95;
}

@media (max-width: 640px) {
  .media-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .media-bar__logos {
    gap: 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════
   HOME VALUATION CTA
   ══════════════════════════════════════════════════════ */

.valuation-cta {
  background: var(--color-surface, #f9f7f3);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.valuation-cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  background: #fff;
  border: 1px solid rgba(20,48,90,0.1);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 4px 40px rgba(20,48,90,0.07);
}

.valuation-cta__icon {
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.valuation-cta__heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-navy, #14305a);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.valuation-cta__heading em {
  font-style: italic;
  color: var(--color-accent, #b8944a);
}

.valuation-cta__body {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.7;
  color: oklch(0.35 0.02 230);
  margin: 0 0 var(--space-6);
  max-width: 560px;
}

.valuation-cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

/* Stats column on right */
.valuation-cta__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 160px;
}

.val-stat {
  background: var(--color-navy, #14305a);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.val-stat__num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-accent, #b8944a);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.val-stat__label {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.val-stat__change {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.68rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.val-stat__change--up {
  color: #4ade80;
}

@media (max-width: 860px) {
  .valuation-cta__inner {
    grid-template-columns: 1fr;
  }
  .valuation-cta__icon { display: none; }
  .valuation-cta__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .val-stat { flex: 1; min-width: 120px; }
}

/* ══════════════════════════════════════════════════════
   FEATURED LISTINGS / IDX
   ══════════════════════════════════════════════════════ */

.listings {
  background: var(--color-surface, #f9f7f3);
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid rgba(20,48,90,0.07);
}

.listings__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

/* IDX Embed Zone */
.idx-embed-zone {
  width: 100%;
}

/* Listing Cards Grid */
.listing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
}

.listing-card {
  background: #fff;
  border: 1px solid rgba(20,48,90,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20,48,90,0.12);
}

.listing-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

/* Gradient placeholder backgrounds using existing brand colors */
.listing-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-card__img {
  transform: scale(1.04);
}

.listing-card__img--1 {
  background: linear-gradient(135deg, #14305a 0%, #1d4b80 40%, #b8944a 100%);
}

.listing-card__img--2 {
  background: linear-gradient(135deg, #0d1f38 0%, #14305a 50%, #2a5298 100%);
}

.listing-card__img--3 {
  background: linear-gradient(135deg, #1a3a6e 0%, #0d263f 50%, #b8944a 100%);
}

.listing-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--color-navy, #14305a);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.listing-card__badge--offmarket {
  background: var(--color-accent, #b8944a);
  color: #fff;
}

.listing-card__tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(184,148,74,0.9);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.listing-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-navy, #14305a);
  margin: 0 0 0.3rem;
  line-height: 1;
}

.listing-card__address {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: oklch(0.3 0.04 230);
  margin: 0 0 0.75rem;
}

.listing-card__specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.listing-card__specs span {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(20,48,90,0.6);
  font-weight: 500;
}

.listing-card__desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.83rem;
  line-height: 1.6;
  color: oklch(0.4 0.02 230);
  margin: 0 0 1rem;
  flex: 1;
}

.listing-card__cta {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent, #b8944a);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.listing-card__cta:hover {
  color: var(--color-navy, #14305a);
  letter-spacing: 0.06em;
}

/* IDX Connect Notice */
.idx-connect-notice {
  background: rgba(20,48,90,0.05);
  border: 1px solid rgba(20,48,90,0.1);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.83rem;
  color: oklch(0.45 0.03 230);
  line-height: 1.6;
}

.idx-connect-notice p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .listing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .listing-cards {
    grid-template-columns: 1fr;
  }
  .listings__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════
   BUY vs SELL INTENT SPLIT
   ══════════════════════════════════════════════════════ */

.intent-split {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--color-surface, #f9f7f3);
  border-top: 1px solid rgba(20,48,90,0.07);
}

.intent-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.intent-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid rgba(20,48,90,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.intent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(20,48,90,0.1);
}

.intent-card--sell {
  border-color: rgba(184,148,74,0.2);
  background: linear-gradient(160deg, #fff 70%, rgba(184,148,74,0.04) 100%);
}

.intent-card__icon {
  margin-bottom: 0.25rem;
}

.intent-card__eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #b8944a);
  margin: 0;
}

.intent-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-navy, #14305a);
  line-height: 1.2;
  margin: 0;
}

.intent-card__body {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: oklch(0.4 0.02 230);
  margin: 0;
}

.intent-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.intent-card__list li {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.83rem;
  color: oklch(0.35 0.03 230);
  padding-left: 1.1rem;
  position: relative;
}

.intent-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent, #b8944a);
  border-radius: 50%;
}

.btn--accent {
  background: var(--color-accent, #b8944a);
  color: #fff;
  border: 2px solid var(--color-accent, #b8944a);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}

.btn--accent:hover {
  background: #a07c3a;
  border-color: #a07c3a;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .intent-split__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   INSTAGRAM / SOCIAL PROOF
   ══════════════════════════════════════════════════════ */

.social-proof {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--color-navy, #14305a);
}

.social-proof .section-eyebrow { color: var(--color-accent, #b8944a); }
.social-proof .section-headline { color: #fff; }
.social-proof .section-body { color: rgba(255,255,255,0.7); }
.social-proof .section-body strong { color: #fff; }

.social-proof__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.social-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  height: 420px;
}

.social-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.social-card--featured {
  grid-row: 1;
}

.social-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.social-card:hover .social-card__img {
  transform: scale(1.05);
}

/* Social card placeholder images using listing assets */
.social-card__img--1 {
  background-image: url('assets/listing-1.png');
}
.social-card__img--2 {
  background-image: url('assets/listing-2.png');
}
.social-card__img--3 {
  background-image: url('assets/listing-3.png');
}
.social-card__img--4 {
  background-image: url('assets/cdm-village.png');
}

.social-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover .social-card__overlay,
.social-card--featured .social-card__overlay {
  opacity: 1;
}

.social-card__caption {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.social-card__meta span {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

.social-card__follow {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(184,148,74,0.85);
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s;
}

.social-card__follow:hover {
  background: #b8944a;
}

@media (max-width: 860px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  .social-card {
    height: 200px;
  }
  .social-card--featured {
    grid-column: 1 / -1;
    height: 260px;
  }
  .social-card__overlay { opacity: 1; }
  .social-proof__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
  .social-card--featured { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════
   LISTING CARD IMAGE OVERRIDE (real photos)
   ══════════════════════════════════════════════════════ */

/* Override gradient with real image */
.listing-card__img--1,
.listing-card__img--2,
.listing-card__img--3 {
  background: #0d1f38; /* fallback if image fails */
}

/* ══════════════════════════════════════════════════════
   LIVE IDX EMBED
   ══════════════════════════════════════════════════════ */

.idx-live-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(20,48,90,0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(20,48,90,0.08);
  min-height: 800px;
  position: relative;
}

/* Loading shimmer shown before iframe fires */
.idx-live-wrap::before {
  content: 'Loading live listings…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(20,48,90,0.35);
  background: linear-gradient(
    90deg,
    #f9f7f3 25%,
    #f0ede8 50%,
    #f9f7f3 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  z-index: 0;
  pointer-events: none;
  border-radius: 18px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.idx-live-wrap iframe {
  position: relative;
  z-index: 1;
  min-height: 800px;
}

@media (max-width: 600px) {
  .idx-live-wrap,
  .idx-live-wrap iframe {
    min-height: 600px;
    height: 600px;
  }
}

/* ══════════════════════════════════════════════════════
   NAV FIX — prevent link wrapping, tighter spacing
   ══════════════════════════════════════════════════════ */

.nav__links {
  gap: clamp(var(--space-4), 2.5vw, var(--space-6)) !important;
}

.nav__links a {
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
}

.nav__inner {
  gap: var(--space-4) !important;
}

/* Slightly reduce logo on larger screens to give links more room */
.nav__logo-text {
  font-size: var(--text-base) !important;
}

/* ══════════════════════════════════════════════════════
   REAL BROKERAGE — match site navy/gold palette
   ══════════════════════════════════════════════════════ */

/* Override the near-black background to deep navy */
.real-brokerage {
  background: #0e1e3a !important;
}

/* Top accent line: gold instead of coral */
.real-brokerage::before {
  background: linear-gradient(90deg, transparent, #b8944a 40%, #b8944a 60%, transparent) !important;
}

/* Logo mark: gold instead of coral */
.real-logo__mark {
  background: #b8944a !important;
}

/* REAL wordmark sub text: gold */
.real-logo__sub {
  color: #b8944a !important;
}

/* Stats: gold numbers */
.real-stat__num {
  color: #c9a85c !important;
}

/* Headline italic/accent: gold */
.real-brokerage__headline em {
  color: #c9a85c !important;
}

/* Pillar icon bg + color: gold */
.real-pillar__icon {
  background: rgba(184, 148, 74, 0.15) !important;
  color: #b8944a !important;
}

/* Pillar hover: subtle gold tint */
.real-pillar:hover {
  background: rgba(184, 148, 74, 0.06) !important;
  border-color: rgba(184, 148, 74, 0.25) !important;
}

/* ── NEIGHBORHOOD CARD — clickable link treatment ────── */
a.neighborhood-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.neighborhood-card:hover .neighborhood-card__bg {
  transform: scale(1.04);
}
a.neighborhood-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-card);
}
.neighborhood-card__cta {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
  transition: opacity var(--transition-interactive);
}
a.neighborhood-card:hover .neighborhood-card__cta {
  opacity: 0.8;
}

/* ── TRUST BAR (replaces old media-bar) ─────────────── */
.trust-bar {
  background: var(--color-sand);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-8);
}
.trust-bar__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}
.trust-bar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.trust-bar__divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  flex-shrink: 0;
}
.trust-bar__logo {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.trust-bar__logo--serif {
  font-style: italic;
}
.trust-bar__logo--badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.trust-bar__sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-5);
  font-style: italic;
}
[data-theme="dark"] .trust-bar {
  background: oklch(0.14 0.02 250);
  border-color: oklch(1 0 0/0.08);
}
[data-theme="dark"] .trust-bar__logo {
  color: oklch(0.9 0.02 250);
}

/* ── SOCIAL PROOF — platform buttons ────────────────── */
.social-proof__platform-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(1 0 0/0.25);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: oklch(1 0 0/0.85);
  text-decoration: none;
  transition: background var(--transition-interactive), border-color var(--transition-interactive), color var(--transition-interactive);
  white-space: nowrap;
}
.social-proof__platform-btn:hover {
  background: oklch(1 0 0/0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════════
   3D CINEMATIC LAYER
═══════════════════════════════════════════════════════════════ */

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

/* Hero canvas layering */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 3;
}
.hero__overlay {
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(7,21,37,0.72) 0%,
    rgba(14,30,58,0.55) 50%,
    rgba(7,21,37,0.68) 100%
  );
}

/* Neighborhood cards — 3D base setup */
.neighborhoods__grid {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.neighborhood-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

/* Intent cards glass morphism */
.intent-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.3s ease;
}

/* Testimonial cards */
.testimonial-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
}

/* Stat numbers — 3D flip container */
.stats-bar__grid > div {
  transform-style: preserve-3d;
}

/* Form card — 3D flip setup */
.form-card {
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* Logo float */
.nav__logo img {
  transform-origin: center center;
}

/* Hero headline 3D text shadow for depth */
.hero__headline {
  text-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    2px 4px 0px rgba(184,148,74,0.08);
}

/* Section shimmer borders */
.about, .why, .calculator-section {
  position: relative;
}
.about::before, .why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,148,74,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Gold shimmer animation on accent elements */
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.btn--primary:hover {
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    #e8c97a 35%,
    var(--color-accent) 70%,
    #c9a55a 100%
  );
  background-size: 200% auto;
  animation: goldShimmer 1.4s linear infinite;
}

/* Scroll progress bar label */
#scroll-progress::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 6px; height: 100%;
  background: #e8c97a;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px #e8c97a;
}

/* 3D section transition glow */
.real-brokerage {
  position: relative;
  overflow: hidden;
}
.real-brokerage::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,148,74,0.08) 0%, transparent 65%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { opacity: 0.6; transform: translateX(-50%) scale(1);   }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.2); }
}

/* News cards hover depth */
.news-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.3s ease;
}

/* Mobile: restore default cursor & simplify 3D */
@media (max-width: 768px) {
  * { cursor: auto !important; }
  .neighborhood-card,
  .intent-card,
  .testimonial-card,
  .news-card {
    transform: none !important;
    transition: none !important;
  }
  .reveal-3d,
  .reveal-3d-left,
  .reveal-3d-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
