/* ==========================================================================
   Triplex Santa Felicidade, Landing Page
   ========================================================================== */

:root {
  --navy-950: #060d1a;
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #16304f;
  --gold: #c9a24a;
  --gold-light: #e8cd85;
  --gold-dim: #a3843c;
  --cream: #f3ede1;
  --cream-dim: #cfc9be;
  --ink: #eef1f5;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Inter', -apple-system, sans-serif;

  --container-w: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.eyebrow-center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--cream);
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}
.section-title.center { text-align: center; }
.section-title.center::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lede {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
  color: var(--cream-dim);
  font-size: 1rem;
}

.fine-print {
  font-size: 0.78rem;
  color: var(--cream-dim);
  opacity: 0.7;
}

.creci {
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(201, 162, 74, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 162, 74, 0.35); }

.btn-large { padding: 18px 40px; font-size: 0.9rem; }

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-light);
  padding: 10px 20px;
  font-size: 0.72rem;
}
.btn-ghost:hover { background: rgba(201, 162, 74, 0.1); }

.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Icons (thin gold line) ---------- */

.icon-line {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-large { width: 44px; height: 44px; margin: 0 auto 18px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 13, 26, 0);
  border-bottom: 1px solid rgba(201, 162, 74, 0);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-mark { display: flex; align-items: center; gap: 10px; }

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.brand-monogram.ring { box-shadow: 0 0 0 3px rgba(201,162,74,0.12); }
.brand-monogram.large { width: 72px; height: 72px; font-size: 1.5rem; margin: 0 auto 18px; }
.brand-monogram.small { width: 30px; height: 30px; font-size: 0.75rem; }

.brand-name {
  display: none;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.1;
}
.brand-name em { font-style: normal; font-size: 0.62rem; color: var(--gold-dim); letter-spacing: 0.15em; text-transform: uppercase; }

@media (min-width: 560px) {
  .brand-name { display: flex; }
}

.header-cta { white-space: nowrap; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,13,26,0.97) 0%, rgba(6,13,26,0.55) 45%, rgba(6,13,26,0.35) 100%),
    linear-gradient(90deg, rgba(6,13,26,0.5) 0%, rgba(6,13,26,0.1) 60%);
}

.hero-content {
  position: relative;
  padding-bottom: 90px;
  padding-top: 140px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  color: var(--cream);
  margin: 0 0 16px;
  line-height: 1.12;
}
.hero h1 span { color: var(--gold-light); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.hero-note {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201,162,74,0.4);
  padding: 8px 14px;
  border-radius: 2px;
}

.scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--gold);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollcue 1.8s infinite ease-in-out;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--navy-900); }

/* ---------- Sobre o imóvel ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 620px;
  margin: 0 auto 36px;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 22px 10px;
  border: 1px solid rgba(201,162,74,0.25);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(201,162,74,0.05), transparent);
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold-light);
}
.stat-number small { font-size: 1rem; margin-left: 2px; color: var(--gold-dim); }
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.address-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 30px;
  border: 1px solid rgba(201,162,74,0.35);
  color: var(--cream);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.address-pill .icon-line { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Diferenciais ---------- */

.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(201,162,74,0.15);
  border-radius: 4px;
  background: rgba(255,255,255,0.015);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature:hover { border-color: rgba(201,162,74,0.45); background: rgba(201,162,74,0.04); }
.feature .icon-line { flex-shrink: 0; }
.feature span { font-size: 0.92rem; color: var(--cream); }

/* ---------- Galeria ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item.span-2 { grid-column: span 2; }

.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery-item.span-2 { aspect-ratio: 16 / 9; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.88);
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1); }

.gallery-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(201,162,74,0.35) !important;
  background: linear-gradient(180deg, rgba(201,162,74,0.08), transparent) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gallery-cta:hover { border-color: var(--gold); background: rgba(201,162,74,0.14) !important; }
.gallery-cta .icon-line { width: 26px; height: 26px; }
.gallery-cta span {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Localização ---------- */

.map-frame {
  border: 1px solid rgba(201,162,74,0.3);
  border-radius: 4px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
#map {
  width: 100%;
  height: 360px;
  filter: saturate(0.9);
}
.leaflet-popup-content-wrapper {
  background: var(--navy-900);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 4px;
}
.leaflet-popup-content { font-family: var(--font-sans); font-size: 0.85rem; }
.leaflet-popup-tip { background: var(--navy-900); }
.leaflet-container a.leaflet-popup-close-button { color: var(--gold-light); }

.map-address-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  max-width: 900px;
  margin: 18px auto 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--cream-dim);
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-wrap: wrap;
}
.map-address-link .icon-line { width: 18px; height: 18px; flex-shrink: 0; }
.map-address-link:hover { color: var(--gold-light); background: rgba(201,162,74,0.06); }

/* ---------- Financiamento ---------- */

.financing {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-top: 1px solid rgba(201,162,74,0.15);
  border-bottom: 1px solid rgba(201,162,74,0.15);
}
.financing-inner { text-align: center; }
.financing .lede { margin-bottom: 32px; }

/* ---------- Sobre nós ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-card {
  text-align: center;
  padding: 34px 22px;
  border: 1px solid rgba(201,162,74,0.2);
  border-radius: 4px;
}
.about-card h3 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.about-card p { color: var(--cream-dim); font-size: 0.9rem; margin: 0 0 8px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.social-link .icon-line { width: 18px; height: 18px; }
.social-link:hover { color: var(--gold); }

/* ---------- CTA final ---------- */

.cta-final {
  background: radial-gradient(ellipse at center, var(--navy-800) 0%, var(--navy-950) 75%);
  text-align: center;
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-final .lede { margin-bottom: 10px; }
.cta-final .btn-large { margin: 10px 0 18px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 100px;
  text-align: center;
  border-top: 1px solid rgba(201,162,74,0.15);
  color: var(--cream-dim);
  font-size: 0.85rem;
}
.footer-brands { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.site-footer p { margin: 4px 0; }
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.82rem;
}
.footer-social a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); }
.footer-social a:hover { color: var(--gold); }
.footer-social a .icon-line { width: 16px; height: 16px; }
.footer-social span { color: var(--cream-dim); opacity: 0.6; }

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1fb855);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  z-index: 200;
  animation: floatpulse 2.6s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes floatpulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,13,26,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border: 1px solid rgba(201,162,74,0.4); border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6,13,26,0.6);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(201,162,74,0.2); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (min-width: 640px) {
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream-dim);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
