/* =========================================================
   FONO MATER — folha de estilo do site
   Paleta oficial da marca (sheet de identidade + logotipo):
   sage #A0AF89 · blush #FDCDC9 · rosa #DF9FA2 · tijolo #C0524F
   carvão #4A4A4A · off-white #F1F1F1
   ========================================================= */

:root {
  --ground: #F7F4EE;
  --surface: #FFFFFF;
  --surface-2: #FBF8F2;
  --ink: #38382F;
  --ink-soft: #6A6A5E;
  --ink-faint: #96958A;

  --brand: #6F8150;          /* sage deepened p/ texto e traços */
  --brand-bright: #A0AF89;   /* sage do logo — preenchimentos */
  --brand-tint: #E9EEDD;
  --brand-tint-2: #F0F3E7;

  --accent: #C0524F;         /* tijolo — CTA */
  --accent-deep: #A2413F;
  --accent-tint: #F6E4E1;

  --rose: #D98F93;           /* rosa — lado gestantes */
  --rose-tint: #F9E7E6;
  --blush: #FDCDC9;
  --blush-tint: #FCEAE6;

  --border: #E6DFD1;
  --border-strong: #D6CCB8;

  --ok: #4F7A4C;
  --ok-tint: #E4EFE0;
  --warn-tint: #F3EAD9;

  --shadow-sm: 0 1px 2px rgba(56,56,47,.05), 0 4px 12px -6px rgba(56,56,47,.10);
  --shadow-md: 0 2px 6px rgba(56,56,47,.06), 0 18px 40px -20px rgba(56,56,47,.22);

  --radius: 14px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #201F1B;
    --surface: #29281F;
    --surface-2: #242319;
    --ink: #EFEBDF;
    --ink-soft: #B4AF9E;
    --ink-faint: #8A8676;

    --brand: #AEC08C;
    --brand-bright: #97A87E;
    --brand-tint: #2E3323;
    --brand-tint-2: #2A2F20;

    --accent: #E39490;
    --accent-deep: #EEA9A5;
    --accent-tint: #3A2724;

    --rose: #DF9FA2;
    --rose-tint: #382828;
    --blush: #E0A6A0;
    --blush-tint: #332624;

    --border: #3D3B31;
    --border-strong: #4C4A3D;

    --ok: #9BC492;
    --ok-tint: #26301F;
    --warn-tint: #322B1D;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 6px 16px -8px rgba(0,0,0,.5);
    --shadow-md: 0 2px 8px rgba(0,0,0,.3), 0 24px 50px -24px rgba(0,0,0,.65);
  }
}

:root[data-theme="dark"] {
  --ground: #201F1B;
  --surface: #29281F;
  --surface-2: #242319;
  --ink: #EFEBDF;
  --ink-soft: #B4AF9E;
  --ink-faint: #8A8676;
  --brand: #AEC08C;
  --brand-bright: #97A87E;
  --brand-tint: #2E3323;
  --brand-tint-2: #2A2F20;
  --accent: #E39490;
  --accent-deep: #EEA9A5;
  --accent-tint: #3A2724;
  --rose: #DF9FA2;
  --rose-tint: #382828;
  --blush: #E0A6A0;
  --blush-tint: #332624;
  --border: #3D3B31;
  --border-strong: #4C4A3D;
  --ok: #9BC492;
  --ok-tint: #26301F;
  --warn-tint: #322B1D;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 6px 16px -8px rgba(0,0,0,.5);
  --shadow-md: 0 2px 8px rgba(0,0,0,.3), 0 24px 50px -24px rgba(0,0,0,.65);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
strong { font-weight: 700; color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 550; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 6vw, 3.9rem); font-weight: 560; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
p { max-width: 65ch; }

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

/* ---------- layout helpers ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 108px); }
.section--tint { background: var(--surface-2); }
.section--brand { background: var(--brand-tint-2); }
.section--rose { background: var(--rose-tint); }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-bright); border-radius: 2px; }
.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.08rem, 2.1vw, 1.26rem); color: var(--ink-soft); }

/* squiggle underline motif (echo do traço do logotipo) */
.uwave { position: relative; display: inline; }
.uwave::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.32em; height: .32em;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 22 -2, 42 12, 62 6 S 102 -2, 118 6' fill='none' stroke='%23A0AF89' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: .9;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem;
  letter-spacing: .02em; line-height: 1.1;
  padding: .95em 1.6em;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { --btn-bg: transparent; background: var(--surface); border-color: var(--brand); color: var(--ink); }
.btn--brand { --btn-bg: var(--brand); }
.btn--brand:hover { background: var(--brand); border-color: var(--brand); filter: brightness(.93); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.btn--ghost),
  :root:not([data-theme="light"]) .btn:not(.btn--ghost):hover { color: #33211f; }
}
:root[data-theme="dark"] .btn:not(.btn--ghost),
:root[data-theme="dark"] .btn:not(.btn--ghost):hover { color: #33211f; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.brand-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-link img { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  text-decoration: none; padding: 6px 2px; position: relative; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-bright); border-radius: 2px;
}
.nav a.btn { color: var(--ink); }
.nav a.btn::after { display: none; }
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1.5px solid var(--border-strong); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 69px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px var(--pad) 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .5em; }
.hero .tagline { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--brand); font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.hero .lead { margin: 1.1em 0 1.6em; }

.portrait-frame { position: relative; justify-self: center; width: min(420px, 82vw); }
.portrait-frame::before {
  content: ""; position: absolute; inset: -7% -9% auto -9%; height: 78%;
  background: var(--blush); border-radius: 46% 54% 60% 40% / 55% 48% 52% 45%;
  z-index: 0;
}
.portrait-frame::after {
  content: ""; position: absolute; right: -6%; bottom: 6%; width: 46%; aspect-ratio: 1;
  background: var(--brand-bright); border-radius: 50%; opacity: .35; z-index: 0;
}
.portrait-frame img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 220px 220px 20px 20px;
  border: 6px solid var(--surface); box-shadow: var(--shadow-md);
}

/* ---------- credential badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.badges li {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: .5em .9em; border-radius: 999px;
}
.badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); flex-shrink: 0; }
.badges--lg li { font-size: .9rem; padding: .6em 1.05em; }

/* ---------- generic cards ---------- */
.grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .7rem;
}
.card h3 { margin-bottom: .1rem; }
.card .card__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: .4rem;
}
.card .card__ico svg { width: 24px; height: 24px; }

/* bifurcation cards */
.fork { display: grid; gap: clamp(18px, 3vw, 26px); }
@media (min-width: 760px) { .fork { grid-template-columns: 1fr 1fr; } }
.fork__card {
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: .8rem;
  box-shadow: var(--shadow-sm);
}
.fork__card--gest { background: var(--blush-tint); border-color: color-mix(in srgb, var(--rose) 40%, var(--border)); }
.fork__card--prof { background: var(--brand-tint-2); border-color: color-mix(in srgb, var(--brand-bright) 45%, var(--border)); }
.fork__card h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.fork__card p { flex-grow: 1; color: var(--ink-soft); }
.fork__tag { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- course cards ---------- */
.course {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.course__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.course h3 { margin-top: .2rem; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-soft); }
.course__meta span { display: inline-flex; align-items: center; gap: .45em; }
.course__meta svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.course__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 550; }
.course__price small { font-family: var(--font-body); font-size: .82rem; color: var(--ink-faint); font-weight: 600; }
.course ul { padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; }
.course ul li::marker { color: var(--brand-bright); }
.course .btn { margin-top: auto; align-self: flex-start; }

.pill {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: .34em .7em; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.pill--open { background: var(--ok-tint); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.pill--soon { background: var(--warn-tint); color: #8a6d2f; border-color: #d8c39a; }
.pill--wait { background: var(--surface-2); color: var(--ink-soft); border-color: var(--border-strong); }
.pill--new  { background: var(--accent-tint); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
:root[data-theme="dark"] .pill--soon, :root:not([data-theme="light"]) .pill--soon { color: #dcc08a; }

/* ---------- calendar table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.cal { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--surface); }
table.cal th, table.cal td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cal thead th {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 800; background: var(--surface-2);
}
table.cal tbody tr:last-child td { border-bottom: none; }
table.cal .c-date { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
table.cal tr.is-open { background: color-mix(in srgb, var(--ok-tint) 55%, transparent); }

/* ---------- authority strip ---------- */
.authority { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 820px) { .authority { grid-template-columns: 300px 1fr; } }
.authority__img { position: relative; }
.authority__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 180px 180px 18px 18px; border: 5px solid var(--surface); box-shadow: var(--shadow-md); }
.authority__img::before { content: ""; position: absolute; inset: auto -8% -6% 8%; height: 60%; background: var(--brand-bright); opacity: .3; border-radius: 50% 50% 46% 54%; z-index: -1; }

/* ---------- steps / list ---------- */
.ticks { list-style: none; padding: 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; }
.ticks li::before {
  content: ""; margin-top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F8150' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand); line-height: 1; font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details > p { padding: 14px 0 18px; color: var(--ink-soft); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 10px;
  padding: .8em .9em;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.form .check { display: flex; gap: .6em; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.form .check input { width: auto; margin-top: .25em; }

/* ---------- contact rows ---------- */
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list a { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; text-decoration: none; color: var(--ink); }
.contact-list svg { width: 20px; height: 20px; color: var(--brand); }

/* ---------- callout ---------- */
.callout {
  border-left: 4px solid var(--brand-bright);
  background: var(--surface); border-radius: 0 12px 12px 0;
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.callout--rose { border-left-color: var(--rose); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-tint-2); border-top: 1px solid var(--border); padding-block: clamp(48px, 7vw, 76px); }
.site-footer .container { display: grid; gap: 36px; }
@media (min-width: 720px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 42px; width: auto; margin-bottom: 14px; }
.site-footer .f-tag { font-family: var(--font-display); font-style: italic; color: var(--brand); max-width: 34ch; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer a:hover { color: var(--ink); }
.site-footer .f-legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px; font-size: .82rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* ---------- reveal on scroll (progressive enhancement) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- misc ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.page-hero { padding-block: clamp(44px, 7vw, 84px); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 14px; }
hr.div { border: none; border-top: 1px solid var(--border); margin-block: clamp(40px, 7vw, 72px); }
.muted { color: var(--ink-faint); font-size: .9rem; }
