/* ==========================================================================
   Lazarotto Investimentos — Apartamentos Mobiliados Meia Praia / Itapema
   CSS puro, mobile-first, sem frameworks.
   ========================================================================== */

:root {
  --navy: #1a1814;
  --navy-dark: #0f0e0b;
  --sea: #8a6a2a;
  --sea-light: #b7912f;
  --sand: #faf6ee;
  --sand-dark: #ecdfc0;
  --accent: #bf953f;
  --accent-dark: #9c7a2e;
  --gold-soft: #e8d9ae;
  --text: #262421;
  --muted: #6b6459;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(26, 24, 20, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(26, 24, 20, 0.14);
  --max-width: 1180px;
  --transition: 200ms ease;
  --font-heading: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; color: var(--text); }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(26,24,20,0.25); }
.btn-ghost:hover { background: rgba(26,24,20,0.06); }

.btn-outline { background: transparent; color: var(--sea); border-color: var(--sea); width: 100%; }
.btn-outline:hover { background: var(--sea); color: #fff; }

.btn-whatsapp { background: #25d366; color: #073b1e; }
.btn-whatsapp:hover { background: #1fb455; }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }

.btn-consultor {
  background: var(--accent);
  color: var(--navy);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-consultor:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(26,24,20,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.logo span { color: var(--sea); font-weight: 400; margin-left: 3px; }
.logo-img { display: block; height: 44px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,11,0.5) 0%, rgba(15,14,11,0.45) 35%, rgba(15,14,11,0.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 20px 70px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero-subtitle { max-width: 46ch; font-size: 1.08rem; color: #eef2f4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-ghost-icon { margin-left: 4px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: #dfe7ea; }
.hero-trust li::before { content: "✓ "; color: var(--gold-soft); font-weight: 700; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--sand); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 2.2em; }

/* ---------- Content + supporting image (breaks up long text blocks) ---------- */
.content-media {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}
.content-media-text { flex: 1.3; min-width: 0; }
.content-media-figure {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-media-figure figure { margin: 0; }
.content-media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.benefit-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--sea);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- Property Cards ---------- */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.cards-grid > .card { flex: 1 1 320px; max-width: 380px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img-link { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-dark); }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card-img-link img { transform: scale(1.05); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-specs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.card-specs li { background: var(--sand); border-radius: 999px; padding: 4px 12px; }
.card-specs strong { color: var(--navy); }
.card-body p { flex: 1; color: var(--muted); font-size: 0.95rem; }

/* featured card: a larger, horizontal spotlight above the regular grid */
.card-featured {
  flex-direction: row;
  margin-bottom: 28px;
}
.card-featured .card-img-link { flex: 1 1 48%; aspect-ratio: auto; }
.card-featured .card-body { flex: 1 1 52%; justify-content: center; padding: 32px 36px; }
.card-featured h3 { font-size: 1.4rem; }
.card-featured .card-body p { font-size: 1rem; }
.card-featured-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0;
}

/* lazy image fade-in */
.lazy-img { opacity: 0; transition: opacity 450ms ease; }
.lazy-img.is-loaded { opacity: 1; }

/* ---------- Differentiators ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.diff-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.diff-card h3 { color: var(--navy); }
.diff-card p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--sand);
  border-radius: 12px;
  padding: 4px 20px;
  border: 1px solid var(--sand-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.is-open {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq-question-wrap { margin: 0; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.faq-icon {
  flex: none;
  width: 9px; height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform var(--transition);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

/* animated collapse using the grid-rows trick (no JS height calc needed) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease-out;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer-inner { overflow: hidden; }

/* the answer "balloon": a separate bubble below the question, with a little tail */
.faq-answer-inner p {
  position: relative;
  margin: 6px 0 18px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 12px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 350ms ease-out 60ms, transform 350ms ease-out 60ms;
}
.faq-answer-inner p::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--sand-dark);
  border-top: 1px solid var(--sand-dark);
  transform: rotate(45deg);
}
.faq-item.is-open .faq-answer-inner p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Map ---------- */
.map-media {
  display: flex;
  align-items: stretch;
  gap: 28px;
}
.map-photo { flex: 1; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-wrapper {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

/* ---------- CTA Final ---------- */
.cta-final {
  position: relative;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(15,14,11,0.55) 0%, rgba(15,14,11,0.75) 100%),
              url("../images/meia-praia-vista-aerea-diurna-itapema.webp") center/cover no-repeat;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #e9e3d6; max-width: 55ch; margin-inline: auto; margin-bottom: 1.8em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c7d2d8; padding: 60px 0 0; }
.site-footer p { color: #c7d2d8; }
.site-footer a { color: #c7d2d8; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 { color: #fff; font-family: inherit; font-size: 0.95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-logo { color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--sea-light); }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.85rem; color: #8b97a3; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  z-index: 200;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float:hover { transform: scale(1.08); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whatsapp-float { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-media { flex-direction: column; gap: 28px; }
  .content-media-figure { width: 100%; order: -1; }
  .card-featured { flex-direction: column; }
  .card-featured .card-img-link { aspect-ratio: 4 / 3; }
  .card-featured .card-body { padding: 22px; }
  .map-media { flex-direction: column; }
  .map-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
  .hero-content { padding: 100px 18px 50px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .btn-consultor { font-size: 0.72rem; padding: 9px 14px; }
}

@media (max-width: 400px) {
  .btn-consultor { padding: 8px 10px; letter-spacing: 0.04em; }
}
