/* =========================
   NAHOG — BASE INSTITUCIONAL
   Paleta:
   Navy:     #10192A
   Offwhite: #F4F1E9
   Terracota:#C88F67
   ========================= */

:root {
  --navy: #10192A;
  --navy-2: #172238;
  --paper: #F4F1E9;
  --sand: #C88F67;
  --sand-dark: #AF7651;
  --white: #FFFFFF;
  --ink: #142033;
  --muted: #677185;
  --line: rgba(16, 25, 42, .12);
  --radius: 28px;
  --shadow: 0 24px 70px rgba(16, 25, 42, .10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad { padding: 110px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--sand-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.light-eyebrow { color: #E6B38E; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.045em;
}
h1 {
  font-size: clamp(3rem, 6vw, 6.7rem);
  line-height: .96;
  max-width: 900px;
  margin-bottom: 28px;
  font-weight: 500;
}
h2 {
  font-size: clamp(2.2rem, 4vw, 4.7rem);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .25s ease;
  font-weight: 700;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: rgba(16,25,42,.25); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--navy); background: rgba(255,255,255,.4); }
.btn-sand { background: var(--sand); color: var(--white); }
.btn-sand:hover { background: var(--sand-dark); }
.btn-light-outline { border-color: rgba(255,255,255,.4); color: white; }
.btn-light-outline:hover { border-color: white; background: rgba(255,255,255,.08); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(244, 241, 233, .86);
  border-bottom: 1px solid rgba(16,25,42,.07);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -.09em;
  color: var(--navy);
}
.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: .95rem;
  color: #455065;
}
.desktop-nav a:hover { color: var(--navy); }
.desktop-cta { min-height: 44px; padding-inline: 20px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: none;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  margin: 7px auto;
}
.mobile-menu {
  display: none;
  padding: 0 20px 22px;
  background: var(--paper);
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; width: 100%; }

.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 68px;
  align-items: center;
}
.hero-text {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.trust-row {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.trust-row div { display: grid; gap: 2px; }
.trust-row strong { font-size: .95rem; }
.trust-row span { font-size: .82rem; color: var(--muted); }

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: visible;
}
.hero-card {
  position: absolute;
  inset: 0 0 0 54px;
  border-radius: 180px 180px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: rgba(16,25,42,.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.65), transparent 35%),
    linear-gradient(145deg, #D9C5B4 0%, #E7DED1 44%, #C9B49F 100%);
  border: 1px solid rgba(16,25,42,.07);
}
.photo-placeholder span {
  background: rgba(244,241,233,.84);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.photo-placeholder.tall { min-height: 620px; border-radius: var(--radius); }
.floating-note {
  position: absolute;
  left: 0;
  bottom: 60px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: .86rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5D9B72; }
.brand-mark {
  position: absolute;
  right: -18px;
  top: 36px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Manrope";
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--sand-dark);
}

.quick-info { padding-bottom: 20px; }
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.info-strip span {
  text-align: center;
  padding: 22px 10px;
  font-size: .9rem;
  color: #596477;
}
.info-strip span + span { border-left: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr .55fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 46px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading p { color: var(--muted); margin-bottom: 5px; }
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  padding: 10px 17px;
  border-radius: 999px;
  color: #536076;
  cursor: pointer;
}
.filter.active {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.property-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(16,25,42,.08);
  transition: .3s ease;
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.property-card.hidden { display: none; }
.property-image {
  height: 310px;
  position: relative;
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #E7F1E8;
  color: #396047;
  font-size: .75rem;
  font-weight: 700;
}
.property-image .status {
  position: absolute;
  left: 18px;
  top: 18px;
}
.status.soon { background: #F4E8D6; color: #8D6033; }
.property-body { padding: 24px; }
.property-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.property-topline strong { color: var(--sand-dark); }
.property-body h3 { margin-bottom: 16px; }
.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.property-meta span {
  font-size: .76rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: #EEEAE2;
  color: #586274;
}
.property-body p { color: var(--muted); font-size: .88rem; }
.property-link {
  margin-top: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}

.direct {
  background: #ECE5DB;
}
.direct-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.direct-copy > p {
  max-width: 650px;
  font-size: 1.06rem;
  color: var(--muted);
}
.feature-list {
  margin-top: 38px;
  border-top: 1px solid rgba(16,25,42,.14);
}
.feature-list > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(16,25,42,.14);
}
.feature-number { color: var(--sand-dark); font-size: .76rem; font-weight: 800; }
.feature-list strong { display: block; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .9rem; }

.process {
  background: var(--navy);
  color: var(--paper);
}
.section-heading.light p { color: #AAB3C2; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.step {
  padding: 32px 26px 20px 0;
  min-height: 260px;
}
.step + .step { border-left: 1px solid rgba(255,255,255,.14); padding-left: 26px; }
.step span { color: #D99F77; font-weight: 700; font-size: .8rem; }
.step h3 { font-size: 1.65rem; margin-top: 74px; margin-bottom: 12px; }
.step p { color: #AEB7C6; font-size: .92rem; }

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}
.story-copy p {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.04rem;
}
.signature-line {
  margin-top: 36px;
  display: inline-block;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.story-art {
  min-height: 520px;
  background: var(--sand);
  border-radius: 220px 220px var(--radius) var(--radius);
  position: relative;
  overflow: hidden;
}
.quote-mark {
  position: absolute;
  font-size: 26rem;
  line-height: .55;
  right: 44px;
  top: 16px;
  color: rgba(255,255,255,.82);
  font-family: Georgia, serif;
}
.mini-card {
  position: absolute;
  bottom: 38px;
  left: 34px;
  background: var(--paper);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: .82rem;
}
.mini-card.alt {
  left: auto;
  right: 34px;
  bottom: 92px;
  background: var(--navy);
  color: var(--paper);
}

.cta-box {
  background: var(--navy);
  color: white;
  border-radius: 36px;
  padding: 58px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: end;
}
.cta-box h2 { margin-bottom: 0; font-size: clamp(2.3rem, 4vw, 4.6rem); }
.cta-side p { color: #AEB8C7; }

.footer {
  padding: 60px 0 26px;
  background: #0C1422;
  color: #D8DEEA;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .8fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer-brand { color: var(--paper); }
.footer p { color: #98A4B6; max-width: 360px; }
.footer-links { display: grid; align-content: start; gap: 12px; }
.footer-links a { color: #B9C2CF; }
.footer-links a:hover { color: white; }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7F8A9B;
  font-size: .8rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--sand);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(16,25,42,.18);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,13,22,.64);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  background: var(--paper);
  border-radius: 28px;
  padding: 38px;
  z-index: 1;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-card h2 { font-size: 2.6rem; margin: 18px 0 14px; }
.modal-card p { color: var(--muted); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: .12s; }

@media (max-width: 980px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu.open { display: block; }

  .hero-grid,
  .direct-grid,
  .story-grid,
  .cta-box,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 520px; }
  .hero-card { inset: 0 30px 0 30px; }
  .property-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .step:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 78px 0; }
  .nav-wrap { min-height: 70px; }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  h2 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .hero { padding-top: 62px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 24px; }
  .hero-visual { min-height: 420px; }
  .hero-card { inset: 0 14px; border-radius: 120px 120px 22px 22px; }
  .floating-note { bottom: 24px; left: 0; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .info-strip span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .info-strip span:nth-child(4) { border-top: 1px solid var(--line); }
  .property-grid { grid-template-columns: 1fr; }
  .property-image { height: 280px; }
  .direct-grid { gap: 44px; }
  .photo-placeholder.tall { min-height: 420px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-left: 0;
  }
  .step { min-height: 210px; }
  .step h3 { margin-top: 48px; }
  .story-art { min-height: 390px; border-radius: 150px 150px 24px 24px; }
  .quote-mark { font-size: 19rem; right: 24px; }
  .cta-box { padding: 32px 24px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp {
    left: 14px;
    right: 14px;
    bottom: 14px;
    text-align: center;
  }
}


/* Assets / imagens */
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 126px; max-height: 44px; object-fit: contain; }
.brand-fallback {
  display: none;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -.09em;
}
.image-slot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-slot > img + .photo-placeholder { display: none; }


/* ===== HERO 3D ===== */
.hero-3d-card {
  position: absolute;
  inset: 58px 28px 22px 78px;
  overflow: hidden;
  border-radius: 180px 180px 26px 26px;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.95), rgba(230,220,207,.62) 52%, rgba(200,143,103,.18) 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16,25,42,.06);
}
#house3d { width:100%; height:100%; display:block; cursor:grab; touch-action:none; }
#house3d:active { cursor:grabbing; }
.model-loading {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:flex; align-items:center; gap:10px; padding:11px 16px; border-radius:999px;
  background:rgba(244,241,233,.86); color:var(--navy); font-size:.78rem;
  backdrop-filter:blur(12px); transition:opacity .35s ease; pointer-events:none; white-space:nowrap;
}
.model-loading.hidden { opacity:0; }
.model-loading-dot { width:7px; height:7px; border-radius:50%; background:var(--sand); animation:modelPulse 1.1s ease-in-out infinite alternate; }
@keyframes modelPulse { from{opacity:.35;transform:scale(.85)} to{opacity:1;transform:scale(1.2)} }
.model-hint {
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%);
  display:flex; align-items:center; gap:7px; padding:9px 13px; border-radius:999px;
  background:rgba(244,241,233,.82); color:rgba(16,25,42,.76); backdrop-filter:blur(10px);
  font-size:.75rem; pointer-events:none; white-space:nowrap;
}
.model-hint span { color:var(--sand-dark); font-size:1rem; }
.model-fallback { position:absolute; inset:0; display:none; }
.model-fallback.visible { display:block; }
.model-fallback img { width:100%; height:100%; object-fit:cover; }
.footer-logo { width:130px; max-height:48px; object-fit:contain; }
.footer-brand-fallback { display:none; font-family:"Manrope",sans-serif; font-weight:600; font-size:2rem; letter-spacing:-.09em; color:var(--paper); }
@media (max-width:980px){ .hero-3d-card{ inset:42px 34px 18px 34px; } }
@media (max-width:680px){ .hero-3d-card{ inset:36px 18px 18px 18px; border-radius:120px 120px 22px 22px; } .model-hint{bottom:16px;} }
@media (prefers-reduced-motion:reduce){ .model-loading-dot{animation:none;} }
