/* Liberate Group — Design System */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-deep: #0c4a44;
  --accent: #c9a227;
  --accent-light: #f0d875;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --danger: #dc2626;
  --dark: #0a1628;
  --dark-soft: #111827;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --bg-alt: #eef4f3;
  --white: #ffffff;
  --border: rgba(15, 118, 110, 0.12);
  --shadow: 0 20px 50px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 30px 80px rgba(10, 22, 40, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Poppins", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ── Splash (tela de carregamento) ── */
body.is-loading { overflow: hidden; }
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.splash.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.splash__logo {
  width: min(168px, 44vw); height: auto;
  animation: splashLogoIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Header (scroll com a página) ── */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.header__brand {
  display: flex; align-items: center; flex-shrink: 0;
}
.header__brand img { height: 56px; width: auto; display: block; }
.nav {
  display: flex;
  position: fixed; inset: 0; top: 0;
  flex-direction: column; justify-content: center; gap: 6px;
  background: rgba(10, 22, 40, 0.97); backdrop-filter: blur(20px);
  transform: translateX(100%); transition: transform 0.35s ease;
  padding: calc(var(--safe-top) + 20px) 24px calc(var(--safe-bottom) + 24px);
  overflow-y: auto;
}
.nav.show { transform: translateX(0); }
.nav__link {
  width: 100%; max-width: 320px; text-align: center;
  padding: 14px 20px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.9);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__link--cta { margin-left: 0; margin-top: 8px; max-width: 320px; }
.nav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--white); font-size: 1.25rem;
  background: rgba(255,255,255,0.08);
}
.nav__close {
  display: block; position: absolute; top: calc(var(--safe-top) + 12px); right: 16px;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--white); font-size: 1.25rem;
  background: rgba(255,255,255,0.08);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45); }
.btn--outline {
  border-color: rgba(255,255,255,0.5); color: var(--white); background: rgba(255,255,255,0.06);
}
.btn--outline:hover { background: rgba(255,255,255,0.14); }
.btn--ghost { border: 1px solid var(--border); color: var(--primary-dark); background: var(--white); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--large { padding: 16px 24px; font-size: 0.95rem; width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--pulse { animation: pulse 2.5s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.6); transform: translateY(-2px) scale(1.02); }
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + var(--safe-top));
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(12,74,68,0.78) 50%, rgba(10,22,40,0.85) 100%);
}
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--1 { width: 220px; height: 220px; background: var(--primary); top: 8%; right: -20%; }
.hero__orb--2 { width: 180px; height: 180px; background: var(--accent); bottom: 18%; left: -15%; animation-delay: -6s; }
.hero__content { position: relative; z-index: 2; padding: 28px 0 72px; max-width: 780px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(1.65rem, 7.5vw, 4rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.hero__title em { font-style: normal; color: var(--accent-light); font-weight: 700; }
.hero__text { font-size: 0.95rem; opacity: 0.88; max-width: 620px; margin-bottom: 24px; }
.hero__actions {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px;
}
.hero__actions .btn { width: 100%; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}
.hero__stat strong {
  display: block; font-size: 1.35rem; font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__stat span { font-size: 0.72rem; opacity: 0.75; font-weight: 500; line-height: 1.35; }
.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
  color: var(--bg); line-height: 0;
}
.hero__wave svg { width: 100%; height: 48px; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

/* ── Sections ── */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--white); }
.section--cta {
  background: linear-gradient(135deg, var(--primary-deep), var(--dark));
  color: var(--white); text-align: center;
}
.section__header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__title {
  font-size: clamp(1.45rem, 5.5vw, 2.6rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 14px;
}
.section__badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(13,148,136,0.1); color: var(--primary-dark);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section__badge--light { background: rgba(255,255,255,0.1); color: var(--accent-light); }
.section__title span { color: var(--primary); }
.section__title--light span { color: var(--accent-light); }
.section__desc--light { color: rgba(255,255,255,0.65); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Sobre ── */
.sobre__grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px;
}
.sobre__card {
  padding: 24px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sobre__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sobre__icon { width: 48px; height: 48px; margin-bottom: 14px; }
.sobre__card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary-deep); }
.sobre__team {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center; text-align: center;
  padding: 24px 20px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--border); margin-bottom: 32px;
}
.sobre__team-photo { max-width: 220px; margin: 0 auto; }
.sobre__team-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.sobre__team-role { color: var(--primary); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.sobre__team-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.sobre__team-info .btn { width: 100%; }

/* Bento Grid */
.bento { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bento__item {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary-deep), var(--primary-dark));
  color: var(--white);
}
.bento__item--wide { grid-column: span 1; }
.bento__item i { font-size: 1.3rem; color: var(--accent-light); margin-bottom: 10px; }
.bento__item h4 { font-size: 0.98rem; margin-bottom: 6px; }
.bento__item p { font-size: 0.85rem; opacity: 0.85; }

/* ── Slider ── */
.slider { position: relative; }
.slider__viewport { overflow: hidden; width: 100%; border-radius: var(--radius); }
.slider__track {
  display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tratamento__slide, .depoimento__card {
  flex: 0 0 100%; width: 100%; min-width: 0;
  margin: 0; box-sizing: border-box;
}
@media (min-width: 640px) {
  .slider__track { gap: 16px; }
  .tratamento__slide { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); }
}
@media (min-width: 768px) {
  .depoimento__card { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); }
}
@media (min-width: 1024px) {
  .tratamento__slide, .depoimento__card {
    flex: 0 0 calc(33.333% - 10.67px); width: calc(33.333% - 10.67px);
  }
}

.tratamento__slide {
  padding: 28px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.tratamento__slide img { width: 64px; height: 64px; margin: 0 auto 16px; }
.tratamento__num {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  color: var(--primary); letter-spacing: 0.1em; margin-bottom: 8px;
}
.tratamento__slide h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tratamento__slide p { font-size: 0.88rem; color: var(--text-muted); }

.slider__nav {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px;
}
.slider__btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  color: var(--primary-dark); font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.slider__btn:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: background 0.2s, transform 0.2s;
}
.slider__dot.active { background: var(--primary); transform: scale(1.2); }

/* ── CTA Box ── */
.cta-box {
  margin-top: 32px; padding: 28px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white); text-align: center;
}
.cta-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.cta-box p { opacity: 0.85; margin-bottom: 18px; font-size: 0.92rem; }
.cta-box .btn { width: 100%; }

/* ── Map ── */
.map-wrap {
  height: min(52vw, 280px); min-height: 220px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--white); box-shadow: var(--shadow-lg);
}
.map-popup { font-size: 0.88rem; line-height: 1.5; }
.map-popup__wa {
  display: inline-block; margin-top: 10px; padding: 8px 16px;
  background: var(--whatsapp); color: var(--white); border-radius: 999px;
  font-weight: 700; font-size: 0.82rem;
}

/* ── Units ── */
.filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px;
}
.filter__btn {
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.78rem;
  transition: all 0.2s;
}
.units-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.filter__btn:hover { background: rgba(255,255,255,0.1); }
.filter__btn.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
  box-shadow: 0 6px 20px rgba(13,148,136,0.4);
}
.unit-card {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.unit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.unit-card__media {
  position: relative; height: 220px; overflow: hidden;
  background: linear-gradient(145deg, #0c4a44 0%, #0d9488 50%, #134e4a 100%);
}
.unit-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.unit-card:hover .unit-card__media img:not(.is-broken) { transform: scale(1.05); }
.unit-card__media img.is-broken { display: none; }
.unit-card__media--fallback::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(201,162,39,0.15) 0%, transparent 45%);
  pointer-events: none;
}
.unit-card__media--fallback::before {
  content: "\f015";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -70%);
  font-size: 2.4rem; opacity: 0.2; color: #fff;
}
.unit-card__estado-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  font-size: 0.72rem; font-weight: 700; color: #fff; letter-spacing: 0.05em;
}
.unit-card__city {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 1.15rem; font-weight: 800; color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.unit-card__body { padding: 18px; }
.unit-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.unit-card__badge {
  padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.unit-card__badge--m { background: rgba(59,130,246,0.2); color: #93c5fd; }
.unit-card__badge--f { background: rgba(236,72,153,0.2); color: #f9a8d4; }
.unit-card__state { font-size: 0.78rem; opacity: 0.6; }
.unit-card__stars { margin-left: auto; color: var(--accent); font-size: 0.75rem; }
.unit-card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.unit-card__body p { font-size: 0.88rem; opacity: 0.7; margin-bottom: 16px; }
.unit-card__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.unit-card__actions .btn { flex: 1; min-width: 0; }
.unit-card__share {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.unit-card__share:hover { background: rgba(255,255,255,0.15); }
.units-empty { text-align: center; opacity: 0.6; grid-column: 1 / -1; padding: 40px; }

/* ── Internação ── */
.internacao__grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px;
}
.internacao__card {
  padding: 28px 22px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--border); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.internacao__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.internacao__card img { width: 64px; height: 64px; margin: 0 auto 16px; }
.internacao__card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary-deep); }
.internacao__card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.internacao__card .btn { width: 100%; }
.emergencia {
  display: flex; align-items: center; flex-direction: column; text-align: center;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca;
}
.emergencia__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--danger); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.emergencia h3 { font-size: 1.05rem; margin-bottom: 4px; }
.emergencia p { font-size: 0.86rem; color: var(--text-muted); }
.emergencia .btn { margin-left: 0; width: 100%; }

/* ── Depoimentos ── */
.depoimento__card {
  padding: 28px 20px; margin: 0; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
}
.depoimento__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.depoimento__card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.depoimento__card strong { display: block; font-size: 0.95rem; }
.depoimento__card span { font-size: 0.82rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq__question {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 0; font-size: 0.92rem; font-weight: 600; text-align: left;
  color: var(--text); transition: color 0.2s;
}
.faq__question:hover { color: var(--primary); }
.faq__question i { flex-shrink: 0; margin-top: 3px; transition: transform 0.3s; color: var(--primary); }
.faq__item.active .faq__question i { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq__answer p { padding-bottom: 20px; color: var(--text-muted); font-size: 0.92rem; }
.faq__item.active .faq__answer { max-height: 300px; }
.faq__cta { text-align: center; margin-top: 40px; }
.faq__cta p { margin-bottom: 16px; color: var(--text-muted); }

/* ── Contato ── */
.contato h2 {
  font-size: clamp(1.55rem, 6vw, 2.8rem);
  font-weight: 800; margin-bottom: 14px;
}
.contato .btn { width: 100%; max-width: 360px; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img { height: 72px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; }
.footer a { display: block; font-size: 0.88rem; margin-bottom: 8px; transition: color 0.2s; }
.footer a:hover { color: var(--accent-light); }
.footer__seal { max-width: 120px; opacity: 0.8; }
.footer__bottom { padding: 24px 0; text-align: center; font-size: 0.82rem; opacity: 0.5; }
.footer__bottom p { margin-bottom: 4px; }
.footer__credit {
  color: inherit; text-decoration: none; opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.footer__credit:hover { color: var(--accent-light); opacity: 1; }

.contato h2 em { font-style: normal; color: var(--accent-light); font-weight: 700; }
.contato p { opacity: 0.85; margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; font-size: 0.92rem; }
.contato__note { margin-top: 16px; font-size: 0.82rem; opacity: 0.65; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; z-index: 999;
  right: 14px; bottom: calc(14px + var(--safe-bottom));
}
.whatsapp-float__btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white); font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
  position: relative; transition: transform 0.2s;
}
.whatsapp-float__btn:hover { transform: scale(1.08); }
.whatsapp-float__pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: wappPulse 2s infinite;
}
@keyframes wappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ── WhatsApp Bubble ── */
.whatsapp-bubble {
  position: fixed; z-index: 998;
  right: 14px; bottom: calc(78px + var(--safe-bottom));
  max-width: min(280px, calc(100vw - 28px)); padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0; transform: translateY(12px) scale(0.95);
  transition: opacity 0.4s, transform 0.4s; pointer-events: none;
}
.whatsapp-bubble.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.whatsapp-bubble__close {
  position: absolute; top: 8px; right: 10px; font-size: 1.2rem; color: var(--text-muted);
}
.whatsapp-bubble__typing {
  display: flex; gap: 4px; margin-bottom: 10px;
}
.whatsapp-bubble__typing span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted);
  animation: typingDot 1.2s infinite;
}
.whatsapp-bubble__typing span:nth-child(2) { animation-delay: 0.2s; }
.whatsapp-bubble__typing span:nth-child(3) { animation-delay: 0.4s; }
.whatsapp-bubble__typing.hidden { display: none; }
@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.whatsapp-bubble__msg { font-size: 0.88rem; opacity: 0; transition: opacity 0.3s; }
.whatsapp-bubble__msg.visible { opacity: 1; }

/* ── WhatsApp Menu (sheet no mobile) ── */
.whatsapp-menu {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 22, 40, 0.65); backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  padding: 0;
}
.whatsapp-menu.show { opacity: 1; visibility: visible; }
.whatsapp-menu__box {
  width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: 20px 20px 0 0;
  padding: 24px 18px calc(18px + var(--safe-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.whatsapp-menu.show .whatsapp-menu__box { transform: translateY(0); }
.whatsapp-menu__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 6px; gap: 12px;
}
.whatsapp-menu__head h4 { font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.whatsapp-menu__head button {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #f1f5f9; color: var(--text-muted); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.whatsapp-menu__head button:hover { background: #e2e8f0; color: var(--text); }
.whatsapp-menu__sub {
  font-size: 0.84rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5;
}
.whatsapp-menu__list { display: flex; flex-direction: column; gap: 10px; }
.whatsapp-menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid #e2e8f0; background: #fff;
  text-decoration: none; color: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.whatsapp-menu__item:hover {
  background: rgba(13, 148, 136, 0.04);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
}
.whatsapp-menu__avatar {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border-radius: 50%; flex: 0 0 44px;
  background: linear-gradient(145deg, var(--primary-deep), var(--primary));
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.whatsapp-menu__info { flex: 1; min-width: 0; }
.whatsapp-menu__info strong {
  display: block; font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.whatsapp-menu__info small {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--whatsapp); font-weight: 600;
}
.whatsapp-menu__info small.is-online::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--whatsapp); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
  animation: onlinePulse 2s infinite;
}
.whatsapp-menu__info small.is-busy { color: #d97706; }
.whatsapp-menu__info small.is-busy::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.08); }
}
.whatsapp-menu__action {
  width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
  background: rgba(37, 211, 102, 0.1); color: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.whatsapp-menu__item:hover .whatsapp-menu__action {
  background: var(--whatsapp); color: #fff; transform: scale(1.05);
}
.whatsapp-menu__item--disabled {
  opacity: 0.72; cursor: not-allowed; pointer-events: none;
  background: #f8fafc; border-color: #e2e8f0;
}
.whatsapp-menu__item--disabled:hover {
  transform: none; box-shadow: none;
  background: #f8fafc; border-color: #e2e8f0;
}
.whatsapp-menu__item--disabled .whatsapp-menu__avatar {
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  box-shadow: none;
}
.whatsapp-menu__item--disabled .whatsapp-menu__info strong { color: #64748b; }
.whatsapp-menu__action--off {
  background: #f1f5f9 !important; color: #94a3b8 !important;
  font-size: 0.95rem !important; transform: none !important;
}

/* ── Scroll Top ── */
.scroll-top {
  position: fixed; z-index: 997;
  left: 14px; bottom: calc(14px + var(--safe-bottom));
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  color: var(--primary-dark); font-size: 0.9rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); background: var(--primary); color: var(--white); }

/* ── Breakpoints (mobile-first) ── */
@media (min-width: 480px) {
  .filter__btn { font-size: 0.82rem; padding: 10px 18px; }
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; flex: 1; min-width: 180px; }
  .btn--large { width: auto; }
  .cta-box .btn { width: auto; }
  .contato .btn { width: auto; }
  .sobre__team-info .btn { width: auto; }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .internacao__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .internacao__card .btn { width: auto; }
  .emergencia {
    flex-direction: row; text-align: left; align-items: center;
    padding: 24px 28px; gap: 20px;
  }
  .emergencia .btn { width: auto; margin-left: auto; }
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .header__brand img { height: 64px; }
  .hero__content { padding: 48px 0 96px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 24px; }
  .hero__stat strong { font-size: 1.5rem; }
  .hero__wave svg { height: 72px; }
  .sobre__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sobre__team {
    grid-template-columns: 220px 1fr; text-align: left;
    padding: 32px; gap: 32px;
  }
  .sobre__team-photo { margin: 0; max-width: none; }
  .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bento__item--wide { grid-column: span 2; }
  .map-wrap { height: 360px; min-height: 360px; }
  .unit-card__media { height: 240px; }
  .unit-card__city { font-size: 1.4rem; }
  .unit-card__body { padding: 24px; }
  .internacao__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .scroll-top { left: 24px; bottom: calc(24px + var(--safe-bottom)); width: 46px; height: 46px; }
  .whatsapp-float { right: 24px; bottom: calc(24px + var(--safe-bottom)); }
  .whatsapp-float__btn { width: 62px; height: 62px; font-size: 1.8rem; }
  .whatsapp-bubble {
    right: 24px; bottom: calc(100px + var(--safe-bottom));
    max-width: 280px; padding: 18px 20px;
  }
  .whatsapp-menu {
    align-items: center; justify-content: center; padding: 20px;
  }
  .whatsapp-menu__box {
    width: min(440px, 100%); max-height: 90vh;
    border-radius: 20px; padding: 28px 24px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.98);
  }
  .whatsapp-menu.show .whatsapp-menu__box { transform: translateY(0) scale(1); }
  .whatsapp-menu__item { padding: 14px 16px; gap: 14px; }
  .whatsapp-menu__avatar {
    width: 48px; height: 48px; min-width: 48px; min-height: 48px;
    flex: 0 0 48px; font-size: 1.05rem;
  }
  .whatsapp-menu__action { width: 40px; height: 40px; min-width: 40px; }
}

@media (min-width: 1024px) {
  .nav {
    position: static; inset: auto;
    flex-direction: row; align-items: center; justify-content: flex-end;
    gap: 4px; background: transparent; backdrop-filter: none;
    transform: none; padding: 0; overflow: visible;
  }
  .nav.show { transform: none; }
  .nav__link {
    width: auto; max-width: none;
    padding: 8px 14px; font-size: 0.88rem;
  }
  .nav__link--cta { margin-left: 8px; margin-top: 0; }
  .nav__toggle, .nav__close { display: none; }
  .hero__actions .btn { flex: 0 1 auto; min-width: 0; }
  .sobre__grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .units-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer { padding: 60px 0 0; }
  .map-wrap { height: 460px; min-height: 460px; }
}
