/* Treina com a Bia — sistema visual (ver DESIGN.md)
   Base quente e clara, acento coral-terracota, apoio verde-água. */

:root {
  --bg: #FAF6F0;
  --sand: #F1E7DA;
  --sand-deep: #E7D9C6;
  --ink: #2E2A26;
  --ink-soft: #6E6459;
  --accent: #D96C4A;
  --accent-strong: #B44E30;
  --accent-stronger: #9C3F24;
  --teal: #2F6B63;
  --teal-soft: #DCEAE4;
  --white: #FFFFFF;
  --shadow: 0 18px 40px -18px rgb(46 42 38 / 0.25);
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1120px;
  --read: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--white); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sand-deep); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-stronger); }

/* Sobre areia, o link usa o terracota mais escuro (4,2:1 → 5,6:1) */
.section-sand a:not(.btn),
.disclosure a,
.empty-state a,
.equip-box a:not(.btn) { color: var(--accent-stronger); }

.section-sand .btn-ghost {
  color: var(--accent-stronger);
  box-shadow: inset 0 0 0 2px var(--accent-stronger);
}

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

h1, h2, h3, .display {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.read { width: min(var(--read), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--sand-deep);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.brand:hover { color: var(--accent-stronger); }

.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover { background: var(--sand); color: var(--accent-stronger); }
.main-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }

/* ---------- Botões e etiquetas ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  border: 0;
  transition: background 160ms ease-out, transform 160ms ease-out;
}

.btn:hover { background: var(--accent-stronger); color: var(--white); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 2px var(--accent-strong);
}

.btn-ghost:hover { background: var(--sand); color: var(--accent-stronger); }

.tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.publi {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Hero (Persuade) ---------- */

.hero { padding: 3rem 0 2.5rem; overflow: hidden; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; }
.hero h1 .hl { color: var(--accent-strong); }

.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 1.25rem 0 1.75rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-photo { position: relative; justify-self: center; }

.hero-photo img {
  width: min(420px, 82vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-photo .photo-chip {
  position: absolute;
  left: -0.75rem;
  bottom: 1.25rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-stronger);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-photo { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-photo { animation: none; }
  .btn { transition: none; }
}

/* Faixa da rotina */
.routine {
  border-block: 1px solid var(--sand-deep);
  background: var(--sand);
}

.routine .wrap {
  display: flex;
  flex-wrap: wrap;
}

.routine div {
  flex: 1 1 10rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
}

.routine div + div { border-left: 1px solid var(--sand-deep); }

.routine strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.45rem;
  color: var(--accent-stronger);
  line-height: 1.2;
}

.routine span { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- Seções ---------- */

.section { padding: 3.5rem 0; }
.section-sand { background: var(--sand); }

.section h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 0.75rem; }
.section .section-lead { color: var(--ink-soft); max-width: 38rem; margin: 0 0 2rem; }

/* Comece por aqui — caminho numerado */
.path { list-style: none; margin: 0; padding: 0; counter-reset: passo; }

.path li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sand-deep);
}

.path li:last-child { border-bottom: 1px solid var(--sand-deep); }

.path .num {
  font-family: "Baloo 2", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.path h3 { font-size: 1.3rem; margin-bottom: 0.25rem; grid-column: 2; grid-row: 1; }
.path p { margin: 0; color: var(--ink-soft); max-width: 40rem; grid-column: 2; grid-row: 2; }

/* Pilares — fileiras editoriais */
.pillars { border-top: 1px solid var(--sand-deep); }

.pillar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--sand-deep);
  text-decoration: none;
  color: var(--ink);
}

.pillar .p-num {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.pillar h3 { font-size: 1.35rem; }
.pillar p { margin: 0.15rem 0 0; color: var(--ink-soft); max-width: 42rem; grid-column: 2; }
.pillar .go { font-weight: 800; color: var(--accent-strong); white-space: nowrap; }
.pillar:hover h3 { color: var(--accent-stronger); }

/* Destaque de artigo */
.feature { display: grid; gap: 2rem; align-items: center; }

.feature img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.feature h2 { margin: 0.75rem 0 0.5rem; }
.feature p { color: var(--ink-soft); max-width: 36rem; }

/* Sobre — teaser */
.about-teaser { display: grid; gap: 2rem; align-items: center; }

.about-teaser img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  justify-self: center;
}

/* ---------- Artigo (Read) ---------- */

.article-hero { padding: 2.5rem 0 0; }
.article-hero h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; margin: 0.9rem 0 0.75rem; }
.article-hero .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.5rem; }

.article-photo { margin: 1.75rem 0 0; }

.article-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.meta-line {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  color: var(--ink-soft); font-weight: 700; font-size: 0.95rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--sand-deep);
}

.article-body { padding: 2rem 0 1rem; }
.article-body h2 { font-size: 1.7rem; margin: 2.5rem 0 0.75rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { max-width: 72ch; }
.article-body ul, .article-body ol { max-width: 70ch; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.4rem; }

.disclosure {
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.disclosure p { margin: 0; }

.passo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--sand-deep);
}

.passo:last-of-type { border-bottom: 1px solid var(--sand-deep); }

/* Posicionamento explícito de cada peça do passo — nada de auto-placement:
   linha 1: foto (largura total) · linha 2: número + título ·
   linha 3: dose (sob o título) · linha 4: lista (largura total) ·
   linha 5: cuidado (largura total) */
.passo .passo-foto {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 1.1rem;
}

.passo .passo-foto img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.passo .p-num {
  font-family: "Baloo 2", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  grid-column: 1;
  grid-row: 2 / span 2;
}

.passo h3 { font-size: 1.4rem; grid-column: 2; grid-row: 2; }
.passo .dose {
  display: inline-block;
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  background: var(--sand);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-stronger);
  margin: 0.35rem 0 0.6rem;
}
.passo p, .passo li { color: var(--ink); }
.passo ul { grid-column: 1 / -1; grid-row: 4; margin: 0.5rem 0 0; padding-left: 1.3rem; }
.passo .cuidado { grid-column: 1 / -1; grid-row: 5; color: var(--ink-soft); font-size: 0.95rem; margin: 0.6rem 0 0; }

.equip-box {
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.equip-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.equip-box p { margin: 0 0 1rem; }
.equip-box .placeholder-note { color: var(--ink-soft); font-size: 0.92rem; margin: 0.75rem 0 0; }

.aviso {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.aviso p { margin: 0; }

.related { list-style: none; margin: 0; padding: 0; }
.related li { border-top: 1px solid var(--sand-deep); }
.related a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1rem 0; text-decoration: none; color: var(--ink); font-weight: 700;
}
.related a:hover { color: var(--accent-stronger); }
.related .go { color: var(--accent-strong); font-weight: 800; white-space: nowrap; }

/* ---------- Artigos (índice) ---------- */

.pillar-block { padding: 2.25rem 0; border-bottom: 1px solid var(--sand-deep); }
.pillar-block:first-of-type { padding-top: 1rem; }
.pillar-head { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.pillar-block h2 { font-size: 1.6rem; margin: 0; }
.pillar-block .pillar-desc { color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 42rem; }

.article-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  max-width: 46rem;
}

.article-link:hover { border-color: var(--accent); }
.article-link strong { font-family: "Baloo 2", sans-serif; font-size: 1.25rem; display: block; margin-bottom: 0.25rem; }
.article-link span { color: var(--ink-soft); }

.empty-state {
  border: 2px dashed var(--sand-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

.empty-state p { margin: 0; }

/* ---------- Páginas de texto ---------- */

.text-page { padding: 2.5rem 0 3.5rem; }
.text-page h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: 1rem; }
.text-page h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; }
.text-page p, .text-page li { max-width: 72ch; }

.sobre-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin-bottom: 1.5rem;
}

.sheet-figure { margin: 2rem 0; }
.sheet-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sheet-figure figcaption { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.6rem; }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2.75rem 0 2rem;
  margin-top: 0;
}

.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--white); }

.footer-grid { display: grid; gap: 2rem; }

.footer-brand { font-family: "Baloo 2", sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-note { color: var(--sand); max-width: 44rem; font-size: 0.95rem; }

.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-nav a { text-decoration: none; font-weight: 700; }

.footer-legal {
  border-top: 1px solid rgb(250 246 240 / 0.2);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: 0.9rem; color: var(--sand);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ---------- Responsivo ---------- */

@media (min-width: 760px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .feature { grid-template-columns: 1fr 1fr; }
  .about-teaser { grid-template-columns: auto 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr; }
}

@media (max-width: 560px) {
  .pillar { grid-template-columns: auto 1fr; }
  .pillar .go { display: none; }
  .passo { grid-template-columns: 1fr; }
  .passo .passo-foto, .passo .p-num, .passo h3, .passo .dose, .passo ul, .passo .cuidado { grid-column: 1 / -1; grid-row: auto; }
  .passo .p-num { font-size: 2rem; }
  .path li { grid-template-columns: 1fr; }
  .path .num { grid-column: 1; grid-row: auto; font-size: 1.9rem; }
  .path h3, .path p { grid-column: 1; grid-row: auto; }
  .routine div + div { border-left: 0; }
}
