/* =====================================================
   MORADA Imóveis — imobiliária
   Paleta: areia/branco + verde-esmeralda + ink escuro
   Tema claro sofisticado, aspiracional
   ===================================================== */

:root {
  --bg:       #f6f4ee;
  --white:    #ffffff;
  --ink:      #1a241e;
  --ink-soft: #61695f;
  --green:    #2f5d4b;
  --green-dk: #234838;
  --green-lt: #e7f0eb;
  --green-mid:#3d7360;
  --sand:     #e9e3d5;
  --clay:     #c17a4e;
  --line:     rgba(26, 36, 30, .1);
  --line-soft:rgba(26, 36, 30, .06);
  --shadow:   0 26px 60px -30px rgba(26, 36, 30, .35);
  --shadow-sm:0 14px 34px -20px rgba(26, 36, 30, .28);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- tipografia ---------- */
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--green-mid); margin-bottom: 14px; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.04; letter-spacing: -1px; color: var(--ink); }
.hl { color: var(--green); }
.hl-light { color: #cfe6d9; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(34px, 4vw, 52px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; max-width: none; }

/* ---------- botões ---------- */
.btn { --pad-y: 13px; --pad-x: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: var(--pad-y) var(--pad-x); font-family: var(--font-body); font-weight: 700; font-size: .93rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s; white-space: nowrap; }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 1rem; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 12px 26px -14px rgba(47,93,75,.9); }
.btn--primary:hover { background: var(--green-dk); transform: translateY(-3px); }
.btn--soft { background: var(--green-lt); color: var(--green-dk); }
.btn--soft:hover { background: var(--sand); transform: translateY(-3px); }
.btn--white { background: #fff; color: var(--green-dk); }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.3); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-3px); }

/* ---------- topbar ---------- */
.topbar { background: var(--green-dk); color: #cfe0d6; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.topbar__phone { color: #fff; font-weight: 600; }
.topbar__phone:hover { color: var(--sand); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(246,244,238,.9); backdrop-filter: blur(12px); transition: box-shadow .4s, background .4s; }
.header.is-stuck { box-shadow: 0 10px 30px -20px rgba(26,36,30,.35); background: rgba(255,255,255,.92); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { font-size: 1.6rem; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.5px; color: var(--ink); display: flex; flex-direction: column; line-height: .9; }
.logo__text i { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--green-mid); margin-top: 4px; }
.logo__text--light { color: #fff; }
.logo__text--light i { color: #a9c9ba; }

.nav { display: flex; gap: 28px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--green); border-radius: 2px; transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(30px, 4vw, 52px); }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 720px; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -2px; margin-bottom: 20px; }
.hero__lead { color: var(--ink-soft); font-size: 1.16rem; max-width: 52ch; margin-bottom: 28px; }

/* barra de busca */
.search { background: var(--white); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 8px; align-items: end; }
.search__field { display: flex; flex-direction: column; padding: 6px 14px; border-right: 1px solid var(--line-soft); }
.search__field:last-of-type { border-right: none; }
.search__field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-mid); margin-bottom: 4px; }
.search__field select { border: none; background: transparent; font-family: var(--font-body); font-size: .98rem; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; padding: 2px 0; }
.search__btn { background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 16px 24px; font-family: var(--font-body); font-weight: 700; font-size: .98rem; cursor: pointer; transition: background .25s, transform .25s; white-space: nowrap; }
.search__btn:hover { background: var(--green-dk); transform: translateY(-2px); }
.hero__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; font-size: .9rem; }
.hero__quick span { color: var(--ink-soft); font-weight: 600; }
.hero__quick a { background: var(--white); border: 1px solid var(--line-soft); padding: 6px 14px; border-radius: 100px; font-weight: 600; color: var(--green-dk); transition: background .25s, transform .25s; }
.hero__quick a:hover { background: var(--green-lt); transform: translateY(-2px); }

.hero__media { position: relative; margin-top: -80px; z-index: 1; }
.hero__media img { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(246,244,238,.4)); }

/* ---------- stats ---------- */
.stats { margin-top: -70px; position: relative; z-index: 3; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--green); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); }
.stat { text-align: center; position: relative; color: #fff; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 1px; height: 42px; background: rgba(255,255,255,.2); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.stat span { color: rgba(255,255,255,.8); font-size: .86rem; margin-top: 6px; display: block; }

/* ---------- listagem ---------- */
.listings { padding: clamp(56px, 8vw, 96px) 0; }
.listings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop { background: var(--white); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.prop:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.prop__img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.prop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prop:hover .prop__img img { transform: scale(1.07); }
.prop__tag { position: absolute; top: 14px; left: 14px; background: var(--green); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px; border-radius: 8px; }
.prop__tag--rent { background: var(--ink); }
.prop__tag--hot { background: var(--clay); }
.prop__fav { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: rgba(255,255,255,.92); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: var(--green); cursor: pointer; transition: transform .25s, background .25s; }
.prop__fav:hover { transform: scale(1.1); background: #fff; }
.prop__body { padding: 20px 22px 24px; }
.prop__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--green); display: block; margin-bottom: 6px; }
.prop__price small { font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--ink-soft); }
.prop__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin-bottom: 6px; }
.prop__loc { color: var(--ink-soft); font-size: .9rem; margin-bottom: 16px; }
.prop__feats { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.prop__feats span { font-size: .82rem; color: var(--ink-soft); font-weight: 600; background: var(--bg); padding: 5px 10px; border-radius: 8px; }

/* ---------- categorias ---------- */
.cats { padding: clamp(50px, 7vw, 84px) 0; background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; }
.cat::before { content: ""; position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(26,36,30,.82)); }
.cat:hover::before { transform: scale(1.08); }
.cat__label, .cat__count { position: relative; z-index: 1; }
.cat__label { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.cat__count { font-size: .86rem; opacity: .85; margin-top: 2px; }

/* ---------- sobre ---------- */
.about { padding: clamp(56px, 8vw, 100px) 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.about__card { position: absolute; right: -20px; bottom: 32px; background: var(--green); color: #fff; border-radius: 18px; padding: 22px 24px; max-width: 200px; box-shadow: var(--shadow); }
.about__card-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.about__card p { font-size: .88rem; color: rgba(255,255,255,.85); margin-top: 4px; }
.about__copy p { color: var(--ink-soft); font-size: 1.06rem; margin-top: 16px; }
.about__copy .section-title { text-align: left; }
.about__feats { margin-top: 28px; display: grid; gap: 16px; }
.about__feats > div { display: flex; gap: 14px; align-items: flex-start; }
.about__feat-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-lt); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.about__feats strong { font-family: var(--font-display); font-weight: 600; display: block; color: var(--ink); }
.about__feats small { color: var(--ink-soft); font-size: .9rem; }

/* ---------- depoimentos ---------- */
.reviews { padding: clamp(56px, 8vw, 96px) 0; background: var(--green-lt); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--white); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.review:hover { transform: translateY(-6px); }
.review__stars { color: #e0a52e; letter-spacing: 2px; margin-bottom: 14px; }
.review blockquote { font-size: 1.04rem; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.review figcaption strong { display: block; font-family: var(--font-display); }
.review figcaption small { color: var(--ink-soft); font-size: .84rem; }

/* ---------- cta ---------- */
.cta { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.cta__card { background: linear-gradient(135deg, var(--green), var(--green-dk)); border-radius: 28px; padding: clamp(34px, 5vw, 58px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta__card::before { content: "🏡"; position: absolute; right: -10px; bottom: -30px; font-size: 12rem; opacity: .08; }
.cta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.5px; }
.cta__copy p { margin-top: 14px; font-size: 1.08rem; color: rgba(255,255,255,.9); max-width: 42ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.cta__info { display: grid; gap: 16px; position: relative; z-index: 1; }
.cta__info-item { display: flex; gap: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 18px 20px; }
.cta__info-item span { font-size: 1.5rem; }
.cta__info-item strong { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 4px; }
.cta__info-item p { font-size: .9rem; color: rgba(255,255,255,.86); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #aab5ac; padding-top: 58px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 42px; }
.footer__brand p { margin: 16px 0 20px; max-width: 34ch; color: rgba(170,181,172,.85); }
.footer__social { display: flex; gap: 18px; }
.footer__social a { color: #9ec3b1; font-weight: 600; font-size: .9rem; transition: color .25s; }
.footer__social a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h5 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: #7d8a7f; margin-bottom: 14px; }
.footer__cols a, .footer__cols p { display: block; font-size: .92rem; margin-bottom: 8px; color: rgba(170,181,172,.85); transition: color .25s; }
.footer__cols a:hover { color: #9ec3b1; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom span { color: #7d8a7f; font-size: .82rem; }
.footer__credit strong { color: #9ec3b1; }

/* ---------- whatsapp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); animation: pulse 2.6s ease-in-out infinite; transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse { 0%,100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 14px rgba(37,211,102,0); } }

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

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 980px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search__field:nth-child(2) { border-right: none; }
  .search__btn { grid-column: 1 / -1; }
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
  .about__media { max-width: 460px; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta__card { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .stat:nth-child(2)::after { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .topbar__item--mid { display: none; }
  .hero__media { margin-top: -40px; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 0; right: 0; left: auto; height: 100vh; height: 100dvh; overflow-y: auto; width: min(82vw, 330px); flex-direction: column; gap: 4px; padding: 96px 30px 40px; background: #fff; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90; }
  .nav.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5), -30px 0 60px -20px rgba(26,36,30,.3); }
  .nav a { font-size: 1.15rem; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .topbar__item:not(.topbar__phone) { display: none; }
  .topbar__inner { justify-content: center; }
  .search { grid-template-columns: 1fr; }
  .search__field { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .search__field:last-of-type { border-bottom: none; }
  .listings__grid, .cats__grid, .stats__grid { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .about__card { right: 10px; }
  .cta__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* menu mobile: botao X acima do painel */
.nav-toggle { position: relative; z-index: 95; }
