/* ==========================================================================
   Evidências Itapema — Lazarotto Investimentos & KMK Empreendimentos
   CSS puro, mobile-first, sem frameworks.
   ========================================================================== */

:root {
  --navy: #17140f;
  --navy-dark: #0b0a08;
  --gold: #bf953f;
  --gold-dark: #9c7a2e;
  --gold-soft: #e8d9ae;
  --cream: #f7f3ea;
  --cream-dark: #ece2cc;
  --text: #221f1a;
  --muted: #6b6459;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 50px -18px rgba(11, 10, 8, 0.35);
  --shadow-sm: 0 8px 22px -10px rgba(11, 10, 8, 0.22);
  --max-width: 1200px;
  --transition: 220ms ease;
  --font-display: "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(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; color: var(--navy); line-height: 1.12; margin: 0 0 0.35em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; color: var(--navy); margin: 0 0 0.5em; }
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 24px; }
.container.narrow { max-width: 780px; }

.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: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1.5px 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(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(23,20,15,0.25); }
.btn-ghost:hover { background: rgba(23,20,15,0.06); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-consultor {
  background: var(--gold); color: var(--navy); border: 1.5px solid var(--gold);
  border-radius: 6px; padding: 11px 22px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.btn-consultor:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(23,20,15,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left)); }
.logo-img { display: block; height: 42px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 128vh; display: flex; align-items: flex-start; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0.35) 0%, rgba(11,10,8,0.55) 45%, rgba(11,10,8,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 130px 24px 80px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.82rem; font-weight: 700;
  color: var(--gold-soft); margin-bottom: 18px;
}
.eyebrow-dark { color: var(--gold-dark); }

.hero-logo { margin: 0 0 26px; }
.hero-logo img { width: 230px; height: auto; }
.hero-headline {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  text-transform: uppercase; line-height: 1.3; color: #fff; margin: 0 0 20px; max-width: 26ch;
}
.hero-subtitle {
  font-weight: 400; font-size: 1rem; text-transform: uppercase; line-height: 1.4;
  color: #cbd6e8; margin: 0 0 30px; max-width: 32ch;
}

.hero-form { max-width: 400px; margin: 0; }
.hero-form-row { margin-bottom: 16px; }
.hero-form-row label { display: block; font-weight: 400; font-size: 0.85rem; margin-bottom: 6px; color: #e7e0cf; }
.hero-form-row input {
  width: 100%; padding: 12px 20px; border: none; border-radius: 100px;
  font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--text);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
  transition: box-shadow var(--transition);
}
.hero-form-row input::placeholder { color: #a9a190; }
.hero-form-row input:focus { outline: none; box-shadow: 0 0 0 2px var(--gold); }

.hero-tel-field { position: relative; }
.hero-tel-flag {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 3px; color: #8a8370; pointer-events: none;
}
.hero-tel-flag svg:first-child { width: 17px; height: 17px; }
.hero-tel-chevron { width: 11px; height: 11px; }
.hero-tel-field input { padding-left: 44px; }

.btn-hero-submit {
  display: inline-flex; background: #2f6fed; color: #fff; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem;
  padding: 13px 34px; border-radius: 100px; margin-top: 4px;
}
.btn-hero-submit:hover { background: #1e5ae0; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--navy); color: #ece6d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #cfc7b4; }
.section-dark .eyebrow { color: var(--gold); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-bottom: 2.4em; }
.section-dark .section-lead { color: #b9b09a; }

/* ---------- Content + media (partnership section) ---------- */
.content-media { display: flex; align-items: center; gap: 64px; }
.content-media-text { flex: 1.1; min-width: 0; }
.content-media-figure { flex: 1; margin: 0; }
.content-media-figure img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
}
.content-media-figure-fill img {
  aspect-ratio: 1032 / 884; object-fit: cover;
}
.partnership { background: var(--cream); padding-top: 56px; padding-bottom: 0; }
.partnership-quote {
  font-size: 1.3rem; font-weight: 600; line-height: 1.4; color: var(--navy);
  padding-left: 18px; border-left: 3px solid var(--gold); margin: 1.6em 0;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px;
}
.stat-card {
  min-width: 0; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 22px 20px; border: 1px solid rgba(191,149,63,0.35); border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.stat-icon-wrap {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(191,149,63,0.14); display: flex; align-items: center; justify-content: center;
}
.stat-icon { width: 21px; height: 21px; color: var(--gold); display: block; }
.stat-text { min-width: 0; }
.stat-number { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: var(--gold); margin: 0; overflow-wrap: break-word; line-height: 1.2; }
.stat-label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; color: #cfc7b4; margin: 3px 0 0; }

/* ---------- Plantas ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plan-card {
  border-top: 2px solid var(--gold); padding: 30px 0 0;
  transition: transform var(--transition);
}
.plan-card:hover { transform: translateY(-4px); }
.plan-eyebrow { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 10px; }
.plan-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-size { font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 16px; }
.plan-features { display: flex; flex-direction: column; gap: 8px; }
.plan-features li { padding-left: 20px; position: relative; color: var(--muted); font-size: 0.95rem; }
.plan-features li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.plans-note { margin: 24px 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Lazer ---------- */
.leisure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.leisure-card { border-top: 2px solid rgba(255,255,255,0.25); padding: 26px 0 0; }
.leisure-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.leisure-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 18px; }
.leisure-list li { padding-left: 18px; position: relative; color: #cfc7b4; font-size: 0.94rem; }
.leisure-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Localização ---------- */
.location-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.location-card { border-top: 2px solid var(--gold); padding: 20px 0 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery-item-wide { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* lazy image fade-in */
.lazy-img { opacity: 0; transition: opacity 450ms ease; }
.lazy-img.is-loaded { opacity: 1; }

/* ---------- Video ---------- */
.video-grid { display: flex; justify-content: center; align-items: stretch; gap: 22px; }
.video-shorts { display: flex; gap: 22px; }
.video-wrapper { position: relative; background: #000; }
.video-main { height: 370px; width: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; }
.video-short { height: 370px; width: auto; aspect-ratio: 9 / 16; flex: 0 0 auto; }

.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { display: block; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(191,149,63,0.92); display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.video-play-btn svg { width: 30px; height: 30px; fill: var(--navy); margin-left: 4px; }
.video-thumb:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--gold); }

/* ---------- Map ---------- */
.map-wrapper { line-height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c7c0ae; padding: 64px 0 0; }
.site-footer p, .site-footer a { color: #c7c0ae; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover, .footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding: 22px 24px max(22px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.85rem; color: #8a8370; }

/* ---------- 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; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-media { flex-direction: column; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { grid-column: auto; }
  .video-grid { flex-direction: column; }
  .video-main { height: auto; width: 100%; }
  .video-shorts { width: 100%; gap: 16px; }
  .video-short { height: auto; width: 0; flex: 1 1 0; }
}

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
  .hero-content { padding: 110px 20px 60px; }
  .hero-logo img { width: 190px; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 16px 18px; }
  .stat-icon-wrap { width: 40px; height: 40px; }
  .stat-icon { width: 18px; height: 18px; }
}
