/* Brazilkeys — design system
   Inspired by Compass + Sotheby's International Realty + Mansion Global.
   Listings-driven, cinematic, premium.
*/

:root {
  /* ─── Palette ─── */
  --ink: #0c1726;            /* near-black slate, primary text on light */
  --ink-2: #2a3344;          /* secondary text */
  --ink-3: #6b7080;          /* muted */
  --ink-4: #a4a8b3;          /* placeholder, captions */
  --rule: #e4dfd3;           /* hairline divider */
  --rule-2: #ede8dc;         /* softer divider */
  --bone: #faf7f0;           /* page background, warm cream */
  --bone-2: #f4efe3;         /* alt section background */
  --paper: #ffffff;
  --gold: #b8924a;           /* signature gold, muted not flashy */
  --gold-2: #d4a958;         /* lighter gold for emphasis */
  --emerald: #2d5a4f;        /* refined Brazilian green */
  --terracotta: #c97064;
  --midnight: #0c1726;
  --night: #161f31;
  --night-2: #1f2940;

  /* ─── Type ─── */
  --serif: "Fraunces", "Canela", "GT Sectra", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(1.2rem, 3vw, 2.4rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-1: 0 1px 3px rgba(12, 23, 38, 0.04), 0 2px 12px rgba(12, 23, 38, 0.04);
  --shadow-2: 0 4px 16px rgba(12, 23, 38, 0.08), 0 12px 40px rgba(12, 23, 38, 0.06);
  --shadow-3: 0 12px 48px rgba(12, 23, 38, 0.14), 0 28px 80px rgba(12, 23, 38, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin: 0 0 1rem 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide {
  max-width: 1560px;
}

/* ─── Type utilities ─── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--bone { color: var(--bone); opacity: 0.78; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}
.lede--bone { color: rgba(250, 247, 240, 0.92); }
.text-sans-lede {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted { color: var(--ink-3); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 300; }

/* ─── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s ease, padding .25s, border-color .25s;
  padding: 1.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
  padding: 0.8rem 0;
}
.nav__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--bone);
  transition: color .25s;
}
.nav.scrolled .nav__logo { color: var(--ink); }
.nav__logo em { font-style: italic; color: var(--gold-2); font-weight: 300; }
.nav__links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav__links a {
  color: rgba(250, 247, 240, 0.86);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.3rem 0;
}
.nav.scrolled .nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--gold-2); }
.nav.scrolled .nav__links a:hover { color: var(--gold); }
.nav__cta {
  background: var(--bone);
  color: var(--ink) !important;
  padding: 0.7rem 1.4rem !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  font-weight: 600 !important;
  border: 1px solid var(--bone);
  transition: background .2s, color .2s;
}
.nav.scrolled .nav__cta {
  background: var(--ink);
  color: var(--bone) !important;
  border-color: var(--ink);
}
.nav__cta:hover {
  background: var(--gold) !important;
  color: var(--bone) !important;
  border-color: var(--gold) !important;
}
.nav__burger {
  display: none;
  background: none; border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--bone);
  margin: 5px 0;
  transition: background .25s;
}
.nav.scrolled .nav__burger span { background: var(--ink); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none !important; }
}

/* ─── HERO (full-bleed, photo-led) ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 65vh; }
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.78) contrast(1.05) saturate(1.05);
}
.hero__photo--dim { filter: brightness(0.42) contrast(1.04); }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 23, 38, 0.42) 0%, rgba(12, 23, 38, 0.12) 30%, rgba(12, 23, 38, 0.55) 100%);
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--gutter) 5rem;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.88);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-2);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--bone);
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin-bottom: 1.6rem;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 300;
}
.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  color: rgba(250, 247, 240, 0.94);
  max-width: 56ch;
  margin-bottom: 2.4rem;
}

/* ─── SEARCH BAR (hero overlay) ────────────────────────────────────── */
.searchbar {
  background: var(--bone);
  border-radius: 4px;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.5rem;
  max-width: 980px;
  box-shadow: var(--shadow-3);
  align-items: center;
}
.searchbar__field {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 1rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.searchbar__field:last-of-type { border-right: 0; }
.searchbar__field label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.searchbar__field select,
.searchbar__field input {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.searchbar__field--input input { cursor: text; }
.searchbar__btn {
  background: var(--ink);
  color: var(--bone);
  border: 0;
  padding: 0 2rem;
  height: 64px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .2s;
}
.searchbar__btn:hover { background: var(--gold); }
@media (max-width: 820px) {
  .searchbar {
    grid-template-columns: 1fr 1fr;
  }
  .searchbar__field { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .searchbar__btn { grid-column: 1 / -1; height: 56px; }
}

/* ─── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .25s;
  border-radius: 2px;
}
.btn--primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--bone) !important; }
.btn--gold {
  background: var(--gold);
  color: var(--bone);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--ink); border-color: var(--ink); color: var(--bone) !important; }
.btn--ghost-light {
  background: transparent;
  color: var(--bone);
  border-color: rgba(250, 247, 240, 0.45);
}
.btn--ghost-light:hover {
  background: var(--bone);
  color: var(--ink) !important;
  border-color: var(--bone);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bone) !important; }
.btn--block { width: 100%; }
.btn--small { padding: 0.7rem 1.4rem; font-size: 0.72rem; }

/* ─── SECTIONS ─────────────────────────────────────────────────────── */
section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
}
section.tight { padding: clamp(2.5rem, 5vw, 5rem) 0; }
section.dark { background: var(--midnight); color: var(--bone); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--bone); }
section.dark p { color: rgba(250, 247, 240, 0.84); }
section.cream { background: var(--bone-2); }
section.paper { background: var(--paper); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}
.section-head__l { max-width: 56ch; }
.section-head__l .eyebrow { margin-bottom: 1.2rem; display: block; }
.section-head__l h2 { margin-bottom: 1rem; }
.section-head__r { display: flex; gap: 1rem; align-items: center; }

/* ─── LISTING CARDS ────────────────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem 1.6rem;
}
.listing-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.listing-card:hover { transform: translateY(-4px); color: var(--ink) !important; }
.listing-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone-2);
}
.listing-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.listing-card:hover .listing-card__photo img { transform: scale(1.06); }
.listing-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(12, 23, 38, 0.78);
  backdrop-filter: blur(8px);
  color: var(--bone);
  padding: 0.4rem 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.listing-card__fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(250, 247, 240, 0.94);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.listing-card__fav:hover { background: var(--gold); color: var(--bone); }
.listing-card__fav.saved { color: var(--terracotta); }
.listing-card__body { padding: 1.2rem 0 0.4rem; }
.listing-card__location {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.listing-card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 0.7rem 0;
  color: var(--ink);
}
.listing-card__price {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.listing-card__price small {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 0.4rem;
}
.listing-card__meta {
  display: flex;
  gap: 1.4rem;
  font-size: 0.84rem;
  color: var(--ink-2);
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}
.listing-card__meta span strong {
  font-weight: 600;
  margin-right: 0.25rem;
}

/* ─── CITY EXPLORE TILES ───────────────────────────────────────────── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.city-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  background: var(--midnight);
  isolation: isolate;
}
.city-tile__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  filter: brightness(0.72) saturate(1.04);
}
.city-tile:hover .city-tile__photo { transform: scale(1.06); }
.city-tile__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,23,38,0.18) 0%, rgba(12,23,38,0.55) 70%, rgba(12,23,38,0.85) 100%);
}
.city-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.4rem;
  color: var(--bone);
}
.city-tile__name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.01em;
}
.city-tile__state {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.4rem;
}
.city-tile__meta {
  font-size: 0.86rem;
  color: rgba(250, 247, 240, 0.78);
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}
.city-tile__meta strong { color: var(--bone); font-weight: 600; }

/* ─── FILTER BAR (listings index) ─────────────────────────────────── */
.filterbar {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 2.4rem;
  border-radius: 4px;
}
.filterbar__field {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.8rem;
  border-right: 1px solid var(--rule);
}
.filterbar__field:nth-last-child(2) { border-right: 0; }
.filterbar__field label {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.filterbar__field select,
.filterbar__field input {
  border: 0; background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
  outline: none;
  padding: 0.2rem 0;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
}
.filterbar__btn {
  background: var(--ink);
  color: var(--bone);
  border: 0;
  padding: 0 1.5rem;
  height: 52px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.filterbar__btn:hover { background: var(--gold); }
@media (max-width: 1080px) {
  .filterbar {
    grid-template-columns: 1fr 1fr;
  }
  .filterbar__field { border-right: 0 !important; border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
  .filterbar__btn { grid-column: 1 / -1; height: 48px; }
}

.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.results-summary strong { font-weight: 600; color: var(--ink); }

/* ─── LISTING DETAIL ────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 78vh;
  max-height: 720px;
}
.gallery__cell {
  position: relative;
  overflow: hidden;
  background: var(--bone-2);
}
.gallery__cell:first-child {
  grid-row: 1 / 3;
}
.gallery__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.gallery__cell:hover img { transform: scale(1.04); }
.gallery__more {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(12, 23, 38, 0.85);
  color: var(--bone);
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 880px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.4fr 1fr;
    height: 60vh;
  }
  .gallery__cell:first-child { grid-column: 1 / -1; grid-row: 1; }
  .gallery__cell:nth-child(4), .gallery__cell:nth-child(5) { display: none; }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  margin-top: 3rem;
}
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.detail-head__city {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.detail-head__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.detail-head__neighborhood {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-2);
  margin-bottom: 2rem;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2rem 0;
}
.spec-row__item {
  text-align: center;
}
.spec-row__num {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.spec-row__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.features-list {
  list-style: none;
  padding: 0; margin: 1.5rem 0;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 540px) { .features-list { columns: 1; } }
.features-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.96rem;
  color: var(--ink-2);
  position: relative;
  break-inside: avoid;
}
.features-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 9px; height: 1px;
  background: var(--gold);
}

.long-description {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 65ch;
}

/* ─── DETAIL SIDEBAR ─────────────────────────────────────────────── */
.side {
  position: sticky;
  top: 100px;
  align-self: start;
}
.side-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.8rem 1.6rem;
  margin-bottom: 1rem;
}
.side-card__price {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.side-card__usd {
  font-size: 0.96rem;
  color: var(--ink-3);
  margin-bottom: 1.4rem;
}
.side-card__yield {
  background: var(--bone-2);
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
  border-left: 2px solid var(--gold);
}
.side-card__yield strong { color: var(--ink); font-weight: 600; }
.side-card__divider {
  height: 1px; background: var(--rule);
  margin: 1.4rem 0;
}
.side-card__contact-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.side-card__contact-role {
  font-size: 0.84rem;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

/* ─── CALCULATOR ─────────────────────────────────────────────────── */
.calc {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem;
}
.calc h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 1.2rem 0;
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calc-row label {
  font-size: 0.84rem;
  color: var(--ink-2);
}
.calc-row input {
  width: 100px;
  border: 1px solid var(--rule);
  background: var(--bone);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  text-align: right;
  border-radius: 2px;
  outline: none;
}
.calc-row input:focus { border-color: var(--gold); }
.calc__out {
  background: var(--bone-2);
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
}
.calc__out-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  color: var(--ink-2);
}
.calc__out-row strong { color: var(--ink); font-weight: 600; }
.calc__out-row.total { border-top: 1px solid var(--rule); padding-top: 0.6rem; margin-top: 0.3rem; }
.calc__out-row.total strong { font-family: var(--serif); font-size: 1.15rem; }

/* ─── FORMS ──────────────────────────────────────────────────────── */
form.lead {
  background: var(--paper);
}
form.lead--inline { padding: 0; box-shadow: none; border: 0; background: transparent; }
form.lead .row {
  margin-bottom: 1rem;
}
form.lead .row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
@media (max-width: 460px) { form.lead .row--split { grid-template-columns: 1fr; } }
form.lead label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
form.lead input,
form.lead select,
form.lead textarea {
  width: 100%;
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
}
form.lead input:focus,
form.lead select:focus,
form.lead textarea:focus { border-color: var(--gold); }
form.lead textarea { resize: vertical; min-height: 88px; }
form.lead .small {
  font-size: 0.74rem;
  color: var(--ink-3);
  text-align: center;
  margin: 0.8rem 0 0;
}

/* ─── LEAD BAND ──────────────────────────────────────────────────── */
.lead-band {
  background: var(--midnight);
  color: var(--bone);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.lead-band__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: brightness(0.6);
}
.lead-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 920px) {
  .lead-band__inner { grid-template-columns: 1fr; gap: 2.4rem; }
}
.lead-band h2 {
  color: var(--bone);
}
.lead-band__bullets {
  list-style: none;
  margin: 1.4rem 0 0 0;
  padding: 0;
}
.lead-band__bullets li {
  padding: 0.5rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.98rem;
  color: rgba(250, 247, 240, 0.86);
}
.lead-band__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 12px; height: 1px;
  background: var(--gold-2);
}

.lead-form-card {
  background: var(--bone);
  color: var(--ink);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-3);
}
.lead-form-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.4rem 0;
}
.lead-form-card .sub {
  color: var(--ink-3);
  font-size: 0.92rem;
  margin: 0 0 1.4rem 0;
}

/* ─── ARTICLE (guide/longform) ───────────────────────────────────── */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.article__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--bone);
  font-family: var(--serif);
  font-weight: 400;
  flex-shrink: 0;
}
.article__meta strong { display: block; font-size: 0.94rem; font-weight: 600; }
.article__meta span { font-size: 0.82rem; color: var(--ink-3); }
.article h2 {
  margin-top: 3rem;
  font-size: 1.9rem;
  font-weight: 400;
}
.article h3 {
  margin-top: 2.2rem;
  font-size: 1.3rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.005em;
}
.article p, .article li {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.article ul, .article ol { margin: 0 0 1.3rem 1.4rem; padding: 0; }
.article li { margin-bottom: 0.5rem; }
.article a { color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.article a:hover { color: var(--ink); }
.article blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}
.article .callout {
  margin: 2rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--bone-2);
  border-left: 2px solid var(--ink);
}
.article .callout strong { color: var(--ink); }
.article .callout p { color: var(--ink-2); }
.article .callout p:last-child { margin-bottom: 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.94rem;
}
.article table th, .article table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.article table th {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  background: var(--bone);
  font-family: var(--sans);
}
.article table tr:hover td { background: var(--bone); }

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.pillar-strip a {
  display: block;
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--gold);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s;
}
.pillar-strip a:hover { border-color: var(--ink); color: var(--ink); }

.faq details {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
  padding-right: 2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -0.1rem;
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--gold);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 1rem 0 0 0;
  color: var(--ink-2);
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--midnight);
  color: rgba(250, 247, 240, 0.68);
  padding: 5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 920px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer__logo em { font-style: italic; color: var(--gold-2); }
.footer__tag {
  color: rgba(250, 247, 240, 0.62);
  max-width: 32ch;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer__heading {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list a {
  display: block;
  padding: 0.34rem 0;
  color: rgba(250, 247, 240, 0.7);
  font-size: 0.92rem;
}
.footer__list a:hover { color: var(--gold-2); }
.footer__bottom {
  border-top: 1px solid rgba(250, 247, 240, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250, 247, 240, 0.5);
}
.footer__credit a { color: var(--gold-2); }
.footer__credit a:hover { color: var(--bone); }

/* ─── STICKY MOBILE CTA ─────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  padding: 0.8rem 1rem;
  z-index: 90;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
}
.sticky-cta__text {
  flex: 1;
  color: var(--bone);
  font-size: 0.84rem;
  line-height: 1.3;
}
.sticky-cta__text strong { color: var(--gold-2); display: block; font-size: 0.92rem; }

/* ─── MAP STUB ───────────────────────────────────────────────────── */
.map-stub {
  background: var(--bone-2);
  background-image:
    linear-gradient(135deg, rgba(45, 90, 79, 0.08) 0%, rgba(184, 146, 74, 0.06) 100%),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 600 400' xmlns='http://www.w3.org/2000/svg'><path d='M40 120 Q90 60 180 100 T 340 140 T 540 180 L 540 380 L 40 380 Z' fill='%23e9e0d0' opacity='0.6'/><path d='M0 230 Q120 200 240 240 T 480 280 L 600 270 L 600 400 L 0 400 Z' fill='%23d4a958' opacity='0.18'/><circle cx='180' cy='180' r='4' fill='%230c1726'/><circle cx='280' cy='200' r='4' fill='%230c1726'/><circle cx='380' cy='180' r='4' fill='%230c1726'/><circle cx='460' cy='250' r='4' fill='%230c1726'/></svg>");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rule);
  height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-stub__note {
  background: var(--bone);
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  letter-spacing: 0.04em;
}

/* ─── UTILITIES ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

.divider {
  height: 1px;
  background: var(--rule);
  margin: 3rem 0;
}
.divider--dark { background: rgba(250, 247, 240, 0.1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ─── HIDDEN UTILITY ─── */
.hidden { display: none !important; }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--midnight);
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
}
.mobile-menu a:hover { color: var(--gold-2); }
.mobile-menu__close {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  background: transparent;
  color: var(--bone);
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}
