/* ============================================================
   Compasso Studio de Dança — site
   ============================================================ */

:root {
  --magenta: #b8419b;
  --magenta-deep: #8e2e6e;
  --magenta-soft: #f3d9ec;
  --ink: #1e1330;          /* dark sections + dark text */
  --ink-soft: #2a1c40;
  --paper: #fbf8fc;        /* light sections */
  --paper-dim: #efe6f3;
  --on-dark: #ffffff;
  --on-dark-soft: #cdc0dc;
  --on-light: #241533;
  --on-light-soft: #6a5b7a;

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --wrap: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 12vw, 9rem);
  --radius: 18px;
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--on-light);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Shared section shell ---------- */
.section {
  padding-block: var(--section-y);
}
.section--light { background: var(--paper); color: var(--on-light); }
.section--dark  { background: var(--ink);   color: var(--on-dark); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section[id] { scroll-margin-top: var(--header-h); }

.section-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 1rem auto 0;   /* auto centres the 34ch column */
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-style: italic;
  color: var(--on-dark-soft);
  max-width: 34ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px -12px rgba(184, 65, 155, 0.6);
}
.btn:hover { background: var(--magenta-deep); transform: translateY(-2px); }
.btn--block {
  display: flex;
  width: min(100%, 460px);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-inline: auto;   /* centre on desktop; on mobile it's full-width so no effect */
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  height: 66px;
  background: rgba(251, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -12px rgba(30, 19, 48, 0.35);
}
.brand-logo {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(30, 19, 48, 0.35));
  transition: height .3s ease;
}
.scrolled .brand-logo { height: 46px; filter: none; }

.menu-toggle {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: none;
  border-radius: 999px;
  background: rgba(251, 248, 252, 0.9);
  cursor: pointer;
  box-shadow: 0 6px 20px -10px rgba(30, 19, 48, 0.45);
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.scrolled .menu-toggle { background: transparent; box-shadow: none; }

/* ---------- Nav overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay ul { list-style: none; text-align: center; }
.nav-overlay li { overflow: hidden; }
.nav-overlay ul a {
  display: block;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  padding: .45rem 0;
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), color .2s;
}
.nav-overlay.open ul a { transform: translateY(0); }
.nav-overlay li:nth-child(1) a { transition-delay: .06s; }
.nav-overlay li:nth-child(2) a { transition-delay: .10s; }
.nav-overlay li:nth-child(3) a { transition-delay: .14s; }
.nav-overlay li:nth-child(4) a { transition-delay: .18s; }
.nav-overlay li:nth-child(5) a { transition-delay: .22s; }
.nav-overlay li:nth-child(6) a { transition-delay: .26s; }
.nav-overlay ul a:hover { color: #e77dc7; }
.nav-close {
  position: absolute;
  top: 1.4rem; right: var(--pad-x);
  font-size: 2.4rem;
  line-height: 1;
  background: none; border: none; color: inherit; cursor: pointer;
}
.nav-social {
  display: flex;
  gap: 1.4rem;
  margin-top: 1rem;
}
.nav-social a {
  display: grid;
  place-content: center;
  width: 48px; height: 48px;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s, transform .2s;
}
.nav-social a:hover { color: #fff; transform: translateY(-2px); }
.nav-social svg { width: 27px; height: 27px; }

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative;
  height: 70svh;        /* shorter on mobile => landscape photos crop less at the sides */
  min-height: 460px;
}
.hero-swiper, .hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide { height: 100%; }
.hero-swiper .swiper-slide { overflow: hidden; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero-swiper .swiper-slide-active .hero-img {
  animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.16); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(30,19,48,.45) 0%, rgba(30,19,48,0) 22%),
    linear-gradient(to top, rgba(30,19,48,.55) 0%, rgba(30,19,48,0) 30%);
}
.hero-dots {
  position: absolute;
  bottom: 1.6rem; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;                 /* override Swiper's own bullet margins; use the flex gap */
  border-radius: 50%;
  background: #fff;
  opacity: .4;
  transform: none;
  transition: none;          /* no width/opacity morph — avoids half-finished "dash" states */
}
.hero-dots .swiper-pagination-bullet-active {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);   /* subtle ring, no size change */
}

.hero-tagline {
  position: absolute;
  left: var(--pad-x); bottom: 3.5rem;
  z-index: 4;
  color: #fff;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
/* ============================================================
   2. Sobre
   ============================================================ */
.sobre { text-align: center; }
.sobre .section-title { max-width: 18ch; margin-inline: auto; }
.sobre-text {
  margin-top: 1.8rem;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 300;
  line-height: 1.75;
  max-width: 40ch;
  margin-inline: auto;
  color: var(--on-light-soft);
}

/* ============================================================
   3. Aulas & Horários
   ============================================================ */
.aulas { overflow: hidden; }
.section-head { text-align: center; }

.day-tabs {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: clamp(2rem, 5vw, 3rem) 0 2.5rem;
}
.day-tab {
  padding: .6rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--on-dark);
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.day-tab:hover { border-color: rgba(255,255,255,.6); }
.day-tab.is-active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
}

.class-head { text-align: center; min-height: 4.6rem; }
.class-name {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  transition: opacity .25s;
}
.class-age {
  color: #e77dc7;
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: .2rem;
  transition: opacity .25s;
}

.classes-swiper { overflow: visible; padding: 1.5rem 0; }
.classes-swiper .swiper-wrapper { align-items: center; }
.class-slide { width: min(70vw, 320px); }
/* The scale lives on this inner element, not the .swiper-slide — Swiper
   forces its own transform on the slide (backface-hidden), which was
   flattening the side cards to full size. */
.class-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transform: scale(.74);
  opacity: .4;
  transform-origin: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.75);
}
.class-card img { width: 100%; height: 100%; object-fit: cover; }
.class-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,10,32,.75) 0%, rgba(20,10,32,0) 55%);
}
.swiper-slide-active .class-card {
  transform: scale(1);
  opacity: 1;
}
.class-time {
  position: absolute;
  left: 1.1rem; bottom: .9rem;
  z-index: 2;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.8rem);
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

#classDesc {
  text-align: center;
  margin: 1.6rem auto 0;   /* auto centres the 42ch column (full-width on mobile) */
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 300;
  color: var(--on-dark-soft);
  max-width: 42ch;
  min-height: 3.4em;
  transition: opacity .25s;
}

/* ============================================================
   4. Ingressos
   ============================================================ */
.ingressos {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.ingressos-text p {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 300;
  color: var(--on-light-soft);
  max-width: 46ch;
}
.ingressos-text .btn { margin-top: 2rem; }
.ingressos-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(30,19,48,.55);
}

/* Mobile: text + button on the left, poster on the right (same idea as the
   desktop layout, scaled down). Delete this whole block to return to the
   stacked layout. Desktop (>=820px) is handled separately and is unaffected. */
@media (max-width: 819px) {
  .ingressos {
    grid-template-columns: 1fr 42%;
    gap: 1.15rem;
    align-items: center;
  }
  .ingressos .section-title { font-size: clamp(1.35rem, 5.6vw, 2rem); }
  .ingressos-text p {
    margin-top: .7rem;
    font-size: clamp(.85rem, 3vw, 1rem);
    line-height: 1.5;
  }
  .ingressos-text .btn {
    margin-top: 1.1rem;
    width: 100%;
    padding: .8rem .7rem;
    font-size: clamp(.82rem, 3vw, .95rem);
  }
  .ingressos-media img {
    aspect-ratio: 9 / 16;
    box-shadow: 0 22px 44px -26px rgba(30,19,48,.5);
  }
}

/* ============================================================
   5. Vídeo
   ============================================================ */
.video { text-align: center; }
.video-frame {
  position: relative;
  max-width: 960px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.7);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; padding: 0; cursor: pointer;
  background: #000;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.video-play:hover img { opacity: 1; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 999px;
  background: var(--magenta);
  box-shadow: 0 10px 40px rgba(184,65,155,.6);
  transition: transform .2s;
}
.video-play:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-play-btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}

/* ============================================================
   6. Contato
   ============================================================ */
.contato { text-align: center; }
.social-row {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  justify-content: center;
  margin-top: 2.4rem;
}
.social-row a {
  display: grid;
  place-content: center;
  width: 62px; height: 62px;
  border-radius: 999px;
  border: 1.5px solid var(--paper-dim);
  color: var(--on-light);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.social-row a:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
  transform: translateY(-3px);
}
.contato-lines {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.contato-line {
  max-width: 100%;
  font-size: clamp(0.95rem, 3.7vw, 1.06rem);
  letter-spacing: .01em;
  color: var(--on-light);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.contato-line:hover {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  text-align: center;
  padding: 2rem var(--pad-x);
  font-size: .9rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: calc(clamp(1rem, 4vw, 1.75rem) + env(safe-area-inset-bottom));
  z-index: 55;
  width: 58px; height: 58px;
  display: grid;
  place-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 34px -8px rgba(37, 211, 102, .55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: wapulse 2.4s ease-out infinite;
}
@keyframes wapulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 820px) {
  .hero { height: 92svh; min-height: 620px; }
  .ingressos { grid-template-columns: 1fr 1fr; }
  .ingressos-media { order: 2; }
  .ingressos-text { order: 1; }
  .class-slide { width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-swiper .swiper-slide-active .hero-img { animation: none; transform: scale(1.05); }
  .wa-float::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
