/* =========================================================================
   Centro Médico Lapense — Dr. Juarez Portes · Pediatria
   Landing Page · v2.0 (com conteúdo real extraído)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --green-primary: #0f5132;
  --green-mid: #2E7D5B;
  --green-soft: #E8F2EB;
  --whatsapp: #25D366;
  --whatsapp-deep: #1FAE54;
  --navy: #1B3A5B;
  --gold: #D97706;
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-tint: #F0F7F2;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .18);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --container: 1200px;
  --space: clamp(1rem, 2vw, 1.5rem);

  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--green-primary); }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 18px; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(37, 211, 102, .55);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .6);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { display: block; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-text small {
  font-size: 12px;
  color: var(--text-muted);
}
.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
}
.header-nav a:hover { color: var(--green-primary); }
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--green-primary);
  transition: width .25s ease;
}
.header-nav a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(15, 81, 50, .12), transparent 60%),
    radial-gradient(700px 300px at 5% 20%, rgba(27, 58, 91, .06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-primary);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  font-weight: 800;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}
.lead strong { color: var(--text); font-weight: 600; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.meta-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.meta-value.price { color: var(--green-primary); font-size: 22px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.trust strong { color: var(--text); font-weight: 600; }
.trust span { color: #FBBF24; letter-spacing: 2px; font-size: 16px; }

.hero-image { margin: 0; position: relative; }
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--green-soft), var(--bg-tint));
  aspect-ratio: 6/7;
  object-fit: cover;
}
.hero-image figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

/* ---------- Info bar ---------- */
.info-bar {
  background: var(--green-primary);
  color: #fff;
  padding: 22px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.info-item { display: flex; align-items: center; gap: 14px; }
.info-icon { font-size: 28px; flex-shrink: 0; }
.info-item div { display: flex; flex-direction: column; line-height: 1.2; }
.info-item strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.info-item small { font-size: 13px; opacity: 0.85; margin-top: 2px; }

/* ---------- Section structure ---------- */
section.services,
section.about,
section.infra,
section.testimonials,
section.tips,
section.faq,
section.partners,
section.location {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 12px 0;
}
.section-lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--bg);
  padding: 28px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-primary);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-soft);
  font-size: 28px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 5/6;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  background: var(--green-soft);
}
.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 12px 0 20px;
}
.about-text p {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 16px;
}
.credentials {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.credentials li {
  background: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--border);
}

/* ---------- Infra ---------- */
.infra { background: #fff; }
.infra-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.infra-image {
  display: flex;
  align-items: center;
}
.infra-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.infra-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 12px 0 16px;
}
.infra-text p { color: var(--text); margin-bottom: 18px; }
.infra-list { display: grid; gap: 10px; }
.infra-list li {
  background: var(--green-soft);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card .stars {
  color: #FBBF24;
  letter-spacing: 3px;
  font-size: 16px;
  display: block;
  margin-bottom: 14px;
}
.testimonial-card p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}
.testimonial-card footer {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-primary), var(--green-mid));
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 6px;
}
.cta-band p { margin: 0; font-size: 1.05rem; opacity: 0.9; }

/* ---------- Tips ---------- */
.tips { background: #fff; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tip-card {
  background: var(--bg-tint);
  padding: 24px 26px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--green-primary);
  transition: transform .2s ease;
}
.tip-card:hover { transform: translateX(3px); }
.tip-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy);
}
.tip-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green-primary);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Partners ---------- */
.partners { background: #fff; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.partner-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s ease, border-color .2s ease;
}
.partner-card:hover { transform: translateY(-2px); border-color: var(--green-primary); }
.partner-card.highlight {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border-color: var(--green-mid);
}
.partner-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
}
.partner-card small { font-size: 12px; color: var(--text-muted); }

/* ---------- Location ---------- */
.location { background: var(--bg); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.location-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 12px 0 16px;
}
.location-address {
  font-size: 17px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.location-points {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.location-points li {
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 14.5px;
}
.location-points a { color: var(--green-primary); font-weight: 600; }
.location-map {
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--green-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-primary);
  color: #fff;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text small { color: rgba(255, 255, 255, .75); }
.site-footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: #fff;
}
.site-footer ul { display: grid; gap: 8px; }
.site-footer li, .site-footer a {
  color: rgba(255, 255, 255, .85);
  font-size: 14.5px;
}
.site-footer a:hover { color: #fff; }
.site-footer .muted {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  margin-top: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

/* ---------- WhatsApp Floating Button ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6),
              0 4px 12px rgba(0, 0, 0, .15);
  z-index: 100;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--whatsapp-deep); }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--whatsapp);
  animation: wa-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.5); opacity: 0;  }
}

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 460px; margin: 0 auto; }
  .hero-meta { gap: 18px; padding: 14px 18px; width: 100%; justify-content: space-between; }
  .meta-value { font-size: 15px; }
  .meta-value.price { font-size: 18px; }

  .header-nav, .header-cta { display: none; }
  .hamburger { display: inline-flex; margin-left: auto; }
  .header-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .header-nav.open a { padding: 10px 0; }

  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-grid, .location-grid, .infra-grid { grid-template-columns: 1fr; }
  .infra-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .location-map { min-height: 280px; }
}
@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 10px; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
