/* ================================================================
   DOM PEDIATRIA — Dra. Maria Lise
   style.css — Mobile-first. Responsivos logo abaixo de cada seção.
   ================================================================ */


/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* GSAP ScrollSmoother controla o scroll */
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #778274;
  color: #F5F0E8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}


/* ================================================================
   TIPOGRAFIA GLOBAL
   Os tamanhos e pesos de cada nível são definidos aqui, uma vez.
   Personalização por seção só quando cor ou exceção específica.
   ================================================================ */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #F5F0E8;
}

h2 {
  font-size: 20px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  h2 { font-size: 40px; }
}

h3 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 0.5rem;
}

p {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 400;
}

blockquote {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-style: italic;
  font-weight: 400;
  quotes: none;
}


/* ================================================================
   CONTAINER
   ================================================================ */
.container {
  width: 90%;
  max-width: 1100px;
  margin-inline: auto;
}


/* ================================================================
   BOTÕES
   ================================================================ */
.btn {
  display: inline-block;
  background-color: #88AF7F;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 1em 2.6em;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background-color 0.3s ease;
  animation: btn-float 2.8s ease-in-out infinite;
}

.btn:hover {
  background-color: #70996A;
  animation-play-state: paused;
}

@keyframes btn-float {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-5px) rotate(-0.5deg); }
  50%  { transform: translateY(-3px) rotate(0deg); }
  75%  { transform: translateY(-6px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}


/* ================================================================
   SEÇÃO 1 — HERO / BANNER PRINCIPAL
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
  }
}


/* Layer da imagem de fundo — separado para o parallax do GSAP.
   Mobile: hero-mobile.webp | Desktop: hero-desktop.webp
   As imagens já têm overlay/gradiente incorporado — sem overlay extra. */
.hero-bg {
  position: absolute;
  inset: -20% 0;
  background-image: url('images/hero-mobile.webp');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero-bg {
    background-image: url('images/hero-desktop.webp');
  }
}

.conteudo {
  position: relative;
  z-index: 2;
  padding: 40px 0px;
  max-width: 680px;
}

.hero-logo {
  display: block;
  width: 120px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-logo {
    width: 160px;
  }
}

.hero-quote {
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: #F5F0E8;
  margin-bottom: 1.25rem;
}

/* Destaque na citação — a Dra. não usou negrito, mas podemos marcar "perdida" */
.hero-quote strong {
  color: #B6956A;
}

.hero-sub {
  color: rgba(245, 240, 232, 0.88);
  margin-bottom: 2.5rem;
}

/* Hero — responsivo desktop */
@media (min-width: 768px) {
  .conteudo {
    padding-block: 8rem 5rem;
    max-width: 550px;
  }
}


/* ================================================================
   SEÇÃO 2 — EXPECTATIVAS DA CONSULTA
   ================================================================ */
.expect {
  padding-block: 5rem;
  background-color: #6A7468;
  text-align: center;
}

.expect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.expect-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  /* Verde um tom mais claro que o fundo para diferenciar sem contraste brusco */
  background-color: #8A9686;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
}

.expect-card svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #F5F0E8;
  opacity: 0.85;
}

.expect-card p {
  color: #F5F0E8;
  font-size: clamp(0.88rem, 2.4vw, 0.97rem);
  line-height: 1.5;
  margin: 0;
}

/* Expect — responsivo desktop */
@media (min-width: 640px) {
  .expect-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 5º card centralizado na última linha */
  .expect-card--center {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .expect {
    padding-block: 7rem;
  }
}


/* ================================================================
   SEÇÃO 3 — DÚVIDAS COMUNS (cobra tracejada)
   ================================================================ */

.doubts {
  padding-block: 5rem;
  background-color: #B6956A;
}

.doubts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.doubts-list li {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.doubts-answer {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .doubts {
    padding-block: 7rem;
  }

  .doubts-list {
    max-width: 700px;
    gap: 1.5rem;
  }

  .doubts-answer {
    max-width: 700px;
  }
}


/* ================================================================
   SEÇÃO 4 — SOBRE A DRA. MARIA LISE
   ================================================================ */
.about {
  padding-block: 5rem;
  background-color: #778274;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-photo {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: #8F9A8B; /* placeholder caso a imagem não carregue */
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-text p {
  margin-bottom: 1rem;
  color: rgba(245, 240, 232, 0.9);
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

/* About — responsivo desktop */
@media (min-width: 900px) {
  .about {
    padding-block: 8rem;
  }

  .about-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }

  .about-photo {
    flex: 0 0 380px;
    max-width: 380px;
    position: sticky;
    top: 5rem;
    margin-inline: 0;
  }

  .about-text {
    flex: 1;
  }
}


/* ================================================================
   SEÇÃO 5 — PÚBLICO-ALVO
   ================================================================ */
.audience {
  padding-block: 5rem;
  background-color: #6A7468;
}

.audience h2 {
  margin-bottom: 2rem;
}

.audience-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.audience-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255,255,255,0.1);
}

/* Imagem quadrada full-bleed no topo do card */
.card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: rgba(255,255,255,0.08); /* placeholder enquanto a imagem não carrega */
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Conteúdo do card */
.card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.audience-card h3 {
  color: #F5F0E8;
  margin-bottom: 0.5rem;
}

.audience-card p {
  color: rgba(245, 240, 232, 0.78);
  font-size: 0.95rem;
}

/* Audience — responsivo desktop */
@media (min-width: 768px) {
  .audience {
    padding-block: 7rem;
  }

  .audience-grid {
    flex-direction: row;
    gap: 1.5rem;
  }

  .audience-card {
    flex: 1;
  }
}


/* ================================================================
   SEÇÃO 6 — CHAMADA FINAL (CTA)
   ================================================================ */
.cta {
  padding-block: 5rem;
  background-color: #778274;
  /* Descomente para imagem de fundo: */
  /* background-image: url('images/cta-bg.jpg');
     background-size: cover;
     background-position: center; */
  text-align: center;
  position: relative;
}

.cta h2 {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.cta-sub {
  color: rgba(245, 240, 232, 0.75);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* CTA — responsivo desktop */
@media (min-width: 768px) {
  .cta {
    padding-block: 8rem;
  }
}


/* ================================================================
   SEÇÃO 7 — DEPOIMENTOS
   ================================================================ */
.testimonials {
  padding-block: 5rem;
  background-color: #6A7468;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 2.5rem;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.testimonial-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem;
  left: 1.25rem;
  font-size: 4rem;
  color: #B6956A;
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  color: rgba(245, 240, 232, 0.88);
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: #B6956A;
  font-style: normal;
}

/* Testimonials — responsivo desktop */
@media (min-width: 768px) {
  .testimonials {
    padding-block: 7rem;
  }

  .testimonials-grid {
    flex-direction: row;
    gap: 1.5rem;
  }

  .testimonial-card {
    flex: 1;
  }
}


/* ================================================================
   SEÇÃO 8 — FOOTER
   ================================================================ */
.footer {
  padding-block: 4rem 2rem;
  background-color: #4A5248;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 1rem;
  /* Se a logo não carregar, a ausência é discreta */
}

.footer-brand p {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.9rem;
  max-width: 340px;
}

.footer-contact h3 {
  color: #B6956A;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-contact address p {
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  display: block;
  color: #B6956A;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #F5F0E8;
}

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

/* Footer — responsivo desktop */
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}


/* Estados iniciais de animação são definidos pelo GSAP via gsap.set() e gsap.from(),
   não por CSS — assim o conteúdo é sempre visível mesmo se o JS falhar. */
