/* ==========================================================
   SOU VALORA — pages/home.css
   Hero, busca, destaque, diferenciais, depoimentos, CTA
   ========================================================== */

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(26,37,64,0.8) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-img-wrap {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 55%; overflow: hidden;
}
.hero-img-wrap::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 42%; z-index: 2;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.8); }

/* ---------- HERO CINEMÁTICO (fullscreen imersivo) ---------- */
.hero--cinematic .hero-img-wrap {
  inset: 0;          /* foto cobre todo o hero */
  width: 100%;
}
/* anula o gradient lateral antigo */
.hero--cinematic .hero-img-wrap::before { content: none; }

.hero--cinematic .hero-img-wrap img {
  /* zoom sutil + animação lenta de Ken Burns para sensação cinematográfica */
  filter: brightness(0.92) saturate(1.05) contrast(1.03);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

/* Overlay sutil: vinheta canto-esquerdo-inferior só onde o texto fica */
.hero--cinematic .hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    /* vinheta diagonal: escurece só o canto inferior esquerdo (área do texto/stats) */
    radial-gradient(ellipse 70% 80% at 25% 75%, rgba(7,9,26,0.55) 0%, rgba(7,9,26,0.18) 55%, transparent 80%),
    /* faixa fina inferior para CTA/stats */
    linear-gradient(180deg, transparent 60%, rgba(7,9,26,0.45) 100%);
  pointer-events: none;
}

/* Texto branco com sombra mais forte (compensa overlay reduzido) */
.hero--cinematic .hero-content {
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
  padding-bottom: 200px;       /* libera espaço pra foto respirar embaixo */
}
.hero--cinematic .hero-sub {
  color: rgba(255,255,255,0.92);
  max-width: 460px;
  font-size: 0.95rem;
  margin-bottom: 36px;
}
.hero--cinematic .hero-stats {
  background: rgba(7,9,26,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 28px;
  border-radius: 4px;
  gap: 40px;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.04)   translate(0, 0); }
  100% { transform: scale(1.10) translate(-1%, -1.5%); }
}

/* Respeita preferência de reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .hero--cinematic .hero-img-wrap img { animation: none; transform: scale(1.04); }
}

.hero-content { position: relative; z-index: 3; padding: 148px 64px 180px; max-width: 680px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 28px;
}
.hero-tag::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-weight: 400; line-height: 1.08;
  color: var(--white); margin-bottom: 28px; letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.6); font-size: 1rem; font-weight: 300; max-width: 420px; line-height: 1.8; margin-bottom: 48px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: absolute; bottom: 60px; left: 64px;
  display: flex; gap: 60px; z-index: 3;
}
.hero-stat-num {
  font-family: var(--ff-serif);
  font-size: 2.4rem; font-weight: 600; color: var(--white); line-height: 1;
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.42);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px;
}
.hero-scroll-indicator {
  position: absolute; right: 64px; bottom: 60px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.35); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line { width: 1px; height: 60px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0;
  background: var(--gold);
  animation: scrollDown 2s ease-in-out infinite;
  height: 100%;
}
@keyframes scrollDown { 0%{top:-100%} 50%{top:0%} 100%{top:100%} }

/* ---------- SEARCH ---------- */
.search-section { background: var(--navy-mid); padding: 32px 64px; border-bottom: 1px solid var(--border-gold); }
.search-bar {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1px; background: var(--border-gold);
  border: 1px solid var(--border-gold);
}
.search-field { background: var(--navy-light); padding: 18px 24px; display: flex; flex-direction: column; gap: 4px; }
.search-field label { font-size: 0.62rem; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.search-field input,
.search-field select { background: none; border: none; outline: none; color: var(--white); font-family: var(--ff-sans); font-size: 0.88rem; font-weight: 300; width: 100%; }
.search-field select option { background: var(--navy-mid); }
.search-btn {
  background: var(--gold); border: none; padding: 0 28px;
  color: var(--navy); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  transition: background 0.3s; white-space: nowrap;
}
.search-btn:hover { background: var(--gold-light); }

/* ---------- GRID DE DESTAQUES (4 cards) ---------- */
.grid-3.destaques-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .grid-3.destaques-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3.destaques-grid { grid-template-columns: 1fr; }
}

/* ---------- IMÓVEL DESTAQUE ESPECIAL ---------- */
.featured-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1200px; margin: 0 auto;
  border: 1px solid var(--border-gold);
}
.featured-img-col { position: relative; overflow: hidden; min-height: 500px; }
.featured-img-col img { width: 100%; height: 100%; object-fit: cover; }
.featured-img-col::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,9,26,0.28) 0%, transparent 60%);
}
.featured-tag-overlay {
  position: absolute; top: 28px; left: 28px; z-index: 2;
  background: var(--gold); color: var(--navy);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 18px; display: flex; align-items: center; gap: 8px;
}
.featured-content-col { padding: 60px; background: var(--navy-light); }
.featured-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.feat-meta-item dt { font-size: 0.65rem; color: var(--gray); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.feat-meta-item dd { font-family: var(--ff-serif); font-size: 1.1rem; color: var(--white); font-weight: 500; }
.featured-price { font-family: var(--ff-serif); font-size: 2.4rem; color: var(--gold); font-weight: 600; margin-bottom: 32px; line-height: 1; }
.featured-price small { font-size: 0.8rem; color: var(--gray); font-family: var(--ff-sans); display: block; margin-top: 6px; }

/* ---------- DIFERENCIAIS ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 64px; }
.why-card { padding: 44px 28px; text-align: center; position: relative; transition: transform 0.3s; }
.why-card:hover { transform: translateY(-5px); }
.why-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 2px; background: var(--gold); }
.why-icon { width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gold); }
.why-title { font-family: var(--ff-serif); font-size: 1.15rem; color: var(--navy); font-weight: 500; margin-bottom: 14px; }
.why-text { font-size: 0.875rem; color: var(--gray); line-height: 1.85; font-weight: 300; }

/* ---------- DEPOIMENTOS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.testimonial-card { padding: 38px; border: 1px solid var(--border-gold); background: rgba(255,255,255,0.03); transition: border-color 0.3s, transform 0.3s; }
.testimonial-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.testimonial-stars { color: var(--gold); font-size: 0.78rem; letter-spacing: 5px; margin-bottom: 20px; }
.testimonial-text { font-family: var(--ff-serif); font-style: italic; font-size: 1.08rem; color: rgba(255,255,255,0.78); line-height: 1.75; margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-light); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--ff-serif); font-size: 1rem; font-weight: 600; }
.testimonial-name { font-size: 0.85rem; color: var(--white); font-weight: 600; }
.testimonial-role { font-size: 0.72rem; color: var(--gray); margin-top: 3px; }

/* .cta-section vive em components.css (usado por home, bairros, blog, melnick, imoveis). */

/* ===================== RESPONSIVO ===================== */
@media (max-width: 860px) {
  .hero-content { padding: 130px 24px 60px; }
  .hero-img-wrap { width: 100%; opacity: 0.25; }
  .hero-img-wrap::before { width: 100%; }
  .hero--cinematic .hero-img-wrap { opacity: 1; }
  .hero-stats { left: 24px; flex-wrap: wrap; gap: 32px; }
  .hero-scroll-indicator { display: none; }
  .search-section { padding: 24px; }
  .search-bar { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .featured-wrap { grid-template-columns: 1fr; }
  .featured-content-col { padding: 40px 28px; }
  .featured-img-col { min-height: 320px; }
}

@media (max-width: 640px) {
  .hero-content { padding: 120px 20px 56px; }
  .hero--cinematic .hero-content { padding-bottom: 220px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 36px; }
  .hero-actions { gap: 12px; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions .btn-whatsapp { flex: 1 1 auto; justify-content: center; min-width: 0; }

  .hero-stats {
    position: static;
    margin-top: 36px;
    gap: 18px;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero--cinematic .hero-stats {
    position: absolute; bottom: 32px; left: 20px; right: 20px;
    margin-top: 0;
    padding: 14px 18px;
    gap: 18px;
    justify-content: space-between;
  }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-stat-label { font-size: 0.62rem; letter-spacing: 0.1em; }

  /* Search bar — inputs/selects com font-size 16px (evita zoom iOS) já no bloco @640 de components */
  .search-section { padding: 20px; }
  .search-field { padding: 14px 18px; }
  .search-btn { padding: 16px 24px; min-height: 48px; justify-content: center; }

  /* Featured */
  .featured-img-col { min-height: 240px; }
  .featured-content-col { padding: 32px 22px; }
  .featured-price { font-size: 1.8rem; margin-bottom: 24px; }
  .featured-meta-grid { gap: 14px; margin: 24px 0; }
  .feat-meta-item dd { font-size: 1rem; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .why-card { padding: 32px 24px; }

  /* Depoimentos */
  .testimonial-card { padding: 28px 24px; }
  .testimonial-text { font-size: 1rem; line-height: 1.65; margin-bottom: 22px; }
}

@media (max-width: 420px) {
  /* Hero stats em phones pequenos: 3 colunas grudadas ficavam apertadas */
  .hero--cinematic .hero-stats {
    gap: 10px;
    padding: 12px 12px;
  }
  .hero-stat-num   { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.58rem; }

  /* Hero content respira menos no bottom em phones pequenos */
  .hero--cinematic .hero-content { padding-bottom: 200px; }
}
