:root {
  --ink: #070707;
  --ink-soft: #111111;
  --panel: #181612;
  --panel-2: #211e17;
  --paper: #f7f4ec;
  --white: #ffffff;
  --muted: #c9c2b3;
  --muted-dark: #6f695f;
  --gold: #d6a530;
  --gold-bright: #f0cf72;
  --pine: #1d332a;
  --red: #8f2f2b;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(7, 7, 7, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 500;
  transform: translateY(-140%);
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.intro {
  display: none;
}

.js .intro:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.intro-seen .intro,
.intro[hidden] {
  display: none !important;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.intro-content img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(214, 165, 48, 0.5));
}

.intro-content p {
  margin: 0;
  color: var(--gold-bright);
  font-weight: 800;
  text-transform: uppercase;
}

.intro-skip {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  background: rgba(7, 7, 7, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  color: var(--gold-bright);
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-dropdown {
  position: relative;
}

.social-toggle {
  min-height: 38px;
  border: 1px solid rgba(214, 165, 48, 0.32);
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 800;
}

.social-toggle:hover,
.social-dropdown.is-open .social-toggle {
  border-color: rgba(214, 165, 48, 0.64);
  background: rgba(214, 165, 48, 0.11);
}

.social-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(214, 165, 48, 0.28);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-dropdown.is-open .social-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-menu a {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--paper);
  text-decoration: none;
}

.social-menu a:hover {
  background: rgba(214, 165, 48, 0.12);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #080704;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 88% 100%, 0 100%);
  box-shadow: 0 12px 28px rgba(214, 165, 48, 0.28);
}

.btn-secondary {
  border-color: rgba(214, 165, 48, 0.55);
  background: rgba(7, 7, 7, 0.42);
  color: var(--gold-bright);
}

.btn-quiet {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.btn-small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 0.92rem;
}

a[aria-disabled="true"] {
  opacity: 0.62;
  cursor: default;
}

.menu-toggle {
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(214, 165, 48, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(10% 0, 100% 0, 100% 78%, 84% 100%, 0 100%, 0 20%);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--paper);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 420;
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(214, 165, 48, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(7, 7, 7, 0.98), rgba(15, 12, 7, 0.96));
  transform: translateY(-105%);
  transition: transform 220ms ease;
}

.site-menu.is-open,
.site-menu[aria-hidden="false"] {
  transform: translateY(0);
}

.menu-shell {
  width: min(100%, var(--max));
  min-height: calc(100dvh - 48px);
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 22px;
}

.menu-head {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(214, 165, 48, 0.28);
}

.menu-head img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.menu-head strong,
.menu-head span {
  display: block;
}

.menu-head strong {
  color: var(--gold-bright);
  font-size: 1.6rem;
}

.menu-head span {
  color: var(--muted);
}

.menu-head small {
  display: block;
  margin-top: 4px;
  color: var(--gold-bright);
  font-weight: 700;
}

.menu-close {
  width: 48px;
  height: 44px;
  border: 1px solid rgba(214, 165, 48, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 14px;
}

.menu-group,
.menu-contact section {
  border: 1px solid rgba(214, 165, 48, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.menu-group-primary {
  background: rgba(214, 165, 48, 0.08);
}

.menu-group h2,
.menu-contact h2 {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.menu-group nav,
.menu-action-stack {
  display: grid;
  gap: 8px;
}

.menu-action-subgroup {
  display: grid;
  gap: 7px;
  padding-top: 4px;
}

.menu-action-subgroup > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-group a,
.menu-action {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.menu-action.is-gold {
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.menu-group a:hover,
.menu-action:hover {
  border-color: rgba(214, 165, 48, 0.68);
}

.menu-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.menu-contact p {
  margin: 4px 0 12px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--paper);
  font-size: 0.9rem;
}

.contact-actions a.phone-action {
  display: grid;
  align-items: start;
  gap: 2px;
}

.contact-actions a.phone-action strong {
  color: var(--paper);
}

.contact-actions a.phone-action small,
.contact-options a small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.25;
}

.menu-social {
  border: 1px solid rgba(214, 165, 48, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.035);
}

.menu-social h2 {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.menu-social nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-social a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.menu-social a[hidden] {
  display: none;
}

.section {
  padding: 86px 0;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-dark {
  background: var(--ink-soft);
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section h2,
.partners h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 2.25rem;
  line-height: 1.12;
}

.section p {
  color: var(--muted);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.institutional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.institutional-grid a,
.institutional-grid article {
  display: grid;
  gap: 6px;
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.institutional-grid a:hover {
  border-color: var(--red);
}

.institutional-grid span {
  color: var(--muted-dark);
}

.schedule-widget {
  position: relative;
  border: 1px solid rgba(214, 165, 48, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.schedule-public-widget {
  padding: clamp(18px, 2.4vw, 26px);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.schedule-admin-gear {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.schedule-admin-gear:hover,
.schedule-admin-gear:focus-visible {
  border-color: rgba(214, 165, 48, 0.62);
  background: rgba(214, 165, 48, 0.12);
  color: var(--gold-bright);
}

.schedule-days-list {
  display: grid;
  gap: 18px;
}

.schedule-day-card {
  --day-accent: var(--gold);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 5px solid var(--day-accent);
  border-radius: 8px;
  background: rgba(7, 7, 8, 0.64);
}

.schedule-day-card-terca {
  --day-accent: #d65151;
}

.schedule-day-card-quarta {
  --day-accent: #df8a3a;
}

.schedule-day-card-quinta {
  --day-accent: #4d9f70;
}

.schedule-day-card-sexta {
  --day-accent: #4f8edb;
}

.schedule-day-card-sabado {
  --day-accent: #8a67d6;
}

.schedule-day-card-domingo,
.schedule-day-card-outro {
  --day-accent: #a8a8a8;
}

.schedule-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  background: linear-gradient(90deg, color-mix(in srgb, var(--day-accent) 16%, transparent), rgba(255, 255, 255, 0.02));
}

.schedule-day-head h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1.1rem;
  line-height: 1.15;
}

.schedule-day-head p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.schedule-day-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(214, 165, 48, 0.34);
  border: 1px solid color-mix(in srgb, var(--day-accent) 58%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(214, 165, 48, 0.12);
  background: color-mix(in srgb, var(--day-accent) 16%, rgba(0, 0, 0, 0.16));
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.schedule-class-list {
  display: grid;
}

.schedule-class-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(190px, 1.8fr) minmax(150px, 1.1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-class-row:last-child {
  border-bottom: 0;
}

.schedule-class-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.schedule-class-time {
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.schedule-class-main,
.schedule-class-audience {
  min-width: 0;
}

.schedule-class-main h4 {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.25;
}

.schedule-class-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 4px 0 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.86rem;
  line-height: 1.35;
}

.schedule-class-audience {
  display: grid;
  gap: 3px;
}

.schedule-class-audience span {
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 800;
}

.schedule-class-audience small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(148, 163, 184, 0.12);
  color: #e5e7eb;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.schedule-badge-inscricoes_abertas {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(34, 197, 94, 0.13);
  color: #bbf7d0;
}

.schedule-badge-em_validacao,
.schedule-badge-em_breve,
.schedule-badge-ultimas_vagas {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(234, 179, 8, 0.13);
  color: #fde68a;
}

.schedule-badge-turma_completa,
.schedule-badge-lista_espera {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
}

.schedule-badge-sob_consulta,
.schedule-badge-a_confirmar {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.12);
  color: #e5e7eb;
}

.schedule-class-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(214, 165, 48, 0.4);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.schedule-class-link:hover,
.schedule-class-link:focus-visible {
  border-color: var(--gold-bright);
  background: rgba(214, 165, 48, 0.12);
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.schedule-toolbar strong,
.schedule-toolbar span {
  display: block;
}

.schedule-toolbar span,
.schedule-status {
  color: var(--muted);
}

.schedule-status {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.schedule-note {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.schedule-meta {
  padding: 16px 18px 0;
  color: var(--paper);
}

.schedule-meta span {
  color: var(--muted);
}

.schedule-empty {
  padding: 22px 18px 28px;
}

.schedule-empty h3 {
  margin: 0 0 8px;
  color: var(--gold-bright);
}

.schedule-empty p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.schedule-table-wrap {
  overflow-x: auto;
  padding: 18px;
}

.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.schedule-table th {
  color: var(--gold-bright);
  background: rgba(214, 165, 48, 0.08);
}

.schedule-table td[data-state="aberta"] {
  color: #b7f3cc;
}

.schedule-table td[data-state="quase_cheia"] {
  color: var(--gold-bright);
}

.schedule-table td[data-state="completa"] {
  color: #ffb4aa;
}

.schedule-iframe-wrap {
  height: min(680px, 78vh);
  background: #000;
}

.schedule-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.partners {
  padding: 70px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 165, 48, 0.14), transparent 34%),
    rgba(7, 7, 7, 0.96);
  color: var(--paper);
  text-align: center;
}

.partners h2 {
  margin-left: auto;
  margin-right: auto;
}

.partner-label {
  display: inline-flex;
  margin: 0 auto 16px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-logos,
.sponsor-logos,
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.partner-logos img,
.sponsor-logos img {
  width: 112px;
  height: 86px;
  object-fit: contain;
  border: 1px solid rgba(214, 165, 48, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.partner-logos img.partner-logo-small {
  width: 96px;
  height: 70px;
  padding: 8px;
}

.site-footer {
  background: #050505;
  border-top: 1px solid rgba(214, 165, 48, 0.24);
  color: var(--muted);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--paper);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--gold-bright);
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.float-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 165, 48, 0.48);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.float-button:hover,
.float-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.float-button span {
  font-size: 1rem;
  line-height: 1;
}

.float-button strong {
  line-height: 1;
}

.float-button-sos {
  border-color: rgba(143, 47, 43, 0.62);
  background: rgba(143, 47, 43, 0.9);
  color: var(--white);
}

.card-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.schedule-public-widget.card-reveal,
.schedule-public-widget.card-reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.path-card:hover,
.path-card:focus-within,
.pillar-grid article:hover,
.pillar-grid article:focus-within,
.activity-grid article:hover,
.activity-grid article:focus-within,
.schedule-widget:hover,
.schedule-widget:focus-within,
.highlight-card:hover,
.highlight-card:focus-within {
  border-color: rgba(214, 165, 48, 0.54);
  box-shadow: 0 16px 42px rgba(214, 165, 48, 0.12);
  transform: translateY(-4px);
}

.path-card:hover span,
.path-card:focus-within span {
  transform: scale(1.04);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal[hidden] {
  display: none;
}

.modal-box {
  width: min(100%, 980px);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid rgba(214, 165, 48, 0.36);
  border-radius: 8px;
  background: #0d0c0a;
  box-shadow: var(--shadow);
}

.modal-box > p,
.modal-box > .btn {
  margin: 18px;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #0d0c0a;
}

.modal-head h2 {
  margin: 0;
  color: var(--gold-bright);
}

.modal-head button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214, 165, 48, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 20px;
  padding: 18px;
}

.modal-grid h3 {
  margin: 0 0 12px;
}

.modal-note {
  color: var(--gold-bright);
  font-weight: 700;
}

.contact-options,
.sos-grid {
  display: grid;
  gap: 10px;
}

.contact-options a,
.sos-grid a {
  min-height: 58px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(214, 165, 48, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  text-decoration: none;
}

.contact-options a:hover {
  border-color: rgba(214, 165, 48, 0.58);
  background: rgba(214, 165, 48, 0.08);
}

.contact-options span,
.sos-grid span {
  color: var(--muted);
}

.contact-options strong {
  color: var(--paper);
}

.modal-map-button {
  width: 100%;
  margin-top: 12px;
}

.modal-dojo {
  min-height: 100%;
}

.modal-dojo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.sos-grid {
  grid-template-columns: repeat(2, 1fr);
  padding: 18px;
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .menu-grid,
  .menu-contact,
  .modal-grid,
  .institutional-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 22px, var(--max));
  }

  .brand small,
  .header-actions .btn {
    display: none;
  }

  .social-dropdown {
    display: none;
  }

  .site-menu {
    padding: 16px;
  }

  .menu-head {
    grid-template-columns: 72px 1fr auto;
  }

  .menu-head img {
    width: 72px;
    height: 72px;
  }

  .section {
    padding: 62px 0;
  }

  .section h2,
  .partners h2 {
    font-size: 1.8rem;
  }

  .schedule-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-public-widget {
    padding: 16px;
  }

  .schedule-days-list {
    gap: 14px;
  }

  .schedule-day-head {
    padding: 16px;
  }

  .schedule-class-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    padding: 14px 16px;
  }

  .schedule-class-time {
    font-size: 1rem;
  }

  .schedule-badge,
  .schedule-class-link {
    width: fit-content;
  }

  .sos-grid {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .float-button {
    width: 52px;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .float-button span {
    font-size: 1.05rem;
  }

  .float-button strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .modal {
    padding: 12px;
    align-items: start;
  }

  .modal-box {
    max-height: calc(100dvh - 24px);
  }

  .modal-grid {
    padding: 12px;
  }

  .modal-dojo img {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .card-reveal {
    opacity: 1;
    transform: none;
  }
}
