/* ================================================
   ALVARO SAGGIOMO — Luxury Real Estate
   css/style.css
   Design System: design.md | Context: claude.md
   ================================================ */

/* ─── 1. CSS VARIABLES ─────────────────────────── */
:root {
  --gold:        #C5A059;
  --gold-light:  #D4B06A;
  --gold-dark:   #A8884A;
  --onyx:        #151515;
  --charcoal:    #2C2C2C;
  --ivory:       #F9F8F6;
  --white:       #FFFFFF;
  --gold-20:     rgba(197, 160, 89, 0.20);
  --gold-10:     rgba(197, 160, 89, 0.10);
  --onyx-90:     rgba(21, 21, 21, 0.90);
  --onyx-60:     rgba(21, 21, 21, 0.60);

  --font-display: 'Cinzel', serif;
  --font-body:    'Montserrat', sans-serif;

  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.7, 0, 0.84, 0);
  --ease-circ:    cubic-bezier(0.85, 0, 0.15, 1);

  --section-pad:   clamp(80px, 10vw, 140px);
  --container-max: 1440px;
  --container-pad: clamp(24px, 6vw, 100px);
  --card-radius:   4px;
}

/* ─── 2. RESET & BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--onyx);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
select, input, textarea { font-family: var(--font-body); }

/* ─── 3. CUSTOM CURSOR (Desktop) ──────────────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }

  .cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
  }

  .cursor-dot {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--ease-smooth), opacity 0.3s;
  }

  .cursor-ring {
    position: absolute;
    width: 36px; height: 36px;
    border: 1px solid rgba(197, 160, 89, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.35s var(--ease-smooth), width 0.3s, height 0.3s, opacity 0.3s;
  }

  a:hover ~ .cursor .cursor-ring,
  button:hover ~ .cursor .cursor-ring {
    width: 56px; height: 56px;
  }
}

/* ─── 4. TYPOGRAPHY ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

em { font-style: italic; color: var(--gold); }

/* ─── 5. CONTAINER ─────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── 6. BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 18px 44px;
  border: 1px solid var(--gold);
  transition: background 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth),
              transform 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-smooth);
  z-index: 0;
}

.btn span, .btn { position: relative; z-index: 1; }

.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--onyx); }

.btn-primary {
  color: var(--gold);
}

.btn-outline {
  color: var(--gold);
  border-color: rgba(197, 160, 89, 0.4);
}

.btn-full { width: 100%; }

/* ─── 7. PRELOADER ─────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--onyx);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo .logo-svg {
  width: 100% !important;
  height: 100% !important;
}

.preloader-logo .pl-ring {
  stroke-dasharray: 590;
  stroke-dashoffset: 590;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.preloader-logo .pl-text {
  opacity: 0;
  transition: opacity 0.6s 0.6s ease;
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-align: center;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s 0.8s ease, transform 0.8s 0.8s var(--ease-out);
}

#preloader.is-loading .pl-ring { stroke-dashoffset: 0; }
#preloader.is-loading .pl-text { opacity: 1; }
#preloader.is-loading .preloader-brand { opacity: 1; transform: translateY(0); }

/* ─── 8. NAVIGATION ────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--container-pad);
  transition: background 0.5s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.nav.is-scrolled {
  background: var(--onyx-90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px var(--container-pad);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-monogram {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  transition: transform 0.4s var(--ease-smooth);
}

.nav-logo:hover .nav-monogram { transform: rotate(15deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.7);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-20);
  padding: 12px 24px;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s;
}

.nav-cta:hover { background: var(--gold-20); border-color: var(--gold); }

/* Hamburger menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease-smooth), opacity 0.3s, width 0.3s;
}

.nav-hamburger span:nth-child(2) { width: 70%; margin-left: auto; }
.nav-hamburger:hover span { background: var(--gold); }
.nav-hamburger:hover span:nth-child(2) { width: 100%; }

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--onyx);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}

.nav-drawer.is-open { opacity: 1; pointer-events: all; }

.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 48px);
  color: var(--ivory);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.nav-drawer a:hover { color: var(--gold); }

/* ─── 9. HERO ──────────────────────────────────── */
#hero-scroll-zone {
  height: 200vh;
  position: relative;
}

#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--onyx);
  -webkit-clip-path: circle(150% at 50% 50%);
  clip-path: circle(150% at 50% 50%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(21, 21, 21, 0.3) 0%,
    rgba(21, 21, 21, 0.55) 40%,
    rgba(21, 21, 21, 0.8) 100%
  );
}

/* Hero fallback gradient when no video */
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 70%, rgba(197, 160, 89, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #1a1510 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100vh;
  gap: 16px;
  padding: 0 24px 8vh;
}

/* Logo */
.hero-logo,
.hero-name-line,
.hero-subtitle,
.hero-location,
.hero-scroll-cta {
  opacity: 0;
}

.hero-logo {
  position: relative;
  margin: 0 auto 10px auto;
  z-index: 5;
}

.logo-svg {
  width: clamp(90px, 14vw, 160px);
  height: clamp(90px, 14vw, 160px);
  filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.3));
}

.logo-outer-ring {
  transform-origin: center;
  animation: ring-pulse 4s ease-in-out infinite;
}

.logo-inner-ring {
  transform-origin: center;
  animation: ring-pulse 4s ease-in-out 0.5s infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.logo-text {
  animation: text-glow 4s ease-in-out infinite;
}

@keyframes text-glow {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.8)); }
}

/* Hero Name */
.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.hero-name-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 8.5vw, 120px);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ivory);
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-surname {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.2vw, 12px);
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.6);
  margin-top: 4px;
}

.hero-location {
  font-family: var(--font-body);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

/* Scroll indicator */
.hero-scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hero-scroll-cta span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.4);
}

/* ─── 10. MAIN CONTENT REVEAL ──────────────────── */
#main-content {
  position: relative;
  z-index: 5;
  margin-top: -100vh;
  background: var(--onyx);
}

/* ─── 11. SECTION BASE ─────────────────────────── */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 16px);
  color: rgba(249, 248, 246, 0.55);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ─── 12. SOBRE / ABOUT ────────────────────────── */
.sobre {
  background: var(--onyx);
  position: relative;
  min-height: 100vh;
  z-index: 2;
  transition: background 0.5s var(--ease-smooth);
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  min-height: 100vh;
}

.sobre-text {
  max-width: 580px;
}

.sobre-text .section-title {
  font-size: clamp(36px, 4.5vw, 68px);
  margin-bottom: 24px;
}

.sobre-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
  opacity: 0.5;
}

.sobre-body {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(249, 248, 246, 0.65);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 20px;
}

/* Stats */
.sobre-stats {
  display: flex;
  gap: 40px;
  margin: 36px 0 44px;
  padding: 28px 0;
  border-top: 1px solid var(--gold-20);
  border-bottom: 1px solid var(--gold-20);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.45);
}

/* Responsive Panorama Spacing & Spacers */
.sobre-spacer-col {
  display: none;
}

@media (min-width: 1025px) {
  .sobre {
    overflow: hidden;
  }
  .sobre::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      linear-gradient(to right, 
        #151515 0%, 
        #151515 25%, 
        rgba(21, 21, 21, 0.98) 35%, 
        rgba(21, 21, 21, 0.9) 45%, 
        rgba(21, 21, 21, 0.7) 55%, 
        rgba(21, 21, 21, 0.3) 70%, 
        rgba(21, 21, 21, 0) 85%, 
        transparent 100%), 
      url('assets/alvaro_panorama.png') no-repeat 90% center;
    background-size: cover;
    transform: scale(1.4);
    z-index: -1;
    pointer-events: none;
  }
  .sobre-spacer-col {
    display: block;
    min-height: 1px;
  }
}

@media (max-width: 1024px) {
  .sobre-spacer-col {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold-20);
    margin-top: 40px;
  }
  .sobre-spacer-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/alvaro_panorama.png') no-repeat center center;
    background-size: cover;
    transform: scale(1.4);
  }
}

/* ─── 13. IMÓVEIS / PROPERTIES ─────────────────── */
.imoveis {
  background: var(--ivory);
  color: var(--onyx);
  position: relative;
  min-height: 100vh;
  z-index: 3;
}

.imoveis .section-eyebrow { color: var(--gold); }
.imoveis em { color: var(--gold); }
.imoveis .section-subtitle { color: rgba(21, 21, 21, 0.5); }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: 60px;
}

.property-card {
  background: var(--onyx);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.property-card--featured {
  grid-row: span 1;
  border: 1px solid var(--gold-20);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
  background: var(--charcoal);
}

.property-card:hover .card-image img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 21, 21, 0.6) 0%, transparent 60%);
  transition: opacity 0.4s;
}

.card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--ivory);
  color: var(--onyx);
  z-index: 2;
}

.card-tag--gold { background: var(--gold); color: var(--onyx); }
.card-tag--blue { background: #1A3A5C; color: var(--ivory); }

.card-content {
  padding: clamp(20px, 2.5vw, 28px);
}

.card-price {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.card-location {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(249, 248, 246, 0.45);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(249, 248, 246, 0.55);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.properties-cta { text-align: center; }

/* ─── 14. CONTATO ──────────────────────────────── */
.contato {
  background: var(--charcoal);
  position: relative;
  min-height: 100vh;
  z-index: 4;
}

.contato-inner {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.contato-text .section-title {
  font-size: clamp(36px, 4.5vw, 68px);
  color: var(--ivory);
  margin-bottom: 24px;
}

/* Contact channels */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--gold-20);
  transition: border-color 0.3s, background 0.3s;
}

.contact-item:hover {
  border-color: var(--gold);
  background: var(--gold-10);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-icon svg { width: 100%; height: 100%; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ivory);
}

/* Form */
.contato-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  padding: 12px 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--ivory);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C5A059' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.form-group select option { background: var(--charcoal); color: var(--ivory); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(249, 248, 246, 0.25); font-weight: 300; }

/* ─── 15. MAPA / MAP ───────────────────────────── */
.mapa { background: var(--onyx); padding-bottom: 0; }
.mapa .section-header { padding-bottom: 0; }

.map-container {
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
}

.map-container iframe {
  display: block;
  filter: grayscale(30%) brightness(0.8) contrast(1.1);
  transition: filter 0.5s;
}

.map-container:hover iframe { filter: grayscale(0%) brightness(0.9) contrast(1); }

/* ─── 16. FOOTER ───────────────────────────────── */
.footer {
  background: #0D0D0D;
  padding: clamp(48px, 6vw, 80px) 0 40px;
  border-top: 1px solid var(--gold-20);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 56px;
  height: 56px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.15em;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.4);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-legal {
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid rgba(197, 160, 89, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal p {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: rgba(249, 248, 246, 0.25);
  letter-spacing: 0.05em;
}

/* ─── 17. SCROLL ANIMATION STATES ─────────────── */
[data-animate] {
  will-change: transform, opacity;
}

[data-animate="from-left"] { opacity: 0; transform: translateX(-70px); }
[data-animate="from-right"] { opacity: 0; transform: translateX(70px); }
[data-animate="from-bottom"] { opacity: 0; transform: translateY(60px); }
[data-animate="card"] { opacity: 0; transform: translateY(80px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── 18. RESPONSIVE ───────────────────────────── */
@media (max-width: 1200px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-content {
    justify-content: center;
    padding-bottom: 4vh;
    gap: 16px;
  }

  .sobre-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    min-height: auto;
  }

  .sobre-text { max-width: 100%; order: 1; }
  .sobre-image { order: 2; max-width: 520px; margin: 0 auto; }

  .contato-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 20px var(--container-pad); }

  .hero-content {
    gap: 12px;
  }

  .hero-scroll-cta {
    margin-top: 16px;
  }

  .properties-grid { grid-template-columns: 1fr; }

  .sobre-stats { gap: 24px; flex-wrap: wrap; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 60px;
    --container-pad: 20px;
  }

  .hero-name-line { letter-spacing: 0.15em; }

  .sobre-stats { flex-direction: column; gap: 20px; }

  .sobre-badge {
    left: 0;
    bottom: -10px;
  }

  .sobre-img-accent { display: none; }

  .contact-item { padding: 16px; }
}

/* ─── 19. REDUCED MOTION ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] { opacity: 1 !important; transform: none !important; }

  .scroll-line { animation: none; }
  .logo-outer-ring, .logo-inner-ring, .logo-text { animation: none; }

  #hero {
    position: relative !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  #hero-scroll-zone {
    height: auto !important;
  }
  #main-content {
    margin-top: 0 !important;
  }
}

/* Universal overlap prevention for short screen heights (laptops, landscape tables/mobile, S8+, S20) */
@media (max-height: 850px) {
  .hero-content {
    justify-content: flex-end !important;
    padding-bottom: 6vh !important;
  }
}

/* ─── 20. UTILITIES ────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── 21. PAGINAS DE DETALHE ───────────────────── */
.detalhe-hero {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(80px, 10vw, 120px) 0 60px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.detalhe-grid {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: clamp(48px, 6vw, 100px);
  padding: var(--section-pad) 0;
}

.detalhe-content h3 {
  font-size: clamp(20px, 2vw, 28px);
  color: var(--gold);
  margin: 40px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detalhe-content p {
  color: rgba(249, 248, 246, 0.7);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}

.detalhe-specs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--gold-20);
  border-bottom: 1px solid var(--gold-20);
}

.detalhe-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detalhe-spec-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.detalhe-spec-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ivory);
  font-weight: 600;
}

.sidebar-card {
  background: var(--charcoal);
  border: 1px solid var(--gold-20);
  padding: clamp(24px, 3vw, 40px);
  position: sticky;
  top: 120px;
}

.sidebar-price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.4);
  margin-bottom: 32px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
  transition: transform 0.3s;
}

.back-btn:hover {
  transform: translateX(-6px);
}

@media (max-width: 1024px) {
  .detalhe-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .sidebar-card {
    position: static;
  }
  /* Safe area padding for pinned sections on mobile to clear bottom browser navigation bar */
  .sobre, .imoveis {
    padding-bottom: 120px !important;
  }
}
