/*
Theme Name: Peralta Imóveis - Alto Padrão SP
Theme URI: https://peachpuff-dinosaur-977339.hostingersite.com/
Author: Proverbios System
Author URI:
Description: Landing de consultoria imobiliária de alto padrão em São Paulo. Design escuro, acentos dourados, foco em WhatsApp.
Version: 1.0.10
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peralta-imoveis
Tags: custom-menu, featured-images, one-column, custom-colors, dark
*/
:root {
  --bg: #0f1419;
  --bg-elevated: #1a222c;
  --surface: #243040;
  --text: #f0f4f8;
  --muted: #94a3b8;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --whatsapp: #25d366;
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body.peralta-landing {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.peralta-landing-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

.peralta-landing-root a {
  color: var(--accent);
  text-decoration: none;
}

.peralta-landing-root a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand span { font-size: 0.75rem; color: var(--muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wa-visible {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wa-visible a {
  color: inherit;
  text-decoration: none;
}

.wa-visible a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover { filter: brightness(1.05); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #a68419);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-accent:hover { filter: brightness(1.08); text-decoration: none; }

/* Links <a class="btn">: a regra .peralta-landing-root a (accent) nao pode ganhar sobre os botoes */
.peralta-landing-root .btn-whatsapp,
.peralta-landing-root a.btn-whatsapp {
  color: #fff;
}

.peralta-landing-root .btn-ghost,
.peralta-landing-root a.btn-ghost {
  color: var(--text);
}

.peralta-landing-root .btn-accent,
.peralta-landing-root a.btn-accent {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.peralta-landing-root a.btn:hover,
.peralta-landing-root a.btn:focus {
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 20, 25, 0.97) 0%, rgba(15, 20, 25, 0.75) 45%, rgba(15, 20, 25, 0.4) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

.peralta-landing-root section {
  padding: 3.5rem 1.25rem;
}

.peralta-landing-root .section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.peralta-landing-root h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.quote {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose { color: var(--muted); }
.prose p { margin: 0 0 1rem; }

.img-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.img-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.band {
  background: var(--bg-elevated);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1.1;
}

.stat span { font-size: 0.85rem; color: var(--muted); }

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.35);
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.video-split {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

@media (min-width: 880px) {
  .video-split {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    align-items: center;
  }
}

.video-shell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  background: #000;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 880px) {
  .video-shell {
    /* Mais estreito que antes (460px) para alinhar melhor com a coluna de texto */
    max-width: min(340px, 36vw);
    margin-inline: 0;
  }
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 879px) {
  .video-shell {
    max-width: min(100%, 380px);
    margin-inline: auto;
  }
}

.video-caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-elevated);
}

.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.form-wrap label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form-wrap input,
.form-wrap textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
}

.form-wrap textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  margin: 1.25rem auto 1rem;
  max-width: 36rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.footer-legal strong {
  color: var(--text);
  font-weight: 600;
}

/* WordPress / plugins: reduzir interferência em botões e layout */
body.peralta-landing .wp-block-button__link {
  text-decoration: none;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: stretch;
    width: 100%;
  }

  .header-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .wa-visible {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}
