/* ==========================================================================
   Leões RBC | Folha de estilo principal
   Desenvolvido por 321takes
   ========================================================================== */

/* ---------- 0. Fontes (hospedadas localmente, subconjunto latin) ---------- */
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional; /* evita troca de fonte visível (layout shift) nos títulos */
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Arial ajustada às métricas da Inter, para a troca não deslocar o texto */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ---------- 1. Variáveis ---------- */
:root {
  /* Cores do escudo (placeholders, ajustar com o escudo oficial) */
  --red: #C8102E;
  --red-dark: #9E0B22;
  --red-light: #FF5A6E;   /* vermelho legível sobre fundo preto */
  --black: #111111;
  --black-soft: #1C1C1C;
  --white: #FFFFFF;
  --gray: #F3F3F1;
  --gray-300: #D6D6D2;
  --gray-600: #595959;
  --gray-400-on-dark: #BDBDBD;
  --whatsapp: #1F8F4E;

  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 4.5rem;
  --container: 75rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 0.375rem;
  --shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
  --cut: clamp(1.5rem, 4vw, 3.5rem); /* altura dos cortes diagonais */
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--red); }

ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

::selection { background: var(--red); color: var(--white); }

/* ---------- 3. Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.on-dark .eyebrow { color: var(--red-light); }

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.todo {
  /* Marca visual de conteúdo pendente */
  outline: 2px dashed var(--red);
  outline-offset: 2px;
  background: rgba(200, 16, 46, 0.06);
}

/* ---------- 4. Seções ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--gray { background: var(--gray); }
.section--dark,
.on-dark { background: var(--black); color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }
.on-dark .panel a:not(.btn) { color: var(--red-dark); }
.on-dark .panel :focus-visible { outline-color: var(--red); }
.section--red { background: var(--red); color: var(--white); }
.section--red a:not(.btn) { color: var(--white); }

.section--cut-top { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: calc(clamp(3.5rem, 8vw, 6.5rem) + var(--cut)); }

.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.3em; }

/* Faixa vermelha decorativa sob títulos */
.bar::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.35rem;
  margin-top: 0.75rem;
  background: var(--red);
  transform: skewX(-20deg);
}
.section-head--center .bar::after { margin-inline: auto; }
.section--red .bar::after { background: var(--white); }

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--black-soft); color: var(--white); }

.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--gray); color: var(--black); }

.btn--outline { border-color: currentColor; background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.on-dark .btn--outline,
.section--red .btn--outline { color: var(--white); }
.on-dark .btn--outline:hover,
.section--red .btn--outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
}
.brand__escudo { width: 2.5rem; height: auto; }
.brand__wordmark { width: 8.5rem; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 1.75rem; height: 1.75rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav a:not(.btn) {
  display: block;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:not(.btn)[aria-current="page"] { color: var(--red-light); }
.site-nav .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--white); }

/* Menu mobile */
@media (max-width: 63.99em) {
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    background: var(--black);
  }
  .site-nav.is-open { display: block; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .site-nav a:not(.btn) {
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .site-nav .btn { width: 100%; margin-top: 1.5rem; }
}

/* Menu desktop */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2rem; }
  .site-nav ul { display: flex; gap: 1.75rem; }
  .site-nav a:not(.btn) {
    position: relative;
    padding-block: 0.5rem;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { min-height: 2.75rem; padding: 0.6rem 1.25rem; }
}

/* ---------- 7. Placeholders de mídia ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0, 0, 0, 0.04) 14px 28px),
    var(--gray-300);
  color: var(--black);
  text-align: center;
}
.ph__label {
  max-width: 22ch;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph--dark {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 28px),
    #2A2A2A;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1; }
.ph--portrait { aspect-ratio: 4 / 5; }

/* ---------- 8. Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-400-on-dark);
  font-size: 0.9375rem;
  border-top: 4px solid var(--red);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--red-light); text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
@media (min-width: 40em) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer__brand img { width: 3.5rem; margin-bottom: 1rem; }
.footer__brand p { max-width: 32ch; }

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer__list .icon { margin-top: 0.2em; color: var(--red-light); }

.social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}
.social a:hover { border-color: var(--red); background: var(--red); color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}
.footer__legal button:hover { color: var(--red-light); text-decoration: underline; }

/* ---------- 9. Botão flutuante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.06); }
.whatsapp-float .icon { width: 1.75rem; height: 1.75rem; }
body.menu-open .whatsapp-float { display: none; }

/* ---------- 10. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   Componentes de conteúdo
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 52rem);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero--short { min-height: min(62vh, 34rem); }

.hero__media { position: absolute; inset: 0; }
.hero__media > * { width: 100%; height: 100%; object-fit: cover; }
.hero__media .ph { aspect-ratio: auto; align-items: flex-start; justify-content: flex-end; padding-top: 1.5rem; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 15%, rgba(0, 0, 0, 0.35) 75%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 7rem calc(4rem + var(--cut));
}
.hero h1 { max-width: 13ch; margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--red-light); }
.hero .lead { max-width: 40rem; margin-bottom: 2rem; color: #EDEDED; }
.hero .eyebrow { color: var(--white); background: var(--red); padding: 0.3rem 0.75rem; }

.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--cut) + 1rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font: 600 0.875rem var(--font-body);
  cursor: pointer;
}

/* ---------- Números de impacto ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 5px solid var(--red);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 1;
  color: var(--red-dark);
  font-variant-numeric: tabular-nums;
}
.on-dark .stat__num { color: var(--white); }
.stat__label { display: block; font-weight: 600; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--black);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover,
.card:focus-within { transform: translateY(-4px); border-color: var(--red); }
.card__media { position: relative; }
.card__tag {
  position: absolute;
  left: 1rem;
  bottom: -0.9rem;
  z-index: 1;
  padding: 0.35rem 0.75rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem 1.25rem 1.25rem; }
.card__body h3 { margin-bottom: 0.35em; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card__body p { color: var(--gray-600); }
.card__more { margin-top: auto; padding-top: 1rem; color: var(--red-dark); }

/* ---------- Bloco dividido (texto + mídia) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media { position: relative; isolation: isolate; }
.split__media::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  background: var(--red);
}

.checklist { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checklist .icon { margin-top: 0.2em; color: var(--red); }
.on-dark .checklist .icon { color: var(--red-light); }

/* ---------- Instagram ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 40em) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .insta-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Logos de parceiros ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 7.5rem;
  padding: 1rem;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}
.logo-slot small { font-weight: 400; color: var(--gray-600); }
.logo-slot--main { border-color: var(--black); }
.logo-slot--empty { border-style: dashed; color: var(--gray-600); }
a.logo-slot:hover { border-color: var(--red); color: var(--red-dark); }

/* ---------- CTA final ---------- */
.cta {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 56em) { .cta { grid-template-columns: 1.4fr 1fr; } }
.cta h2 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.cta .btn-row { justify-content: flex-start; }
@media (min-width: 56em) { .cta .btn-row { justify-content: flex-end; } }
.section-foot { margin-top: 2rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #E0E0E0;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--red-light); }
.breadcrumb a { color: var(--white); }
.breadcrumb [aria-current] { color: #E0E0E0; }

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery li:first-child .ph { height: 100%; }
}

/* ---------- Lista de competições / atividades ---------- */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.item .icon { width: 2rem; height: 2rem; color: var(--red); }
.item h3 { font-size: 1.5rem; margin-bottom: 0.25em; }
.item p { color: var(--gray-600); font-size: 0.9375rem; }

/* ---------- Links para outras frentes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chips a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 2px solid var(--black);
  border-radius: 2rem;
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}
.chips a:hover { background: var(--black); color: var(--white); }

/* ---------- Texto corrido ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.prose h3 { margin-top: 1.75rem; font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }

.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.field .req { color: var(--red-dark); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid #8A8A8A;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--black); outline: 3px solid var(--red); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFF6F7; }
.field__error { margin: 0.35rem 0 0; color: var(--red-dark); font-size: 0.875rem; font-weight: 600; }
.field__error:empty { display: none; }

.form__note { font-size: 0.875rem; color: var(--gray-600); }
.form__status { margin: 0; padding: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success,
.form__status.is-error { padding: 0.9rem 1rem; border-radius: var(--radius); }
.form__status.is-success { background: #E7F6EC; color: #145C32; border-left: 5px solid #1F8F4E; }
.form__status.is-error { background: #FDECEE; color: var(--red-dark); border-left: 5px solid var(--red); }
.form button[type="submit"][disabled] { opacity: 0.7; cursor: progress; }

/* Honeypot anti-spam: fora da tela, invisível para pessoas e leitores de tela */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--red);
  color: var(--black);
}

/* ---------- PIX ---------- */
.pix {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 48em) { .pix { grid-template-columns: auto 1fr; } }
.pix__qr { width: min(100%, 15rem); padding: 0.75rem; background: var(--white); border: 2px solid var(--gray-300); border-radius: var(--radius); }
.pix__key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.pix__key code {
  flex: 1 1 14rem;
  padding: 0.8rem 1rem;
  background: var(--gray);
  border: 2px dashed #8A8A8A;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 700;
  word-break: break-all;
}
.pix__feedback { min-height: 1.5em; margin: 0; font-weight: 600; color: #145C32; }

/* ---------- Grades auxiliares ---------- */
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 56em) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--wide-left { grid-template-columns: 1.3fr 1fr; } }

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.way {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--black);
}
.way .icon { width: 2.25rem; height: 2.25rem; margin-bottom: 0.75rem; color: var(--red); }
.way h3 a { color: inherit; text-decoration: none; }
.way h3 a::after { content: ""; position: absolute; inset: 0; }
.way:hover,
.way:focus-within { outline: 3px solid var(--red); }
.way p { color: var(--gray-600); }

/* ---------- Contato ---------- */
.channels { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.channels li { display: flex; gap: 0.9rem; align-items: flex-start; }
.channels .icon { width: 1.75rem; height: 1.75rem; color: var(--red); margin-top: 0.1rem; }
.channels strong { display: block; }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-300);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0, 0, 0, 0.04) 14px 28px),
    var(--gray-300);
}
.map__consent p { max-width: 30ch; font-size: 0.9375rem; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found__code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(7rem, 25vw, 14rem);
  line-height: 0.85;
  color: var(--red);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--red-dark);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* ---------- Banner de cookies ---------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 34rem;
  padding: 1.25rem 1.5rem;
  background: var(--black);
  color: var(--white);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
  font-size: 0.9375rem;
}
.consent__title { margin-bottom: 0.4rem; font-size: 1.6rem; }
.consent p { margin-bottom: 1rem; color: #E6E6E6; }
.consent a { color: var(--white); }
.consent :focus-visible { outline-color: var(--white); }
.consent .btn { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.consent .btn--outline { color: var(--white); }
.consent .btn--outline:hover { background: var(--white); color: var(--black); }

/* ---------- Cronograma semanal ---------- */
.schedule-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
}
.schedule-filter[hidden] { display: none; }
.schedule-filter__label { font-weight: 700; }
.schedule-filter__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--black);
  border-radius: 2rem;
  background: var(--white);
  color: var(--black);
  font: 600 0.9375rem var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter-btn:hover { background: var(--black); color: var(--white); }
.on-dark .filter-btn { border-color: rgba(255, 255, 255, 0.45); background: transparent; color: var(--white); }
.on-dark .filter-btn:hover { border-color: var(--white); background: transparent; }
.filter-btn[aria-pressed="true"],
.on-dark .filter-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.day {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  border-top: 5px solid var(--red);
  box-shadow: var(--shadow);
}
.day[hidden] { display: none; }
.day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 2px solid var(--gray);
}
.day__head h3 { margin: 0; font-size: 1.9rem; }
.day__count {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  white-space: nowrap;
}
.day__today {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  vertical-align: middle;
  background: var(--red);
  color: var(--white);
  border-radius: 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.day.is-today { outline: 4px solid var(--red-light); outline-offset: 3px; }

.day__list { margin: 0; padding: 0; list-style: none; }

.slot {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  grid-template-areas: "time name" "time local";
  column-gap: 1rem;
  row-gap: 0.3rem;
  padding: 1rem 1.25rem;
}
.slot + .slot { border-top: 1px solid var(--gray-300); }
.slot[hidden] { display: none; }
.slot p { margin: 0; }

.slot__time {
  grid-area: time;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--red-dark);
  font-variant-numeric: tabular-nums;
}
.slot__name {
  grid-area: name;
  font-weight: 700;
  line-height: 1.35;
}
.slot__local {
  grid-area: local;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  justify-self: start;
  padding: 0.15rem 0.6rem 0.15rem 0.45rem;
  background: var(--gray);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}
.slot__local .icon { width: 1rem; height: 1rem; color: var(--red); }

.schedule__note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--gray-600); }
.on-dark .schedule__note { color: var(--gray-400-on-dark); }

/* ---------- Professores ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--red);
}
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person__body { padding: 1.25rem; }
.person__body h3 { margin-bottom: 0.15em; }
.person__role {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.person__bio { color: var(--gray-600); font-size: 0.9375rem; }
.person__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.person__tags li {
  padding: 0.15rem 0.6rem;
  background: var(--gray);
  border-radius: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* No celular: card horizontal, foto pequena à esquerda */
@media (max-width: 39.99em) {
  .person { flex-direction: row; }
  .person > .ph,
  .person > img { flex: 0 0 7.5rem; width: 7.5rem; aspect-ratio: auto; height: auto; min-height: 9rem; padding: 0.5rem; }
  .person > .ph .ph__label { font-size: 0.6875rem; padding: 0.3rem 0.4rem; }
  .person__body { padding: 1rem; }
  .person__body h3 { font-size: 1.4rem; }
}
