/*
Theme Name: Tudo Para Mamães
Theme URI: https://tudoparamamaes.com.br/
Author: Tudo Para Mamães
Description: Blog homepage for Tudo Para Mamães. Cream, terracotta, and a calm reading layout. Desfralde stays at /desfralde/.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tpm-blog
*/

:root {
  --cream: #faf6f0;
  --cream-deep: #f3ebe3;
  --white: #ffffff;
  --ink: #3d2f2a;
  --ink-soft: #5c4a42;
  --muted: #8b7b73;
  --line: #eadfd4;
  --peach: #f3c7ae;
  --peach-soft: #fde8da;
  --terracotta: #c97b5f;
  --terracotta-dark: #a85f46;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(141, 102, 80, 0.08);
  --radius: 22px;
  --nav-h: 76px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.topbar {
  text-align: center;
  padding: 12px 16px 0;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-footer p { color: var(--ink-soft); margin: 8px 0 0; max-width: 32ch; }
.pager { margin-top: 28px; }
.pager .nav-links { position: static; display: flex; gap: 12px; margin: 0; padding: 0; background: transparent; border: 0; flex-direction: row; }
.prose h1, .section-head h2 { margin-bottom: 8px; }
.prose .meta { margin: 8px 0 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--terracotta-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero { padding: 28px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: 11ch; margin: 16px 0; }
.hero h1 em { font-style: normal; color: var(--terracotta-dark); }
.hero-lead { max-width: 42ch; color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.hero-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  background: #ecd9cc center/cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 460px; object-fit: cover; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.84rem;
}
.avatars { display: flex; }
.avatars span {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: linear-gradient(135deg, #f3c7ae, #e8b4b8);
}
.avatars span:first-child { margin-left: 0; background: #d7b39a; }
.avatars span:nth-child(2) { background: #c98b78; }
.avatars span:nth-child(3) { background: #e7cbb8; }

.section { padding: 28px 0 64px; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 8px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.link-arrow { color: var(--terracotta-dark); font-weight: 650; font-size: 0.92rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(141, 102, 80, 0.03);
}
.topic-card:hover { border-color: #e4cbb8; transform: translateY(-2px); }
.topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--peach-soft);
  color: var(--terracotta-dark);
}
.topic-card strong { font-family: var(--font-head); font-size: 0.98rem; }
.topic-card span { color: var(--muted); font-size: 0.82rem; }

.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.feature-photo { border-radius: 20px; overflow: hidden; background: #f3e4d8; min-height: 320px; }
.feature-photo img { width: 100%; height: 360px; object-fit: cover; }
.feature-copy { padding: 12px 18px 12px 8px; }
.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--peach-soft);
  color: var(--terracotta-dark);
  font-size: 0.75rem;
  font-weight: 700;
}
.feature h3 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); margin: 14px 0 12px; }
.feature p { color: var(--ink-soft); margin: 0 0 18px; }
.meta { color: var(--muted); font-size: 0.82rem; }

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.post-card img, .post-thumb {
  width: 148px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(160deg, #f8e7dc, #f3d3c4);
}
.post-card h3 { font-size: 1.05rem; margin: 6px 0; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.desfralde-band { padding-bottom: 36px; }
.desfralde-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 0% 100%, #fde8da 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, #fbf4ee 100%);
  border: 1px solid var(--line);
}
.desfralde-card img { width: 180px; margin: 0 auto; border-radius: 12px; }
.desfralde-card h2 { font-size: 2rem; margin: 8px 0 10px; }
.desfralde-card p { color: var(--ink-soft); max-width: 52ch; margin: 0 0 18px; }

.quote {
  text-align: center;
  padding: 48px 0 28px;
}
.quote p {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 auto 10px;
}
.quote span { color: var(--muted); font-size: 0.9rem; }

.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--ink-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-wrap, .single-wrap { padding: 36px 0 72px; }
.prose { max-width: 720px; }
.prose p { margin: 0 0 16px; }
.entry-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 24px; margin: 18px 0 22px; }

@media (max-width: 980px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .feature, .desfralde-card, .footer-grid { grid-template-columns: 1fr; }
  .hero-photo img { height: 320px; }
  .feature-copy { padding: 8px 8px 16px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
    z-index: 5;
    box-shadow: 0 18px 30px rgba(61, 47, 42, 0.06);
  }
  .nav-links a { padding: 12px 8px; }
  .hero { padding-top: 12px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-photo { min-height: 0; }
  .hero-grid { gap: 22px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 96px 1fr; }
  .post-card img, .post-thumb { width: 96px; height: 84px; }
  .section-head.row { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .desfralde-card { padding: 22px 18px; }
}
