/* Steffanie Ting Real Estate — warm/editorial realtor brand */

:root {
  /* Brand palette — Sage default */
  --bg: #F6F2EA;
  --bg-soft: #EFE9DD;
  --bg-card: #FFFFFF;
  --bg-deep: #1F2A24;       /* dark surface */
  --ink: #1F1B17;           /* warm near-black text */
  --ink-2: #4A4540;         /* secondary text */
  --ink-3: #7A726A;         /* tertiary / meta */
  --line: #E2DBCB;          /* hairline / divider */
  --line-strong: #C7BFAE;
  --accent: #4D6149;        /* forest sage — primary brand */
  --accent-ink: #3C4D39;    /* hover/press */
  --accent-soft: #E6EDE0;   /* tinted background */
  --gold: #B68B5C;          /* secondary warm accent */
  --signal-red: #B0463A;    /* SOLD label, never marketing red */
  --shadow-xs: 0 1px 2px rgba(31, 27, 23, 0.04);
  --shadow-sm: 0 4px 14px rgba(31, 27, 23, 0.06);
  --shadow-md: 0 14px 40px rgba(31, 27, 23, 0.10);
  --shadow-lg: 0 30px 80px rgba(31, 27, 23, 0.16);

  --font-serif: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", "Helvetica Neue", system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;

  --max-w: 1320px;
  --gutter-x: clamp(20px, 4vw, 56px);
}

/* Palette: cream-and-noir */
:root[data-palette="noir"] {
  --bg: #F4F1EC;
  --bg-soft: #ECE7DD;
  --bg-deep: #15140F;
  --accent: #1F1F1B;
  --accent-ink: #000000;
  --accent-soft: #E3DED2;
  --gold: #9B7A4A;
}

/* Palette: warm clay */
:root[data-palette="clay"] {
  --bg: #FAF4EC;
  --bg-soft: #F2E9D7;
  --bg-deep: #2A1F18;
  --accent: #B4654A;
  --accent-ink: #95513B;
  --accent-soft: #F4DCD0;
  --gold: #C99A57;
}

/* Palette: coastal blue */
:root[data-palette="coast"] {
  --bg: #F2F3F0;
  --bg-soft: #E5E8E2;
  --bg-deep: #1B2A33;
  --accent: #2E4B5A;
  --accent-ink: #1F3A47;
  --accent-soft: #DCE6EA;
  --gold: #B68B5C;
}

/* Headline font swaps */
:root[data-headline="newsreader"] { --font-serif: "Newsreader", Georgia, serif; }
:root[data-headline="cormorant"]   { --font-serif: "Cormorant Garamond", Georgia, serif; }
:root[data-headline="playfair"]    { --font-serif: "Playfair Display", Georgia, serif; }
:root[data-headline="dmserif"]     { --font-serif: "DM Serif Display", Georgia, serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Typography */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
h4 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; }
p  { margin: 0; text-wrap: pretty; }

.container { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter-x); }
.section { padding-block: clamp(72px, 9vw, 140px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }

.divider {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(31,27,23,0.04); border-color: var(--ink); }
.btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.btn-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-link::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}
.btn-link:hover::after { width: 32px; }

/* Form controls */
.input, .select, .textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  font-size: 15px;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 97, 73, 0.16);
}
.textarea { min-height: 120px; resize: vertical; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field-error { color: var(--signal-red); font-size: 13px; margin-top: 6px; }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Pills / chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid transparent;
}
.pill-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.pill-sold {
  background: var(--signal-red);
  color: #fff;
}
.pill-active {
  background: var(--accent);
  color: #fff;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.on-dark { color: #fff; }
.nav.on-dark.scrolled { color: var(--ink); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding-inline: var(--gutter-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-logo { height: 38px; width: auto; display: block; }
.nav-logo-light { display: none; }
.nav.on-dark .nav-logo-dark { display: none; }
.nav.on-dark .nav-logo-light { display: block; }
.nav.on-dark.scrolled .nav-logo-dark { display: block; }
.nav.on-dark.scrolled .nav-logo-light { display: none; }
.nav-mark .mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  border-left: 1px solid var(--line-strong);
  padding-left: 13px;
}
.nav.on-dark .nav-mark .mark-text { border-left-color: rgba(255,255,255,0.28); }
.nav.on-dark.scrolled .nav-mark .mark-text { border-left-color: var(--line-strong); }
.nav-mark .mark-name { font-family: var(--font-serif); font-size: 21px; letter-spacing: -0.01em; }
.nav-mark .mark-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav.on-dark .nav-mark .mark-sub { color: rgba(255,255,255,0.65); }
.nav.on-dark.scrolled .nav-mark .mark-sub { color: var(--ink-3); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-link {
  background: transparent;
  border: none;
  color: inherit;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Language selector */
.lang-select { position: relative; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: inherit;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lang-trigger:hover { background: rgba(31,27,23,0.04); border-color: var(--ink); }
.nav.on-dark .lang-trigger { border-color: rgba(255,255,255,0.32); }
.nav.on-dark .lang-trigger:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.nav.on-dark.scrolled .lang-trigger { border-color: var(--line-strong); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 60;
  animation: langin 160ms var(--ease);
}
@keyframes langin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  transition: background var(--dur) var(--ease);
}
.lang-option:hover { background: var(--bg-soft); }
.lang-option.active { color: var(--accent); }
.lang-option .lang-code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 32px;
  color: var(--ink-3);
}
.lang-option.active .lang-code { color: var(--accent); }
.lang-option .lang-name { flex: 1; font-size: 14px; }
.nav-hamburger { display: none; background: transparent; border: none; padding: 8px; cursor: pointer; color: inherit; }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn, .lang-select { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 32px var(--gutter-x);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
/* Reveal the mobile menu only at mobile widths. This override MUST come after
   the base `.mobile-menu { display: none }` rule above so it wins the cascade
   (equal specificity → later rule wins). Above 940px the menu stays display:none
   regardless of the `.open` state, so it can never overlay the desktop layout. */
@media (max-width: 940px) { .mobile-menu { display: flex; } }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 36px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  /* Slide the home hero up beneath the transparent sticky nav (78px) so the
     white "on-dark" nav text reads over the darkened hero image rather than
     the page's cream background. */
  margin-top: -78px;
}
/* Keep the hero content clear of the overlapping nav. */
.hero .hero-inner { padding-top: 140px; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,12,0.32) 0%, rgba(15,16,12,0.05) 35%, rgba(15,16,12,0.62) 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 96px 80px;
  padding-inline: var(--gutter-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-eyebrow { color: rgba(255,255,255,0.78); margin-bottom: 24px; }
.hero h1 {
  color: #fff;
  max-width: 1100px;
  font-weight: 300;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 28px;
  flex-wrap: wrap;
}
.hero-stat {
  flex: 1;
  min-width: 160px;
  padding-right: 24px;
}
.hero-stat .v {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  display: block;
}
.hero-stat .l {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* Search bar floating below hero */
.hero-search {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 4px;
  max-width: 1080px;
  margin: -52px auto 0;
  position: relative;
  z-index: 4;
}
.hero-search > * { background: transparent; }
.hero-search .input, .hero-search .select {
  border: none;
  background: transparent;
  padding: 18px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
}
.hero-search .input:hover, .hero-search .select:hover { background: var(--bg-soft); }
.hero-search .input:focus, .hero-search .select:focus { background: var(--bg-soft); box-shadow: none; }
.hero-search .btn { margin: 4px; padding: 14px 28px; }
@media (max-width: 920px) {
  .hero-search { grid-template-columns: 1fr 1fr; padding: 12px; }
  .hero-search .btn { grid-column: 1 / -1; }
}

/* Section header */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.sec-head .lead { max-width: 540px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.sec-head .titlewrap .eyebrow { margin-bottom: 14px; display: block; }

/* Listing card */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.listing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
  border: 1px solid var(--line);
}
.listing-card:hover { transform: translateY(-3px); }
.listing-card:hover .listing-image img { transform: scale(1.04); }
.listing-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.listing-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.listing-image .listing-status {
  position: absolute;
  top: 16px; left: 16px;
}
.listing-image .listing-fav {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.92);
  border: none;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.listing-image .listing-fav.is-faved { background: #fff; color: var(--signal-red); }
.listing-image .listing-fav:hover { background: #fff; }
.listing-image .image-count {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(15,16,12,0.55);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.listing-body { padding: 22px 24px 26px; }
.listing-price {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  display: block;
}
.listing-address {
  font-size: 15px;
  color: var(--ink);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.listing-address .city { color: var(--ink-3); }
.listing-specs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-2);
}
.listing-specs span { display: inline-flex; align-items: center; gap: 6px; }

/* Featured listings — uniform 4-up row, balanced heights */
.featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.featured-row .listing-card { display: flex; flex-direction: column; }
.featured-row .listing-card .listing-body { flex: 1; }
@media (max-width: 1100px) { .featured-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .featured-row { grid-template-columns: 1fr; } }

/* Featured (large) listing — legacy */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
@media (max-width: 920px) { .featured-grid { grid-template-columns: 1fr; } }
.featured-main .listing-image { aspect-ratio: 5/4; }
.featured-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-content: start;
}

/* Stats band */
.stats-band {
  background: var(--bg-deep);
  color: #fff;
  padding-block: clamp(60px, 7vw, 96px);
}
.stats-band .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .stats-band .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat .v {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  display: block;
  font-weight: 300;
}
.stat .l {
  margin-top: 14px;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  letter-spacing: 0.04em;
  max-width: 220px;
}

/* About strip */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 900px) { .about-strip { grid-template-columns: 1fr; } }
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-block: 18px 0; }
.about-body .sig {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  margin-top: 24px;
  color: var(--accent);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.service-card h3 { font-size: 26px; }
.service-card .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
}
.service-card .blurb { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  position: relative;
}
.testimonial-card .mark {
  font-family: var(--font-serif);
  font-size: 110px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  position: absolute;
  top: 24px; left: 32px;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.testimonial-author { margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.testimonial-author strong { color: var(--ink); font-weight: 500; }
.testimonial-author .role { color: var(--ink-3); margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }

.testimonial-nav {
  display: flex; align-items: center; gap: 8px; margin-top: 24px;
}
.testimonial-nav button {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.testimonial-nav button:hover { background: var(--bg-soft); border-color: var(--ink); }

/* Sold-strip */
.sold-strip {
  background: var(--bg-soft);
}
.sold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .sold-grid { grid-template-columns: 1fr; } }
.sold-tile {
  position: relative;
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  cursor: pointer;
}
.sold-tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: transform 700ms var(--ease), opacity var(--dur) var(--ease); }
.sold-tile:hover img { transform: scale(1.05); opacity: 1; }
.sold-tile .sold-meta {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.78) 100%);
}
.sold-tile .top { display: flex; justify-content: space-between; align-items: flex-start; }
.sold-tile .bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sold-tile .addr { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; }
.sold-tile .city { font-size: 12px; opacity: 0.8; margin-top: 4px; letter-spacing: 0.04em; }
.sold-tile .price { font-family: var(--font-serif); font-size: 18px; text-align: right; }
.sold-tile .price .over { font-size: 11px; color: #d6e0c8; display: block; letter-spacing: 0.04em; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,16,12,0.62);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  backdrop-filter: blur(8px);
  animation: fadein var(--dur) var(--ease);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  max-width: 1180px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  position: relative;
  animation: modalin var(--dur-slow) var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .modal { grid-template-columns: 1fr; max-height: 96vh; overflow: auto; } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 4;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.modal-gallery { position: relative; background: #0e0f0c; overflow: hidden; }
.modal-gallery .main {
  aspect-ratio: 4/3;
  width: 100%;
  background: #0e0f0c;
  position: relative;
}
.modal-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.modal-gallery .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.modal-gallery .arrow.prev { left: 16px; }
.modal-gallery .arrow.next { right: 16px; }
.modal-gallery .thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}
.modal-gallery .thumb {
  flex: 0 0 90px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease);
  border: 2px solid transparent;
}
.modal-gallery .thumb.active { opacity: 1; border-color: #fff; }
.modal-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-body {
  padding: clamp(28px, 3vw, 44px);
  overflow-y: auto;
}
.modal-body h2 { font-size: clamp(26px, 2.6vw, 36px); }
.modal-spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
}
.modal-spec .l { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.modal-spec .v { font-family: var(--font-serif); font-size: 22px; margin-top: 4px; }
.modal-features {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Page transition */
.page {
  animation: pagein 400ms var(--ease);
}
@keyframes pagein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page-head (non-home) */
.page-head {
  padding-block: clamp(80px, 10vw, 140px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(48px, 6vw, 88px); }
.page-head .lead { color: var(--ink-2); font-size: 18px; max-width: 640px; margin-top: 18px; line-height: 1.6; }

/* Filters */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-chip:hover { background: var(--bg-soft); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-bar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.filter-bar .select-sm {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
}
.filter-results { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* Map toggle */
.view-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
}
.view-toggle button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.view-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* Map fake */
.map-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 720px;
}
@media (max-width: 900px) { .map-pane { grid-template-columns: 1fr; } }
.map-canvas {
  position: relative;
  background: #DDE4D7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  background-image:
    linear-gradient(rgba(31,42,36,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,42,36,0.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, #ECF1E5 0%, transparent 60%),
    radial-gradient(circle at 75% 70%, #E5EDDC 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, 800px 600px, 600px 500px;
}
.map-route {
  position: absolute;
  inset: 0;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: inherit;
}
.map-pin:hover, .map-pin.active {
  background: var(--accent-ink);
  transform: translate(-50%, -100%) scale(1.08);
}
.map-list {
  max-height: 720px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
}

/* Insights cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card { cursor: pointer; }
.insight-card .img {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 20px;
}
.insight-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.insight-card:hover .img img { transform: scale(1.03); }
.insight-card .meta {
  display: flex; gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.insight-card h3 { font-size: 26px; margin-top: 10px; }
.insight-card .excerpt { color: var(--ink-2); margin-top: 8px; font-size: 15px; line-height: 1.6; }

/* CTA panel */
.cta-panel {
  background: var(--bg-deep);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .cta-panel { grid-template-columns: 1fr; } }
.cta-panel h2 { color: #fff; }
.cta-panel .sub { color: rgba(255,255,255,0.72); margin-top: 18px; font-size: 17px; line-height: 1.6; }
.cta-panel form { display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,0.06); padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.10); }
.cta-panel form .input {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.cta-panel form .input::placeholder { color: rgba(255,255,255,0.5); }
.cta-panel form .input:focus { border-color: rgba(255,255,255,0.4); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.cta-panel form .field-label { color: rgba(255,255,255,0.55); }

/* Footer */
.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  padding-block: 72px 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.footer-brand .mark { font-family: var(--font-serif); font-size: 32px; color: #fff; display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 52px; width: auto; display: block; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 12px; line-height: 1.6; max-width: 320px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

/* Trust badges */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
  padding-block: 28px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.trust-row .item {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.trust-row .item .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--accent); }

/* Loader / skeleton */
.skel { background: var(--bg-soft); position: relative; overflow: hidden; }
.skel::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  z-index: 200;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastin var(--dur) var(--ease);
}
@keyframes toastin {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Service detail page */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
@media (max-width: 800px) { .service-detail-grid { grid-template-columns: 1fr; } }
.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-detail-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.service-detail-card ul li { margin-bottom: 8px; line-height: 1.6; }

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) { .process-step { border-right: none; border-bottom: 1px solid var(--line); } .process-step:last-child { border-bottom: none; } }
.process-step .n {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--accent);
  display: block;
  font-weight: 300;
}
.process-step h4 { margin-top: 8px; font-size: 19px; }
.process-step p { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.55; }

/* Newsletter row */
.newsletter {
  background: var(--accent-soft);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h3 { font-size: clamp(26px, 3vw, 36px); }
.newsletter form { display: flex; gap: 8px; }
.newsletter form .input { background: #fff; }

/* Tag list */
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sold table */
.sold-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sold-table .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr 0.8fr 1fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sold-table .row.head {
  background: var(--bg-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sold-table .row:last-child { border-bottom: none; }
.sold-table .addr { font-weight: 500; color: var(--ink); }
.sold-table .price { font-family: var(--font-serif); font-size: 17px; }
.sold-table .over-ask { color: var(--accent); font-size: 12px; }
@media (max-width: 800px) {
  .sold-table .row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sold-table .row.head { display: none; }
}

/* Utility */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.muted { color: var(--ink-3); }

/* Selection */
::selection { background: var(--accent); color: #fff; }
