/* ═══════════════════════════════════════════════════════════
   Dra. Niély Brazão — pediatra
   Sistema visual lido das artes publicadas no @dranielypediatra:
   creme + rabiscos de linha, serifa itálica de alto contraste
   (Playfair) com peso misto na palavra em destaque, assinatura
   manuscrita com o coração aberto, e a paleta do consultório —
   coral do coração da parede, o azul dela na tinta dos textos,
   e as estrelas amarelas sobre o escuro.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* papel */
  --paper:      #F5F1EA;
  --paper-2:    #FBF8F3;
  --paper-3:    #EDE7DC;

  /* tinta: o azul da parede do consultório (#3187BE, h≈203), levado ao escuro */
  --ink:        #12354F;
  --ink-2:      #33566F;
  --ink-3:      #4A6B84;

  /* acentos do consultório */
  --coral:      #D9525C;
  --coral-deep: #A03640;   /* o mesmo coração em sombra — para texto pequeno */
  --coral-lt:   #F0787E;
  --rose:       #F25C79;
  --sky:        #3F9BD4;
  --sky-deep:   #2A6F9E;
  --turq:       #3FB8C4;
  --peach:      #F9C8A0;
  --star:       #F0B93F;
  --wa:         #128C3E;
  --wa-lt:      #25D366;

  --shell:      min(1240px, 100% - 3rem);
  --r:          22px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.075rem)/1.7 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ── tipografia ── */
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 700; color: var(--coral); }

h1.display { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem); }
h2.display { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); }

.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--sky-deep);
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--coral);
  display: inline-block; flex: none;
}
.lede { font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }
.sec__sub { color: var(--ink-3); max-width: 52ch; }

/* ── rabiscos de fundo (preenchidos pelo motion.js) ── */
.doodles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden; color: var(--ink);
}
.doodles svg { position: absolute; overflow: visible; }
.doodles use {
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: .07;
}
.doodles--soft use { opacity: .05; }

/* ════════ BOTÕES ════════ */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  padding: .85rem 1.5rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn .i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(18,53,79,.5); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: .86rem; }
.btn--wide { width: 100%; }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover { --bg: #0f7734; }
.btn--ink { --bg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(18,53,79,.28); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ════════ NAV ════════ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1.1rem 0;
  transition: padding .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__in {
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo img { width: clamp(130px, 13vw, 178px); transition: width .4s var(--ease); }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-size: .74rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding-block: .3rem;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }

.nav.is-stuck {
  padding: .55rem 0;
  background: rgba(251,248,243,.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(18,53,79,.08), 0 14px 34px -26px rgba(18,53,79,.5);
}
.nav.is-stuck .nav__logo img { width: clamp(112px, 10vw, 140px); }

.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-mob {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper-2);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 5rem 2rem 3rem;
}
.menu-mob[hidden] { display: none; }
.menu-mob nav { display: flex; flex-direction: column; gap: 1.1rem; }
.menu-mob nav a {
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 2rem; line-height: 1.1;
}

@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
}

/* ════════ HERO ════════ */
.hero { position: relative; padding: clamp(7.5rem, 14vh, 10rem) 0 clamp(3rem, 7vh, 6rem); overflow: hidden; }
.hero__in {
  position: relative; z-index: 1;
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }
.hero__title { margin-block: .2rem; }
.hero__meta { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero__meta strong { color: var(--coral-deep); font-weight: 600; }
.hero__meta .sep { opacity: .4; margin-inline: .25rem; }

.hero__media { position: relative; }

/* moldura em arco — o formato macio das artes dela */
.hero__frame, .arch {
  position: relative; overflow: hidden;
  border-radius: 50% 50% var(--r) var(--r) / 34% 34% var(--r) var(--r);
  background: var(--paper-3);
}
.hero__frame img, .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame img {
  transform: scale(1.12);
  transform-origin: 55% 35%;
}
.hero__frame { aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -50px rgba(18,53,79,.65); }

/* o coração do logótipo, desenhado a traço por cima da foto */
.heart-draw {
  position: absolute; z-index: 2; pointer-events: none;
  width: 108%; left: -35%; top: -3%;
  transform: scale(1.04);
  transform-origin: center center;
  overflow: visible;
}
.heart-draw__p {
  fill: none; stroke: var(--coral); stroke-width: 3.1;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .88;
}
.js .heart-draw__p { stroke-dasharray: 1400; stroke-dashoffset: 1400; }

.badge {
  position: absolute; z-index: 3; right: -.4rem; bottom: 1.6rem;
  background: var(--paper-2); color: var(--ink);
  border-radius: 999px; padding: .95rem 1.5rem;
  display: flex; align-items: center; gap: .8rem;
  box-shadow: 0 20px 44px -22px rgba(18,53,79,.55);
}
.badge__n { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--coral); }
.badge__t { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; color: var(--ink-2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 2; width: 34px; color: var(--coral); opacity: .55;
}
.scroll-cue svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }

@media (max-width: 900px) {
  .hero { padding-top: 6.5rem; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  /* em coluna a foto estreita: o coração contorna a lateral sem encobrir o rosto */
  .heart-draw { width: 124%; left: -34%; top: -6%; transform: none; }
  .badge { right: 0; bottom: .6rem; padding: .75rem 1.2rem; }
  .badge__n { font-size: 2.1rem; }
  .scroll-cue { display: none; }
}

/* ════════ FAIXA DE CONFIANÇA ════════ */
.trust { background: var(--ink); color: var(--paper); padding: clamp(2.2rem, 5vw, 3.2rem) 0; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust__item { display: flex; flex-direction: column; gap: .45rem; align-items: center; }
.trust__n {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem); line-height: 1; color: var(--star);
}
.trust__n i { font-style: normal; }
.trust__l { font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,241,234,.66); line-height: 1.5; }
@media (max-width: 700px) { .trust__in { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ════════ SEÇÕES ════════ */
.sec { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; overflow: hidden; }
.sec--cuidados { background: var(--paper-2); }
.sec--passos   { background: var(--paper-2); }
.sec--contato  { background: var(--paper-3); }

.sec__head { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.sec__head--c { align-items: center; text-align: center; margin-inline: auto; }
.sec__head--c .eyebrow { justify-content: center; }

.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__text { order: -1; }
.split__text { display: flex; flex-direction: column; gap: 1.15rem; align-items: flex-start; }
.split__text p { color: var(--ink-2); max-width: 50ch; }
.split__text h2 { margin-block: .2rem .3rem; }
.split__text .btn, .split__text .cta-row { margin-top: .8rem; }

.split__media { position: relative; }
.arch { aspect-ratio: 4 / 5; box-shadow: 0 36px 70px -46px rgba(18,53,79,.6); }
/* a foto da sala é apaisada: forçá-la a 4/5 cortava tudo menos o tronco */
.arch--wide { aspect-ratio: 1 / 1; }
.arch--wide img { object-position: center 42%; }

/* ficha do consultório */
.facts { display: flex; flex-direction: column; gap: 1.1rem; margin-top: .4rem; }
.facts > div { display: flex; flex-direction: column; gap: .3rem; }
.facts dt {
  font-size: .66rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--coral-deep);
}
.facts dd { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

.stamp {
  position: absolute; left: -1.4rem; top: -1.4rem; width: clamp(64px, 9vw, 96px);
  color: var(--coral); z-index: 2;
}
.stamp svg { width: 100%; fill: var(--paper); stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }

.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.ticks svg { width: 19px; flex: none; margin-top: .28rem; fill: none; stroke: var(--coral); stroke-width: 2.6; stroke-linejoin: round; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__text { order: 0; }
  .split__media { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ════════ CARTÕES DE CUIDADO ════════ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; position: relative; z-index: 1; }
.card {
  background: var(--paper); border: 1px solid rgba(18,53,79,.07);
  border-radius: var(--r); padding: 1.7rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 26px 50px -30px rgba(18,53,79,.5); }
.card__i {
  width: 40px; height: 40px; margin-bottom: .3rem;
  fill: none; stroke: var(--coral); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.card:nth-child(4n+2) .card__i { stroke: var(--sky); }
.card:nth-child(4n+3) .card__i { stroke: var(--turq); }
.card:nth-child(4n+4) .card__i { stroke: var(--star); }
.card h3 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.32rem; line-height: 1.2; }
.card p { font-size: .93rem; line-height: 1.62; color: var(--ink-3); }

/* ════════ FAIXA DE CTA ════════ */
.cta-band {
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.2rem 2rem; text-align: center;
  position: relative; z-index: 1;
}
.cta-band p { color: var(--ink-2); }
.cta-band--solid {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r); padding: clamp(2.2rem, 5vw, 3.2rem) 1.8rem;
  flex-direction: column; gap: 1.4rem;
}
.cta-band--solid p.display { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); color: var(--paper); }
.cta-band--solid .btn--wa { --bg: var(--wa-lt); --fg: #062b13; }
.cta-band--solid .btn--wa:hover { --bg: #4ce183; }

/* ════════ CITAÇÃO EM SANGRIA ════════ */
.quote { position: relative; min-height: clamp(420px, 62vh, 620px); display: grid; place-items: center; isolation: isolate; }
.quote__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.quote::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,53,79,.18) 0%, rgba(18,53,79,.58) 62%, rgba(18,53,79,.74) 100%);
}
.quote__text { width: var(--shell); max-width: 44rem; text-align: center; color: #fff; padding-block: 4rem; }
.quote__text p { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.8rem); text-shadow: 0 2px 30px rgba(18,53,79,.4); }
.quote__text em { color: var(--star); }
.quote__text cite {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

/* ════════ PASSOS ════════ */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.step { display: flex; flex-direction: column; gap: .55rem; padding-top: 1.4rem; border-top: 1.5px solid rgba(18,53,79,.14); }
.step__n { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--coral); line-height: 1; }
.step h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: .93rem; color: var(--ink-3); line-height: 1.62; }

/* ════════ CONVÊNIO ════════ */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.panel {
  background: var(--paper-2); border: 1px solid rgba(18,53,79,.08);
  border-radius: var(--r); padding: clamp(1.8rem, 3.4vw, 2.6rem);
  display: flex; flex-direction: column; gap: .85rem; align-items: flex-start;
}
.panel__tag { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--coral-deep); }
.panel h3 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.1; }
.panel p { color: var(--ink-2); font-size: .96rem; }
.panel .btn { margin-top: .6rem; }

/* Depois de `.panel p`, não antes: `.panel--unimed p` tem a mesma
   especificidade, por isso quem vier por último é que ganha — e a versão
   escura precisa de texto claro sobre o azul. */
.panel--unimed { background: var(--ink); color: var(--paper); border-color: transparent; }
.panel--unimed .panel__tag { color: var(--star); }
.panel--unimed p { color: rgba(245,241,234,.88); }
.panel--unimed .btn--ink { --bg: var(--star); --fg: var(--ink); }
.panel--unimed .btn--ink:hover { --bg: #ffd06a; }
.pays { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pays li {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(18,53,79,.06); color: var(--ink-2);
}

/* ════════ FAQ ════════ */
.faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq .sec__head { margin-bottom: 0; position: sticky; top: 6rem; }
.faq__list { display: flex; flex-direction: column; }
.faq details { border-top: 1.5px solid rgba(18,53,79,.13); }
.faq details:last-child { border-bottom: 1.5px solid rgba(18,53,79,.13); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.25rem 2.4rem 1.25rem 0; position: relative;
  font-size: 1.02rem; font-weight: 500; line-height: 1.45;
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--coral-deep); }
.faq summary::after {
  content: ''; position: absolute; right: .4rem; top: 1.75rem;
  width: 13px; height: 13px;
  border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral);
  transform: rotate(45deg); transform-origin: 70% 70%;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2.4rem 1.4rem 0; color: var(--ink-3); font-size: .95rem; line-height: 1.68; max-width: 58ch; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq .sec__head { position: static; }
}

/* ════════ CONTATO ════════ */
.contato { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contato__text { display: flex; flex-direction: column; gap: 1.15rem; align-items: flex-start; }
.contato__text p { color: var(--ink-2); max-width: 44ch; }
.contato__links { display: flex; flex-direction: column; gap: .6rem; width: 100%; margin-top: .8rem; }
.link-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper-2); border: 1px solid rgba(18,53,79,.08);
  border-radius: 16px; padding: 1rem 1.2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.link-row:hover { transform: translateX(4px); box-shadow: 0 16px 32px -22px rgba(18,53,79,.5); }
.link-row .i { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-row--wa .i { stroke: var(--wa); }
.link-row span { display: flex; flex-direction: column; line-height: 1.35; font-size: .92rem; color: var(--ink-2); }
.link-row strong { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.contato__map { border-radius: var(--r); overflow: hidden; box-shadow: 0 34px 66px -44px rgba(18,53,79,.6); background: var(--paper-3); }
.contato__map iframe { width: 100%; height: clamp(340px, 46vh, 470px); border: 0; filter: saturate(.82) contrast(1.02); }
@media (max-width: 900px) { .contato { grid-template-columns: 1fr; } }

/* ════════ RODAPÉ ════════ */
.foot { background: var(--ink); color: rgba(245,241,234,.72); padding: clamp(3.2rem, 7vw, 5rem) 0 5.5rem; text-align: center; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.foot__logo { width: clamp(190px, 22vw, 250px); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; }
.foot__nav a { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: color .3s var(--ease); }
.foot__nav a:hover { color: var(--star); }
.foot__meta { font-size: .78rem; line-height: 1.75; letter-spacing: .02em; }
.foot__fine { font-size: .7rem; line-height: 1.7; color: rgba(245,241,234,.45); max-width: 46rem; }
.foot__cred { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,241,234,.4); }

/* ════════ CTA FLUTUANTE ════════ */
.wa-float {
  position: fixed; z-index: 90;
  right: 1.2rem;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--wa-lt); color: #062b13;
  padding: .95rem 1.35rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 16px 36px -14px rgba(18,140,62,.75);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-float__mais { display: none; }   /* só na pílula larga do telemóvel */
.wa-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 701px) {
  .wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 44px -14px rgba(18,140,62,.8); }
}

/* No telemóvel a bolha redonda tapava texto (apanhava o "médica cooperada" da
   faixa) e ficava sem rótulo. Aqui é a única chamada permanente — o CTA do
   navbar desaparece abaixo dos 1000px — por isso passa a pílula à largura
   toda, com o nome e acima da barra de gestos do iPhone. */
@media (max-width: 700px) {
  .wa-float {
    left: 1rem; right: 1rem;
    bottom: calc(.9rem + env(safe-area-inset-bottom, 0px));
    padding: 1.05rem 1.3rem;
    font-size: .82rem;
    box-shadow: 0 -6px 24px -8px rgba(18,53,79,.18),
                0 14px 30px -12px rgba(18,140,62,.7);
  }
  .wa-float__mais { display: inline; }
  /* a folga do rodapé é a da pílula, não a da bolha */
  .foot { padding-bottom: 7rem; }
}

/* Enquanto o CTA do herói está em ecrã não faz sentido mostrar o mesmo botão
   verde outra vez em baixo — entra só depois de o utilizador passar por ele.
   Sem JavaScript fica sempre visível, que é o comportamento seguro. */
.wa-float { transition: transform .4s var(--ease), opacity .3s var(--ease), box-shadow .35s var(--ease); }
.js .wa-float { opacity: 0; transform: translateY(150%); pointer-events: none; }
.js .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ════════ ESTADOS INICIAIS DE ANIMAÇÃO ════════
   Só sob html.js — sem JavaScript o site fica visível na mesma. */
.js .hero .eyebrow,
.js .hero .lede,
.js .hero .cta-row,
.js .hero__meta,
.js .badge,
.js .scroll-cue { opacity: 0; }
.js .hero__title { opacity: 0; }
.js .hero__frame { clip-path: inset(0 0 100% 0); }
.js .reveal > * { opacity: 0; }

/* prefers-reduced-motion: o motion.js marca .anim-off e sai de cena */
.anim-off .hero .eyebrow,
.anim-off .hero .lede,
.anim-off .hero .cta-row,
.anim-off .hero__meta,
.anim-off .hero__title,
.anim-off .badge,
.anim-off .scroll-cue,
.anim-off .reveal > * { opacity: 1 !important; transform: none !important; }
.anim-off .hero__frame { clip-path: none !important; }
.anim-off .heart-draw__p { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
