/* =========================================================
   Beatriz Ferreira — Doula · folha de estilo
   ========================================================= */

:root {
    --cream:        #FBF6EF;
    --cream-deep:   #F3E9DC;
    --white:        #FFFFFF;
    --ink:          #33291F;
    --ink-soft:     #6E6055;
    --terracotta:   #C06A4D;
    --terracotta-d: #A4543A;
    --sage:         #8C9B7A;
    --blush:        #E8C9BC;

    --shadow-sm: 0 4px 14px rgba(51, 41, 31, .06);
    --shadow:    0 16px 40px rgba(51, 41, 31, .10);
    --shadow-lg: 0 30px 70px rgba(51, 41, 31, .14);

    --radius:    22px;
    --radius-lg: 34px;
    --container: 1180px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
em { font-style: italic; color: var(--terracotta); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.2rem, 5vw, 2.2rem);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt { background: var(--cream-deep); }
section[id] { scroll-margin-top: 84px; }

/* ---------- Bits compartilhados ---------- */
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.section__head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section__head--row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1.5rem; max-width: none; text-align: left;
}
.section__title { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--ink); }
.section__sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .92rem 1.7rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600; font-size: .98rem;
    transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
    will-change: transform;
}
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 12px 26px rgba(192, 106, 77, .32); }
.btn--primary:hover { background: var(--terracotta-d); transform: translateY(-3px); box-shadow: 0 18px 34px rgba(192, 106, 77, .38); }
.btn--ghost { border-color: rgba(51, 41, 31, .22); color: var(--ink); background: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-3px); }
.btn--block { width: 100%; }

.round-btn {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px solid rgba(51, 41, 31, .18);
    background: var(--white); color: var(--ink);
    font-size: 1.1rem; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.round-btn:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn:disabled:hover { background: var(--white); color: var(--ink); border-color: rgba(51,41,31,.18); }

.link-arrow { color: var(--terracotta); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Navbar ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding-block: .9rem;
    transition: background .35s, box-shadow .35s, padding .35s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: #fff; transition: color .35s; }
.nav__brand-role { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); transition: color .35s; }

.nav__menu { display: flex; align-items: center; gap: 1.9rem; }
.nav__menu a { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.92); transition: color .25s; position: relative; }
.nav__menu a:not(.nav__cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--terracotta); transition: width .25s var(--ease);
}
.nav__menu a:not(.nav__cta):hover::after, .nav__menu a.is-current::after { width: 100%; }
.nav__cta { background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.45); padding: .5rem 1.2rem; border-radius: 999px; }
.nav__cta:hover { background: #fff; color: var(--terracotta) !important; border-color: #fff; }

/* estado pós-scroll */
.nav.scrolled { background: rgba(251, 246, 239, .92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.nav.scrolled .nav__brand-name { color: var(--ink); }
.nav.scrolled .nav__brand-role { color: var(--ink-soft); }
.nav.scrolled .nav__menu a { color: var(--ink); }
.nav.scrolled .nav__cta { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.nav.scrolled .nav__cta:hover { background: var(--terracotta-d); color: #fff !important; }
.nav.scrolled .nav__toggle span { background: var(--ink); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .35s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding-top: clamp(7rem, 14vw, 10rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(160deg, var(--cream) 0%, #F6E7DD 55%, var(--cream-deep) 100%);
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; }
.hero__blob--1 { width: 380px; height: 380px; background: var(--blush); top: -90px; right: -60px; }
.hero__blob--2 { width: 320px; height: 320px; background: rgba(140, 155, 122, .35); bottom: -120px; left: -80px; }

.hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--ink); margin-bottom: 1.4rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 30rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.hero__meta span { color: var(--sage); }

.hero__media { position: relative; }
.hero__photo {
    border-radius: 46% 54% 56% 44% / 52% 46% 54% 48%;
    overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 4.4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
    position: absolute; bottom: 22px; left: -10px;
    background: var(--white); border-radius: 16px; padding: .85rem 1.2rem;
    box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.25;
}
.hero__badge strong { font-family: var(--font-display); color: var(--terracotta); font-size: 1.05rem; }
.hero__badge span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%;
    aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top center;
}
.about__media::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 2px solid var(--blush); border-radius: var(--radius-lg); z-index: -1;
}
.about__content p { color: var(--ink-soft); margin-top: 1.1rem; }
.about__list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.about__list li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.about__list li::before {
    content: "✦"; position: absolute; left: 0; top: 0; color: var(--terracotta); font-size: .9rem;
}

/* ---------- Serviços ---------- */
.services__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.service {
    background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-sm); text-align: center;
    border: 1px solid rgba(51, 41, 31, .05);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon {
    width: 96px; height: 96px; margin: 0 auto 1.3rem; border-radius: 50%;
    overflow: hidden; box-shadow: 0 8px 20px rgba(51,41,31,.12);
    border: 3px solid var(--cream);
}
.service__icon img { width: 100%; height: 100%; object-fit: cover; }
.service__title { font-size: 1.28rem; color: var(--ink); margin-bottom: .6rem; }
.service__text { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Plano (abas) ---------- */
.plan__layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.plan__tabs { display: flex; flex-direction: column; gap: .7rem; }
.plan__tab {
    display: flex; align-items: center; gap: .9rem; text-align: left;
    background: var(--white); border: 1px solid rgba(51,41,31,.08); border-radius: 16px;
    padding: 1.05rem 1.2rem; font-size: 1.02rem; font-weight: 600; color: var(--ink);
    transition: background .25s, color .25s, box-shadow .25s, transform .2s;
}
.plan__tab-num { font-family: var(--font-display); color: var(--terracotta); font-size: .9rem; opacity: .8; transition: color .25s; }
.plan__tab:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.plan__tab.is-active { background: var(--terracotta); color: #fff; box-shadow: 0 12px 26px rgba(192,106,77,.3); }
.plan__tab.is-active .plan__tab-num { color: rgba(255,255,255,.85); }

.plan__panel {
    display: grid; grid-template-columns: .8fr 1fr; gap: 2rem; align-items: center;
    background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.plan__panel[hidden] { display: none; }
.plan__panel.is-active { animation: fadeUp .5s var(--ease); }
.plan__panel-img img { border-radius: 18px; aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.plan__panel-body h3 { font-size: 1.7rem; color: var(--ink); margin-bottom: .4rem; }
.plan__panel-label { color: var(--ink-soft); font-size: .9rem; margin-bottom: .9rem; }
.plan__panel-body ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.plan__panel-body li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.plan__panel-body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------- Materiais ---------- */
.materials__nav { display: flex; gap: .6rem; flex-shrink: 0; }
.materials__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
    gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 1rem; scrollbar-width: none;
}
.materials__track::-webkit-scrollbar { display: none; }
.ebook { scroll-snap-align: start; }
.ebook__cover { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.ebook:hover .ebook__cover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ebook__cover img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ebook__title { font-family: var(--font-body); font-size: .98rem; font-weight: 600; color: var(--ink); margin-top: .9rem; }
.materials__cta { text-align: center; margin-top: 2.4rem; }

/* ---------- Depoimentos ---------- */
.testi__slider { max-width: 820px; margin: 0 auto; }
.testi__viewport { overflow: hidden; }
.testi__track { display: flex; transition: transform .55s var(--ease); }
.testi__card {
    flex: 0 0 100%; padding: clamp(2rem, 4vw, 3.2rem); text-align: center; position: relative;
}
.testi__quote { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--blush); margin-bottom: .8rem; }
.testi__card blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); line-height: 1.55; }
.testi__card figcaption { margin-top: 1.6rem; }
.testi__card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--terracotta); }
.testi__card figcaption span { font-size: .9rem; color: var(--ink-soft); }
.testi__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.5rem; }
.testi__dots { display: flex; gap: .5rem; }
.testi__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(51,41,31,.2); padding: 0; transition: background .25s, transform .25s; }
.testi__dots button.is-active { background: var(--terracotta); transform: scale(1.35); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.faq__item {
    background: var(--white); border: 1px solid rgba(51, 41, 31, .08); border-radius: 16px;
    padding: .2rem 1.5rem; box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .2s;
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary {
    list-style: none; cursor: pointer; padding: 1.15rem 0;
    font-family: var(--font-display); font-size: 1.18rem; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; flex-shrink: 0; font-size: 1.6rem; line-height: 1; color: var(--terracotta);
    transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 1.2rem; color: var(--ink-soft); }
.faq__answer p { margin-top: -.2rem; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info p { color: var(--ink-soft); margin-bottom: 1.8rem; }
.contact__channel {
    display: inline-flex; align-items: center; gap: 1rem;
    background: var(--white); border-radius: 16px; padding: 1rem 1.4rem;
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.contact__channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact__channel-icon { width: 46px; height: 46px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact__channel-text { display: flex; flex-direction: column; font-size: .95rem; color: var(--ink-soft); }
.contact__channel-text strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

.contact__social { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.contact__social a {
    display: inline-block; padding: .5rem 1.1rem; border-radius: 999px;
    border: 1.5px solid rgba(51,41,31,.16); font-size: .9rem; font-weight: 500;
    transition: background .2s, color .2s, border-color .2s;
}
.contact__social a:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

.contact__form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.form__field { margin-bottom: 1.2rem; }
.form__field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.form input, .form textarea {
    width: 100%; padding: .85rem 1rem; border: 1.5px solid rgba(51,41,31,.16); border-radius: 12px;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(192,106,77,.15); background: #fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #c0392b; }
.form__error { display: block; color: #c0392b; font-size: .82rem; margin-top: .35rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.4rem; font-size: .95rem; }
.alert--ok { background: rgba(140,155,122,.18); color: #4f5e3f; border: 1px solid rgba(140,155,122,.4); }
.alert--error { background: rgba(192,57,43,.1); color: #a23022; border: 1px solid rgba(192,57,43,.3); }
.alert a { text-decoration: underline; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: 2.6rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.footer__name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; display: block; }
.footer__role { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer__copy { font-size: .88rem; }
.footer__copy a { color: var(--blush); text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45);
    transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
        background: var(--cream); padding: 2.5rem; box-shadow: -20px 0 60px rgba(51,41,31,.18);
        transform: translateX(100%); transition: transform .4s var(--ease);
    }
    .nav__menu.open { transform: translateX(0); }
    .nav__menu a { color: var(--ink) !important; font-size: 1.1rem; }
    .nav__cta { background: var(--terracotta); color: #fff !important; border-color: var(--terracotta); }
    .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.open span:nth-child(2) { opacity: 0; }
    .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav.scrolled .nav__menu a { color: var(--ink) !important; }

    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__media { max-width: 440px; margin-inline: auto; order: -1; }
    .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about__media { max-width: 440px; }
    .about__media::before { inset: 14px -14px -14px 14px; }
    .plan__layout { grid-template-columns: 1fr; }
    .plan__tabs { flex-direction: row; flex-wrap: wrap; }
    .plan__tab { flex: 1 1 auto; }
    .plan__panel { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .section__head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .section__head { text-align: left; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .plan__tab { width: 100%; flex: 1 1 100%; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
