/* ==========================================================================
   Ballet Gabriella Bomfim — Folha de estilos principal
   --------------------------------------------------------------------------
   1. Variáveis (cores e fontes)
   2. Reset e base
   3. Utilitários (container, títulos, botões, animação de entrada)
   4. Cabeçalho / navegação
   5. Hero (topo)
   6. Sobre
   7. Turmas
   8. Espetáculos e conquistas
   9. Galeria
   10. Frase de destaque
   11. Contato
   12. Rodapé
   13. Botão flutuante do WhatsApp
   14. Responsividade
   ========================================================================== */


/* 1. Variáveis
   ========================================================================== */
:root {
  --rosa: #e75a9b;
  --rosa-escuro: #b8356f;
  --rosa-claro: #fde8f1;
  --rosa-bebe: #fff5f9;
  --rosa-borda: #fbd9e8;
  --vinho: #3a1f2d;
  --dourado: #d4a85a;
  --texto: #4a2c3a;
  --texto-suave: #7d5a6a;
  --branco: #fff;

  --fonte-texto: "Poppins", sans-serif;
  --fonte-titulo: "Playfair Display", serif;
  --fonte-cursiva: "Great Vibes", cursive;

  --altura-header: 74px;
  --sombra-suave: 0 10px 30px rgba(184, 53, 111, .08);
  --sombra-media: 0 20px 50px rgba(184, 53, 111, .18);
}


/* 2. Reset e base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--altura-header);
}

body {
  font-family: var(--fonte-texto);
  color: var(--texto);
  background: var(--branco);
  line-height: 1.7;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  line-height: 1.2;
}


/* 3. Utilitários
   ========================================================================== */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.script {
  font-family: var(--fonte-cursiva);
  font-weight: 400;
}

.section {
  padding: 96px 0;
}

.section--rosa {
  background: var(--rosa-bebe);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title .script {
  display: block;
  font-size: 2.4rem;
  color: var(--rosa);
}

.section-title h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 40px;
  font-weight: 500;
  text-decoration: none;
  transition: .25s;
}

.btn--primary {
  background: var(--rosa);
  color: var(--branco);
  box-shadow: 0 10px 25px rgba(231, 90, 155, .35);
}

.btn--primary:hover {
  background: var(--rosa-escuro);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--rosa);
  color: var(--rosa-escuro);
}

.btn--outline:hover {
  background: var(--rosa);
  color: var(--branco);
}

/* Animação de entrada (ativada pelo js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sparkle, .petal, .whatsapp-float { animation: none; }
}


/* 4. Cabeçalho / navegação
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(184, 53, 111, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--altura-header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(184, 53, 111, .18);
}

.logo__text {
  line-height: 1;
  text-align: center; /* "Ballet" centralizado sobre o nome, como no logo original */
}

.logo__text .script {
  display: block;
  font-size: 1.7rem;
  color: var(--rosa-escuro);
}

.logo__text .logo__ballet {
  margin-bottom: 2px;
  font-size: 1.45rem;
  color: var(--rosa);
}

.menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.menu a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--rosa);
  transition: .25s;
}

.menu a:hover::after {
  width: 100%;
}

.nav .btn {
  padding: 10px 22px;
  font-size: .9rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  color: var(--rosa-escuro);
  cursor: pointer;
}


/* 5. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--altura-header);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, #ffd6e8 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, #fde3ef 0%, transparent 50%),
    var(--rosa-bebe);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}

.hero .script {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--rosa);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 4px 0 20px;
}

.hero p {
  max-width: 520px;
  margin-bottom: 34px;
  font-size: 1.1rem;
  color: var(--texto-suave);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
}

.hero__info div {
  font-size: .88rem;
  color: var(--texto-suave);
}

.hero__info strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  color: var(--rosa-escuro);
}

.hero__art {
  display: grid;
  place-items: center;
}

.hero__circle {
  position: relative;
  width: min(440px, 90%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, #fcd7e7 55%, #f6b3d0 100%);
  box-shadow: 0 30px 80px rgba(231, 90, 155, .25);
}

/* A bailarina do logo tem fundo branco: "multiply" faz o branco sumir sobre o rosa */
.hero__ballerina {
  width: 78%;
  mix-blend-mode: multiply;
  /* esfuma as bordas para esconder o recorte quadrado da imagem */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, transparent 100%);
}

/* Estrelinhas */
.sparkle {
  position: absolute;
  color: var(--dourado);
  animation: twinkle 3s infinite ease-in-out;
}

.sparkle--1 { top: 8%;    left: 14%;  font-size: 1.6rem; }
.sparkle--2 { top: 22%;   right: 6%;  font-size: 1.1rem; animation-delay: 1s; }
.sparkle--3 { bottom: 14%; left: 6%;  font-size: 1.2rem; animation-delay: 2s; }
.sparkle--4 { bottom: 6%; right: 18%; font-size: 1.8rem; animation-delay: .5s; }

@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* Pétalas caindo (criadas pelo js/main.js) */
.petal {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 14px;
  border-radius: 80% 0 80% 0;
  background: #f7b6d2;
  opacity: .7;
  animation: fall linear infinite;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(540deg); }
}


/* 6. Sobre
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px;
  border: 6px solid var(--branco);
  border-radius: 200px 200px 24px 24px;
  background: linear-gradient(160deg, var(--rosa-claro), #f7c6dc);
  box-shadow: var(--sombra-media);
  text-align: center;
  font-size: .9rem;
  color: var(--rosa-escuro);
}

.photo-frame--has-img {
  padding: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text .script {
  font-size: 2.3rem;
  color: var(--rosa);
}

.about__text h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--texto-suave);
}

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

.value {
  padding: 18px;
  border: 1px solid var(--rosa-borda);
  border-radius: 16px;
  background: var(--rosa-bebe);
  text-align: center;
}

.value span {
  font-size: 1.6rem;
}

.value h4 {
  margin-top: 6px;
  font-size: .95rem;
}


/* 7. Turmas
   ========================================================================== */
.classes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.class-card {
  padding: 34px 24px;
  border-top: 5px solid var(--rosa);
  border-radius: 24px;
  background: var(--branco);
  box-shadow: var(--sombra-suave);
  text-align: center;
  transition: .3s;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(184, 53, 111, .16);
}

.class-card__icon {
  margin-bottom: 12px;
  font-size: 2.6rem;
}

.class-card h3 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.class-card__age {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--rosa-claro);
  font-size: .8rem;
  font-weight: 600;
  color: var(--rosa-escuro);
}

.class-card p {
  font-size: .9rem;
  color: var(--texto-suave);
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
}

.benefits span {
  padding: 8px 18px;
  border: 1px solid #f6c3da;
  border-radius: 30px;
  background: var(--branco);
  font-size: .88rem;
  color: var(--rosa-escuro);
}


/* 8. Espetáculos e conquistas
   ========================================================================== */
.shows__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}

.show-main {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(140deg, #7b2d5b 0%, var(--rosa-escuro) 45%, var(--rosa) 100%);
  color: var(--branco);
}

.show-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 40%);
}

.show-main > * {
  position: relative;
}

.show-main__tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.show-main .script {
  font-size: 3rem;
  line-height: 1.1;
}

.show-main p {
  max-width: 480px;
  margin: 18px 0 24px;
  opacity: .92;
}

.show-main__details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: .9rem;
}

.shows__side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.award {
  flex: 1;
  padding: 36px;
  border: 1px solid #f1d9a6;
  border-radius: 28px;
  background: linear-gradient(140deg, #fff8ea, #fdecc8);
}

.award__medal {
  font-size: 2.8rem;
}

.award h3 {
  margin: 8px 0;
  font-size: 1.5rem;
}

.award p {
  font-size: .92rem;
  color: #7a5a2a;
}

.show-small {
  flex: 1;
  padding: 32px;
  border: 1px solid var(--rosa-borda);
  border-radius: 28px;
  background: var(--rosa-bebe);
}

.show-small h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.show-small p {
  font-size: .92rem;
  color: var(--texto-suave);
}


/* 9. Galeria
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fde3ef, #f7c6dc);
  box-shadow: 0 8px 24px rgba(184, 53, 111, .12);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(120, 30, 70, .75));
  font-family: var(--fonte-cursiva);
  font-size: 1.25rem;
  text-align: center;
  color: var(--branco);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }

.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { opacity: 1; transform: none; }

.gallery__item:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }

/* Blocos da galeria: eventos e figurinos */
.gallery__block + .gallery__block { margin-top: 70px; }

.gallery__subtitle {
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  text-align: center;
  color: var(--rosa-escuro);
}

.gallery__text {
  margin: 6px 0 28px;
  text-align: center;
  color: var(--texto-suave);
}

/* Fotos de eventos: horizontais (palco, turma reunida) */
.gallery__grid--events { grid-template-columns: repeat(4, 1fr); }
.gallery__grid--events .gallery__item { aspect-ratio: 4 / 3; }

/* Espaço reservado enquanto a foto não chega */
.gallery__item--empty {
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: var(--rosa-escuro);
  box-shadow: none;
  cursor: default;
}

.event {
  padding: 24px;
  border-radius: 24px;
  background: var(--branco);
  box-shadow: 0 10px 30px rgba(184, 53, 111, .08);
}

.event + .event { margin-top: 24px; }

.event__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.event__head h4 {
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
}

.event__head span {
  font-size: .85rem;
  color: var(--texto-suave);
}

/* Em telas de toque não há "hover": a legenda fica sempre visível */
@media (hover: none) {
  .gallery__item figcaption { opacity: 1; transform: none; font-size: 1.05rem; }
}

/* Foto ampliada */
.lightbox {
  /* O reset (* { margin: 0 }) tira a centralização padrão do <dialog> */
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  max-width: 92vw;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--branco);
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(60, 10, 35, .8); }

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.lightbox__caption {
  margin: 0;
  padding: 12px;
  font-family: var(--fonte-cursiva);
  font-size: 1.4rem;
  text-align: center;
  color: var(--rosa-escuro);
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rosa-escuro);
  cursor: pointer;
}

.lightbox__close:focus { outline: none; }
.lightbox__close:focus-visible { outline: 3px solid var(--rosa); }

.gallery__cta {
  margin-top: 40px;
  text-align: center;
}


/* 10. Frase de destaque
   ========================================================================== */
.quote {
  padding: 90px 0;
  background: linear-gradient(120deg, var(--rosa-escuro), var(--rosa));
  color: var(--branco);
  text-align: center;
}

.quote .script {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.2;
}

.quote p {
  margin-top: 14px;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .85;
}


/* 11. Contato
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  padding: 44px;
  border: 1px solid var(--rosa-borda);
  border-radius: 28px;
  background: var(--rosa-bebe);
}

.contact-card h3 {
  margin-bottom: 24px;
  font-size: 1.7rem;
}

.info {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.info__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: 0 6px 16px rgba(184, 53, 111, .12);
  font-size: 1.2rem;
}

.info strong {
  display: block;
}

.info span {
  font-size: .93rem;
  color: var(--texto-suave);
}

.map {
  min-height: 380px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--sombra-media);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}


/* 12. Rodapé
   ========================================================================== */
.footer {
  padding: 50px 0 30px;
  background: var(--vinho);
  color: #f3d6e3;
  text-align: center;
}

.footer .script {
  font-size: 2.2rem;
  color: var(--branco);
}

.footer p {
  font-size: .88rem;
  opacity: .8;
}

.footer__copy {
  margin-top: 8px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: .25s;
}

.socials a:hover {
  background: var(--rosa);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: var(--branco);
}


/* 13. Botão flutuante do WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  animation: pulse 2.4s infinite;
}

.whatsapp-float svg {
  width: 32px;
  fill: var(--branco);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}


/* 14. Responsividade
   ========================================================================== */
@media (max-width: 960px) {
  .menu {
    position: fixed;
    top: var(--altura-header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    background: var(--branco);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    transform: translateY(-130%);
    transition: .35s;
  }

  .menu.is-open {
    transform: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav .btn {
    display: none;
  }

  .hero__grid,
  .about__grid,
  .shows__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero p {
    margin-inline: auto;
  }

  .hero__buttons,
  .hero__info {
    justify-content: center;
  }

  .hero__art {
    order: -1;
  }

  .hero__circle {
    width: min(300px, 80%);
  }

  .classes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid--events {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .section {
    padding: 70px 0;
  }

  .classes__grid,
  .values {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .event {
    padding: 16px;
  }

  /* Número ímpar de fotos: a última fica centralizada */
  .gallery__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 5px);
  }

  .show-main,
  .contact-card {
    padding: 32px;
  }
}
