/* ============================================
   NOVA TERRA — Landing Page Imobiliária
   Paleta: Terracota Luxe (sem azul)
   Standalone HTML/CSS/JS
   ============================================ */

:root {
  --ink: #14110F;
  --bone: #F4EFE6;
  --clay: #C65D3B;
  --sage: #4A5D4E;
  --gold: #D2A24C;
  --muted: #8A7F72;
  --bone-light: #FAF7F0;
  --clay-dark: #9B3F1E;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(20,17,15,.06);
  --shadow-md: 0 8px 32px rgba(20,17,15,.08);
  --shadow-lg: 0 24px 64px rgba(20,17,15,.12);

  --transition: .4s cubic-bezier(.25,.8,.25,1);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, button { font-family: inherit; border: none; outline: none; background: none; }

/* ---- GRAIN TEXTURE OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---- UTILITY ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px,5vw,80px); }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: clamp(8px,2vw,16px);
}

.section-eyebrow.light { color: rgba(244,239,230,.6); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem,5.5vw,3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(244,239,230,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px,5vw,80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bone);
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo { color: var(--ink); }

.logo-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: clamp(16px,3vw,40px);
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(244,239,230,.8);
  transition: color var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a { color: var(--muted); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--bone); }
.navbar.scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: .8rem;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--clay);
  color: #fff;
  border-radius: var(--radius-xl);
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover { background: var(--clay-dark); transform: translateY(-1px); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,17,15,.65) 0%,
    rgba(20,17,15,.35) 40%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px,5vw,80px);
  width: 100%;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(12px,3vw,24px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem,8.5vw,7.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--bone);
  margin-bottom: clamp(16px,3vw,32px);
}

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

.hero-title strong {
  color: #fff;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem,2vw,1.25rem);
  line-height: 1.6;
  color: rgba(244,239,230,.8);
  max-width: 520px;
  margin-bottom: clamp(24px,4vw,48px);
}

.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px,2vw,18px) clamp(28px,3vw,40px);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clay);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(198,93,59,.3);
}

.btn-outline {
  border: 1.5px solid rgba(244,239,230,.4);
  color: var(--bone);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---- IMÓVEIS ---- */
.imoveis { padding: clamp(80px,12vw,160px) 0; background: var(--bone-light); }

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

.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px,2.5vw,32px);
}

.imovel-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.imovel-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: block;
}

.imovel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.imovel-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.imovel-card--large .imovel-img-wrapper {
  aspect-ratio: 4/3;
}

.imovel-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.25,.8,.25,1);
}

.imovel-card:hover .imovel-img-wrapper img {
  transform: scale(1.06);
}

.imovel-tag {
  position: absolute;
  top: clamp(12px,2vw,20px);
  left: clamp(12px,2vw,20px);
  padding: 6px 14px;
  background: rgba(20,17,15,.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
}

.imovel-info { padding: clamp(16px,2.5vw,28px); }

.imovel-info h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem,2vw,1.6rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.imovel-location {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: clamp(12px,2vw,20px);
}

.imovel-specs {
  display: flex;
  gap: clamp(12px,2vw,24px);
  margin-bottom: clamp(12px,2vw,20px);
  font-size: .8rem;
  color: var(--muted);
}

.imovel-specs strong { color: var(--ink); }

.imovel-price {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem,2.5vw,1.8rem);
  font-weight: 700;
  color: var(--clay);
}

/* ---- SOBRE ---- */
.sobre { padding: clamp(80px,12vw,160px) 0; background: var(--bone); }

.sobre-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: center;
}

.sobre-text p {
  font-size: clamp(.95rem,1.3vw,1.1rem);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: clamp(12px,2vw,20px);
}

.sobre-stats {
  display: flex;
  gap: clamp(24px,4vw,60px);
  padding-top: clamp(20px,3vw,40px);
  border-top: 1px solid rgba(20,17,15,.08);
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 700;
  color: var(--clay);
}

.stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 2px;
}

.sobre-image {
  position: relative;
}

.sobre-image img {
  border-radius: var(--radius-lg);
  width: 100%; height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-badge {
  position: absolute;
  bottom: clamp(20px,3vw,40px);
  right: -clamp(8px,1.5vw,24px);
  background: var(--clay);
  color: #fff;
  padding: clamp(16px,2.5vw,28px);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 800;
  display: block;
}

.badge-text {
  font-size: .75rem;
  line-height: 1.4;
  margin-top: 4px;
  opacity: .9;
}

/* ---- DIFERENCIAIS ---- */
.diferenciais { padding: clamp(80px,12vw,160px) 0; background: var(--bone-light); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px,2.5vw,32px);
}

.diff-card {
  background: #fff;
  padding: clamp(28px,4vw,40px);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.diff-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem,4vw,3.5rem);
  font-weight: 800;
  color: rgba(198,93,59,.12);
  display: block;
  margin-bottom: clamp(12px,2vw,20px);
  line-height: 1;
}

.diff-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem,1.8vw,1.4rem);
  font-weight: 700;
  margin-bottom: clamp(8px,1.5vw,16px);
}

.diff-card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- DEPOIMENTOS ---- */
.depoimentos { padding: clamp(80px,12vw,160px) 0; background: var(--bone); }

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px,2.5vw,32px);
}

.depoimento-card {
  background: #fff;
  padding: clamp(28px,4vw,40px);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.depoimento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.depoimento-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: clamp(12px,2vw,20px);
  letter-spacing: 2px;
}

.depoimento-text {
  font-family: var(--font-serif);
  font-size: clamp(.95rem,1.4vw,1.1rem);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: clamp(20px,3vw,32px);
  font-style: italic;
}

.depoimento-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.depoimento-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.depoimento-author strong {
  display: block;
  font-size: .9rem;
  color: var(--ink);
}

.depoimento-author span {
  font-size: .8rem;
  color: var(--muted);
}

/* ---- CTA FINAL ---- */
.cta-final {
  position: relative;
  padding: clamp(80px,14vw,160px) 0;
  overflow: hidden;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,17,15,.82), rgba(20,17,15,.9));
}

.cta-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: center;
}

.cta-content .section-eyebrow { color: var(--gold); }

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem,5vw,4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--bone);
  margin-bottom: clamp(16px,3vw,32px);
}

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

.cta-subtitle {
  font-size: clamp(.95rem,1.4vw,1.15rem);
  line-height: 1.7;
  color: rgba(244,239,230,.65);
}

.cta-form { display: flex; flex-direction: column; gap: clamp(10px,1.5vw,16px); }

.cta-form input, .cta-form select {
  padding: clamp(14px,2vw,18px) clamp(20px,2.5vw,28px);
  background: rgba(244,239,230,.08);
  border: 1px solid rgba(244,239,230,.15);
  border-radius: var(--radius-md);
  color: var(--bone);
  font-size: .9rem;
  transition: border-color var(--transition), background var(--transition);
}

.cta-form input::placeholder { color: rgba(244,239,230,.4); }

.cta-form input:focus, .cta-form select:focus {
  border-color: var(--gold);
  background: rgba(244,239,230,.12);
}

.cta-form select option { color: var(--ink); background: var(--bone); }

.cta-form button:hover { transform: translateY(-2px); }

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  padding: clamp(48px,6vw,80px) 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px,5vw,60px);
  margin-bottom: clamp(32px,5vw,60px);
}

.footer-logo { color: var(--bone) !important; font-size: 1.4rem; }

.footer-tagline {
  color: rgba(244,239,230,.5);
  margin-top: clamp(8px,1.5vw,16px);
  font-size: .85rem;
}

.footer-creds {
  color: rgba(244,239,230,.3);
  font-size: .75rem;
  margin-top: 6px;
}

.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,40px); }

.footer-col h4 {
  color: var(--bone);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: clamp(12px,2vw,20px);
}

.footer-col ul li {
  margin-bottom: clamp(6px,1vw,12px);
}

.footer-col ul a, .footer-col ul li {
  color: rgba(244,239,230,.5);
  font-size: .875rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(244,239,230,.08);
  padding: clamp(16px,2vw,24px) 0;
}

.footer-bottom p {
  color: rgba(244,239,230,.3);
  font-size: .75rem;
  text-align: center;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.25,.8,.25,1), transform .8s cubic-bezier(.25,.8,.25,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.imoveis-grid .reveal:nth-child(2) { transition-delay: .15s; }
.imoveis-grid .reveal:nth-child(3) { transition-delay: .3s; }
.diff-grid .reveal:nth-child(2) { transition-delay: .12s; }
.diff-grid .reveal:nth-child(3) { transition-delay: .24s; }
.diff-grid .reveal:nth-child(4) { transition-delay: .36s; }
.depoimentos-grid .reveal:nth-child(2) { transition-delay: .15s; }
.depoimentos-grid .reveal:nth-child(3) { transition-delay: .3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .imoveis-grid { grid-template-columns: 1fr 1fr; }
  .imovel-card--large { grid-column: span 2; grid-row: span 1; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(2.5rem,10vw,4.5rem); }
  .imoveis-grid { grid-template-columns: 1fr; }
  .imovel-card--large { grid-column: span 1; grid-row: span 1; }
  .sobre-container { grid-template-columns: 1fr; }
  .sobre-image { order: -1; max-width: 500px; margin: 0 auto; }
  .diff-grid { grid-template-columns: 1fr; }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .cta-container { grid-template-columns: 1fr; text-align: center; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .sobre-stats { flex-wrap: wrap; gap: 24px; }
}

/* ---- MODAL DE SUCESSO ---- */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(20,17,15,.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.success-modal.active {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background: var(--bone);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  overflow: hidden;
  transform: scale(.9) translateY(20px);
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
}

.success-modal.active .success-modal-content {
  transform: scale(1) translateY(0);
}

.success-modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.success-modal-text {
  padding: clamp(32px,5vw,48px);
  text-align: center;
}

.success-modal-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem,3vw,2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.success-modal-text p {
  font-size: clamp(.95rem,1.4vw,1.1rem);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: clamp(20px,3vw,32px);
}

.success-modal-text .btn {
  min-width: 200px;
}