/* PROPOSTA 03 — PRIVATE RESIDENCE
   Paleta: azul petróleo, preto azulado, marfim, champagne
   Fontes: Cormorant Garamond (títulos editoriais) + Montserrat (dados/corpo)
   Inspiração: ultra premium, minimalismo editorial, silêncio visual
*/

/* ===== RESET E VARIÁVEIS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --petrol:       #1B3A4B;
  --navy:         #0A1628;
  --ivory:        #F5F0E8;
  --ivory-mid:    #EDE7DB;
  --champagne:    #C8A97B;
  --champ-light:  #DEC49A;
  --white:        #FFFFFF;
  --text-ivory:   #F0EBE1;
  --text-dark:    #0F1E2C;
  --text-mid:     #3A5066;
  --text-light:   #7A95A8;
  --header-h:     80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== WATERMARK via ::after ===== */
.photo-frame {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
  background: #c8c0b4;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.photo-frame:hover img { transform: scale(1.035); }
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/marca-dagua.svg') center / 44% no-repeat;
  opacity: 0.48;
  pointer-events: none;
  z-index: 2;
}
/* Remove watermark da foto principal de apresentação e fotos full-width de seção */
.hero-frame::after { content: none; }
.res-photo-full::after { content: none; }
.condo-hero-photo::after { content: none; }
.gallery-item { cursor: zoom-in; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background 0.4s, border-bottom 0.4s;
  border-bottom: 1px solid rgba(200, 169, 123, 0.15);
}
.header.scrolled {
  background: var(--navy);
  border-bottom-color: rgba(200, 169, 123, 0.30);
}
.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
  text-decoration: none;
}
.brand-text strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-ivory);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-text em {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  color: var(--champagne);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.80;
}
.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  color: rgba(240, 235, 225, 0.60);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-link:hover { color: var(--champagne); }
.wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--champagne);
  color: var(--champagne);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.15s;
  flex-shrink: 0;
}
.wa-btn:hover {
  background: var(--champagne);
  color: var(--navy);
  transform: translateY(-1px);
}
.wa-number { font-size: 15px; }
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(240, 235, 225, 0.70);
  transition: all 0.25s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 96vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-frame {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.50) 40%,
    rgba(10, 22, 40, 0.08) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px 80px;
}
.hero-address {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 20px;
  opacity: 0.85;
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(56px, 7.5vw, 110px);
  font-weight: 300;
  color: var(--text-ivory);
  line-height: 0.95;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--champagne);
  margin-bottom: 24px;
  opacity: 0.70;
}
.hero-caption {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: rgba(240, 235, 225, 0.55);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 2.8vw, 36px);
  color: var(--champagne);
  font-weight: 400;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}
.hero-cta {
  display: inline-block;
  border: 1px solid var(--champagne);
  color: var(--champagne);
  text-decoration: none;
  padding: 15px 40px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.hero-cta:hover {
  background: var(--champagne);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ===== INTRO SECTION ===== */
.intro-section {
  background: var(--white);
  padding: 120px 0;
}
.intro-section .container { max-width: 800px; }
.intro-p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 32px;
  font-weight: 300;
  text-align: center;
}
.intro-p--lead {
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--text-dark);
  font-weight: 400;
}
.intro-p--em {
  font-style: italic;
  color: var(--petrol);
  font-weight: 400;
}
.intro-rule {
  width: 40px;
  height: 1px;
  background: var(--champagne);
  margin: 40px auto;
}

/* ===== DATA SECTION ===== */
.data-section {
  background: var(--navy);
  padding: 60px 0;
}
.data-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  text-align: center;
}
.data-sep {
  width: 1px;
  height: 60px;
  background: rgba(200, 169, 123, 0.25);
}
.data-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 300;
  color: var(--champagne);
  line-height: 1;
  letter-spacing: -0.01em;
}
.data-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 235, 225, 0.45);
  margin-top: 8px;
}
.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(200, 169, 123, 0.15);
}
.data-tags span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 169, 123, 0.65);
}

/* ===== RESIDENCE SECTION ===== */
.residence-section { background: var(--ivory); }
.res-full .photo-frame { height: 70vh; min-height: 440px; }
.res-text-block {
  padding: 80px 0;
}
.res-text-block--right .container { margin-left: auto; }
.res-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 16px;
}
.res-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 640px;
}
.res-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.res-duo-photo { height: 480px; }
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3px;
}
.res-grid .photo-frame { height: 320px; }

/* ===== CONDO SECTION ===== */
.condo-section { background: var(--white); }
.condo-intro { padding: 100px 0 60px; }
.condo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 32px;
}
.condo-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 600px;
  margin-bottom: 16px;
}
.condo-hero-photo { height: 60vh; min-height: 400px; }
.condo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3px;
}
.condo-grid .photo-frame { height: 300px; }

/* ===== ENTORNO SECTION ===== */
.entorno-section {
  background: var(--ivory-mid);
  padding: 100px 0;
}
.entorno-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 16px 0 48px;
}
.entorno-title em { color: var(--petrol); }
.entorno-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.entorno-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 16px;
}
.entorno-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.entorno-photos .photo-frame { height: 220px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--navy);
  padding: 120px 0;
}
.cta-inner { text-align: center; }
.cta-pre {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(200, 169, 123, 0.55);
  margin-bottom: 24px;
}
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 300;
  color: var(--text-ivory);
  margin-bottom: 24px;
  line-height: 1.1;
}
.cta-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--champagne);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.cta-sub {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(240, 235, 225, 0.35);
  text-transform: uppercase;
  margin-bottom: 56px;
}
.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 16px 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.15s;
}
.cta-wa:hover { background: #1DA855; transform: translateY(-2px); }
.cta-domain {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(200, 169, 123, 0.30);
  text-transform: lowercase;
  margin-top: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: #050E1A;
  padding: 48px 0;
  border-top: 1px solid rgba(200, 169, 123, 0.10);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.footer-brand-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: rgba(240, 235, 225, 0.30);
  letter-spacing: 0.14em;
}
.footer-brand-text em {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-style: normal;
  color: rgba(200, 169, 123, 0.28);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-text p {
  font-size: 12px;
  color: rgba(240, 235, 225, 0.35);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.footer-small { font-size: 11px !important; opacity: 0.55; margin-top: 4px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 26, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-body {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-body img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
/* Marca d'água na foto ampliada do lightbox */
.lightbox-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/marca-dagua.svg') center / 38% no-repeat;
  opacity: 0.48;
  pointer-events: none;
  z-index: 3;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: 1px solid rgba(200, 169, 123, 0.30);
  color: rgba(200, 169, 123, 0.70);
  font-size: 16px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover {
  border-color: var(--champagne);
  color: var(--champagne);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .entorno-body { grid-template-columns: 1fr; gap: 40px; }
  .entorno-photos { grid-template-columns: repeat(4, 1fr); }
  .res-duo { grid-template-columns: 1fr; }
  .res-duo-photo { height: 340px; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .condo-grid { grid-template-columns: 1fr 1fr; }
  .data-item { padding: 0 28px; }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 24px 48px;
    gap: 20px;
    border-top: 1px solid rgba(200, 169, 123, 0.15);
  }
  .menu-btn { display: flex; }
  .wa-number { display: none; }
  .wa-btn { padding: 10px 14px; }
  .hero-content { padding: 0 32px 60px; }
  .hero-title { font-size: clamp(44px, 12vw, 72px); }
  .container { padding: 0 24px; }
  .data-row { gap: 0; }
  .data-item { padding: 20px 24px; }
  .data-sep { height: 1px; width: 40px; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .res-grid .photo-frame { height: 200px; }
  .condo-grid { grid-template-columns: 1fr 1fr; }
  .condo-grid .photo-frame { height: 200px; }
  .entorno-photos { grid-template-columns: 1fr 1fr; }
  .entorno-photos .photo-frame { height: 180px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 48px; }
  .data-row { flex-direction: column; }
  .data-sep { width: 40px; height: 1px; margin: 4px 0; }
  .res-grid { grid-template-columns: 1fr; }
  .condo-grid { grid-template-columns: 1fr; }
  .entorno-photos { grid-template-columns: 1fr 1fr; }
  .header-inner { padding: 0 24px; gap: 20px; }
}
