/* ===== Tokens (cores tiradas do logo e da arte das matrículas) ===== */
:root {
  --red:    #C20F1A;
  --red-d:  #A50D17;
  --wine:   #4E0A1E;
  --pink:   #FAD0E1;
  --orange: #E57A25;
  --paper:  #FDF1F5;
  --text:   #2A0F18;
  --muted:  #6E4A55;
  --radius: 16px;
  --ease: cubic-bezier(.22,.8,.26,1);
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-script: 'Kaushan Script', cursive;
  --font-body: 'Figtree', system-ui, sans-serif;
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--text); background: #fff; }
h1,h2,h3 { font-family: var(--font-display); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: .5rem 1rem; z-index: 2000; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header .navbar { min-height: var(--header-h); }
.site-header.is-scrolled, .site-header:has(.navbar-collapse.show) { background: var(--red-d); box-shadow: 0 6px 24px rgba(60,5,15,.35); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark, .brand-word { filter: brightness(0) invert(1); }  /* logo vermelho vira branco sobre o vermelho */
.navbar-brand .brand-mark { height: 46px; width: auto; }
.navbar-brand .brand-word { height: 30px; width: auto; }
.navbar .nav-link { color: rgba(255,255,255,.9); font-weight: 600; padding: .5rem 1rem; }
.navbar .nav-link:hover { color: var(--pink); }
.navbar-toggler { color: #fff; border: 0; font-size: 1.8rem; line-height: 1; padding: .1rem .4rem; }
.navbar-toggler:focus { box-shadow: none; }

.btn-aluno { display: inline-flex; align-items: center; gap: .45rem; background: var(--pink); color: var(--red); font-weight: 700; border-radius: 999px; padding: .5rem 1.1rem; border: 0; transition: transform .2s var(--ease), background .2s; }
.btn-aluno:hover { background: #fff; color: var(--red-d); transform: translateY(-1px); }

.btn-cta { background: var(--orange); color: #fff; font-weight: 700; border: 0; border-radius: 999px; padding: .8rem 1.8rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-cta:hover { background: #f08a36; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.btn-wine { background: var(--wine); color: #fff; font-weight: 700; border: 0; border-radius: 999px; padding: .8rem 1.8rem; transition: transform .2s var(--ease); }
.btn-wine:hover { background: #3a0716; color: #fff; transform: translateY(-2px); }

/* ===== Hero ===== */
.hero { background: var(--red); }
.hero .carousel-item { transition: opacity .9s var(--ease); }
.hero-slide { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 5rem; color: #fff; overflow: hidden;
  background:
    radial-gradient(60vmax 40vmax at 85% 10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(50vmax 40vmax at 0% 100%, rgba(78,10,30,.45), transparent 60%),
    var(--red); }
.hero-slide--text::after { content: ''; position: absolute; width: 38vmax; height: 38vmax; right: -10vmax; bottom: -16vmax; border-radius: 50%; background: var(--orange); opacity: .9; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-title { font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; margin-bottom: 1.1rem; }
.hero-title--sm { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero-text { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 36ch; color: rgba(255,255,255,.92); margin-bottom: 1.25rem; }
.deadline { display: inline-flex; align-items: center; gap: .5rem; background: var(--pink); color: var(--red); font-family: var(--font-script); font-size: 1.35rem; padding: .35rem 1.1rem; border-radius: 999px; margin-bottom: 1.75rem; }

.flyer { width: auto; height: auto; max-width: min(100%, 460px); max-height: 74svh; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(40,0,10,.65); transform: rotate(2deg); }

/* Entrada orquestrada do slide ativo */
.carousel-item.active .hero-title,
.carousel-item.active .hero-text,
.carousel-item.active .deadline,
.carousel-item.active .btn-cta { animation: rise .9s var(--ease) both; }
.carousel-item.active .hero-text { animation-delay: .12s; }
.carousel-item.active .deadline  { animation-delay: .24s; }
.carousel-item.active .btn-cta   { animation-delay: .36s; }
.carousel-item.active .flyer { animation: flyer-in 1.1s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes flyer-in { from { opacity: 0; transform: translateY(40px) rotate(-5deg) scale(.94); } to { opacity: 1; transform: rotate(2deg); } }

.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; background: #fff; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }

/* ===== Seções ===== */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--paper); }
.section--brand { background: var(--red); color: #fff; }
.section-title { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; margin-bottom: 1.25rem; color: var(--red); }
.section--brand .section-title { color: #fff; }
.lead-sm { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.section--brand .lead-sm { color: rgba(255,255,255,.9); }

.valid { display: inline-flex; align-items: center; gap: .5rem; background: var(--orange); color: #fff; font-family: var(--font-script); font-size: 1.3rem; padding: .3rem 1.1rem; border-radius: 999px; }

/* Cartões das unidades */
.unit { height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(78,10,30,.08), 0 18px 40px -24px rgba(78,10,30,.35); }
.unit-name { margin: 0; padding: 1.1rem 1.5rem; background: var(--pink); color: var(--red); font-family: var(--font-script); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.class-list { list-style: none; margin: 0; padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: 1.25rem; }
.class-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--wine); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; padding: .55rem 1rem; border-radius: 10px; }
.class-head strong { color: var(--pink); font-weight: 700; white-space: nowrap; }
.schedule { list-style: none; margin: .6rem 0 0; padding: 0 .25rem; color: var(--text); }
.schedule li { padding: .15rem 0; }
.note { color: var(--muted); font-size: .95rem; margin: 1.5rem 0 0; }

.highlight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.highlight-list li { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--paper); border-left: 6px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; }
.highlight-list i { font-size: 1.6rem; color: var(--red); }

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.45; }
.contact-list i { margin-top: .1rem; }
.contact-list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { opacity: .85; }
.contact-list i { color: var(--pink); font-size: 1.2rem; }
.contact-form { background: #fff; color: var(--text); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius); }
.contact-form .form-label { font-weight: 600; }
.contact-form .form-control { border-radius: 10px; padding: .7rem .9rem; }
.form-status { color: var(--wine); font-weight: 600; }

.site-footer { background: var(--wine); color: rgba(255,255,255,.8); padding: 1.75rem 0; }
.site-footer .brand-mark { height: 34px; width: auto; }
.social { display: flex; gap: .75rem; }
.social a { color: #fff; font-size: 1.3rem; transition: color .2s; }
.social a:hover { color: var(--pink); }

/* ===== Reveal por rolagem ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--reveal-delay, 0ms), transform .8s var(--ease) var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
  .hero-slide { padding-bottom: 4.5rem; }
  .flyer { max-height: 56svh; }
  .navbar-brand .brand-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== v2: páginas internas ===== */
@media (min-width: 1200px) { .navbar .nav-link.active { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); } }
.navbar .nav-link.active { color: #fff; }
.site-header.is-solid { background: var(--red-d); }

.page-header { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  background: radial-gradient(50vmax 30vmax at 90% 0%, rgba(255,255,255,.14), transparent 60%), radial-gradient(40vmax 30vmax at 0% 120%, rgba(78,10,30,.5), transparent 60%), var(--red); }
.page-header .container { animation: rise .9s var(--ease) both; }
.crumbs { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1rem; font-size: .95rem; color: rgba(255,255,255,.8); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-title { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; margin: 0 0 .75rem; }
.page-lead { font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 40ch; color: rgba(255,255,255,.92); margin: 0; }

.since { background: var(--pink); color: var(--red); border-radius: var(--radius); padding: 2rem; text-align: center; }
.since span { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 6.5rem); line-height: .95; }
.since small { font-family: var(--font-script); font-size: 1.4rem; }
.since--sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.prose p { font-size: 1.12rem; line-height: 1.75; color: var(--text); max-width: 62ch; }
.prose .prose-lead { font-size: 1.3rem; font-weight: 500; }
.closing { margin: 2.25rem 0 0; padding: 1.5rem 1.75rem; border-left: 6px solid var(--orange); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-script); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--red); }

.diff { height: 100%; background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1.5px solid #f1d3dd; transition: border-color .3s, transform .3s var(--ease); }
.diff:hover { border-color: var(--red); transform: translateY(-3px); }
.diff i { font-size: 2rem; color: var(--red); }
.diff h2 { font-size: 1.4rem; font-weight: 700; color: var(--wine); margin: .8rem 0 .6rem; line-height: 1.2; }
.diff p { color: var(--muted); margin: 0; line-height: 1.65; }
.diff-mini { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.25rem 1.4rem; background: #fff; border-radius: var(--radius); color: var(--wine); font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.diff-mini:hover { color: var(--red); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(78,10,30,.5); }
.diff-mini i { font-size: 1.6rem; color: var(--red); }

.cta-band { background: var(--red); color: #fff; padding: 2.75rem 0; }
.cta-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); }

.gallery { columns: 3 260px; column-gap: 1rem; }
.shot { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.shot img { width: 100%; display: block; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--paper); border-radius: var(--radius); color: var(--muted); }
.empty i { font-size: 2.5rem; color: var(--red); }
.albums { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; }
.foot-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot-links a:hover { color: var(--pink); }
.site-footer .copy { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer .copy p { margin: 0; }
.site-footer .copy .credit { margin-left: auto; text-align: right; }
.site-footer small { opacity: .75; }

@media (max-width: 1199.98px) { .site-header .navbar-collapse { padding: 1rem 0 .5rem; } .navbar-brand .brand-word { display: inline; } }
@media (max-width: 575.98px) { .navbar-brand .brand-word { display: none; } }

/* Política de Privacidade */
.legal { max-width: 75ch; margin: 0 auto; line-height: 1.7; }
.legal h2 { font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--red); margin: 2.5rem 0 .75rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--red); text-underline-offset: 3px; }
.legal-updated { color: var(--muted); font-size: .95rem; }
.legal-intro { font-size: 1.1rem; }
.site-footer .copy a { color: inherit; text-underline-offset: 3px; }
.site-footer .copy a:hover { color: var(--pink); }

/* Home: arte "Desde 2019" colada na borda inferior da seção */
.section--art { padding-bottom: 0; }
.about-art { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.about-text-col { padding-bottom: clamp(2rem, 6vw, 7rem); }
@media (max-width: 991.98px) { .about-text-col { padding-bottom: 0; } .about-art { max-width: 420px; } }

/* Quem somos: arte apoiada sobre o box "2019" */
.since-stack { display: flex; flex-direction: column; align-items: center; }
.since-art { display: block; width: 100%; max-width: 380px; height: auto; }
.since-stack .since { width: 100%; position: relative; z-index: 1; }
/* Em telas baixas o conjunto não cabe fixo na tela: deixa rolar normalmente */
@media (max-height: 820px) { .since-stack.since--sticky { position: static; } }
@media (max-width: 991.98px) { .since-art { max-width: 320px; } }
