/* ============================================================
   NUTRI KIDS — Tema infantil colorido e divertido
   ============================================================ */

:root {
  --bg: #fff8f0;
  --bg-alt: #fff1e0;
  --surface: #ffffff;
  --border: #ffe0c2;
  --muted: #8a7a6a;
  --text: #3d2c1e;
  --brand: #ff6b35;
  --brand-hover: #e8561f;
  --brand-soft: rgba(255, 107, 53, 0.12);
  --white: #ffffff;
  --green: #4ecb71;
  --font-display: "Baloo 2", sans-serif;
  --font-body: "Nunito", sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(61, 44, 30, 0.35);
  --container: 1140px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

.text-brand { color: var(--brand); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__emoji { font-size: 34px; animation: wiggle 3s ease-in-out infinite; display: inline-block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--brand); }
.brand__sub { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.5px; }

@keyframes wiggle { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 16px; font-weight: 800; color: var(--text); text-decoration: none;
  padding: 6px 2px; border-bottom: 3px solid transparent; transition: 0.15s;
}
.nav a:hover { color: var(--brand); border-color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--brand); border-radius: 3px; margin: 5px 0; transition: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; border: 0; cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -12px rgba(255,107,53,0.7); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px) scale(1.02); }
.btn--ghost { background: #fff; color: var(--text); border: 2px solid var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(0,0,0,0.4); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; background: radial-gradient(circle at 85% 20%, rgba(255,107,53,0.14), transparent 55%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 14px; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 52px; line-height: 1.1; font-weight: 800;
  margin-bottom: 18px;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 28px; font-weight: 600; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__frame {
  position: relative; border-radius: 40px; padding: 30px;
  background: linear-gradient(135deg, #fff6c9, #ffe3c9);
  border: 3px dashed var(--border);
  display: grid; place-items: center;
}
.hero__frame img { width: 240px; }
.float-emoji { position: absolute; font-size: 44px; animation: float 3.5s ease-in-out infinite; }
.float-emoji--1 { top: 14px; right: 22px; }
.float-emoji--2 { bottom: 18px; left: 26px; animation-delay: 0.7s; }
.float-emoji--3 { top: 40px; left: 18px; font-size: 36px; animation-delay: 1.3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.section__title { font-family: var(--font-display); font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.section__subtitle { font-size: 17px; color: var(--muted); font-weight: 600; }

/* ---------- Food groups ---------- */
.grid { display: grid; gap: 22px; }
.grid--groups { grid-template-columns: repeat(4, 1fr); }
.food-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.food-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--card); transition: height 0.25s;
}
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--card); }
.food-card:hover::before { height: 12px; }
.food-card img { width: 110px; margin: 14px auto 16px; transition: transform 0.25s; }
.food-card:hover img { transform: scale(1.12) rotate(-4deg); }
.food-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.food-card p { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.chip { display: inline-block; background: var(--card-soft); color: var(--card); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }

.water-call {
  margin-top: 30px; display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #dff5ff, #eaf8ff);
  border: 2px dashed #7dd3fc; border-radius: var(--radius); padding: 20px 26px;
}
.water-call img { width: 84px; flex-shrink: 0; }
.water-call h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.water-call p { font-size: 15px; color: #3b6e8f; font-weight: 600; }

/* ---------- Game ---------- */
.section--play { background: linear-gradient(135deg, #fff1e0, #ffe9f0); }
.game { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; max-width: 860px; margin: 0 auto; }
.game__plate {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #f6efe6 60%, #e8dcc9);
  border: 6px solid #d9c9ae; box-shadow: inset 0 0 30px rgba(0,0,0,0.06), var(--shadow);
  display: grid; place-items: center; overflow: hidden;
}
.plate-fill {
  position: absolute; inset: 12%; border-radius: 50%;
  display: grid; place-items: center; font-size: 56px;
  transition: background 0.4s, box-shadow 0.4s; text-align: center; line-height: 1.3;
}
.plate-hint { color: #c9b89a; font-weight: 800; font-family: var(--font-display); font-size: 18px; padding: 0 20px; text-align: center; }
.game__picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 3px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 8px; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 14px; color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pick span { font-size: 38px; line-height: 1; transition: transform 0.2s; }
.pick:hover { transform: translateY(-4px) scale(1.03); border-color: var(--brand); box-shadow: var(--shadow); }
.pick:hover span { transform: scale(1.15) rotate(-6deg); }
.pick:active { transform: scale(0.96); }
.game__status { grid-column: 1 / -1; text-align: center; font-size: 18px; font-weight: 800; min-height: 28px; }

/* ---------- Tips ---------- */
.grid--tips { grid-template-columns: repeat(3, 1fr); }
.tip {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.18s, box-shadow 0.18s;
}
.tip:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); }
.tip__emoji { display: block; font-size: 40px; margin-bottom: 12px; }
.tip h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.tip p { font-size: 15px; color: var(--muted); font-weight: 600; }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.quiz__card {
  background: var(--surface); border: 3px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.quiz__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quiz__card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.quiz__card::after {
  content: "👆"; position: absolute; top: 18px; right: 18px; font-size: 24px; opacity: 0.5;
}
.quiz__reveal {
  font-size: 15px; font-weight: 700; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.quiz__card.flip { border-color: var(--brand); }
.quiz__card.flip .quiz__reveal { max-height: 160px; opacity: 1; margin-top: 10px; }
.quiz__card.flip--certo { border-color: var(--green); background: linear-gradient(160deg, #fff, #effff2); }
.quiz__card.flip--errado { border-color: #ef4444; background: linear-gradient(160deg, #fff, #fff0f0); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand), #ff9a3d); padding: 70px 0; text-align: center; }
.cta__inner h2 { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta__inner p { color: rgba(255,255,255,0.92); font-size: 18px; font-weight: 600; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: #2a1c10; color: #f6e9da; padding: 54px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__brand p { font-size: 14px; color: #cbb49a; margin-top: 8px; max-width: 300px; font-weight: 600; }
.footer__brand .brand__emoji { font-size: 28px; }
.footer__col h4 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.footer__col a, .footer__col span { display: block; color: #cbb49a; text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 0; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
.footer__bottom p { font-size: 13px; color: #a08d74; text-align: center; font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 42px; }
  .grid--groups { grid-template-columns: repeat(2, 1fr); }
  .grid--tips { grid-template-columns: repeat(2, 1fr); }
  .game { grid-template-columns: 1fr; max-width: 480px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 2px dashed var(--border); padding: 12px 22px 18px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav.open a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 34px; }
  .section__title { font-size: 30px; }
  .grid--groups, .grid--tips, .quiz { grid-template-columns: 1fr; }
  .quiz { gap: 14px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .cta__inner h2 { font-size: 30px; }
}
