/*
 * LP Pediatras Especialistas — Unimed Porto Alegre
 * Unidade de Atendimento Pediátrico · crianças 0–12 anos
 */

:root {
  --green: #00a14b;
  --green-dark: #0d4d2b;
  --green-bright: #00c853;
  --green-soft: #e8f7ef;
  --lime: #c8f7a0;
  --gold: #ffe066;
  --sky: #e8f4fc;
  --teal: #00897b;
  --text: #1a1a1a;
  --muted: #4a5568;
  --white: #fff;
  --off-white: #f7faf8;
  --gray-bg: #eef2f5;
  --shadow-lg: 0 20px 60px rgba(0,0,0,.22);
  --shadow-md: 0 8px 28px rgba(0,0,0,.12);
  --shadow-sm: 0 2px 12px rgba(13,77,43,.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.pediatria {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
}

/* ── Navbar — logo Unimed Porto Alegre ── */
.lp-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 850;
  background: transparent;
  pointer-events: none;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.lp-navbar--solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}
.lp-navbar--solid .lp-navbar__logo {
  filter: none;
}
.lp-navbar__inner {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
}
.lp-navbar__brand {
  display: inline-block;
  pointer-events: auto;
  text-decoration: none;
  transition: opacity .2s ease;
}
.lp-navbar__brand:hover { opacity: .88; }
.lp-navbar__logo {
  height: 56px;
  width: auto;
  display: block;
  filter: none;
}
@media (max-width: 520px) {
  .lp-navbar__logo { height: 44px; }
}

/* ── Alerts ── */
.alert-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: .85rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  animation: slideDown .4s var(--transition);
}
.alert-bar--ok  { background: #dcfce7; color: #166534; }
.alert-bar--err { background: #fee2e2; color: #991b1b; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  background: var(--green-dark);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(-100%);
  transition: transform .35s var(--transition);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__text {
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
}
.sticky-cta .btn { padding: .5rem 1.25rem; font-size: .75rem; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("/static/img/pediatria/hero-bg.jpg") center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13,77,43,.94) 0%,
    rgba(13,77,43,.85) 28%,
    rgba(13,77,43,.5) 55%,
    rgba(13,77,43,.2) 100%
  );
}
@media (max-width: 768px) {
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(13,77,43,.45) 0%,
      rgba(13,77,43,.88) 50%,
      rgba(13,77,43,.96) 100%
    );
  }
}

.hero__inner {
  position: relative; z-index: 2;
  width: min(680px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  text-align: left;
}
@media (max-width: 768px) {
  .hero__inner {
    text-align: center;
    width: min(520px, 100% - 2rem);
  }
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero h1 .hl { color: var(--gold); }

.hero__sub {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.55;
}
@media (max-width: 768px) {
  .hero__sub { margin-left: auto; margin-right: auto; }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
@media (max-width: 768px) {
  .hero__ctas { justify-content: center; }
}

.hero__price {
  position: relative; z-index: 2;
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: .85rem 1.5rem;
  color: var(--white);
}
.hero__price-label { font-size: .8rem; opacity: .85; }
.hero__price-value { font-size: 1.75rem; font-weight: 800; color: var(--lime); }
.hero__price-unit { font-size: .85rem; opacity: .85; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .85rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--lime);
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(200,247,160,.35);
}
.btn--primary:hover { filter: brightness(1.04); box-shadow: 0 6px 24px rgba(200,247,160,.5); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--green {
  background: var(--green-bright);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,200,83,.25);
}
.btn--green:hover { filter: brightness(1.06); }
.btn--dark {
  background: var(--green-dark);
  color: var(--white);
}
.btn--dark:hover { filter: brightness(1.12); }
.btn--white {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
}

/* ── Sections ── */
.section {
  padding: clamp(3rem, 7vw, 5rem) 1rem;
}
.section__tag {
  display: block;
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}
.section h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  margin: 0 auto .85rem;
  max-width: 48rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.section .lead-p {
  text-align: center;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  font-size: .95rem;
  line-height: 1.6;
}
.cta-row { text-align: center; margin-top: .5rem; }

.section--white {
  background: var(--off-white);
  color: var(--text);
}
.section--white h2 {
  color: var(--green-dark);
}
.section--white .section__tag {
  color: var(--green);
}
.section--white .lead-p {
  color: var(--muted);
}

.section--diferenciais {
  position: relative;
  overflow: hidden;
}
.section--diferenciais::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 161, 75, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.section--diferenciais::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 247, 160, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.section--diferenciais .container {
  position: relative;
  z-index: 1;
}

/* Barra de destaques rápidos */
.highlights-bar {
  list-style: none;
  margin: 0 auto 2.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 720px;
}
.highlights-bar li {
  flex: 1 1 140px;
  background: var(--white);
  border: 1px solid rgba(0, 161, 75, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.highlights-bar strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.highlights-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}

/* Grid de diferenciais — contraste garantido em fundo claro */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border: 1px solid #e2ebe6;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity 0.55s ease;
  opacity: 0;
  transform: translateY(18px);
}
.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card.is-visible:hover {
  transform: translateY(-4px);
}
.feature-card.is-visible:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 161, 75, 0.35);
}
.feature-card--accent {
  border-color: rgba(0, 161, 75, 0.28);
  background: linear-gradient(145deg, var(--white) 0%, var(--green-soft) 100%);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0, 161, 75, 0.25);
}
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.35;
}
.feature-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    opacity: 1;
    transform: none;
    transition: box-shadow var(--transition), border-color var(--transition);
  }
}

.section--green { background: var(--green); color: var(--white); }
.section--green .section__tag { color: var(--lime); }
.section--green h2 { color: var(--white); }
.section--green .lead-p { color: rgba(255,255,255,.88); }
.section--dark { background: var(--green-dark); color: var(--white); }
.section--dark .section__tag { color: var(--lime); }
.section--dark h2 { color: var(--white); }
.section--dark .lead-p { color: rgba(255,255,255,.82); }
.section--light { background: var(--off-white); }
.section--light h2 { color: var(--green-dark); }

/* Tags legadas — apenas em seções escuras */
.section--green .proc-tag,
.section--dark .proc-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.95);
}

/* ── Grids ── */
.grid { display: grid; gap: 1rem; }
.grid--4 { grid-template-columns: repeat(4,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px) { .grid--4, .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-2px); }
.card--white {
  background: var(--white);
  border: 1px solid #e8edf2;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.card--white:hover { box-shadow: var(--shadow-md); }
.card--glass {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}
.card--glass:hover { background: rgba(255,255,255,.15); }
.card__icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}
.card p { margin: 0; font-size: .92rem; }
.card--glass .card__icon { filter: brightness(0) invert(1); opacity: .9; }
.card--glass .card__icon[src$=".svg"] { filter: none; }

/* ── Split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__text h2 { text-align: left; }
.split__text .lead-p { text-align: left; margin-left: 0; }
.split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── Procedures list (legado) ── */
.proc-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.proc-tag {
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: min(440px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  transform: translateY(24px) scale(.97);
  transition: transform .35s var(--transition);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
@media (max-width: 520px) {
  .modal {
    width: 100%;
    max-height: 100vh; max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
  }
}

.modal__head {
  background: var(--green);
  color: var(--white);
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  line-height: 1.35;
  position: relative;
}
.modal__close {
  position: absolute;
  top: .75rem; right: .75rem;
  background: rgba(255,255,255,.15);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal__close:hover { background: rgba(255,255,255,.3); }
.modal__body { padding: 1.5rem; }

.modal-location {
  background: var(--gray-bg);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: grid;
  gap: .25rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  padding: .9rem 1rem;
}
.modal-location strong {
  color: var(--green-dark);
  font-size: 1rem;
}
.modal-location span {
  display: block;
  font-size: .9rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .3rem;
}
.form-group input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid #d1d8e0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,161,75,.12);
}

.checkbox-row {
  display: flex; gap: .5rem;
  align-items: flex-start;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.checkbox-row input[type="checkbox"] {
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--green);
}
.modal .btn { width: 100%; }

/* ── Footer ── */
.footer {
  background: var(--gray-bg);
  padding: 2.5rem 1rem;
  font-size: .72rem;
  color: var(--muted);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.footer__brand img {
  height: 44px;
  width: auto;
  display: block;
}
.footer__trust {
  text-align: center;
  flex: 1;
  min-width: 200px;
}
.footer__trust strong { display: block; color: var(--green-dark); margin-bottom: .3rem; font-size: .78rem; }
.footer__trust a { color: var(--green); font-weight: 600; }
.footer__legal {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: justify;
}
.footer__kaizen {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dde3ea;
}
.footer__kaizen img { height: 32px; margin: 0 auto; }

/* ── Localização da unidade ── */
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.location-card h3 {
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-size: 1.15rem;
}
.location-card p {
  margin: 0 0 .65rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.location-card .location-icon {
  color: var(--green);
  font-weight: 700;
  margin-right: .35rem;
}

/* ── Badge ONA ── */
.ona-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.ona-badge strong {
  display: block;
  font-size: .95rem;
  color: var(--white);
}
.ona-badge span {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}

/* ── Faixa horário ── */
.hours-pill {
  display: inline-block;
  background: var(--lime);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .85rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-top: 1.25rem;
}

/* ── ANS badge (footer) ── */
.ans-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid #dde3ea;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
}
.ans-badge__label { color: var(--green); }
.ans-badge__sep { opacity: 0.4; }
.ans-badge__number { letter-spacing: 0.02em; }
