/* ============================================================
   Chicago Ultimate Homes — Anthony Zaskowski
   Luxury real estate, Keller Williams ONEChicago
   Design system + components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ink:        #0e1217;
  --ink-2:      #151b22;
  --ink-3:      #1e2530;
  --paper:      #f6f2ea;
  --paper-2:    #efe8db;
  --white:      #ffffff;

  --gold:       #b8935a;
  --gold-soft:  #d3b47e;
  --gold-deep:  #8f6f3e;

  --text:       #191d23;
  --muted:      #5b626c;
  --muted-light:#a7adb6;

  --line:       rgba(14, 18, 23, 0.12);
  --line-2:     rgba(14, 18, 23, 0.07);
  --line-light: rgba(255, 255, 255, 0.16);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Metrics */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 6px 20px rgba(14, 18, 23, 0.08);
  --shadow-md: 0 20px 50px rgba(14, 18, 23, 0.14);
  --shadow-lg: 0 40px 90px rgba(14, 18, 23, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: #fff; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.light { color: var(--gold-soft); }

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin: 1rem 0 1.1rem;
  color: var(--text);
}
.section-title .accent { font-style: italic; color: var(--gold-deep); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 1.05rem 2rem;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 26px rgba(184, 147, 90, 0.32); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(143, 111, 62, 0.4); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

.textlink {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.textlink svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.textlink:hover { color: var(--ink); }
.textlink:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand__mark {
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.4s var(--ease);
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid var(--line-light);
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
}
.nav__cta svg { width: 15px; height: 15px; color: var(--gold-soft); }
.nav__cta:hover { background: var(--gold); border-color: var(--gold); }
.nav__cta:hover svg { color: #fff; }

/* Scrolled state */
.header.scrolled {
  background: rgba(14, 18, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: 70px;
  border-bottom-color: var(--line-light);
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
}

/* Hamburger */
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; transition: all 0.35s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,18,23,0.55) 0%, rgba(14,18,23,0.30) 30%, rgba(14,18,23,0.45) 62%, rgba(14,18,23,0.9) 100%),
    linear-gradient(90deg, rgba(14,18,23,0.72) 0%, rgba(14,18,23,0.28) 55%, rgba(14,18,23,0.15) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: var(--header-h); }
.hero__content { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.7rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 1.5rem 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero h1 .accent { font-style: italic; color: var(--gold-soft); }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: rgba(255,255,255,0.9);
  max-width: 54ch;
  font-weight: 300;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero__scroll .mouse {
  width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 12px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px; background: var(--gold-soft);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* Hero floating credential card */
.hero__badge {
  position: absolute;
  right: 26px; bottom: 3.2rem;
  z-index: 2;
  background: rgba(14, 18, 23, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  max-width: 260px;
}
.hero__badge .k { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-soft); line-height: 1; }
.hero__badge .v { font-size: 0.82rem; color: rgba(255,255,255,0.82); margin-top: 0.35rem; letter-spacing: 0.02em; }

/* ============================================================
   MARQUEE / TRUST STRIP
   ============================================================ */
.trust {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.trust__item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.about__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about__portrait {
  position: absolute;
  left: -30px; bottom: -30px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 5px solid var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.about__body p { margin-bottom: 1.2rem; color: var(--muted); }
.about__body p:first-of-type { font-size: 1.18rem; color: var(--text); line-height: 1.6; }
.about__sign { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.about__sign-name { font-family: var(--serif); font-size: 2rem; color: var(--ink); font-style: italic; }
.about__sign-role { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.about__creds { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); align-items: center; }
.about__creds img { height: 46px; width: auto; opacity: 0.9; filter: saturate(1.05); }
.about__creds img.tall { height: 58px; }

/* ============================================================
   BUY / SELL FEATURE CARDS
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--line-2);
}
.feature + .feature { margin-top: 2.5rem; }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; min-height: 420px; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.06); }
.feature__tag {
  position: absolute; top: 1.3rem; left: 1.3rem;
  background: rgba(14,18,23,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 100px; border: 1px solid var(--line-light);
}
.feature__body { padding: clamp(2.2rem, 4vw, 3.6rem); display: flex; flex-direction: column; justify-content: center; }
.feature__body h3 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 1rem; }
.feature__body p { color: var(--muted); margin-bottom: 1.6rem; }
.feature__list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.8rem; }
.feature__list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.98rem; color: var(--text); }
.feature__list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   LISTINGS
   ============================================================ */
.listings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.listing {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.listing:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.listing__media { position: relative; height: 230px; overflow: hidden; flex-shrink: 0; }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.06); }
.listing__badge {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 100px; color: #fff;
}
.listing__badge--active { background: var(--gold); }
.listing__badge--sold { background: rgba(14, 18, 23, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.listing__body { padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.listing__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.listing__address { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.listing__price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--gold-deep); white-space: nowrap; }
.listing__meta { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 0.45rem; }
.listing__desc {
  font-size: 0.93rem; color: var(--muted); line-height: 1.6; margin-top: 0.85rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.listing__link {
  margin-top: auto; padding-top: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-deep);
}
.listing__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.listing:hover .listing__link svg { transform: translateX(4px); }

/* Featured (first) listing spans the row */
.listing--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.listing--featured .listing__media { height: 100%; min-height: 340px; }
.listing--featured .listing__body { padding: clamp(1.8rem, 3.5vw, 2.8rem); justify-content: center; }
.listing--featured .listing__address { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.listing--featured .listing__price { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.listing--featured .listing__desc { -webkit-line-clamp: 4; font-size: 1rem; }
.listing--featured .listing__link { margin-top: 1.4rem; }

@media (max-width: 1020px) {
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .listings__grid { grid-template-columns: 1fr; }
  .listing--featured { grid-template-columns: 1fr; }
  .listing--featured .listing__media { min-height: 240px; }
}

/* ---- Listing detail modal ---- */
.lmodal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.5rem, 3vw, 2.5rem);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lmodal.open { opacity: 1; pointer-events: auto; }
.lmodal__overlay { position: absolute; inset: 0; background: rgba(10, 13, 17, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lmodal__dialog {
  position: relative; z-index: 2;
  width: 100%; max-width: 1000px; max-height: 92svh;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98); transition: transform 0.4s var(--ease);
}
.lmodal.open .lmodal__dialog { transform: none; }
.lmodal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 6;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(14,18,23,0.6); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, transform 0.3s;
}
.lmodal__close:hover { background: var(--ink); transform: rotate(90deg); }
.lmodal__close svg { width: 20px; height: 20px; }

/* Gallery side */
.lmodal__gallery { position: relative; background: #0d1014; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lmodal__stage { position: relative; flex: 1; min-height: 300px; overflow: hidden; }
.lmodal__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease); }
.lmodal__stage img.active { opacity: 1; }
.lmodal__badge { position: absolute; top: 1rem; left: 1rem; z-index: 3; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 100px; color: #fff; }
.lmodal__badge--active { background: var(--gold); }
.lmodal__badge--sold { background: rgba(14,18,23,0.9); }
.lmodal__count { position: absolute; bottom: 1rem; right: 1rem; z-index: 3; font-size: 0.75rem; font-weight: 600; color: #fff; background: rgba(14,18,23,0.6); padding: 0.35rem 0.8rem; border-radius: 100px; }
.lmodal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--ink); display: grid; place-items: center;
  transition: background 0.3s, transform 0.3s;
}
.lmodal__nav:hover { background: #fff; }
.lmodal__nav svg { width: 22px; height: 22px; }
.lmodal__nav--prev { left: 1rem; } .lmodal__nav--next { right: 1rem; }
.lmodal__nav:active { transform: translateY(-50%) scale(0.92); }
.lmodal__thumbs { display: flex; gap: 0.5rem; padding: 0.7rem; overflow-x: auto; background: #0d1014; flex-shrink: 0; }
.lmodal__thumbs::-webkit-scrollbar { height: 6px; }
.lmodal__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 10px; }
.lmodal__thumb { width: 74px; height: 54px; flex-shrink: 0; border-radius: 5px; overflow: hidden; opacity: 0.5; cursor: pointer; transition: opacity 0.3s; border: 2px solid transparent; }
.lmodal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lmodal__thumb.active { opacity: 1; border-color: var(--gold); }

/* Info side */
.lmodal__info { padding: clamp(1.6rem, 3vw, 2.4rem); overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }
.lmodal__price { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--gold-deep); line-height: 1; }
.lmodal__addr { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-top: 0.5rem; line-height: 1.25; }
.lmodal__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 1.3rem 0; }
.lmodal__fact { font-size: 0.78rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 0.5rem 0.8rem; }
.lmodal__fact span { color: var(--muted); font-weight: 500; }
.lmodal__desc { font-size: 0.93rem; color: var(--muted); line-height: 1.65; }
.lmodal__meta { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.3rem; }
.lmodal__actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.lmodal__actions .btn { width: 100%; }

@media (max-width: 820px) {
  .lmodal__dialog { grid-template-columns: 1fr; grid-template-rows: auto 1fr; max-height: 94svh; }
  .lmodal__stage { min-height: 240px; height: 38svh; }
  .lmodal__info { padding: 1.4rem; }
}
@media (max-width: 480px) {
  .lmodal__thumbs { display: none; }
  .lmodal__price { font-size: 1.8rem; }
}

/* ============================================================
   CTA BAND (market snapshot)
   ============================================================ */
.band { position: relative; color: #fff; overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,18,23,0.94), rgba(14,18,23,0.7) 60%, rgba(14,18,23,0.55)); }
.band__inner { position: relative; z-index: 2; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.band__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 1rem 0; }
.band h2 .accent { font-style: italic; color: var(--gold-soft); }
.band p { color: rgba(255,255,255,0.82); max-width: 52ch; }
.band__actions { display: flex; flex-direction: column; gap: 1rem; }
.band__stat-row { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.band__stat .n { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-soft); line-height: 1; }
.band__stat .l { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 0.4rem; }

/* ============================================================
   DREAM HOME FINDER (form)
   ============================================================ */
.finder { background: var(--paper-2); }
.finder__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.finder__aside .lead { margin-bottom: 2rem; }
.finder__points { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.finder__point { display: flex; gap: 1rem; align-items: flex-start; }
.finder__point svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.finder__point .t { font-weight: 600; color: var(--text); font-size: 1rem; }
.finder__point .d { font-size: 0.9rem; color: var(--muted); }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.15);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease); }
.form-success svg { width: 54px; height: 54px; color: var(--gold); margin: 0 auto 1rem; }
.form-success h4 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }

/* ============================================================
   CAREERS
   ============================================================ */
.careers__inner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.careers__inner::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border: 1px solid var(--line-light); border-radius: 50%;
}
.careers__inner::after {
  content: "";
  position: absolute; right: -10px; bottom: -110px;
  width: 200px; height: 200px; border: 1px solid rgba(184,147,90,0.35); border-radius: 50%;
}
.careers h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.8rem; }
.careers p { color: rgba(255,255,255,0.75); }
.careers__actions { position: relative; z-index: 2; display: flex; justify-content: flex-end; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-top: clamp(4rem, 7vw, 6rem); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer__brand .brand__name { font-size: 1.5rem; }
.footer__brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 34ch; }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.footer__social a {
  width: 40px; height: 40px; border: 1px solid var(--line-light); border-radius: 50%;
  display: grid; place-items: center; color: rgba(255,255,255,0.7);
  transition: all 0.35s var(--ease);
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col h5 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.3rem; font-weight: 600; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a { font-size: 0.92rem; transition: color 0.3s, padding 0.3s; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__contact li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.92rem; margin-bottom: 0.9rem; }
.footer__contact svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer__contact a:hover { color: var(--gold-soft); }

.footer__legal {
  padding: 1.8rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted-light);
}
.footer__legal-badges { display: flex; align-items: center; gap: 1.2rem; }
.footer__legal-badges .fh {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.05em;
}
.footer__legal-badges svg { width: 26px; height: 26px; color: rgba(255,255,255,0.55); }
.footer__map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-light); filter: grayscale(0.3) contrast(1.05); }
.footer__map iframe { width: 100%; height: 200px; border: 0; display: block; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Content is visible by default; the hidden-until-revealed state only
   applies when JS is active (html.js), so no-JS users still see everything. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin: 0 auto 1.5rem; }
  .band__grid { grid-template-columns: 1fr; }
  .finder__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .careers__inner { grid-template-columns: 1fr; }
  .careers__actions { justify-content: flex-start; }
  .hero__badge { display: none; }

  /* Mobile nav panel */
  .nav__panel {
    position: fixed; inset: 0 0 0 auto;
    width: min(340px, 82vw);
    background: var(--ink-2);
    border-left: 1px solid var(--line-light);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 99;
    padding: calc(var(--header-h) + 1rem) 2rem 2rem;
    display: flex; flex-direction: column; gap: 0.4rem;
  }
  .nav__panel.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,0.4); }
  .nav__panel a { color: rgba(255,255,255,0.85); font-size: 1.05rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-light); letter-spacing: 0.02em; }
  .nav__panel a:last-of-type { border-bottom: none; }
  .nav__panel .btn { margin-top: 1.5rem; }
  .nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 98; }
  .nav__overlay.show { opacity: 1; pointer-events: auto; }
}
@media (min-width: 901px) { .nav__panel, .nav__overlay { display: none; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { min-height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { flex: 1; }
  .about__portrait { width: 110px; height: 110px; left: -14px; bottom: -20px; }
  .trust__inner { flex-direction: column; gap: 1rem; }
  .trust__item { white-space: normal; text-align: center; justify-content: center; font-size: 0.7rem; letter-spacing: 0.12em; }
}
