/* =========================================================
   Dra. Marina Costa · Nutricionista — Landing page
   Estrutura inspirada em brunaburti.com.br
   Minimalismo editorial · paleta sálvia · Fraunces + Jost + Sacramento
   Efeitos: fade-in on scroll · scale suave · underline animado
   ========================================================= */

:root {
  --sage:        #a7b0a0;
  --sage-dark:   #7c8574;
  --sage-deep:   #5f6857;   /* headings mais fortes */
  --sage-soft:   #b9c2b3;
  --sage-bg:     #eef0ea;
  --sage-bg2:    #e6e9df;
  --ink:         #4a4a46;
  --ink-soft:    #8a8a84;
  --cream:       #ffffff;
  --line:        #d8dbd3;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Jost', -apple-system, 'Segoe UI', sans-serif;
  --script:'Sacramento', cursive;

  --wrap: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--sage-deep);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.5px;
}
.italic { font-style: italic; font-weight: 400; color: var(--sage-dark); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: 3.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 400;
}
.center { text-align: center; }

.section-head { text-align: center; margin-bottom: 60px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* ---------- Efeito: fade-in + scale on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .12s; }
.reveal[data-reveal-delay="2"] { transition-delay: .24s; }

/* ---------- Efeito: underline animado ---------- */
.u-line { position: relative; }
.u-line::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.u-line:hover::after, .u-line:focus-visible::after { transform: scaleX(1); }

.link-underline {
  display: inline-block; position: relative;
  font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-dark);
  padding-bottom: 6px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--sage);
  transform: scaleX(1); transform-origin: right;
  transition: transform .4s var(--ease);
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(0); transform-origin: right; }
.link-underline::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--sage-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease) .05s;
}
.link-underline:hover::before, .link-underline:focus-visible::before { transform: scaleX(1); }
.link-underline.dark { color: var(--sage-deep); }

/* ---------- Efeito: tint sálvia nas imagens ---------- */
.tinted { position: relative; overflow: hidden; background: var(--sage-bg); }
.tinted img { filter: grayscale(18%) saturate(.9) contrast(1.02); transition: transform 1s var(--ease); }
.tinted::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(124,133,116,.28), rgba(95,104,87,.10));
  mix-blend-mode: soft-light;
}
.tinted:hover img { transform: scale(1.045); }

/* ---------- Botões ---------- */
.btn-pill {
  display: inline-block; border: 1px solid var(--sage-dark); border-radius: 40px;
  padding: 13px 28px; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage-dark); background: none; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.btn-pill:hover { background: var(--sage-dark); color: #fff; }
.btn-pill:active { transform: scale(.96); }
.btn-pill.big { padding: 17px 40px; font-size: .76rem; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 40px;
  padding: 15px 34px; font-size: .72rem; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--sage-dark);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn-outline:hover { border-color: var(--sage-dark); background: var(--sage-dark); color: #fff; }
.btn-outline:active { transform: scale(.97); }
.btn-outline.light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline.light:hover { background: #fff; color: var(--sage-deep); border-color: #fff; }

:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 3px; border-radius: 2px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--sage-soft); color: #fff; text-align: center;
  padding: 11px 16px; font-size: .68rem; letter-spacing: 2.2px; text-transform: uppercase;
  display: flex; justify-content: center; align-items: center; gap: 14px;
}

/* ---------- Navegação ---------- */
.nav {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-family: var(--script); font-size: 2.5rem; color: var(--sage-dark); line-height: 1; white-space: nowrap; }
.nav-links { display: flex; gap: 30px; font-size: .74rem; letter-spacing: 1.8px; text-transform: uppercase; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--sage-dark); display: block; transition: transform .3s var(--ease); }

/* ---------- 1. Hero editorial ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 70px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero-copy .eyebrow { display: block; margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: -2px; }
.hero-copy h1 .italic { font-size: .8em; }
.hero-lead { margin: 28px 0 36px; max-width: 40ch; font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-figure { border-radius: 2px; }
.hero-figure img { width: 100%; height: 560px; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 40px;
  background: #fff; padding: 22px 28px; box-shadow: 0 24px 50px rgba(95,104,87,.20);
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.hero-badge strong { font-family: var(--serif); font-size: 2.2rem; color: var(--sage-deep); line-height: 1; }
.hero-badge span { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 2. Estatísticas ---------- */
/* faixa verde de fora a fora (full-bleed), conteúdo centralizado por dentro */
.stats {
  width: 100%; margin: 10px 0 90px; padding: 54px 24px;
  background: linear-gradient(135deg, #e9efe2 0%, #dce6d2 100%);
  border-top: 1px solid #d2dcc7; border-bottom: 1px solid #d2dcc7;
}
.stats-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center;
}
.stat + .stat { border-left: 1px solid rgba(124,133,116,.22); }
.stat strong { font-family: var(--serif); font-size: 3rem; color: var(--sage-deep); display: block; line-height: 1; }
.stat span { font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; display: block; }

/* ---------- 3. Apresentação (foto ao lado) ---------- */
.about {
  max-width: var(--wrap); margin: 0 auto; padding: 100px 24px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center;
}
.about-photo { position: relative; }
.about-accent {
  position: absolute; top: -22px; left: -22px; width: 62%; height: 78%;
  background: var(--sage-bg2); z-index: 0;
}
.about-photo figure { position: relative; z-index: 1; }
.about-photo img { width: 100%; height: 580px; object-fit: cover; }
.about-text .eyebrow { display: block; margin-bottom: 16px; }
.about-text h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; max-width: 46ch; }
.about-text .link-underline { margin-top: 14px; }

/* ---------- 4. Especialidades ---------- */
.specialties { background: var(--sage-bg); padding: 100px 24px; }
.spec-grid {
  max-width: var(--wrap); margin: 0 auto 54px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.spec-card {
  background: #fff; padding: 44px 36px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease);
}
.spec-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 22px 48px rgba(95,104,87,.14); }
.spec-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sage); display: block; margin-bottom: 16px; }
.spec-card h3 { font-size: 1.4rem; margin-bottom: 12px; letter-spacing: -.3px; }
.spec-card p { font-size: .95rem; }

/* ---------- 5. Formação ---------- */
.formation { padding: 110px 24px; }
.formation-inner { max-width: 920px; margin: 0 auto; }
.formation-intro { max-width: 54ch; margin: 0 auto; text-align: center; }
.formation-list {
  list-style: none; max-width: 820px; margin: 48px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px;
}
.formation-list li {
  position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line);
  font-size: .95rem; transition: padding-left .3s var(--ease);
}
.formation-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 16px; color: var(--sage); font-size: .9rem;
}
.formation-list li:hover { padding-left: 40px; }

/* ---------- 6. Método (dark) ---------- */
.method {
  background: #6d7663; color: #f2f4ee;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.method-text { padding: clamp(60px, 8vw, 110px) clamp(28px, 6vw, 90px); align-self: center; }
.method-text .eyebrow { color: #cdd3c6; display: block; margin-bottom: 16px; }
.method-text h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
/* o .italic global é verde-escuro e sumia no fundo verde: força tom claro aqui */
.method-text h2 .italic { color: #f4f7ee; }
.method-sub { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #d5dacd; margin: 14px 0 24px; }
.method-text p:not(.method-sub):not(.eyebrow) { margin-bottom: 32px; max-width: 44ch; opacity: .95; }
.method-img { min-height: 480px; overflow: hidden; }
.method-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.method-img:hover img { transform: scale(1.05); }

/* ---------- 7. Depoimentos do método ---------- */
.method-testi { padding: 100px 24px; max-width: var(--wrap); margin: 0 auto; }
.mt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mt-grid blockquote {
  border: 1px solid var(--line); padding: 48px 44px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, opacity .8s var(--ease);
}
.mt-grid blockquote:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(95,104,87,.10); border-color: transparent; }
.mt-grid p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--sage-deep); line-height: 1.5; margin-bottom: 24px; }
.mt-grid cite { font-style: normal; font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 8. Além / 10. Online ---------- */
.beyond { background: var(--sage-bg); padding: 110px 24px; }
.beyond-inner, .online-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.beyond .eyebrow.center, .online .eyebrow.center { display: block; margin-bottom: 14px; }
.beyond h2, .online h2 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 22px; }
.cta-sub { margin-bottom: 34px; color: var(--ink); font-size: 1.05rem; }
.online { padding: 110px 24px; }

/* ---------- 9. Depoimentos pacientes ---------- */
.testimonials { background: var(--sage-bg); padding: 100px 24px; }
.testi-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.testi-grid blockquote {
  background: #fff; padding: 42px 36px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease);
}
.testi-grid blockquote:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 22px 48px rgba(95,104,87,.14); }
.testi-grid p { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--sage-deep); margin-bottom: 24px; line-height: 1.5; }
.testi-grid cite { font-style: normal; font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 11-12. Contato ---------- */
.contact { max-width: var(--wrap); margin: 0 auto; padding: 110px 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info .eyebrow { display: block; margin-bottom: 16px; }
.contact-info h2 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 20px; }
.contact-lead { margin-bottom: 36px; }
.contact-list { list-style: none; margin-bottom: 36px; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ci-label { font-size: .66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a { font-family: var(--serif); font-size: 1.4rem; color: var(--sage-deep); align-self: flex-start; }
.contact-address .ci-label { display: block; margin-bottom: 6px; }

.contact-form { background: var(--sage-bg); padding: 46px 42px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); background: #fff; padding: 13px 14px; border-radius: 4px; outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--sage); box-shadow: 0 0 0 3px rgba(167,176,160,.25);
}
.contact-form .btn-pill { margin-top: 10px; align-self: flex-start; }
.form-ok { display: none; color: var(--sage-deep); font-size: .92rem; margin-top: 4px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--sage-deep); color: #eef0ea; padding: 80px 24px 40px; }
.footer-cols { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; font-size: 2.6rem; }
.footer-brand p { font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; opacity: .8; }
.footer-col h4 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 18px; font-weight: 500; }
.footer-col a, .footer-col p { display: inline-block; font-size: .88rem; margin-bottom: 10px; opacity: .82; }
.footer-col p { display: block; }
.footer-col a:hover { opacity: 1; }
.footer-copy { max-width: var(--wrap); margin: 50px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); font-size: .72rem; letter-spacing: .5px; opacity: .6; text-align: center; }

/* ---------- Hero: tagline ---------- */
.hero-tagline {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--sage-dark); margin-top: 18px;
}
.hero-badge { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Barra de progresso de rolagem ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sage), var(--sage-deep));
  z-index: 1000; transition: width .1s linear;
}

/* ---------- Filosofia de vida ---------- */
.philosophy { padding: 100px 24px; }
.philosophy-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.philosophy-inner .eyebrow { display: block; margin-bottom: 26px; }
.philosophy-quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.42; color: var(--sage-deep);
}
.philosophy-sign {
  display: inline-block; margin-top: 30px; font-family: var(--script);
  font-size: 2.2rem; color: var(--sage-dark);
}

/* ---------- Especialidades: ícones ---------- */
.spec-card { position: relative; }
.spec-ic {
  display: block; width: 42px; height: 42px; color: var(--sage-dark);
  margin-bottom: 20px; transition: transform .4s var(--ease), color .4s var(--ease);
}
.spec-ic svg { width: 100%; height: 100%; }
.spec-card:hover .spec-ic { transform: translateY(-3px) scale(1.08); color: var(--sage-deep); }
.spec-num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sage);
  opacity: .5; margin: 0;
}

/* ---------- Como funciona (passo a passo) ---------- */
.how { max-width: var(--wrap); margin: 0 auto; padding: 110px 24px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.how-step {
  position: relative; text-align: center; padding: 46px 26px 40px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, opacity .8s var(--ease);
}
.how-step:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(95,104,87,.13); border-color: transparent; }
.how-ic {
  display: inline-flex; width: 46px; height: 46px; color: var(--sage-dark);
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.how-ic svg { width: 100%; height: 100%; }
.how-step:hover .how-ic { transform: translateY(-4px) scale(1.1); color: var(--sage-deep); }
.how-num {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--sage); letter-spacing: 2px; margin: 16px 0 8px;
}
.how-step h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -.3px; }
.how-step p { font-size: .93rem; }

/* ---------- Estrelinhas (avaliações) ---------- */
.stars {
  display: block; color: #d9a441; font-size: 1.05rem; letter-spacing: 3px;
  margin-bottom: 20px;
}

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.42);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(37,211,102,.55); }
.wa-float:active { transform: scale(.96); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav .btn-pill { display: none; }
  .menu-toggle { display: flex; }
  body.menu-open .nav-links {
    display: flex; position: absolute; top: 90px; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: center; gap: 20px;
    background: #fff; padding: 34px; box-shadow: 0 16px 30px rgba(0,0,0,.08);
  }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-figure img { height: 440px; }
  .hero-badge { left: 16px; }
  .about, .formation, .method, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 520px; }
  .about-photo img, .formation-img img { height: 460px; }
  .method-img { min-height: 340px; order: 2; }
  .spec-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .mt-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .stats { padding: 42px 24px; }
  .stats-inner { grid-template-columns: 1fr; gap: 34px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(124,133,116,.22); padding-top: 30px; }
  .spec-grid, .testi-grid, .footer-cols, .how-grid, .formation-list { grid-template-columns: 1fr; }
  .hero-actions { gap: 20px; }
  .about-accent { display: none; }
  .wa-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
}

/* ---------- Acessibilidade: reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tinted img, .method-img img, .spec-card, .testi-grid blockquote, .mt-grid blockquote,
  .how-step, .spec-ic, .how-ic { transition: none !important; }
  .tinted:hover img, .method-img:hover img { transform: none; }
  .hero-badge { animation: none; }
  .wa-float::before { animation: none; }
}
