/*
Theme Name: Clínica Recuperação BH Essencial
Theme URI: https://example.com/clinica-recuperacao-bh-essencial
Author: OpenAI
Author URI: https://openai.com
Description: Tema WordPress editável para captação de contatos de familiares que buscam clínica de recuperação em BH, tratamento para dependência química, alcoolismo e saúde mental. Sem formulário e sem seção de unidades; focado em WhatsApp, telefone, SEO local e blocos com fundos de imagem editáveis.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crbh-essencial
Tags: custom-background, custom-colors, custom-logo, custom-menu, featured-images, one-column, accessibility-ready
*/

:root {
  --crbh-dark: #14213d;
  --crbh-primary: #1f6f78;
  --crbh-accent: #f6a821;
  --crbh-soft: #f7f0e4;
  --crbh-card: #ffffff;
  --crbh-text: #22313f;
  --crbh-muted: #697586;
  --crbh-border: rgba(20, 33, 61, .13);
  --crbh-shadow: 0 22px 55px rgba(20, 33, 61, .14);
  --crbh-radius: 28px;
  --crbh-radius-sm: 18px;
  --crbh-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--crbh-text);
  background: var(--crbh-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .crbh-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--crbh-accent); outline-offset: 4px; }

.crbh-page {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 120, .18), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, #f7f0e4 42%, #fffdf8 100%);
}

.crbh-container { width: min(calc(100% - 40px), var(--crbh-max)); margin-inline: auto; }
.crbh-section { padding: clamp(62px, 8vw, 108px) 0; position: relative; }
.crbh-section-tight { padding: clamp(42px, 6vw, 74px) 0; }
.crbh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--crbh-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.crbh-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--crbh-accent);
  border-radius: 999px;
}
.crbh-section-title {
  margin: 12px 0 16px;
  color: var(--crbh-dark);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.crbh-section-lead {
  margin: 0;
  max-width: 760px;
  color: var(--crbh-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.crbh-eyebrow-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 99px;
  background: var(--crbh-accent);
  box-shadow: 0 0 0 7px rgba(246, 168, 33, .16);
}

.crbh-btn,
.crbh-btn-outline,
.crbh-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.15;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.crbh-btn {
  color: #14213d;
  background: var(--crbh-accent);
  box-shadow: 0 16px 34px rgba(246, 168, 33, .27);
}
.crbh-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(246, 168, 33, .34); }
.crbh-btn-outline {
  color: var(--crbh-dark);
  border: 1px solid rgba(20, 33, 61, .18);
  background: rgba(255, 255, 255, .58);
}
.crbh-btn-outline:hover { transform: translateY(-2px); background: #fff; border-color: rgba(31, 111, 120, .34); }
.crbh-btn-light { background: #fff; color: var(--crbh-dark); }
.crbh-btn-light:hover { transform: translateY(-2px); }

.crbh-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 248, .88);
  border-bottom: 1px solid rgba(20, 33, 61, .08);
  backdrop-filter: blur(18px);
}
.crbh-header-inner {
  width: min(calc(100% - 36px), 1240px);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.crbh-brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.crbh-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--crbh-dark), var(--crbh-primary));
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(20, 33, 61, .22);
}
.crbh-brand-text { display: grid; gap: 0; }
.crbh-brand-title { color: var(--crbh-dark); font-weight: 1000; line-height: 1.05; letter-spacing: -.03em; }
.crbh-brand-subtitle { color: var(--crbh-muted); font-size: .82rem; line-height: 1.2; }
.crbh-menu { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.crbh-menu a {
  color: rgba(20, 33, 61, .76);
  padding: 10px 11px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 800;
}
.crbh-menu a:hover { color: var(--crbh-dark); background: rgba(31, 111, 120, .08); }
.crbh-header-actions { display: flex; align-items: center; gap: 10px; }
.crbh-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--crbh-dark);
  background: #fff;
  border: 1px solid rgba(20, 33, 61, .12);
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(20, 33, 61, .07);
}
.crbh-mobile-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.crbh-mobile-toggle span { display: block; width: 26px; height: 2px; background: var(--crbh-dark); margin: 6px 0; }

.crbh-hero {
  position: relative;
  padding: clamp(72px, 9vw, 122px) 0 58px;
}
.crbh-hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw -120px auto;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  background: rgba(246, 168, 33, .18);
  filter: blur(14px);
  pointer-events: none;
}
.crbh-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .72fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}
.crbh-hero-copy { max-width: 760px; }
.crbh-hero h1 {
  margin: 12px 0 20px;
  color: var(--crbh-dark);
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.crbh-hero-text {
  margin: 0;
  color: #4d5c6f;
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}
.crbh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.crbh-hero-note {
  margin-top: 18px;
  color: var(--crbh-muted);
  font-size: .95rem;
}
.crbh-hero-note strong { color: var(--crbh-dark); }
.crbh-hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
}
.crbh-photo-frame {
  position: relative;
  min-height: 475px;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(20, 33, 61, .95), rgba(31, 111, 120, .72));
  box-shadow: var(--crbh-shadow);
}
.crbh-photo-frame.has-image { background-size: cover; background-position: center; }
.crbh-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 33, 61, .04), rgba(20, 33, 61, .78)),
    radial-gradient(circle at 80% 10%, rgba(246, 168, 33, .52), transparent 190px);
}
.crbh-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .86);
  text-align: center;
  padding: 36px;
}
.crbh-photo-fallback strong {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.crbh-emergency-card {
  position: absolute;
  right: -18px;
  bottom: 26px;
  width: min(330px, 86%);
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .66);
  box-shadow: 0 22px 50px rgba(20, 33, 61, .2);
  backdrop-filter: blur(18px);
}
.crbh-emergency-card b { display: block; color: var(--crbh-dark); font-size: 1.08rem; line-height: 1.16; }
.crbh-emergency-card span { color: var(--crbh-muted); font-size: .93rem; display: block; margin-top: 8px; }
.crbh-quickbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 54px;
}
.crbh-quickitem {
  min-height: 104px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(20, 33, 61, .09);
  box-shadow: 0 12px 32px rgba(20, 33, 61, .06);
}
.crbh-quickitem span { color: var(--crbh-accent); font-weight: 1000; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.crbh-quickitem p { margin: 6px 0 0; color: var(--crbh-dark); font-weight: 900; line-height: 1.22; }

.crbh-alert-strip {
  padding: 20px 0;
  background: var(--crbh-dark);
  color: #fff;
}
.crbh-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.crbh-alert-inner p { margin: 0; max-width: 820px; color: rgba(255,255,255,.82); }
.crbh-alert-inner strong { color: #fff; }

.crbh-intro-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
}
.crbh-situation-card {
  position: sticky;
  top: 112px;
  padding: clamp(24px, 4vw, 36px);
  color: #fff;
  border-radius: var(--crbh-radius);
  background: linear-gradient(160deg, var(--crbh-dark), #233b68 70%, var(--crbh-primary));
  box-shadow: var(--crbh-shadow);
}
.crbh-situation-card h2 { margin: 0 0 14px; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.05; letter-spacing: -.045em; }
.crbh-situation-card p { color: rgba(255,255,255,.8); margin: 0 0 20px; }
.crbh-check-list { display: grid; gap: 11px; padding: 0; margin: 0; list-style: none; }
.crbh-check-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); }
.crbh-check-list li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 999px; background: var(--crbh-accent); color: var(--crbh-dark); font-size: .78rem; font-weight: 1000; margin-top: 2px; }
.crbh-warning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.crbh-warning-card {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--crbh-border);
  box-shadow: 0 16px 40px rgba(20, 33, 61, .07);
}
.crbh-warning-card .num { color: var(--crbh-primary); font-size: .82rem; font-weight: 1000; letter-spacing: .1em; text-transform: uppercase; }
.crbh-warning-card h3 { margin: 9px 0 8px; color: var(--crbh-dark); font-size: 1.18rem; line-height: 1.16; }
.crbh-warning-card p { margin: 0; color: var(--crbh-muted); font-size: .98rem; }

.crbh-treatment-wrap {
  background: #fffdf8;
}
.crbh-treatment-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.crbh-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.crbh-treatment-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border-radius: 30px;
  background: var(--crbh-dark);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(20, 33, 61, .14);
}
.crbh-treatment-card:nth-child(even) { background: var(--crbh-primary); }
.crbh-treatment-card:nth-child(3n) { background: #2f3e5c; }
.crbh-treatment-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 34px solid rgba(255,255,255,.08);
}
.crbh-treatment-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  color: var(--crbh-accent);
  font-weight: 1000;
  font-size: 1.4rem;
}
.crbh-treatment-card h3 { margin: 52px 0 10px; position: relative; z-index: 1; line-height: 1.06; font-size: 1.42rem; letter-spacing: -.03em; }
.crbh-treatment-card p { margin: 0; position: relative; z-index: 1; color: rgba(255,255,255,.8); }

.crbh-image-band {
  min-height: 520px;
  display: grid;
  align-items: center;
  position: relative;
  background-color: #1c2b4b;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}
.crbh-image-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,33,61,.91), rgba(20,33,61,.6), rgba(20,33,61,.2)),
    radial-gradient(circle at 75% 40%, rgba(246,168,33,.28), transparent 300px);
}
.crbh-image-band.no-image {
  background-image:
    linear-gradient(120deg, rgba(31,111,120,.92), rgba(20,33,61,.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px);
}
.crbh-image-band-content { position: relative; z-index: 1; max-width: 690px; }
.crbh-image-band .crbh-kicker { color: #fff; }
.crbh-image-band h2 { margin: 12px 0 16px; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.06em; }
.crbh-image-band p { margin: 0; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.crbh-image-band .crbh-band-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.crbh-process-grid {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.crbh-process-list { display: grid; gap: 18px; counter-reset: step; }
.crbh-process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--crbh-border);
  box-shadow: 0 16px 42px rgba(20, 33, 61, .06);
}
.crbh-process-item::before {
  content: counter(step, decimal-leading-zero);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(31, 111, 120, .1);
  color: var(--crbh-primary);
  font-weight: 1000;
  letter-spacing: -.04em;
}
.crbh-process-item h3 { margin: 0 0 6px; color: var(--crbh-dark); font-size: 1.25rem; line-height: 1.14; }
.crbh-process-item p { margin: 0; color: var(--crbh-muted); }

.crbh-family-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--crbh-border);
  box-shadow: var(--crbh-shadow);
}
.crbh-family-copy { padding: clamp(30px, 5vw, 58px); }
.crbh-family-copy h2 { margin: 10px 0 16px; color: var(--crbh-dark); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.03; letter-spacing: -.052em; }
.crbh-family-copy p { color: var(--crbh-muted); margin: 0 0 22px; }
.crbh-family-side {
  padding: clamp(30px, 5vw, 58px);
  background: linear-gradient(150deg, var(--crbh-primary), var(--crbh-dark));
  color: #fff;
}
.crbh-info-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.crbh-info-list li {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.13);
}
.crbh-info-list b { display: block; color: #fff; }
.crbh-info-list span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: .96rem; }

.crbh-map-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
  align-items: stretch;
}
.crbh-map-copy {
  padding: 32px;
  border-radius: 30px;
  background: var(--crbh-dark);
  color: #fff;
}
.crbh-map-copy h2 { margin: 12px 0 12px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -.04em; }
.crbh-map-copy p { color: rgba(255,255,255,.78); margin: 0 0 22px; }
.crbh-map-box {
  min-height: 410px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--crbh-border);
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 33, 61, .09);
}
.crbh-map-box iframe { display: block; width: 100%; height: 100%; min-height: 410px; border: 0; }

.crbh-faq-section { background: #fffdf8; }
.crbh-faq-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.crbh-faq-list { display: grid; gap: 12px; }
.crbh-faq-item {
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--crbh-border);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(20, 33, 61, .05);
}
.crbh-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--crbh-dark);
  text-align: left;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.crbh-faq-question::after { content: "+"; flex: 0 0 auto; color: var(--crbh-primary); font-size: 1.4rem; line-height: 1; }
.crbh-faq-item.is-open .crbh-faq-question::after { content: "−"; }
.crbh-faq-answer { display: none; padding: 0 22px 22px; color: var(--crbh-muted); }
.crbh-faq-item.is-open .crbh-faq-answer { display: block; }
.crbh-faq-answer p { margin: 0; }

.crbh-final {
  padding: clamp(64px, 8vw, 110px) 0;
  background: linear-gradient(140deg, var(--crbh-dark), #0b1528);
  color: #fff;
  text-align: center;
}
.crbh-final h2 { max-width: 880px; margin: 0 auto 18px; font-size: clamp(2.1rem, 5.5vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.crbh-final p { max-width: 720px; margin: 0 auto 30px; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.crbh-final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.crbh-footer {
  background: #0b1528;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.08);
}
.crbh-footer-inner {
  width: min(calc(100% - 40px), var(--crbh-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 34px 0;
}
.crbh-footer strong { color: #fff; }
.crbh-footer p { margin: 8px 0 0; }
.crbh-footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px; align-items: center; }
.crbh-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  width: min(calc(100% - 26px), 540px);
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 38px rgba(20, 33, 61, .24);
  backdrop-filter: blur(14px);
}
.crbh-sticky-cta a { flex: 1; min-height: 48px; }

@media (max-width: 1080px) {
  .crbh-menu { display: none; }
  .crbh-mobile-toggle { display: block; }
  .crbh-header.is-open .crbh-menu {
    display: grid;
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--crbh-border);
    box-shadow: var(--crbh-shadow);
  }
  .crbh-header.is-open .crbh-menu a { width: 100%; }
  .crbh-hero-grid, .crbh-intro-grid, .crbh-process-grid, .crbh-family-panel, .crbh-map-grid, .crbh-faq-grid { grid-template-columns: 1fr; }
  .crbh-situation-card { position: relative; top: auto; }
  .crbh-quickbar { grid-template-columns: repeat(2, 1fr); }
  .crbh-treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crbh-image-band { background-attachment: scroll; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  body.admin-bar .crbh-header { top: 0; }
  .crbh-header-actions .crbh-phone-pill { display: none; }
  .crbh-header-inner { min-height: 68px; }
  .crbh-brand { min-width: auto; }
  .crbh-brand-subtitle { display: none; }
  .crbh-hero { padding-top: 46px; }
  .crbh-hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .crbh-photo-frame { min-height: 380px; border-radius: 30px; }
  .crbh-emergency-card { right: 12px; left: 12px; width: auto; }
  .crbh-quickbar, .crbh-warning-grid, .crbh-treatment-grid { grid-template-columns: 1fr; }
  .crbh-alert-inner { display: grid; }
  .crbh-treatment-head { display: grid; }
  .crbh-process-item { grid-template-columns: 1fr; }
  .crbh-footer-inner { grid-template-columns: 1fr; }
  .crbh-footer-links { justify-content: flex-start; }
  .crbh-sticky-cta { display: flex; gap: 8px; }
  .crbh-sticky-cta .crbh-btn-outline { display: none; }
}
