/* ==========================================================================
   Casa Vale Imóveis — estilos do site
   ========================================================================== */

:root {
  --ink: #142321;
  --ink-2: #2b3a37;
  --muted: #5d6b68;
  --subtle: #8a9592;
  --line: #e4dfd5;
  --line-2: #efebe3;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --sand: #f4eee4;
  --sand-2: #ebe2d3;

  --brand: #0e4b43;
  --brand-700: #0a3a34;
  --brand-800: #082e29;
  --brand-50: #e7f0ed;
  --brand-100: #cfe1db;

  --accent: #c4622d;
  --accent-600: #a95223;
  --accent-50: #fbefe6;

  --whatsapp: #1f9d55;
  --danger: #b42318;
  --success: #157347;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 33, .06);
  --shadow: 0 1px 2px rgba(20, 35, 33, .05), 0 8px 24px -8px rgba(20, 35, 33, .12);
  --shadow-lg: 0 2px 4px rgba(20, 35, 33, .04), 0 24px 48px -16px rgba(20, 35, 33, .22);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { flex-shrink: 0; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #f2c29e; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tight { padding: 0; }
.section--flush { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand-800); color: #eef3f1; position: relative; overflow: hidden; }
.section--brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(196, 98, 45, .22), transparent 60%),
    radial-gradient(50rem 30rem at -10% 120%, rgba(255, 255, 255, .06), transparent 60%);
}
.section--brand > * { position: relative; }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; max-width: 46rem; margin-left: auto; margin-right: auto; }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.015em; line-height: 1.1;
  font-variation-settings: "opsz" 120;
}
.section__title--sm { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section__lead { color: var(--muted); font-size: 1.075rem; margin-top: 1rem; max-width: 40rem; }
.section--brand .section__lead { color: #c7d6d2; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--brand); white-space: nowrap;
  border-bottom: 1px solid transparent; transition: gap .2s var(--ease), border-color .2s;
}
.link-arrow:hover { gap: .65rem; border-color: currentColor; }
.link-arrow--sm { font-size: .875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1.2; letter-spacing: .005em;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); box-shadow: 0 8px 20px -8px rgba(14, 75, 67, .6); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-600); box-shadow: 0 8px 20px -8px rgba(196, 98, 45, .7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #188547; box-shadow: 0 8px 20px -8px rgba(31, 157, 85, .7); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8f1c13; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading [data-label]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block; margin-left: .5rem;
}
[data-label] { display: inline-flex; align-items: center; gap: .55rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
}
.badge--sale { background: var(--brand); color: #fff; }
.badge--rent { background: var(--accent); color: #fff; }
.badge--light { background: rgba(255,255,255,.92); color: var(--ink); }
.badge--outline { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--brand-800); color: #c9d8d4; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar__right { display: flex; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
a.topbar__item:hover { color: #fff; }
@media (max-width: 760px) {
  .topbar__inner > .topbar__item, .topbar__right a:last-child { display: none; }
  .topbar__right { width: 100%; justify-content: center; }
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20,35,33,.4); background: rgba(251, 249, 245, .96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--brand); }
.brand__mark { width: 40px; height: 40px; }
.brand__text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink);
}
.brand__text small {
  font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin-top: .3rem;
}
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text small { color: #f2c29e; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  padding: .5rem .8rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--brand); background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav__cta { margin-left: .75rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .header.is-scrolled .nav { top: var(--header-h); }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .85rem 1rem; font-size: 1rem; }
  .nav__cta { margin: .75rem 0 0; }
}

/* overlay header (home) */
@media (min-width: 1021px) {
  .header--overlay:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header--overlay:not(.is-scrolled) .brand__text { color: #fff; }
  .header--overlay:not(.is-scrolled) .brand__mark { color: rgba(255,255,255,.14); }
  .header--overlay:not(.is-scrolled) .brand__text small { color: #f2c29e; }
  .header--overlay:not(.is-scrolled) .nav a:not(.btn) { color: rgba(255,255,255,.9); }
  .header--overlay:not(.is-scrolled) .nav a:not(.btn):hover { background: rgba(255,255,255,.12); color: #fff; }
  .header--overlay:not(.is-scrolled) .nav__cta { background: #fff; color: var(--brand); }
  .header--overlay:not(.is-scrolled) .nav__cta:hover { background: var(--sand); }
  .header--overlay { position: fixed; left: 0; right: 0; top: 38px; }
  .header--overlay.is-scrolled { top: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 3rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--brand-800); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 26, 23, .55) 0%, rgba(8, 26, 23, .15) 30%, rgba(8, 26, 23, .35) 60%, rgba(8, 26, 23, .85) 100%),
    linear-gradient(90deg, rgba(8, 26, 23, .55) 0%, rgba(8, 26, 23, 0) 65%);
}
.hero__inner { position: relative; }
@media (max-width: 700px) {
  .hero__bg::after { background: linear-gradient(180deg, rgba(8, 26, 23, .7) 0%, rgba(8, 26, 23, .55) 45%, rgba(8, 26, 23, .9) 100%); }
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em;
  max-width: 15ch; text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 38rem; margin-top: 1.25rem; }

.search {
  margin-top: 2.25rem; max-width: 1040px;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .5rem;
}
.search__tabs { display: flex; gap: .25rem; padding: .25rem .25rem .5rem; }
.search__tab input { position: absolute; opacity: 0; pointer-events: none; }
.search__tab span {
  display: inline-block; padding: .5rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.search__tab input:checked + span { background: var(--brand-50); color: var(--brand); }
.search__tab input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.search__fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .5rem;
  background: var(--bg); border-radius: 14px; padding: .5rem;
}
.search__fields .field { background: var(--surface); border-radius: 10px; padding: .55rem .9rem .45rem; border: 1px solid var(--line-2); }
.search__fields .field__label { margin-bottom: 0; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.search__fields .select select { border: 0; padding: .1rem 1.6rem .1rem 0; min-height: 30px; background: transparent; font-weight: 600; }
.search__fields .select .icon { right: 0; }
.search__submit { min-height: 100%; border-radius: 10px; padding-inline: 1.6rem; }
@media (max-width: 860px) {
  .search__fields { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; min-height: 52px; }
}
@media (max-width: 520px) { .search__fields { grid-template-columns: 1fr; } }

.hero__stats { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2.5rem; }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: .82rem; color: rgba(255,255,255,.72); }
.hero__stats dd { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.1; }

/* ---------- quicklinks ---------- */
.quicklinks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem); box-shadow: var(--shadow-sm);
}
.quicklinks a {
  display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; background: var(--surface); height: 100%;
  transition: background-color .2s;
}
.quicklinks a:hover { background: var(--brand-50); }
.quicklinks .icon { color: var(--brand); width: 46px; height: 46px; padding: 12px; background: var(--brand-50); border-radius: 12px; transition: background-color .2s, color .2s; }
.quicklinks a:hover .icon { background: var(--brand); color: #fff; }
.quicklinks strong { display: block; font-weight: 700; }
.quicklinks small { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .quicklinks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quicklinks { grid-template-columns: 1fr; } }

/* ---------- property cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-cards--listing { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badges { position: absolute; top: .9rem; left: .9rem; display: flex; gap: .4rem; }
.card__count {
  position: absolute; right: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(8, 26, 23, .72); color: #fff; padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.card__eyebrow { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.01em; }
.card__title a:hover { color: var(--brand); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.specs { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1rem; color: var(--ink-2); font-size: .86rem; }
.specs li { display: inline-flex; align-items: center; gap: .35rem; }
.specs .icon { color: var(--subtle); }
.card__footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-2); margin-top: 1.1rem;
}
.price { display: flex; flex-direction: column; }
.price__label { font-size: .72rem; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; }
.price__value { font-size: 1.35rem; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.price__value small { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .15rem; }
.card__link {
  position: relative; z-index: 1;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand-50); color: var(--brand); transition: background-color .2s, color .2s, transform .2s;
}
.card:hover .card__link { background: var(--brand); color: #fff; }

/* ---------- cities ---------- */
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.city { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--brand-800); isolation: isolate; }
.city img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,23,0) 35%, rgba(8,26,23,.82)); }
.city:hover img { transform: scale(1.05); }
.city__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.25rem, 3vw, 2rem); color: #fff; display: flex; flex-direction: column; }
.city__uf { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #f2c29e; }
.city__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; }
.city__count { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 600; color: rgba(255,255,255,.88); transition: gap .2s; }
.city:hover .city__count { gap: .7rem; }
@media (max-width: 700px) { .cities { grid-template-columns: 1fr; } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.why__badge {
  position: absolute; right: -1.25rem; bottom: 2rem;
  background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.35rem; box-shadow: var(--shadow-lg);
  display: grid; gap: .2rem; min-width: 190px;
}
.why__badge strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--brand); }
.why__badge small { color: var(--muted); font-size: .82rem; }
.stars { display: inline-flex; gap: 2px; color: #e3a008; }
.stars .icon { fill: currentColor; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin-top: 2.25rem; }
.feature { display: flex; flex-direction: column; gap: .85rem; }
.feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-50); color: var(--accent); }
.feature__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__media img { aspect-ratio: 16 / 11; }
  .why__badge { right: 1rem; bottom: 1rem; }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  display: flex; flex-direction: column; gap: 1rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 1.75rem;
  backdrop-filter: blur(4px);
}
.testimonial__quote { color: #f2c29e; opacity: .9; }
.testimonial blockquote { font-size: 1.04rem; line-height: 1.65; color: #e6eeeb; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1); }
.testimonial figcaption strong { display: block; color: #fff; }
.testimonial figcaption small { color: #a9bdb8; font-size: .84rem; }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info .btn { margin-top: 1.75rem; }
.contact__list { display: grid; gap: 1.1rem; margin-top: 2.25rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.contact__list small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.contact__list a, .contact__list span { font-weight: 600; }
.contact__list a:hover { color: var(--brand); }
.contact__card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.contact__card-title { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.contact__card-sub { color: var(--muted); margin: .35rem 0 1.5rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; min-width: 0; }
.field__label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink-2); margin-bottom: .4rem; }
.field__label em { font-style: normal; font-weight: 500; color: var(--subtle); }
.input, .select select {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input::placeholder { color: #a3aba8; }
.input:hover, .select select:hover { border-color: #cfc8ba; }
.input:focus, .select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 75, 67, .12); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.field__error { color: var(--danger); font-size: .8rem; font-weight: 600; margin-top: .3rem; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select .icon { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select--inline select { min-height: 40px; padding-block: .4rem; font-size: .92rem; font-weight: 600; }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-icon .input { padding-left: 2.5rem; }

.segmented { display: flex; flex-wrap: wrap; gap: .4rem; }
.segmented legend { width: 100%; float: left; padding: 0; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: .4rem .7rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s;
}
.segmented span:hover { border-color: var(--brand); }
.segmented input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented--small span { min-height: 38px; font-size: .85rem; }

.lead-form { position: relative; display: grid; gap: 1rem; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead-form__grid--compact { grid-template-columns: 1fr; gap: .8rem; }
.lead-form__full { grid-column: 1 / -1; }
@media (max-width: 520px) { .lead-form__grid { grid-template-columns: 1fr; } }
.lead-form__note { font-size: .78rem; color: var(--subtle); text-align: center; }
.lead-form__success {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: left;
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  animation: fade-in .3s var(--ease);
}
.lead-form__success-icon { color: var(--success); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #e7f5ee; flex-shrink: 0; }
.lead-form__success strong { font-size: 1.1rem; display: block; }
.lead-form__success p { color: var(--muted); font-size: .95rem; }
.lead-form__fail { color: var(--danger); font-weight: 600; font-size: .9rem; text-align: center; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- page head / breadcrumb ---------- */
.page-head { background: var(--sand); padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2rem, 4vw, 2.75rem); border-bottom: 1px solid var(--sand-2); }
.page-head__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em; margin-top: .75rem; }
.page-head__lead { color: var(--muted); margin-top: .6rem; max-width: 44rem; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .icon { color: var(--subtle); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- listing ---------- */
.listing { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(4rem, 7vw, 6rem); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); }
.filters__details { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.filters__summary {
  display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.35rem; font-weight: 700; cursor: pointer; list-style: none;
}
.filters__summary::-webkit-details-marker { display: none; }
.filters__chev { margin-left: auto; transition: transform .2s; }
.filters__details[open] .filters__chev { transform: rotate(180deg); }
.filters__count { background: var(--accent); color: #fff; font-size: .72rem; border-radius: 999px; padding: .05rem .5rem; }
.filters__form { display: grid; gap: 1.25rem; padding: 0 1.35rem 1.35rem; border-top: 1px solid var(--line-2); padding-top: 1.25rem; }
.range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.filters__actions { display: grid; gap: .5rem; }
@media (min-width: 961px) {
  .filters__summary { pointer-events: none; }
  .filters__chev { display: none; }
}
@media (max-width: 960px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; }
}

.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.results__count { color: var(--muted); }
.results__count strong { color: var(--ink); font-size: 1.1rem; }
.results__sort { display: flex; align-items: center; gap: .6rem; }
.results__sort-label { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem;
  background: var(--brand-50); color: var(--brand); border-radius: 999px; font-size: .85rem; font-weight: 600;
  transition: background-color .2s;
}
.chip:hover { background: var(--brand-100); }
.chip--clear { background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.chip--clear:hover { background: transparent; color: var(--ink); }

.empty {
  text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.empty__icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--brand); }
.empty h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.empty p { color: var(--muted); max-width: 32rem; margin: .6rem auto 0; }
.empty__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- detail ---------- */
.detail { padding-top: 1.5rem; padding-bottom: clamp(4rem, 7vw, 6rem); }
.detail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin: 1.25rem 0 1.5rem; }
.detail__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.detail__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -.02em; line-height: 1.1; max-width: 26ch; text-wrap: balance; }
.detail__loc { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin-top: .7rem; font-weight: 500; }
@media (max-width: 640px) {
  .detail__head { flex-direction: column; align-items: flex-start; }
}

.gallery { display: grid; gap: .5rem; border-radius: var(--radius-lg); overflow: hidden; height: clamp(280px, 52vw, 540px); }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--sand); overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery__all {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); color: var(--ink); padding: .5rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow);
}
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: 2fr 1fr; }
.gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--3 .gallery__item:first-child { grid-row: span 2; }
.gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--4 .gallery__item:first-child { grid-row: span 2; }
.gallery--4 .gallery__item:last-child { grid-column: span 2; }
.gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--5 .gallery__item:first-child { grid-row: span 2; }
.gallery__all--mobile { display: none; }
@media (max-width: 700px) {
  .gallery { height: auto; grid-template-columns: 1fr !important; grid-template-rows: none !important; border-radius: var(--radius); }
  .gallery__item { display: none; }
  .gallery__item:first-child { display: block; aspect-ratio: 4 / 3; grid-row: auto !important; }
  .gallery__all--mobile { display: inline-flex; }
}

.detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(1.75rem, 4vw, 2.5rem); align-items: start; }
.detail__specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.detail__specs li { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; background: var(--surface); }
.detail__specs .icon { color: var(--brand); }
.detail__specs strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.detail__specs small { color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .detail__specs { grid-template-columns: 1fr 1fr; } }
.detail__section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.detail__section:last-child { border-bottom: 0; }
.detail__section h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin-bottom: 1rem; }
.detail__section p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
.detail__section p + p { margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; text-align: right; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.detail__help { display: flex; gap: 1.1rem; background: var(--brand-50); border-radius: var(--radius); padding: 1.5rem; border: 0; margin-top: 2rem; }
.detail__help h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.detail__help p { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.detail__help-icon { color: var(--brand); width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); border-radius: 12px; flex-shrink: 0; }

.detail__aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.price-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.price-card__label { font-size: .78rem; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; }
.price-card__value { font-size: 2.1rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1.2; margin-top: .2rem; }
.price-card__value small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card__hint { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; margin-top: .4rem; }
.price-card > .btn { margin-top: 1.35rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--subtle); font-size: .82rem; margin: 1.35rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 960px) {
  .detail__layout { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}

.mobile-cta { display: none; }
@media (max-width: 960px) {
  .has-mobile-cta { padding-bottom: 76px; }
  .has-mobile-cta .whatsapp-fab { bottom: 92px; }
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem var(--gutter); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(20,35,33,.25);
  }
  .mobile-cta small { display: block; font-size: .72rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
  .mobile-cta strong { font-size: 1.2rem; color: var(--brand); }
  .mobile-cta strong small { display: inline; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--muted); }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 16, 14, .94);
  display: flex; align-items: center; justify-content: center; padding: 4rem 1rem;
  animation: fade-in .2s;
}
.lightbox__figure { max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox__figure img { max-height: calc(100vh - 10rem); width: auto; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { color: #c7d6d2; font-size: .9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: 0; transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- error page ---------- */
.error-page { padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; }
.error-page__inner { max-width: 640px; }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: var(--brand-100); font-weight: 600; }
.error-page h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: .5rem; }
.error-page p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.error-page__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- footer ---------- */
.footer { background: var(--brand-800); color: #b9cbc6; padding-top: clamp(3.5rem, 6vw, 5rem); font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { margin-top: 1.1rem; max-width: 22rem; line-height: 1.7; }
.footer__social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); margin-top: 1.25rem; color: #fff; transition: background-color .2s; }
.footer__social:hover { background: rgba(255,255,255,.1); }
.footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer__links { display: grid; gap: .65rem; }
.footer__links a:hover { color: #fff; }
.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer__contact .icon { margin-top: .25rem; color: #f2c29e; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #8fa7a1; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- whatsapp fab ---------- */
.whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 28px -8px rgba(31, 157, 85, .7);
  transition: transform .2s var(--ease), background-color .2s;
}
.whatsapp-fab:hover { transform: scale(1.06); background: #188547; }
