/* ============================================================
   Trinità Empreendimentos — style.css
   Sobre o Tailwind (CDN): este arquivo carrega DEPOIS do
   Tailwind, então pode sobrescrever utilitários e definir
   variáveis CSS, animações e componentes personalizados.
   ============================================================ */

:root {
  --marine: #0A1F44;
  --marine-dark: #061533;
  --gold: #C9A961;
  --gold-light: #d8bd80;
  --cream: #FAF8F5;
  --cream-dark: #f0ebe2;
  --gray-soft: #e6e2d8;
  --text-dark: #1a1a1a;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Cores base / Tailwind extension ----- */
.bg-marine        { background-color: var(--marine); }
.bg-marine-dark   { background-color: var(--marine-dark); }
.bg-gold          { background-color: var(--gold); }
.bg-cream         { background-color: var(--cream); }
.bg-cream-dark    { background-color: var(--cream-dark); }

.text-marine      { color: var(--marine); }
.text-gold        { color: var(--gold); }
.text-cream       { color: var(--cream); }

.border-marine    { border-color: var(--marine); }
.border-gold      { border-color: var(--gold); }
.border-cream     { border-color: var(--cream); }

.font-display     { font-family: var(--font-display); }
.font-body        { font-family: var(--font-body); }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; }

/* ============================================================
   HERO SLIDER (home + empreendimentos)
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-luxe);
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,68,0.35) 0%, rgba(10,31,68,0.55) 60%, rgba(10,31,68,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  color: var(--cream);
  padding: 0 1.5rem;
}
.hero-slider-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.75rem; z-index: 3;
}
.hero-slider-dots button {
  width: 36px; height: 2px;
  background: rgba(250,248,245,0.4);
  border: none; cursor: pointer;
  transition: background 0.3s;
}
.hero-slider-dots button.active { background: var(--gold); }

/* ============================================================
   GALERIA / LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--gray-soft);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-luxe);
}
.gallery-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,31,68,0.95);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,248,245,0.4);
  width: 48px; height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold); border-color: var(--gold);
}

/* ============================================================
   TABS DE PLANTAS
   ============================================================ */
.plant-tabs {
  display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--gray-soft);
  margin-bottom: 2rem;
}
.plant-tab {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marine);
  opacity: 0.5;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.plant-tab.active {
  opacity: 1;
  border-bottom-color: var(--gold);
  color: var(--marine);
}
.plant-panel { display: none; }
.plant-panel.active { display: block; }

/* ============================================================
   FILTROS (hub de empreendimentos)
   ============================================================ */
.filter-pill {
  background: transparent;
  border: 1px solid var(--marine);
  color: var(--marine);
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-pill:hover { background: var(--marine); color: var(--cream); }
.filter-pill.active { background: var(--marine); color: var(--cream); }

/* ============================================================
   CARDS DE EMPREENDIMENTO
   ============================================================ */
.dev-card {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.5s;
}
.dev-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -16px rgba(10,31,68,0.18); }
.dev-card .dev-img {
  aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  position: relative;
}
.dev-card .dev-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,31,68,0.85) 100%);
}
.dev-card .dev-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem; color: var(--cream);
  z-index: 2;
}
.dev-card .dev-status {
  display: inline-block;
  background: var(--gold);
  color: var(--marine);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ============================================================
   NÚMEROS ANIMADOS / TIMELINE
   ============================================================ */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--gold);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem; top: 0.4rem;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(10,31,68,0.3);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--marine);
  outline: none;
  transition: border-color 0.3s;
}
.form-field:focus { border-bottom-color: var(--gold); }
.form-field::placeholder { color: rgba(10,31,68,0.45); }
textarea.form-field { resize: vertical; min-height: 80px; }

.form-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,31,68,0.6);
  margin-bottom: 0.25rem;
}

/* Honeypot — escondido para humanos, visível para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ============================================================
   ANIMAÇÕES (fade-in on scroll)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAV / HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s, padding 0.4s;
  padding: 1.5rem 0;
}
.site-header.scrolled {
  background: rgba(10,31,68,0.96);
  padding: 0.85rem 0;
  backdrop-filter: blur(8px);
}
.site-header a.nav-link {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.site-header a.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s;
}
.site-header a.nav-link:hover::after,
.site-header a.nav-link.active::after { width: 100%; }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.divider-gold {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
}
.btn-primary {
  display: inline-block;
  background: var(--marine);
  color: var(--cream);
  padding: 0.9rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  border: 1px solid var(--marine);
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--marine); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  padding: 0.9rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  border: 1px solid var(--cream);
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--cream); color: var(--marine); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--marine);
  text-align: center;
  font-weight: 500;
}
.section-eyebrow {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Mensagens do formulário */
.form-msg {
  padding: 0.875rem 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  display: none;
}
.form-msg.success { background: #e8f5e9; color: #1b5e20; display: block; }
.form-msg.error   { background: #ffebee; color: #b71c1c; display: block; }

/* Responsivo */
@media (max-width: 768px) {
  .hero-slider { min-height: 520px; }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

/* ============================================================
   OPORTUNIDADES DISPONÍVEIS (REDESENHADO — ref. card luxo)
   ============================================================ */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}
.opp-card {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(10,31,68,0.06);
  transition: transform .45s var(--ease-luxe), box-shadow .45s;
}
.opp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(10,31,68,0.16);
}
.opp-img-wrap { padding: .85rem .85rem 0; }
.opp-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  background-color: var(--marine);
}
.opp-badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: var(--gold);
  color: var(--marine);
  padding: .35rem .85rem;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10,31,68,.18);
}
.opp-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.opp-type {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--marine);
  margin: 0;
  text-transform: uppercase;
}
.opp-location {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: rgba(10,31,68,.55);
  margin-top: .25rem;
}
.opp-location svg {
  width: 13px; height: 13px;
  color: var(--gold);
  flex-shrink: 0;
}
.opp-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(10,31,68,.7);
  margin: .35rem 0 0;
  line-height: 1.25;
  font-style: italic;
}
.opp-price-label {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  color: rgba(10,31,68,.45);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 1.1rem;
  margin-bottom: .15rem;
}
.opp-price {
  font-family: var(--font-display);
  font-size: 1.95rem;
  color: var(--marine);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}
.opp-divider {
  border: none;
  border-top: 1px solid rgba(10,31,68,.1);
  margin: 1.1rem 0 1rem;
}
.opp-stats {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: 1.15rem;
}
.opp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex: 1;
  font-size: .78rem;
  color: var(--marine);
  text-align: center;
  font-weight: 500;
}
.opp-stat svg {
  width: 22px;
  height: 22px;
  color: rgba(10,31,68,.6);
  stroke-width: 1.5;
}
.opp-highlights {
  font-size: .82rem;
  color: rgba(10,31,68,.7);
  line-height: 1.55;
  margin-bottom: 1.3rem;
  flex: 1;
}
.opp-cta {
  width: 100%;
  background: var(--marine);
  color: var(--cream);
  padding: .9rem 1.5rem;
  border: 1px solid var(--marine);
  border-radius: 999px;
  font-family: var(--font-body);
  letter-spacing: .15em;
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
}
.opp-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--marine);
}

/* ============================================================
   MASTERPLAN INTERATIVO (REDESENHADO — hotspots numerados)
   ============================================================ */
.masterplan-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--marine);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10,31,68,0.12);
}
.masterplan-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--marine);
  border: 2px solid #FAF8F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all .35s var(--ease-luxe);
  box-shadow: 0 2px 8px rgba(10,31,68,.45);
  z-index: 2;
}
.hotspot:hover,
.hotspot.is-active {
  background: var(--marine);
  color: var(--gold);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 6px 18px rgba(10,31,68,.6);
  z-index: 3;
}
.masterplan-legend {
  margin-top: 3rem;
}
.masterplan-legend ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem 1.75rem;
  counter-reset: legend;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  color: var(--marine);
  cursor: default;
  padding: .3rem 0;
  transition: color .3s;
}
.legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gold);
  color: var(--marine);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50%;
  transition: all .35s var(--ease-luxe);
  font-family: var(--font-body);
  flex-shrink: 0;
}
.legend-item:hover,
.legend-item.is-active {
  color: var(--gold);
}
.legend-item:hover .legend-num,
.legend-item.is-active .legend-num {
  background: var(--marine);
  color: var(--gold);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .hotspot { width: 24px; height: 24px; font-size: .62rem; }
  .opp-stats { gap: .25rem; }
  .opp-stat { font-size: .72rem; }
}

/* ============================================================
   OUTROS EMPREENDIMENTOS (NOVO)
   ============================================================ */
.others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.other-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-size: cover; background-position: center;
  background-color: var(--marine);
  transition: transform 0.5s var(--ease-luxe);
}
.other-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,68,0.0) 40%, rgba(10,31,68,0.92) 100%);
  transition: background 0.3s;
}
.other-card:hover { transform: translateY(-4px); }
.other-card:hover::after { background: linear-gradient(180deg, rgba(10,31,68,0.2) 0%, rgba(10,31,68,0.92) 100%); }
.other-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  color: var(--cream);
  z-index: 2;
}
.other-card-status {
  display: inline-block;
  background: var(--gold);
  color: var(--marine);
  padding: 0.2rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.other-card-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.2rem;
}
.other-card-tag {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   FIX: força tamanho dos SVGs dentro dos cards de oportunidade
   ============================================================ */
.opp-card svg {
  width: 22px !important;
  height: 22px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  vertical-align: middle;
}
.opp-location svg {
  width: 14px !important;
  height: 14px !important;
}
.opp-stat svg {
  width: 22px !important;
  height: 22px !important;
}
.opp-stat {
  align-items: center !important;
}