/* ==========================================================================
   NDD — Nutrição da Depressão — Design System
   Paleta: verde (#A8C43F), verde-claro (#D7E76B), amarelo (#FFF49A),
           rosa (#F48CA1), vermelho (#E53935), verde-escuro (#234B2E)
   Tipografia: Playfair Display (títulos) + Montserrat (texto)
   ========================================================================== */

:root {
  --green: #A8C43F;
  --green-light: #D7E76B;
  --yellow: #FFF49A;
  --pink: #F48CA1;
  --red: #E53935;
  --green-dark: #234B2E;
  --bg: #F7F7F2;
  --white: #FFFFFF;
  --ink: #22291F;
  --ink-soft: #5B6259;
  --border: #E7E5DC;

  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(35, 75, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(35, 75, 46, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--green-dark);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #1a3a23; box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--green-dark);
}
.btn-light:hover { background: var(--yellow); }

.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
  line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--font-body); font-weight: 600; font-size: .6rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--green-dark);
  color: var(--white);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-art {
  position: relative;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px;
}
.book-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}
.book-stack .book {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
}
.book-stack .book:nth-child(1) { background: var(--yellow); }
.book-stack .book:nth-child(2) { background: var(--green-light); margin-left: 18px; }
.book-stack .book:nth-child(3) { background: var(--pink); margin-left: 36px; }
.book-stack .book:nth-child(4) { background: var(--white); margin-left: 54px; }
.hero-art::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---------- Ecosystem grid ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.eco-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.eco-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.eco-icon svg { width: 26px; height: 26px; }
.eco-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.eco-card p { font-size: .9rem; margin-bottom: 14px; }
.eco-card .eco-link { font-weight: 700; font-size: .85rem; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; }

.eco-1 .eco-icon { background: var(--yellow); }
.eco-2 .eco-icon { background: var(--green-light); }
.eco-3 .eco-icon { background: var(--pink); }
.eco-4 .eco-icon { background: #F2708A; }
.eco-5 .eco-icon { background: var(--red); }
.eco-5 .eco-icon svg { stroke: var(--white); }

/* ---------- Generic card grid (biblioteca / editora / cursos) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-auto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.card-grid-auto > .card {
  width: 300px;
  max-width: 100%;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-thumb {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  padding: 16px;
}
.card-thumb-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
}
.card-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .9rem; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ---------- Folders (biblioteca) / Tools (ferramentas) ---------- */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.folder-card, .tool-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.folder-card:hover, .tool-card:hover { transform: translateY(-3px); border-color: var(--green); }
.folder-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.folder-name { font-weight: 700; font-size: .92rem; color: var(--green-dark); margin-bottom: 4px; }
.folder-count { font-size: .78rem; color: var(--ink-soft); }
.folder-card.active, .tool-card.active { border-color: var(--green-dark); background: var(--green-dark); }
.folder-card.active .folder-name, .tool-card.active .folder-name { color: var(--white); }
.folder-card.active .folder-count, .tool-card.active .folder-count { color: rgba(255,255,255,0.75); }
.tool-panel { display: none; }
.tool-panel.active { display: block; }

/* ---------- Banner / quote ---------- */
.banner {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner h2 { color: var(--white); }
.banner p { color: rgba(255,255,255,0.75); }
.banner-words {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-top: 18px;
}
.banner-words span:nth-child(1) { color: var(--green-light); }
.banner-words span:nth-child(2) { color: var(--yellow); }
.banner-words span:nth-child(3) { color: var(--pink); }

/* ---------- Split section (image/content) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  min-height: 320px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.stat {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-family: var(--font-title); font-size: 1.6rem; color: var(--green-dark); }
.stat span { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step { position: relative; padding-left: 8px; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Community icons row ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.channel-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.channel-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light);
}
.channel-icon svg { width: 26px; height: 26px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 16px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(168,196,63,0.25);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }

.contact-info-card {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: rgba(255,255,255,0.75); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--font-title); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { font-size: .9rem; opacity: .85; transition: opacity .15s ease; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: .8rem;
  opacity: .7;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--green); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps, .channel-grid { grid-template-columns: 1fr; }
  .folder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.long { display: none; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .banner { padding: 40px 24px; }
  .banner-words { gap: 16px; font-size: 1.05rem; }
}
