/* Identidade: um único tema, só amarelo e azul (e seus tons) sobre creme, com texto em tinta escura.
   Paleta: amarelo #FFB400 · azul #2F5DBF · azul profundo #1F3F8A · creme #FFFBF0 · tinta #1B2233.
   Fontes: Grandstander (títulos, traço de livro infantil), Nunito (texto), Caveat (anotações à mão). */
@font-face { font-family: "Grandstander"; src: url("../assets/fonts/grandstander.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../assets/fonts/caveat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --yellow: #FFB400;
  --yellow-light: #FFCF4D;
  --yellow-soft: #FFF0C2;
  --blue: #2F5DBF;
  --blue-deep: #1F3F8A;
  --cream: #FFFBF0;
  --white: #FFFFFF;
  --ink: #1B2233;
  --ink-soft: #4B5468;
  --line: #EBDDAE;

  --font-display: "Grandstander", "Nunito", system-ui, sans-serif;
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --r: 14px;
  --r-lg: 26px;
  --content: 1180px;
  --header-h: 70px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, figure, address, dl { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; }
h3 { font-size: 1.3rem; line-height: 1.2; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--content) + 48px); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .container { padding-inline: 16px; } }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--r); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--white); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Rabiscos animados no fundo (canvas desenhado em js/main.js) */
.has-doodles { position: relative; isolation: isolate; overflow: hidden; }
.doodles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--yellow); border-bottom: 2px solid transparent; transition: background-color .25s, border-color .25s; color: var(--ink); }
.site-header.is-scrolled { background: var(--cream); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.nav-list { display: flex; gap: 2px; }
.nav-list a { position: relative; display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 700; }
.nav-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 4px; border-radius: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav { position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 800; }
  .nav-list { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; flex-direction: column; gap: 0; padding: 8px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--blue); }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 12px; }
  .nav-list a::after { display: none; }
}

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: 4px 4px 0 var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-outline:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-top: 36px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(165deg, var(--yellow) 0%, var(--yellow-light) 100%); color: var(--ink); padding-block: clamp(48px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .eyebrow { color: var(--blue-deep); }
.scribble { position: relative; display: inline-block; color: var(--blue-deep); }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--white); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 44ch; margin-top: 28px; font-weight: 600; }
.hero-art { justify-self: center; width: 100%; max-width: 400px; border-radius: var(--r-lg); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--blue-deep); transform: rotate(2.5deg); background: var(--white); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 320px; justify-self: start; } }

/* ---------- Esteira de palavras ---------- */
.belt { background: var(--blue-deep); color: var(--white); overflow: hidden; padding-block: 18px; border-block: 3px solid var(--ink); }
.belt-track { display: flex; width: max-content; animation: belt 40s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
.belt-track > span:not(.chip) { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.2rem); white-space: nowrap; }
.belt-track > span:not(.chip)::after { content: "✦"; color: var(--yellow); font-size: .8em; }
@keyframes belt { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: var(--header-h); }
.section-yellow { background: var(--yellow-soft); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--blue); font-family: var(--font-hand); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1; transform: rotate(-1.5deg); transform-origin: left; }
.section-blue .eyebrow { color: var(--yellow); }
.section-head { max-width: 760px; }
.section-head h2 { max-width: 18ch; }
.section-intro { color: var(--ink-soft); max-width: 52ch; margin-top: 18px; font-size: 1.15rem; }
.note { margin-top: 22px; color: var(--ink-soft); font-family: var(--font-hand); font-size: 1.25rem; }

.io [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.io [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text { display: grid; gap: 20px; margin-top: 26px; font-size: clamp(1.08rem, 1.4vw, 1.2rem); max-width: 56ch; }
.facts { display: grid; gap: 14px; }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--yellow); }
.facts span { color: var(--ink-soft); font-weight: 600; }
.facts strong { font-family: var(--font-display); font-size: 1.15rem; text-align: right; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Segmentos ---------- */
.segments { margin-top: clamp(36px, 6vh, 60px); border-top: 2px solid rgb(255 255 255 / .4); }
.segments li { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 32px; align-items: center; padding: 28px 0; border-bottom: 2px solid rgb(255 255 255 / .4); }
.seg-dot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.segments li:nth-child(even) .seg-dot { background: var(--white); }
.segments h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.segments p { max-width: 46ch; font-weight: 600; }
@media (max-width: 760px) { .segments li { grid-template-columns: 56px minmax(0, 1fr); } .segments p { grid-column: 1 / -1; } }

/* ---------- Atividades (esteira de cartões) ---------- */
.cards-belt { margin-top: clamp(32px, 5vh, 56px); overflow: hidden; padding-block: 10px 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cards-belt .belt-track { animation-duration: 45s; }
.chip { display: inline-flex; align-items: center; gap: 14px; margin-right: 20px; padding: 22px 32px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); white-space: nowrap; }
.chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 2px solid var(--ink); }
.chip:nth-child(even) { box-shadow: 5px 5px 0 var(--blue); }
.chip:nth-child(even) i { background: var(--yellow); }

/* ---------- Carrosséis ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.carousel-ctrl { display: flex; align-items: center; gap: 12px; }
.round { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.round:hover:not(:disabled) { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.round:disabled { opacity: .35; cursor: default; }
.track { display: flex; gap: 20px; margin-top: clamp(28px, 4vh, 44px); padding: 6px max(24px, calc((100vw - var(--content)) / 2)) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - var(--content)) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { flex: none; scroll-snap-align: start; }
@media (max-width: 480px) { .track { padding-inline: 16px; scroll-padding-inline: 16px; } }

/* Equipe */
.person { width: clamp(220px, 24vw, 270px); padding: 18px 18px 22px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--blue); text-align: center; }
.person:nth-child(even) { box-shadow: 5px 5px 0 var(--yellow); }
.avatar { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 16px; border-radius: 18px; background: var(--yellow); border: 2px solid var(--ink); object-fit: cover; }
.person:nth-child(even) .avatar { background: var(--blue); }
.person h3 { font-size: 1.25rem; }
.person p { margin-top: 2px; color: var(--ink-soft); font-weight: 700; font-size: .98rem; }

/* Galeria */
.slide { width: clamp(260px, 32vw, 380px); aspect-ratio: 4 / 3; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--white); overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.s1, .slide.s5 { background: var(--blue); }
.slide.s3 { background: var(--blue-deep); }
.slide.s2, .slide.s6 { background: var(--yellow); color: var(--ink); }
.slide.s4 { background: var(--yellow-light); color: var(--ink); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid > *, .about > *, .hero-grid > * { min-width: 0; }
.contact-title { max-width: 14ch; }
.contact-list { display: grid; margin-top: 30px; border-top: 2px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 2px solid var(--ink); }
.contact-list dt { color: var(--ink-soft); font-weight: 700; }
.contact-list dd { margin: 0; font-weight: 700; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--blue); overflow: hidden; background: var(--white); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-list div { grid-template-columns: 100px minmax(0, 1fr); } }

.site-footer { background: var(--blue-deep); color: var(--white); padding-block: 32px; font-size: .95rem; border-top: 3px solid var(--ink); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .io [data-reveal] { opacity: 1; transform: none; transition: none; }
  .belt-track { animation: none; }
  .belt, .cards-belt { overflow-x: auto; }
  .scribble path { animation: none; stroke-dashoffset: 0; }
  .btn, .round, .nav-list a::after { transition: none; }
}
