/* =========================================================
   Tá Perto — design system v2 (índigo profissional)
   Carregado por último em todas as páginas (theme_css_link).
   Ajustes finos sobre as variáveis de cada página.
   ========================================================= */
:root{
  --accent:#8791FF; --accent-2:#6B78F5;
  --grad:linear-gradient(135deg,#8791FF 0%,#6B78F5 100%);
  --gold:#FFB629; --on-accent:#0A0F1F;
  --radius:16px;
}
body{ font-family:'Plus Jakarta Sans',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,.display-font,.display{ letter-spacing:-.02em; }

/* selo Premium sempre dourado, nos dois temas */
.premium-badge{ background:var(--gold) !important; color:#2B1B00 !important; font-weight:800; letter-spacing:.05em; }

/* botões e campos mais limpos */
.btn{ border-radius:12px; }
.btn-accent{ box-shadow:0 6px 18px rgba(107,120,245,.28); }
.form-control,.form-select{ border-radius:12px; }
.form-control:focus,.form-select:focus{ border-color:var(--accent) !important; box-shadow:0 0 0 .2rem rgba(135,145,255,.22) !important; }

/* cartões */
.listing-card,.premium-card,.related-card{ border-radius:18px; }
.listing-card,.premium-card{ transition:transform .18s ease, box-shadow .18s ease; }
.listing-card:hover,.premium-card:hover{ transform:translateY(-3px); box-shadow:0 18px 40px rgba(0,0,0,.35); }
.search-card,.filters-bar,.panel-card,.stat-card,.card-panel,.plan-card,.contact-box,.page-content{ border-radius:20px; }

/* títulos sobre foto: sempre brancos */
.listing-card h3,.premium-overlay h3,.card-overlay h3{ color:#fff !important; }

/* foco acessível */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}

/* hero em degradê índigo (quando não há imagem personalizada) */
.hero:not(.has-custom-bg):not(.has-side-image){ background:linear-gradient(135deg,#0D1330 0%,#1F2A7A 65%,#2F3CB0 100%); }

/* =========================================================
   HERO profissional (home)
   O hero é sempre escuro/índigo, nos dois temas.
   ========================================================= */
section.hero{ padding:88px 0 96px; color:#fff; isolation:isolate; }
section.hero:not(.has-custom-bg):not(.has-side-image){
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(135,145,255,.35), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(59,71,217,.45), transparent 60%),
    linear-gradient(135deg,#0B1030 0%,#1B2370 55%,#2B38B8 100%);
}
section.hero::before{
  content:''; position:absolute; inset:0; z-index:0; width:auto; height:auto; top:0; right:0; border-radius:0; filter:none;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image:radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
section.hero::after{ display:none; }
section.hero.has-custom-bg::before, section.hero.has-side-image::before{ display:none; }

.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px; padding:7px 16px 7px 12px; border-radius:999px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18);
  font-size:13px; font-weight:600; letter-spacing:.01em; color:#fff; backdrop-filter:blur(6px);
}
.hero-eyebrow-dot{ width:8px; height:8px; border-radius:50%; background:#4ADE80; box-shadow:0 0 0 4px rgba(74,222,128,.22); }
section.hero h1{ color:#fff; margin:22px 0 18px; font-size:clamp(38px,5vw,62px); line-height:1.04; letter-spacing:-.035em; font-weight:800; }
section.hero h1 .grad-text{ background:linear-gradient(120deg,#FFE29A,#FFB629); -webkit-background-clip:text; background-clip:text; color:transparent; }
section.hero p.lede{ color:rgba(255,255,255,.80); font-size:18px; line-height:1.6; max-width:52ch; margin:0 0 32px; }

/* cartão de busca */
section.hero .search-card{
  background:var(--panel); border:1px solid rgba(255,255,255,.12); border-radius:22px; padding:18px;
  box-shadow:0 30px 70px rgba(5,8,30,.45); max-width:640px;
}
.search-tabs{ display:inline-flex; gap:4px; padding:4px; border-radius:14px; background:var(--panel-2); margin-bottom:14px; }
.search-tabs .chip{ border:0; border-radius:10px; padding:8px 18px; font-size:13.5px; color:var(--muted); background:transparent; }
.search-tabs .chip.active, .search-tabs .chip:hover{ background:var(--accent); color:var(--on-accent,#0A0F1F); }
.search-row{ display:flex; gap:10px; flex-wrap:wrap; }
.search-row .city-search-wrap{ flex:1 1 240px; }
.search-row .form-control{ min-height:52px; border-radius:14px; background:var(--panel-2); border:1px solid var(--line); color:var(--text); }
.search-row .btn-accent{ min-height:52px; padding:0 22px; border-radius:14px; white-space:nowrap; font-weight:700; }
section.hero .loc-status{ color:var(--muted); }
.hero-stats{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
section.hero .badge-trust{ background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.16); color:#fff; font-weight:600; padding:8px 14px; border-radius:999px; font-size:13px; }

/* cartões ilustrativos do lado direito */
.visual{ height:400px; }
.visual-card{
  width:260px; border-radius:18px; padding:18px 20px; background:rgba(255,255,255,.96); color:#0E1A33;
  border:1px solid rgba(255,255,255,.6); box-shadow:0 24px 50px rgba(5,8,30,.4);
}
.visual-card h4{ color:#0E1A33 !important; font-size:16px; }
.visual-card p{ color:#566178 !important; font-size:13px; }
.visual-card .badge-cat{ background:#E8EAFB; color:#2E3AC2 !important; border-radius:999px; padding:4px 11px; font-size:10.5px; letter-spacing:.05em; }
.visual-1{ top:0; left:20px; } .visual-2{ top:120px; left:150px; } .visual-3{ top:250px; left:10px; }

/* hero com imagem personalizada continua legível nos dois temas */
body.theme-light section.hero h1, body.theme-light section.hero p.lede{ color:#fff !important; }
body.theme-light section.hero p.lede{ color:rgba(255,255,255,.82) !important; }
body.theme-light section.hero .badge-trust{ color:#fff; background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.16); }
body.theme-light section.hero .badge-trust b{ color:#fff !important; }
body.theme-light section.hero .search-card{ background:#fff; }
body.theme-light .search-tabs .chip.active, body.theme-light .search-tabs .chip:hover{ color:#fff; }
body.theme-light .visual-card h4{ color:#0E1A33 !important; }

/* ===== seções, header e rodapé ===== */
.site-header{ backdrop-filter:blur(12px); }
.section-heading{ font-weight:800; letter-spacing:-.025em; }
.premium-section{ background:var(--bg); border:0; padding:72px 0 56px; }
.filters-bar{ border-radius:16px; }
.empty-state h4{ color:var(--text); }
footer{ background:#0B1030 !important; border-top:0 !important; color:#B7C0DB !important; padding:44px 0 !important; }
footer .text-white{ color:#fff !important; }
footer .footer-links a{ color:#B7C0DB !important; font-size:13.5px; }
footer .footer-links a:hover{ color:#fff !important; }
body.theme-light footer{ background:#0B1030 !important; }
