/* ============================================================
   Residencial Cardoso — Refúgio Verde
   Site estático (reconstrução da versão Hostinger Website Builder)
   ============================================================ */

:root {
  --green-900: #12332a;
  --green-800: #17493a;
  --green-700: #1f6b52;
  --green-600: #2a8768;   /* primária */
  --green-500: #38a37e;
  --green-50:  #eef6f1;
  --sand:      #f6f1e8;   /* fundo quente */
  --sand-200:  #ece3d4;
  --ink:       #1e2a24;
  --muted:     #5c6b63;
  --gold:      #c39b4e;   /* destaque eventos / F1 */
  --white:     #ffffff;
  --shadow:    0 10px 30px rgba(18, 51, 42, .12);
  --shadow-sm: 0 4px 14px rgba(18, 51, 42, .08);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --font:      'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.section { padding: 72px 0; }
.section--tint { background: var(--green-50); }
.section--dark { background: var(--green-900); color: #dfeee7; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h2.title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--green-900); }
.section--dark h2.title { color: #fff; }

.subtitle {
  color: var(--muted);
  max-width: 620px;
  margin-top: 12px;
  font-size: 1.02rem;
}
.section--dark .subtitle { color: #b8cfc6; }

.center { text-align: center; }
.center .subtitle { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 10px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-700); }
.btn--wa { background: #25d366; color: #0b3d24; }
.btn--wa:hover { background: #1fbe5a; }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn--ghost:hover { background: var(--green-600); color: #fff; }
.btn--light { background: #fff; color: var(--green-800); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--green-900); }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--green-600);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
}
.brand__name { font-size: 1.05rem; line-height: 1.05; }
.brand__name small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--green-50); color: var(--green-700); }
.nav__links a.active { color: var(--green-700); font-weight: 600; }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem; color: var(--green-900); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(18,51,42,.86) 0%, rgba(18,51,42,.55) 48%, rgba(18,51,42,.25) 100%);
}
.hero__content { position: relative; max-width: 640px; padding: 40px 0; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
.hero h1 span { color: var(--green-500); }
.hero p { margin-top: 18px; font-size: 1.12rem; color: #e4f0ea; max-width: 540px; }
.hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: #dcece5; }
.hero__badge b { color: #fff; }

/* ---------- Grid utils ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Feature cards ---------- */
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  transition: transform .18s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--green-600);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.15rem; color: var(--green-900); }
.feature p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* ---------- Split (imagem + texto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split__body h2 { color: var(--green-900); }
.split__body p { color: var(--muted); margin-top: 14px; }
.split ul.checks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.split ul.checks li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.split ul.checks li::before { content: "✓"; color: var(--green-600); font-weight: 700; }

/* ---------- Suítes ---------- */
.suite {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease;
}
.suite:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.suite__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: opacity .4s ease; }
.suite__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.suite__tag { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); font-weight: 600; }
.suite__body h3 { font-size: 1.2rem; margin-top: 4px; color: var(--green-900); }
.suite__body p { color: var(--muted); font-size: .93rem; margin-top: 8px; flex: 1; }
.suite__meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; font-size: .84rem; color: var(--muted); }
.suite__meta span { display: inline-flex; align-items: center; gap: 5px; }
.suite__price { font-weight: 700; color: var(--green-900); font-size: 1.05rem; }
.suite__price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.suite__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2/1; }

/* ---------- Eventos ---------- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; box-shadow: var(--shadow-sm);
}
.event img { width: 100%; height: 100%; object-fit: cover; }
.event span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}

/* ---------- Reviews ---------- */
.review { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-200); }
.review__stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.review p { margin: 12px 0 16px; color: var(--ink); font-style: italic; }
.review__author { font-weight: 600; color: var(--green-800); }

/* ---------- CTA faixa ---------- */
.cta-band { background: var(--green-700); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #cfe6dc; margin: 10px auto 22px; max-width: 520px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-200); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .96rem; background: var(--sand);
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(56,163,126,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }

.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); border-radius: 12px; font-size: 1.2rem; }
.info-list b { display: block; color: var(--green-900); }
.info-list span { color: var(--muted); font-size: .95rem; }
.map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-200); }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Page header (subpáginas) ---------- */
.page-head { background: var(--green-800); color: #fff; padding: 56px 0; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: #b8cfc6; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #b8cfc6; padding: 54px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer a { display: block; padding: 4px 0; color: #b8cfc6; transition: color .2s; }
.footer a:hover { color: var(--green-500); }
.footer__brand p { margin-top: 12px; font-size: .93rem; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border-radius: 10px; color: #fff; font-size: 1.05rem;
  transition: background .2s, transform .15s;
}
.socials a:hover { background: var(--green-600); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .86rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4, .events { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--sand); padding: 14px 20px 22px; gap: 4px;
    border-bottom: 1px solid var(--sand-200);
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin-left: 0; margin-top: 6px; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .events, .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; }
  .section { padding: 52px 0; }

  /* Hero no celular */
  .hero { min-height: auto; padding: 44px 0 52px; }
  .hero__content { padding: 8px 0; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero p { font-size: 1rem; margin-top: 14px; }
  .hero__actions { flex-direction: column; gap: 12px; margin-top: 26px; }
  .hero__actions .btn { width: 100%; justify-content: center; padding: 15px 22px; border-radius: 14px; font-size: 1.02rem; }
  .hero__actions .btn--primary { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; }
  .hero__actions .btn--primary:hover { background: rgba(255,255,255,.24); }
  .hero__actions .btn--wa { box-shadow: 0 12px 26px rgba(37,211,102,.45); font-weight: 700; }
  .hero__badges { gap: 12px 16px; margin-top: 28px; }
  .hero__badge { font-size: .88rem; }
}
