/* =================================================================
   CPN ACADEMIA — modalidade.css  ·  redesign "Luz Líquida"
   Estilos das PÁGINAS DE MODALIDADE (/modalidades).
   Cada página define --mhero-grad inline; aqui usamos esse token.
   ================================================================= */

/* ══════════════════════════════════════════════════════════════════
   HERO DA MODALIDADE
   ══════════════════════════════════════════════════════════════════ */
.mhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: 170px 0 130px;
  background:
    radial-gradient(
      130% 90% at 85% 5%,
      rgba(102, 231, 242, 0.4),
      transparent 55%
    ),
    radial-gradient(
      130% 120% at 5% 95%,
      rgba(123, 60, 224, 0.46),
      transparent 55%
    ),
    var(--mhero-grad, linear-gradient(160deg, #0a3a63, #1390a8));
}

/* ── Slides do carrossel ── */
.mhero__slides {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.mhero__slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}
.mhero__slide.is-active {
  opacity: 1;
}

/* ── Dots do carrossel ── */
.mhero__reel {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 20, 40, 0.16) 0%,
    rgba(4, 20, 40, 0.46) 100%
  );
}
/* luz cáustica */
.mhero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  opacity: 0.38;
  mix-blend-mode: screen;
  background:
    radial-gradient(closest-side, rgba(180, 255, 255, 0.5), transparent 70%) 20%
      30% / 300px 300px,
    radial-gradient(closest-side, rgba(150, 240, 255, 0.3), transparent 70%) 70%
      60% / 260px 260px;
  background-repeat: no-repeat;
  filter: blur(14px);
  animation: caustics 18s ease-in-out infinite alternate;
  pointer-events: none;
}
/* bolhas subindo */
.mhero .container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 0 3px, transparent 4px);
  background-size:
    200px 200px,
    320px 320px;
  background-position:
    15% 0,
    65% 0;
  animation: bubblesUp 15s linear infinite;
}

.mhero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.mhero__icon {
  display: grid;
  place-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  font-size: 2.7rem;
  backdrop-filter: blur(4px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.5s var(--ease-spring);
  animation: floatStat 5s ease-in-out infinite;
}
.mhero__icon:hover {
  transform: scale(1.1) rotate(-8deg);
}

.mhero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.79rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e4fbff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  margin-bottom: 22px;
  animation: heroBadgeIn 0.7s var(--ease) 0.15s both;
}
.mhero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
  animation: heroTitleIn 1s var(--ease-out) 0.3s both;
}
.mhero__lead {
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  color: #eaf7ff;
  margin: 0 auto 34px;
  max-width: 560px;
  line-height: 1.7;
  opacity: 0.92;
  animation: heroSubIn 0.9s var(--ease) 0.5s both;
}
.mhero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: heroCtasIn 0.9s var(--ease) 0.7s both;
}
.mback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.85;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  transition:
    opacity 0.3s,
    transform 0.35s var(--ease-spring),
    border-color 0.3s;
}
.mback .ico {
  transform: rotate(180deg);
  transition: transform 0.35s var(--ease-spring);
}
.mback:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.75);
}
.mback:hover .ico {
  transform: rotate(180deg) translateX(5px);
}

/* ══════════════════════════════════════════════════════════════════
   GALERIA DA MODALIDADE (3 cards)
   ══════════════════════════════════════════════════════════════════ */
.mgallery {
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(94, 23, 196, 0.06), transparent 60%),
    radial-gradient(
      90% 60% at 100% 100%,
      rgba(22, 207, 230, 0.07),
      transparent 60%
    ),
    var(--bg);
  padding-block: clamp(70px, 9vw, 90px);
}
.mgallery .section__head::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: var(--grad-brand);
}
.mgallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 12px;
}
.mshot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mhero-grad, linear-gradient(150deg, #19c7d6, #0a7a93));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.5s var(--ease);
}
.mshot:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.mshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.mshot:hover img {
  transform: scale(1.08);
}
.mshot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(6, 35, 62, 0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}
.mshot:hover::after {
  opacity: 1;
}
.mshot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 3;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.4s;
}
.mshot:hover::before {
  opacity: 1;
}
.mshot.img-missing img {
  display: none;
}
.mshot.img-missing::after {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════
   SOBRE A AULA
   ══════════════════════════════════════════════════════════════════ */
.mabout {
  background: var(--white);
  padding-block: clamp(70px, 9vw, 90px);
  position: relative;
  overflow: hidden;
}
.mabout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  opacity: 0.18;
}
.mabout__wrap {
  max-width: 800px;
  margin-inline: auto;
}
.mabout__text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 18px;
  line-height: 1.8;
}
.mabout__text strong {
  color: var(--ink);
}
.mabout__text ul {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}
.mabout__text ul li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.55;
}
.mabout__text ul li::before {
  content: "";
  flex: none;
  margin-top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px -6px rgba(94, 23, 196, 0.5);
}

/* ══════════════════════════════════════════════════════════════════
   GRADE DE HORÁRIOS  ·  versão compacta "Luz Líquida"
   ══════════════════════════════════════════════════════════════════ */
.mschedule {
  background:
    radial-gradient(
      100% 60% at 50% 0%,
      rgba(22, 207, 230, 0.16),
      transparent 60%
    ),
    radial-gradient(
      90% 50% at 100% 100%,
      rgba(123, 60, 224, 0.2),
      transparent 60%
    ),
    var(--grad-deep);
  color: #fff;
  padding-block: clamp(90px, 12vw, 110px);
  position: relative;
  overflow: hidden;
}
.mschedule::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(closest-side, rgba(102, 231, 242, 0.3), transparent 70%) 10%
      25% / 350px 350px,
    radial-gradient(closest-side, rgba(123, 60, 224, 0.3), transparent 70%) 90%
      75% / 400px 400px;
  background-repeat: no-repeat;
  animation: caustics 22s ease-in-out infinite alternate;
}
.mschedule .kicker {
  color: var(--aqua-light);
}
.mschedule__note {
  color: #bcd3ea;
  margin-top: 10px;
  font-size: 0.96rem;
}

/* grade responsiva: 1 / 2 / 3 colunas conforme a largura disponível */
.mtable {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* cartão de cada dia — vidro enxuto */
.mday {
  background: rgba(8, 30, 60, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 15px 18px 17px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.mday::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}
.mday:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 207, 230, 0.4);
  box-shadow:
    0 24px 48px -26px rgba(22, 207, 230, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* cabeçalho do dia */
.mday__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mday__head .ico {
  width: 17px;
  height: 17px;
  color: var(--aqua-light);
  flex-shrink: 0;
}

/* horários em pílulas compactas */
.mslots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mslot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: #d7e8f8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 11px;
  border-radius: 9px;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    transform 0.3s var(--ease-spring);
}
.mslot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 7px var(--aqua);
  flex-shrink: 0;
}
.mslot:hover {
  background: rgba(22, 207, 230, 0.14);
  border-color: rgba(22, 207, 230, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

/* dia fechado — faixa discreta em toda a largura */
.mday--closed {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  opacity: 0.72;
}
.mday--closed::before {
  background: rgba(255, 255, 255, 0.16);
}
.mday--closed .mday__head {
  padding: 0;
  margin: 0;
  border: 0;
}
.mday--closed .mslots {
  color: #8fb0cc;
  font-style: italic;
  font-size: 0.9rem;
}
.mschedule__cta {
  margin-top: 46px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.mschedule__cta p {
  color: #bcd3ea;
  margin-top: 16px;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 560px) {
  .mgallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .mhero {
    padding: 200px 0 160px;
  }
  .mhero__inner {
    max-width: 900px;
  }
  .mhero__title {
    font-size: clamp(3rem, 8vw, 5rem);
  }
}
