/* ============================================================
   APTO 104M² — PRAÇAS DO GOLFE
   Linguagem editorial de brochura imobiliária de alto padrão.
   Tipografia serifada confiante, paleta neutra quente, zero ícone
   decorativo, zero card genérico — numeração e régua fina fazem
   o trabalho de hierarquia.
   ============================================================ */

:root {
  --color-bg: #faf7f2;
  --color-bg-tint: #f1ebe0;
  --color-ink: #211d19;
  --color-ink-soft: rgba(33, 29, 25, 0.68);
  --color-ink-faint: rgba(33, 29, 25, 0.42);
  --color-line: rgba(33, 29, 25, 0.13);
  --color-accent: #3f5443;       /* verde profundo — referência ao campo de golfe */
  --color-accent-dark: #2d3e31;
  --color-clay: #a9693f;         /* tom secundário, uso pontual (numerais) */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 72px; --sp-7: 112px;

  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-3); }

/* ============ EYEBROW (marcador de seção, sem badge/pílula) ============ */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--color-ink-faint);
  margin-bottom: var(--sp-2);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--color-accent); flex-shrink: 0; }
.eyebrow.on-dark { color: rgba(255,255,255,0.68); }
.eyebrow.on-dark::before { background: #c9a876; }

/* ============ TOPBAR ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 18px var(--sp-3);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2);
}
.wordmark { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.2px; white-space: nowrap; }
.wordmark small {
  display: block; font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--color-ink-faint); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  padding: 10px 20px; border: 1px solid var(--color-ink); border-radius: 2px;
  white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--color-ink); color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden; background: #15130f;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,8,0.08) 0%, rgba(10,10,8,0.2) 45%, rgba(10,10,8,0.88) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding: var(--sp-7) var(--sp-3) var(--sp-6); color: #fff; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 6.4vw, 80px); line-height: 0.98; letter-spacing: -1px;
  max-width: 860px; margin-bottom: var(--sp-3);
}
.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.82);
  max-width: 560px; margin-bottom: var(--sp-4); font-weight: 400;
}
.hero__divider { width: 100%; max-width: 860px; height: 1px; background: rgba(255,255,255,0.22); margin-bottom: var(--sp-3); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline;
  font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: rgba(255,255,255,0.78); margin-bottom: var(--sp-4);
}
.hero__meta span:not(:last-child)::after { content: '·'; margin-left: 18px; color: rgba(255,255,255,0.35); font-weight: 400; }
.hero__price-row { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.hero__price-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.56); }
.hero__price-value { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: #e4cda0; }
.hero__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 2px;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.2px;
  border: 1px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--solid { background: var(--color-accent); color: #fff; }
.btn--solid:hover { background: var(--color-accent-dark); }
.btn--line-dark {
  background: transparent; color: var(--color-ink); border-color: var(--color-ink);
}
.btn--line-dark:hover { background: var(--color-ink); color: #fff; }
.text-link {
  font-size: 14.5px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px; transition: border-color 0.2s;
}
.text-link:hover { border-color: #fff; }

/* ============ SECTION ============ */
.section { padding: var(--sp-7) 0; }
.section--tint { background: var(--color-bg-tint); }
.section__head { max-width: 640px; margin-bottom: var(--sp-5); }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.4px; line-height: 1.08;
}
.section__lead { margin-top: var(--sp-2); color: var(--color-ink-soft); font-size: 17px; max-width: 520px; }

/* ============ INTRO (nota pessoal — toque humano) ============ */
.intro { padding: var(--sp-6) 0; }
.intro__text {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(21px, 2.6vw, 29px); line-height: 1.42; letter-spacing: -0.2px;
  color: var(--color-ink); max-width: 760px;
}
.intro__text::first-letter {
  font-size: 1.5em; color: var(--color-accent);
}

/* ============ DIFERENCIAIS — lista editorial, sem ícone/card ============ */
.diff-list { border-top: 1px solid var(--color-line); }
.diff-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: var(--sp-3); align-items: baseline;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-line);
}
.diff-row__num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 18px; color: var(--color-clay);
}
.diff-row__body { display: grid; grid-template-columns: 1fr; gap: 6px; }
.diff-row__title { font-size: 18px; font-weight: 600; letter-spacing: -0.1px; }
.diff-row__text { font-size: 15px; color: var(--color-ink-soft); max-width: 640px; }

@media (min-width: 760px) {
  .diff-row { grid-template-columns: 56px 320px 1fr; gap: var(--sp-4); }
}

/* ============ GALERIA ============ */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
}
.gallery-item {
  cursor: pointer; display: flex; flex-direction: column;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-img-wrap {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-tint);
}
.gallery-item.wide .gallery-img-wrap { aspect-ratio: 8 / 3; }
.gallery-img-wrap img.lqip {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(16px); transform: scale(1.1);
}
.gallery-img-wrap img.real {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.6s ease;
}
.gallery-img-wrap img.real.loaded { opacity: 1; }
.gallery-caption {
  padding: 10px 2px 0;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 13px; color: var(--color-ink-faint); line-height: 1.3;
}
.gallery__more-wrap { display: flex; justify-content: center; margin-top: var(--sp-5); }

/* ============ LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12,10,8,0.97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-img-wrap { position: relative; max-width: 90vw; max-height: 78vh; }
.lightbox-img-wrap img.lqip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: blur(20px); }
.lightbox-img-wrap img.real {
  max-width: 90vw; max-height: 78vh; object-fit: contain;
  opacity: 0; transition: opacity 0.5s ease; position: relative;
}
.lightbox-img-wrap img.real.loaded { opacity: 1; }
.lightbox-caption {
  position: absolute; bottom: -46px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,0.78); font-size: 14px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; top: 28px; left: 28px; color: rgba(255,255,255,0.72);
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

/* ============ VÍDEO ============ */
.video-frame {
  position: relative; max-width: 380px; margin: 0 auto; background: #000;
  aspect-ratio: 9/16; border: 1px solid var(--color-line);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,8,0.22); cursor: pointer; transition: opacity 0.3s;
}
.video-play-overlay.hidden { opacity: 0; pointer-events: none; }
.video-play-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0;
}
.video-play-btn::before {
  content: ''; width: 0; height: 0; margin-left: 2px;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #fff;
}

/* ============ FICHA TÉCNICA — lista, não cards ============ */
.specs { border-top: 1px solid var(--color-line); max-width: 640px; }
.specs__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  padding: 18px 0; border-bottom: 1px solid var(--color-line);
}
.specs__label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--color-ink-faint); }
.specs__value { font-family: var(--font-display); font-size: 19px; font-weight: 500; text-align: right; }

/* ============ LOCALIZAÇÃO ============ */
.location-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-5); align-items: start; }
.location-list { display: flex; flex-direction: column; }
.location-item {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--color-line);
}
.location-item:first-child { border-top: 1px solid var(--color-line); }
.location-item__mark { font-family: var(--font-display); font-style: italic; color: var(--color-clay); font-size: 15px; }
.location-item__text strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.location-item__text span { font-size: 13.5px; color: var(--color-ink-soft); line-height: 1.45; }
.map-frame { border: 1px solid var(--color-line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }

/* ============ CTA FINAL — faixa full-bleed, sem card flutuante ============ */
.cta-band { background: var(--color-ink); color: #fff; padding: var(--sp-7) 0; }
.cta-band__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-band .section__title { color: #fff; }
.cta-band .section__lead { color: rgba(255,255,255,0.68); margin: var(--sp-2) auto var(--sp-4); }
.cta-band__actions { display: flex; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }
.btn--on-dark { background: #e4cda0; color: var(--color-ink); }
.btn--on-dark:hover { background: #d8bd87; }

/* ============ FOOTER ============ */
.site-footer { padding: var(--sp-4) 0 var(--sp-5); border-top: 1px solid var(--color-line); }
.site-footer__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2);
  font-size: 12.5px; color: var(--color-ink-faint); letter-spacing: 0.2px;
}

/* ============ WHATSAPP TAB ============ */
.whatsapp-tab {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  display: flex; align-items: center; gap: 9px;
  background: var(--color-ink); color: #fff;
  padding: 13px 20px; border-radius: 2px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.2px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  transition: background 0.2s, transform 0.2s;
}
.whatsapp-tab:hover { background: var(--color-accent); transform: translateY(-2px); }
.whatsapp-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .hero { min-height: 94vh; }
  .section { padding: var(--sp-6) 0; }
  .diff-row { grid-template-columns: 40px 1fr; }
  .specs__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .specs__value { text-align: left; }
  .whatsapp-tab { padding: 11px 16px; font-size: 12.5px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 14px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .lightbox-counter { top: 16px; left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
