/* ==========================================================================
   Dra. Natália Pimentel — Pediatra | Landing Page
   ========================================================================== */

:root {
  --color-bg: #fffdfa;
  --color-cream: #fdf4e0;        /* amarelo claro — tom do urso da logo */
  --color-sage: #e8f5f7;         /* azul claro — tom das orelhinhas */
  --color-primary: #3fa6bd;      /* azul das orelhinhas — cor predominante */
  --color-primary-dark: #1d5568;
  --color-accent: #f2b93f;       /* amarelo do urso da logo */
  --color-text: #1b3a42;
  --color-text-light: #5a7d85;
  --color-white: #ffffff;
  --color-border: #e1ebec;

  --font-heading: "Fraunces", serif;
  --font-body: "Nunito Sans", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(27, 58, 66, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 58, 66, 0.10);

  --container-width: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

section[id] {
  scroll-margin-top: 148px;
}

/* Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.services__grid .reveal:nth-child(1) { transition-delay: 0s; }
.services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.testimonials__grid .reveal:nth-child(1) { transition-delay: 0s; }
.testimonials__grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.testimonials__grid .reveal:nth-child(3) { transition-delay: 0.24s; }

.faq__list .reveal:nth-child(1) { transition-delay: 0s; }
.faq__list .reveal:nth-child(2) { transition-delay: 0.08s; }
.faq__list .reveal:nth-child(3) { transition-delay: 0.16s; }
.faq__list .reveal:nth-child(4) { transition-delay: 0.24s; }

.footer__grid .reveal:nth-child(1) { transition-delay: 0s; }
.footer__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.footer__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.footer__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn--whatsapp {
  background: var(--color-primary-dark);
  color: var(--color-white);
  margin-top: 8px;
}

.btn--whatsapp:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.header.is-scrolled {
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 96px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  transition: color 0.2s ease;
}

.header.is-scrolled .nav a {
  color: var(--color-text);
}

.nav a:hover {
  color: var(--color-accent);
}

.header.is-scrolled .nav a:hover {
  color: var(--color-primary);
}

.nav__instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  transition: color 0.2s ease;
}

.header.is-scrolled .nav__instagram {
  color: var(--color-text);
}

.nav__instagram:hover {
  color: var(--color-accent);
}

.nav__cta {
  margin-left: 8px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.3s ease;
}

.header.is-scrolled .nav__toggle span {
  background: var(--color-primary-dark);
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(0.5px);
  transform: scale(1.01);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(29, 85, 104, 0.6);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 120px 24px;
}

.hero__content {
  max-width: 560px;
  text-align: center;
}

.hero__content h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  color: var(--color-white);
  margin-bottom: 14px;
  white-space: nowrap;
}

.hero__role {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.btn--pill {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 16px 34px;
}

.btn--pill:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section heading
   ========================================================================== */

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--color-text-light);
}

.section-heading--light .eyebrow,
.section-heading--light h2,
.section-heading--light p {
  color: var(--color-white);
}

.section-heading--light .eyebrow {
  color: var(--color-accent);
}

/* About
   ========================================================================== */

.about {
  padding: 96px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.about__content p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.about__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--color-text);
}

.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

/* Instagram
   ========================================================================== */

.instagram {
  padding: 96px 0;
  background: var(--color-bg);
}

.instagram__heading {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.instagram__heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.instagram__heading p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.btn--instagram {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn--instagram:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.instagram__chevron {
  display: block;
  margin: 0 auto 32px;
  color: var(--color-accent);
}

.instagram [class^="elfsight-app-"] {
  max-width: 960px;
  margin: 0 auto;
  min-height: 200px;
  padding: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

/* Services
   ========================================================================== */

.services {
  padding: 96px 0;
  background: var(--color-sage);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-primary);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Testimonials
   ========================================================================== */

.testimonials {
  padding: 96px 0;
  background: var(--color-primary-dark);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--color-white);
}

.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.testimonial footer {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* FAQ
   ========================================================================== */

.faq {
  padding: 96px 0;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-left: 16px;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin-top: 14px;
  color: var(--color-text-light);
}

/* Contact
   ========================================================================== */

.contact {
  padding: 96px 0;
  background: var(--color-sage);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact__info h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin: 8px 0 16px;
}

.contact__info p {
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact__details strong {
  color: var(--color-primary-dark);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 420px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer
   ========================================================================== */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer__address {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.footer__address:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.logo--footer {
  margin-bottom: 24px;
  margin-left: -12px;
}

.logo--footer img {
  height: 88px;
}

.footer__label {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 12px !important;
}

.footer__label--spaced {
  margin-top: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer__phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.9rem;
  font-weight: 600;
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 24px;
}

/* Botão flutuante do WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
}

/* Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .about__media {
    order: -1;
  }

  .services__grid,
  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav a,
  .header.is-scrolled .nav a {
    color: var(--color-text);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__cta,
  .nav__instagram {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__inner {
    padding: 100px 20px;
  }
}

@media (max-width: 768px) {
  .about,
  .services,
  .testimonials,
  .faq,
  .contact {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  .services__grid {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero__inner {
    padding: 90px 20px;
  }

  .services__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .instagram {
    padding: 64px 0;
  }

  .about__inner,
  .contact__inner {
    gap: 40px;
  }

  .contact__map {
    height: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer__col--brand {
    grid-column: auto;
  }

  .footer__copy {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 13px 22px;
    font-size: 0.9rem;
  }

  .hero__inner {
    padding: 110px 18px 56px;
  }

  .hero__role {
    margin-bottom: 28px;
  }

  .btn--pill {
    display: block;
    text-align: center;
  }

  .card {
    padding: 28px 22px;
  }

  .testimonial {
    padding: 26px 22px;
  }

  .contact__map {
    height: 260px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }

  .footer__label {
    font-size: 0.75rem;
  }
}
