/* ============================================================
   Demo Chen Realtor — style.css
   Demo Website by DeployGrow
   Design system based on deploygrow.com
   Dark theme · Gold accent #d4a853 · High-end real estate
   ============================================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

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

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

/* === DESIGN TOKENS === */
:root, [data-theme="dark"] {
  /* 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);

  /* Spacing (4px base) */
  --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;

  /* Colors — Dark Theme (Default) */
  --color-bg:             #0d0d12;
  --color-surface:        #131318;
  --color-surface-2:      #1a1a22;
  --color-surface-offset: #16161e;
  --color-border:         #2a2a35;
  --color-border-subtle:  #1f1f2a;
  --color-divider:        #222230;
  --color-text:           #f0ede6;
  --color-text-muted:     #9a978e;
  --color-text-faint:     #5a584f;
  --color-text-inverse:   #0d0d12;
  --color-gold:           #d4a853;
  --color-gold-hover:     #e0bc6e;
  --color-gold-active:    #c49540;
  --color-gold-glow:      rgba(212, 168, 83, 0.15);
  --color-gold-text:      #0d0d12;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --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);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);

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

/* Light Theme */
[data-theme="light"] {
  --color-bg:             #f7f5f0;
  --color-surface:        #ffffff;
  --color-surface-2:      #f0ede6;
  --color-surface-offset: #e8e5de;
  --color-border:         #d4d1ca;
  --color-border-subtle:  #e0ddd6;
  --color-divider:        #dcd9d2;
  --color-text:           #1a1a22;
  --color-text-muted:     #6a6860;
  --color-text-faint:     #9a978e;
  --color-text-inverse:   #f0ede6;
  --color-gold:           #b08930;
  --color-gold-hover:     #9a7528;
  --color-gold-active:    #856520;
  --color-gold-glow:      rgba(176, 137, 48, 0.12);
  --color-gold-text:      #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* === BODY === */
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(212, 168, 83, 0.25);
  color: var(--color-text);
}

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

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

button { cursor: pointer; background: none; border: none; }
a { color: var(--color-gold); text-decoration: none; }
a:hover { color: var(--color-gold-hover); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === CONTAINER === */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

.container--text {
  max-width: var(--content-narrow);
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  height: 4rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

[data-theme="light"] .nav {
  background: rgba(247, 245, 240, 0.85);
}

.nav--hidden { transform: translateY(-100%); }
.nav--scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  white-space: nowrap;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  cursor: pointer;
}

.nav__dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s var(--ease-out);
}

.nav__dropdown:hover .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 110;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.nav__dropdown-item:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Nav Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.theme-toggle:hover { color: var(--color-text); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav__hamburger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger--active span:nth-child(2) { opacity: 0; }
.nav__hamburger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - 4rem);
  background: var(--color-bg);
  padding: var(--space-6);
  overflow-y: auto;
  z-index: 99;
  flex-direction: column;
}

.nav__mobile--open { display: flex; }

.nav__mobile-link {
  display: block;
  width: 100%;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: color var(--transition-interactive);
}

.nav__mobile-link:hover { color: var(--color-text); }

.nav__mobile-sub {
  padding-left: var(--space-4);
}

.nav__mobile-sub a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav__mobile-cta {
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__actions .theme-toggle { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile .theme-toggle-mobile { display: flex; margin-top: var(--space-4); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-gold-text);
  border: 1px solid var(--color-gold);
}

.btn--gold:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-gold-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--color-gold-glow);
}

.btn--gold:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(240, 237, 230, 0.4);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-1px);
}

.btn--outline:active { transform: translateY(0); }

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}

/* === SECTIONS === */
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--compact {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.section-header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 18, 0.6) 0%,
    rgba(13, 13, 18, 0.78) 50%,
    rgba(13, 13, 18, 0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__ctas .btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__ctas .btn--outline:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 18, 0.6) 0%,
    rgba(13, 13, 18, 0.9) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  list-style: none;
}

.page-hero__breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.page-hero__breadcrumb a:hover { color: var(--color-gold); }
.page-hero__breadcrumb span { color: var(--color-text-faint); }

.page-hero__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* === CARDS === */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.card:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--gold-border:hover {
  border-color: var(--color-gold);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-glow);
  border-radius: var(--radius-md);
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  transition: gap var(--transition-interactive);
}

.card__link:hover { gap: var(--space-2); }

/* === LISTING CARDS === */
.listing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.listing-card:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.listing-card__img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.listing-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.listing-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gold);
  color: var(--color-gold-text);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.listing-card__body {
  padding: var(--space-5);
}

.listing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.listing-card__address {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.listing-card__specs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.listing-card__spec {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.listing-card__spec svg {
  width: 14px;
  height: 14px;
  color: var(--color-gold);
}

.listing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* === NEIGHBORHOOD CARDS === */
.neighborhood-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.neighborhood-card:hover img {
  transform: scale(1.08);
}

.neighborhood-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,18,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
}

.neighborhood-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.neighborhood-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.neighborhood-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
}

/* === TESTIMONIALS === */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial__stars,
.card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.testimonial__stars svg,
.card__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-gold);
  display: inline-block;
}

.testimonial__quote,
.card__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.testimonial__author,
.card__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial__role,
.card__role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* === STATS === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat {
  text-align: center;
  padding: var(--space-6);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

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

/* === GRIDS === */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

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

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

@media (max-width: 600px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: 1fr; }
}

/* === NEWSLETTER === */
.newsletter {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.newsletter__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 420px;
  margin-inline: auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-text-faint);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-gold);
  outline: none;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.cta-section__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  margin-inline: auto;
  max-width: 500px;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.6;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__contact-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__contact-info a {
  color: var(--color-gold);
  text-decoration: none;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-8);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__socials a {
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

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

.footer__socials svg {
  width: 20px;
  height: 20px;
}

.footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution a {
  color: var(--color-text-faint);
  text-decoration: none;
}

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

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

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

/* === PROCESS/STEPS === */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: var(--color-bg);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  box-shadow: 0 0 20px var(--color-gold-glow);
}

.process__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.process__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .process::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-4);
    text-align: left;
  }
  .process__number { margin: 0; }
  .process__content { padding-top: var(--space-2); }
}

/* === FAQ ACCORDION === */
.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  transition: transform 0.4s var(--ease-out);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item__answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a978e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* === TABLES === */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
}

.data-table th {
  font-weight: 600;
  color: var(--color-gold);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--color-text-muted);
}

.data-table tbody tr:hover {
  background: var(--color-surface);
}

/* === CONTENT / ARTICLE === */
.content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.content ul, .content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* === CHAT BUBBLE === */
.chat-bubble {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
}

.chat-bubble__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  cursor: pointer;
  border: none;
}

.chat-bubble__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(212, 168, 83, 0.4);
}

.chat-bubble__btn svg {
  width: 28px;
  height: 28px;
}

.chat-bubble__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--color-bg);
}

/* Chat Window */
.chat-window {
  display: none;
  position: fixed;
  bottom: calc(var(--space-6) + 72px);
  right: var(--space-6);
  width: 380px;
  max-height: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  flex-direction: column;
  overflow: hidden;
}

.chat-window--open { display: flex; }

.chat-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
}

.chat-window__header-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-window__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: var(--text-sm);
}

.chat-window__name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.chat-window__status {
  font-size: var(--text-xs);
  color: #22c55e;
}

.chat-window__close {
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
}

.chat-window__close:hover { color: var(--color-text); }

.chat-window__body {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  min-height: 200px;
}

.chat-message {
  margin-bottom: var(--space-3);
  max-width: 85%;
}

.chat-message--bot {
  margin-right: auto;
}

.chat-message--user {
  margin-left: auto;
}

.chat-message__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.chat-message--bot .chat-message__bubble {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-message--user .chat-message__bubble {
  background: var(--color-gold);
  color: var(--color-gold-text);
  border-bottom-right-radius: var(--radius-sm);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-3);
}

.chat-quick-btn {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.chat-quick-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.chat-window__input {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.chat-window__input input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.chat-window__input input:focus {
  border-color: var(--color-gold);
  outline: none;
}

.chat-window__input input::placeholder {
  color: var(--color-text-faint);
}

.chat-window__send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-gold-text);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.chat-window__send:hover {
  background: var(--color-gold-hover);
}

@media (max-width: 480px) {
  .chat-window {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .chat-bubble {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* === UTILITY === */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* === TWO COLUMN LAYOUT === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.badge--gold {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-glow);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* === LEAD FORM === */
.lead-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.lead-form__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.lead-form__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* === BUYING STEPS === */
.buying-steps {
  counter-reset: step;
}

.buying-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  counter-increment: step;
}

.buying-step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: var(--color-bg);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  flex-shrink: 0;
}

.buying-step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.buying-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.buying-step__david {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gold-glow);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* === MAP EMBED === */
.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === WECHAT SECTION === */
.wechat-section {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.wechat-qr {
  width: 120px;
  height: 120px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .wechat-section { flex-direction: column; text-align: center; }
}

/* === LISTING DETAIL (for listings.html) === */
.listing-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.listing-detail__img {
  aspect-ratio: 21/9;
  overflow: hidden;
}

.listing-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-detail__body {
  padding: var(--space-8);
}

.listing-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.listing-detail__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold);
}

.listing-detail__address {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.listing-detail__specs {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.listing-detail__spec {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.listing-detail__spec svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
}

.listing-detail__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* About page photo placeholder */
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 400px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
