/* =========================================================
   Instituto Khuririm · estilos
   Tokens vindos do briefing de marca (contraste WCAG AA)
   ========================================================= */
:root {
  --azul: #02274B;        /* primária */
  --azul-noite: #011A33;  /* rodapé, hover */
  --amarelo: #FDC202;     /* destaque: só sobre azul/escuro */
  --amarelo-hover: #FFD23F;
  --ouro-escuro: #8A6400; /* destaque sobre fundo claro */
  --branco: #FFFFFF;
  --nevoa: #F4F6FA;
  --gelo: #DCE3EC;
  --azul-gelo: #B8C4D4;   /* texto secundário sobre azul */
  --ardosia: #556170;     /* texto secundário sobre claro */
  --grafite: #1B2430;     /* texto corrido */
  --link: #1D4F8C;

  --f-titulo: 'Outfit', system-ui, sans-serif;
  --f-texto: 'DM Sans', system-ui, sans-serif;
  --raio: 16px;
  --raio-lg: 20px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--azul); }
h1, h2, h3 { font-family: var(--f-titulo); margin: 0; line-height: 1.05; }
h2 { font-weight: 800; font-size: clamp(32px, 4vw, 48px); color: var(--azul); }
h3 { font-weight: 600; font-size: 22px; color: var(--azul); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hl { color: var(--amarelo); }
.muted { color: var(--ardosia); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amarelo); color: var(--azul); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-yellow { background: var(--amarelo); color: var(--azul); }
.btn-yellow:hover { background: var(--amarelo-hover); color: var(--azul); }
.btn-outline { border-color: var(--amarelo); color: var(--branco); }
.btn-outline:hover { background: var(--amarelo); color: var(--azul); }
.btn-navy { background: var(--azul); color: var(--branco); }
.btn-navy:hover { background: var(--azul-noite); color: var(--branco); }

/* ---------- Kickers ---------- */
.kicker {
  font-family: var(--f-titulo); font-weight: 600; font-size: 13px;
  letter-spacing: .3em; color: var(--ouro-escuro); margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px;
}
.kicker-light { color: var(--gelo); font-family: var(--f-texto); font-weight: 500; }
.kicker-yellow { color: var(--amarelo); }
.kicker-muted { color: var(--ardosia); }
.kicker .line { width: 40px; height: 2px; background: var(--amarelo); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--azul); border-bottom: 1px solid rgba(253,194,2,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--branco); text-decoration: none; }
.brand img { width: 48px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-titulo); }
.brand-small { font-weight: 600; font-size: 11px; letter-spacing: .35em; }
.brand-big { font-weight: 800; font-size: 22px; }
.brand:hover { color: var(--branco); }

.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a:not(.btn) { color: var(--branco); text-decoration: none; padding: 10px 0; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--amarelo); transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 26px; height: 3px; background: var(--branco); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-mist { background: var(--nevoa); }
.section-dark { background: var(--azul); color: var(--branco); }
.section-dark h2 { color: var(--branco); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head-row a { font-weight: 700; }

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 800; font-size: clamp(42px, 6vw, 76px); line-height: 1; }
.lead { font-size: 20px; line-height: 1.55; color: var(--gelo); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { flex: 1 1 340px; min-width: 0; position: relative; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio-lg); }
.hero-corner {
  position: absolute; top: -16px; right: -16px; width: 55%; height: 55%;
  border-top: 4px solid var(--amarelo); border-right: 4px solid var(--amarelo); border-radius: 0 20px 0 0;
}

/* Pilares */
.pillars { background: var(--amarelo); }
.pillars-list {
  list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-family: var(--f-titulo); font-weight: 800; font-size: 18px; color: var(--azul);
  letter-spacing: .04em; text-transform: uppercase;
}

/* Sobre */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-media { flex: 1 1 320px; min-width: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio-lg); }
.split-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-text .kicker { margin-bottom: 0; }
.quote { margin: 8px 0 0; padding: 20px 24px; background: var(--nevoa); border-radius: 14px; }
.quote p { font-family: var(--f-titulo); font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--azul); }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; color: var(--ardosia); }

/* Aulas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.card { background: var(--branco); border-radius: var(--raio); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card svg { width: 32px; height: 32px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--ardosia); }

/* Valores */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.value { border: 1px solid rgba(220,227,236,.25); border-radius: var(--raio); padding: 24px; }
.value h3 { color: var(--amarelo); font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.value p { color: var(--azul-gelo); }
.values-more { margin-top: 40px; font-size: 15px; color: var(--azul-gelo); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }

/* Apoie */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.support-card { background: var(--branco); border-radius: var(--raio); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.support-card h3 { font-size: 26px; font-weight: 800; }
.support-card p { color: var(--ardosia); }
.support-card a { margin-top: auto; font-weight: 700; }
.support-card-dark { background: var(--azul); color: var(--branco); }
.support-card-dark h3 { color: var(--branco); }
.support-card-dark p { color: var(--azul-gelo); }
.pix { margin-top: auto; background: rgba(255,255,255,.08); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pix span { font-size: 13px; color: var(--azul-gelo); }
.pix strong { font-family: ui-monospace, monospace; font-size: 17px; color: var(--amarelo); word-break: break-all; }
.copy-btn {
  align-self: flex-start; margin-top: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--amarelo); background: transparent; color: var(--branco);
  font: 700 14px var(--f-texto); cursor: pointer;
}
.copy-btn:hover { background: var(--amarelo); color: var(--azul); }

.sponsors { margin-top: 48px; }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.sponsors-grid img { max-height: 64px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.sponsors-grid a:hover img { filter: none; opacity: 1; }
.sponsor-card { margin: 0; border-radius: 12px; overflow: hidden; background: var(--branco); }
.sponsor-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; max-height: none; filter: none; opacity: 1; }
.sponsor-card figcaption { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--azul); text-align: center; }
.sponsor-ph {
  height: auto; min-height: 88px; border: 2px dashed var(--azul-gelo); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--ardosia); font-size: 14px;
}

/* Contato */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-text .kicker { margin-bottom: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.map {
  flex: 1 1 420px; min-width: 0; min-height: 320px; border-radius: var(--raio-lg);
  background: var(--nevoa); border: 2px dashed var(--azul-gelo); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ardosia); padding: 24px;
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.map:has(iframe) { padding: 0; border: 0; }

/* Rodapé */
.site-footer { background: var(--azul-noite); color: var(--gelo); padding: 64px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 40px; }
.footer-top img { width: 180px; height: auto; }
.footer-slogan { font-family: var(--f-titulo); font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--branco); }
.footer-sub { margin-top: 6px; font-size: 15px; color: var(--azul-gelo); }
.footer-bottom {
  border-top: 1px solid rgba(220,227,236,.2); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--azul-gelo);
}
.footer-bottom a { color: var(--amarelo); }

/* ---------- Animação de entrada (respeita reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--azul); padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(253,194,2,.35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(220,227,236,.12); }
  .nav .btn { margin-top: 16px; }
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .pillars-list { justify-content: center; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav a::after { transition: none; }
}
