/* ============================================================
   ESTIO — Design System
   ============================================================ */

:root {
  /* Color palette — warm, editorial neutral w/ sage + ink */
  --bg: #f7f5f1;            /* page cream */
  --bg-alt: #efede7;        /* soft section tint */
  --surface: #ffffff;
  --ink: #181715;           /* near-black ink */
  --ink-2: #4a4843;         /* secondary text */
  --ink-3: #8a877f;         /* muted / meta text */
  --line: #e4e0d8;          /* hairline borders */
  --line-2: #d8d3c9;
  --accent: #2f4a3c;        /* deep forest sage */
  --accent-2: #3d6149;      /* lighter sage */
  --accent-soft: #e7ede6;   /* sage tint */
  --gold: #b08644;          /* warm brass */
  --danger: #b04432;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* Radius */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Container */
  --maxw: 1240px;
  --gut: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(24,23,21,.04), 0 2px 8px rgba(24,23,21,.04);
  --shadow: 0 4px 14px rgba(24,23,21,.06), 0 12px 40px rgba(24,23,21,.07);
  --shadow-lg: 0 10px 30px rgba(24,23,21,.08), 0 30px 70px rgba(24,23,21,.12);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .42s;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sp-9); }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #f4f1ec; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--light { color: #c9d4cb; }

.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
}
.section__title em { font-style: italic; color: var(--accent); }
.section__title--light { color: #fff; }

.section__sub {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 var(--sp-6);
}
.section__sub--light { color: #c7c4bd; max-width: 52ch; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.section__head--center {
  justify-content: center;
  text-align: center;
}
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .section__sub { margin-inline: auto; }

.section__foot {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: rgba(24,23,21,.05); }
.btn--outline {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghostlight { color: #fff; }
.btn--ghostlight:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #e9e6df;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding-block: 9px;
  position: relative;
}
.topbar p { margin: 0; opacity: .85; }
.topbar__cta {
  color: #fff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .9;
}
.topbar__cta:hover { opacity: 1; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,241,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { border-color: var(--line); background: rgba(247,245,241,.92); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: var(--sp-5);
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--gold) 140%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 5px;
  border: 1.5px solid #fff;
  border-bottom: none; border-right: none;
  border-radius: 3px 0 0 0;
  opacity: .9;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav { display: flex; gap: var(--sp-5); }
.nav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.header__actions .btn { padding: 9px 16px; font-size: 13px; }

.header__menu {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
}
.header__menu span {
  width: 18px; height: 1.6px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.header__menu[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.header__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) var(--gut);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: var(--sp-8) var(--sp-9); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-5);
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 0 var(--sp-6);
}

/* Search */
.search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow);
  max-width: 560px;
}
.search__tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: var(--sp-2);
}
.search__tab {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transition: all .25s var(--ease);
}
.search__tab:hover { color: var(--ink); }
.search__tab.is-active { background: var(--ink); color: #fff; }

.search__field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.search__icon { width: 17px; height: 17px; color: var(--ink-3); flex-shrink: 0; }
.search__input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0;
}
.search__input::placeholder { color: var(--ink-3); }
.search__btn { padding: 9px 18px; }

.search__chips {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-left: 6px;
  flex-wrap: wrap;
}
.chip-label { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.chip {
  font-size: 12px;
  color: var(--ink-2);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* Hero stats */
.hero__stats {
  display: flex;
  gap: var(--sp-7);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.stat__num span { font-size: 18px; color: var(--accent); }
.stat__label { font-size: 12px; color: var(--ink-3); margin: 0; }

/* Hero media */
.hero__media { position: relative; }
.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__cardbadge {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.hero__cardbody {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
}
.hero__cardprice { font-size: 13px; opacity: .85; margin: 0 0 2px; }
.hero__cardtitle {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.hero__cardmeta { font-size: 12.5px; opacity: .8; margin: 0; }

.hero__floating {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.hero__floating--a { top: 8%; left: -28px; }
.hero__floating--b { bottom: 14%; right: -24px; animation-delay: 1.4s; }
.float__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 13px;
}
.float__pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4caf6a;
  position: relative;
}
.float__pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #4caf6a;
  animation: ping 1.8s var(--ease) infinite;
}
.float__num { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.1; }
.float__label { font-size: 11px; color: var(--ink-3); margin: 0; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ============================================================
   Logos
   ============================================================ */
.logos { padding-block: var(--sp-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__inner { display: flex; align-items: center; gap: var(--sp-7); flex-wrap: wrap; justify-content: center; }
.logos__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.logos__row { display: flex; gap: var(--sp-7); flex-wrap: wrap; align-items: center; }
.logos__row span {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink-2);
  opacity: .7;
  transition: opacity .25s var(--ease);
  letter-spacing: -0.01em;
}
.logos__row span:hover { opacity: 1; }

/* ============================================================
   Listings grid
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.section__filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.filter {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--ink-3); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card.is-hidden { display: none; }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--ink);
}
.card__tag--dark { background: var(--ink); color: #fff; }
.card__save {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.card__save svg { width: 17px; height: 17px; }
.card__save:hover { background: #fff; color: var(--danger); transform: scale(1.1); }
.card__save.is-saved { color: var(--danger); }
.card__save.is-saved svg path { fill: var(--danger); }

.card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.card__price { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.card__status { font-size: 11px; color: var(--accent); font-weight: 500; }
.card__title { font-size: 14.5px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.card__meta { font-size: 12.5px; color: var(--ink-3); margin: 0 0 var(--sp-3); }
.card__loc {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-2);
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.card__loc svg { width: 13px; height: 13px; color: var(--ink-3); }

/* ============================================================
   Features
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 var(--sp-2); letter-spacing: -0.01em; }
.feature p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ============================================================
   Showcase
   ============================================================ */
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.showcase__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.showcase__media img { width: 100%; aspect-ratio: 5/5.4; object-fit: cover; }
.showcase__pill {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.checklist li { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.showcase__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ============================================================
   Agent (dark)
   ============================================================ */
.agent__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8);
  align-items: center;
}
.agent__row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  margin: var(--sp-6) 0;
  max-width: 420px;
}
.agent__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.agent__name { font-size: 15px; font-weight: 600; margin: 0; }
.agent__role { font-size: 12.5px; color: #c7c4bd; margin: 2px 0; }
.agent__stat { font-size: 11.5px; color: var(--gold); margin: 2px 0 0; }

.agent__estimate {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}
.estimate__title { font-family: var(--font-serif); font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.estimate__sub { font-size: 13px; color: var(--ink-3); margin: 0 0 var(--sp-4); }
.estimate__field { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.estimate__field input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .25s var(--ease);
}
.estimate__field input:focus { border-color: var(--accent); }
.estimate__result { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.estimate__label { font-size: 11.5px; color: var(--ink-3); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; }
.estimate__value { font-family: var(--font-serif); font-size: 32px; margin: 0 0 var(--sp-3); letter-spacing: -0.02em; }
.estimate__value span { font-size: 13px; color: var(--ink-3); font-family: var(--font-sans); }
.estimate__bar { height: 6px; background: var(--bg-alt); border-radius: var(--r-pill); overflow: hidden; }
.estimate__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: var(--r-pill); }
.estimate__range { font-size: 11.5px; color: var(--ink-3); margin: var(--sp-2) 0 0; }

/* ============================================================
   Testimonials
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote--accent { background: var(--accent); color: #f4f1ec; border-color: var(--accent); }
.quote blockquote {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 var(--sp-5);
  letter-spacing: -0.01em;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { font-size: 13px; display: flex; flex-direction: column; }
.quote figcaption strong { font-weight: 600; }
.quote figcaption { color: var(--ink-2); }
.quote--accent figcaption { color: #d4d8d3; }
.quote--accent figcaption strong { color: #fff; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding-block: var(--sp-8);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 400; }
.cta-band p { font-size: 14.5px; margin: 0; opacity: .9; }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #b8b5ad; padding-top: var(--sp-9); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}
.footer__brand .brand { margin-bottom: var(--sp-4); }
.footer__brand p { font-size: 13px; line-height: 1.55; max-width: 30ch; margin: 0 0 var(--sp-4); }
.footer .brand__name { color: #fff; }
.footer__social { display: flex; gap: var(--sp-2); }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600;
  transition: all .25s var(--ease);
}
.footer__social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer__col h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 var(--sp-4); }
.footer__col a {
  display: block;
  font-size: 13.5px;
  color: #b8b5ad;
  padding: 5px 0;
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: #fff; }
.footer__newsletter p { font-size: 13px; margin: 0 0 var(--sp-3); }
.news { display: flex; gap: var(--sp-2); }
.news input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
  padding: 10px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
}
.news input::placeholder { color: #8a877f; }
.news input:focus { border-color: rgba(255,255,255,.4); }
.footer__base {
  display: flex;
  justify-content: space-between;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: #8a877f;
}
.footer__base p { margin: 0; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__media { max-width: 460px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .agent__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__newsletter { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --sp-9: 64px; --sp-10: 80px; --gut: 20px; }
  .nav, .header__actions .btn { display: none; }
  .header__menu { display: flex; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .showcase__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--sp-5); flex-wrap: wrap; }
  .topbar p { display: none; }
  .topbar__inner { justify-content: center; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer__base { flex-direction: column; gap: 6px; }
  .hero__floating--a { left: 8px; }
  .hero__floating--b { right: 8px; }
}

@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .search__btn { padding: 9px 14px; font-size: 12.5px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
