/* =========================================================
   Conexão Materna · Projeto Madrinha — Santa Joana
   Identidade compartilhada
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Marca Santa Joana */
  --navy:        #0c5f5c;
  --navy-deep:   #073f3d;
  --royal:       #0f7d79;
  --royal-soft:  #14948f;
  --sky:         #2fb4ab;
  --sky-soft:    #8fd6cf;

  /* Acolhimento materno */
  --blush:       #e29a8c;
  --blush-deep:  #cf7e6f;
  --blush-soft:  #f6ddd4;

  /* Neutros quentes */
  --cream:       #faf6f0;
  --cream-2:     #f2ebe1;
  --paper:       #ffffff;
  --ink:         #17233f;
  --muted:       #5c6781;
  --line:        #e7ded2;

  --radius:      22px;
  --radius-sm:   14px;
  --shadow-sm:   0 2px 10px rgba(10,60,58,.06);
  --shadow:      0 18px 50px -22px rgba(7,63,61,.35);
  --shadow-lg:   0 40px 90px -40px rgba(7,63,61,.55);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

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

/* atmosfera de fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(47,180,171,.10), transparent 60%),
    radial-gradient(50% 40% at -5% 100%, rgba(226,154,140,.12), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blush); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.serif-em { font-style: italic; color: var(--blush-deep); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 15px 28px; border-radius: 100px; cursor: pointer;
  border: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 14px 28px -14px rgba(12,95,92,.8); }
.btn-primary:hover { background: var(--royal); transform: translateY(-3px); box-shadow: 0 22px 36px -16px rgba(15,125,121,.8); }
.btn-accent { background: var(--blush); color: #50211a; }
.btn-accent:hover { background: var(--blush-deep); color: #fff; transform: translateY(-3px); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: #1f8f88; transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.6px solid rgba(12,95,92,.25); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(12,95,92,.05); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 10px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 101px; width: auto; flex: none; display:block; }
.brand-text { line-height: 1.05; }
.brand-text b { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--royal); letter-spacing: -.01em; }
.brand-text span { display: block; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--blush); transition: width .25s ease; border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-figure { position: relative; }
.hero-photo {
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.3; background: var(--cream-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.blob-1 { width: 280px; height: 280px; background: radial-gradient(circle at 30% 30%, var(--sky-soft), transparent 70%); top: -40px; right: -50px; opacity: .6; }
.blob-2 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, var(--blush-soft), transparent 70%); bottom: -30px; left: -50px; opacity: .8; }
.hero-badge {
  position: absolute; bottom: 26px; left: -22px;
  background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 230px;
}
.hero-badge .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blush-soft); display: grid; place-items: center; flex: none; }
.hero-badge .ico svg { width: 24px; height: 24px; color: var(--blush-deep); }
.hero-badge b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1rem; }
.hero-badge small { color: var(--muted); font-size: .8rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }
.bg-cream { background: var(--cream-2); }
.bg-navy { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lead { color: rgba(255,255,255,.78); }
.bg-navy .eyebrow { color: var(--sky-soft); }

/* ---------- Cards genéricos ---------- */
.cards { display: grid; gap: 26px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 30px; height: 30px; }
.ico-royal { background: rgba(15,125,121,.1); color: var(--royal); }
.ico-sky { background: rgba(47,180,171,.12); color: var(--sky); }
.ico-blush { background: var(--blush-soft); color: var(--blush-deep); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Banners (landing) ---------- */
.banner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--paper); border: 1px solid var(--line);
}
.banner.flip .banner-body { order: 2; }
.banner-body { padding: clamp(30px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; }
.banner-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0 12px; }
.banner-body p { color: var(--muted); margin-bottom: 26px; }
.banner-media { position: relative; min-height: 320px; background: var(--navy); }
.banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 16px; border-radius: 100px; font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.tag-blush { background: var(--blush-soft); color: var(--blush-deep); }
.tag-sky { background: rgba(47,180,171,.14); color: var(--royal); }
.banner-list { margin: 0 0 26px; display: grid; gap: 10px; }
.banner-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: .96rem; }
.banner-list li svg { width: 20px; height: 20px; color: var(--sky); flex: none; margin-top: 2px; }

/* ---------- Passo a passo ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
}
.step:nth-child(2) .step-num { background: var(--royal); }
.step:nth-child(3) .step-num { background: var(--sky); }
.step:nth-child(4) .step-num { background: var(--blush); color: #50211a; }
.step h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }
.step a { color: var(--royal); font-weight: 700; word-break: break-word; }

/* ---------- Formulários ---------- */
.form-card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .86rem; color: var(--navy); }
.field label .req { color: var(--blush-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 16px;
  border: 1.6px solid var(--line); border-radius: 12px; background: var(--cream);
  color: var(--ink); transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47,180,171,.14); background: #fff; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .78rem; color: #c0392b; display: none; }
.field.invalid input { border-color: #e07a6c; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--royal); flex: none; }
.check a { color: var(--royal); font-weight: 700; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* mensagem de sucesso */
.success {
  display: none; text-align: center; padding: 10px 0;
}
.success.show { display: block; animation: pop .5s ease; }
.success .check-ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: rgba(47,180,171,.14); display: grid; place-items: center; }
.success .check-ico svg { width: 40px; height: 40px; color: var(--sky); }
.success h3 { margin-bottom: 10px; }
.success p { color: var(--muted); margin-bottom: 22px; }
.access-box {
  background: var(--cream-2); border: 1px dashed var(--sky); border-radius: 16px;
  padding: 22px; margin: 18px 0; text-align: left; display: grid; gap: 14px;
}
.access-row { display: flex; align-items: center; gap: 14px; }
.access-row .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.access-row .ico svg { width: 24px; height: 24px; color: var(--royal); }
.access-row b { display: block; color: var(--navy); }
.access-row small { color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; display: block; line-height: 1; }
.stat span { color: rgba(255,255,255,.7); font-size: .92rem; font-weight: 500; }

/* ---------- Portal de cursos ---------- */
.portal-gate { max-width: 560px; margin: 0 auto; }
.portal-app { display: none; }
.portal-app.show { display: block; animation: pop .5s ease; }
.portal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; box-shadow: var(--shadow-sm); margin-bottom: 34px;
}
.portal-user { display: flex; align-items: center; gap: 14px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; flex: none; }
.portal-user b { color: var(--navy); display: block; }
.portal-user small { color: var(--muted); }
.progress-mini { display: flex; gap: 26px; }
.progress-mini .pm b { font-family: var(--font-display); font-size: 1.5rem; color: var(--royal); }
.progress-mini .pm span { display: block; font-size: .78rem; color: var(--muted); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 9px 18px; border-radius: 100px; border: 1.6px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--muted); transition: .2s; }
.chip:hover { border-color: var(--sky); color: var(--royal); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-cover { height: 130px; position: relative; display: grid; place-items: center; }
.course-cover svg { width: 52px; height: 52px; color: #fff; opacity: .95; }
.course-cover .lvl { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 100px; }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.course-body h3 { font-size: 1.18rem; }
.course-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.course-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.course-meta span { display: flex; align-items: center; gap: 6px; }
.course-meta svg { width: 15px; height: 15px; }
.bar { height: 8px; background: var(--cream-2); border-radius: 100px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--royal)); border-radius: 100px; width: 0; transition: width .6s ease; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-foot .status { font-size: .8rem; font-weight: 700; }
.status.s0 { color: var(--muted); }
.status.s1 { color: var(--royal); }
.status.s2 { color: #2e9e6b; }
.btn-mini { padding: 9px 16px; font-size: .82rem; border-radius: 100px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,.72); font-size: .92rem; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--sky-soft); }
.footer-brand .brand-text b { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 460px; margin: 0 auto; }
  .cards.cols-3, .course-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .banner, .banner.flip { grid-template-columns: 1fr; }
  .banner.flip .banner-body { order: 0; }
  .banner-media { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-badge { position: static; left: auto; bottom: auto; margin: 16px auto 0; max-width: none; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav .nav-cta .btn:not(.nav-toggle) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
}
@media (max-width: 540px) {
  .cards.cols-3, .cards.cols-2, .course-grid { grid-template-columns: 1fr; }
  .progress-mini { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Inscrição Projeto Madrinha — empilha no mobile (texto acima do formulário) */
.inscricao-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:54px;align-items:center;}
@media (max-width:860px){
  .inscricao-grid{grid-template-columns:1fr;gap:30px;}
  .form-card{padding:24px 20px;}
}

/* Logo oficial no cabeçalho (preserva proporção, sem distorção) */
.brand--img{gap:0;}
.brand-logo-img{height:50px;width:auto;display:block;border:0;border-radius:6px;}
@media (max-width:760px){ .brand-logo-img{height:42px;} .brand-mark{ height:68px; } }

/* Logo oficial no rodapé (chip branco para contraste no fundo escuro) */
.footer-brand .footer-logo{ background:#fff; padding:7px 9px; border-radius:12px; height:54px; box-sizing:content-box; }
