:root {
  --bg: #f8f3fb;
  --bg-alt: #f3ecfa;
  --surface: #ffffff;
  --surface-soft: #fdfbff;
  --accent: #c48ad3;
  --accent-dark: #9b63b0;
  --accent-light: #e4c9f0;
  --text: #262626;
  --text-muted: #666666;
  --border-radius: 16px;
  --shadow-soft: 0 18px 40px rgba(111, 67, 143, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #f4e3ff 0, #f8f3fb 40%, #ffffff 100%);
  color: var(--text);
}

/* --- Layout base --- */

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

/* --- Header --- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 243, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 138, 211, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo img {
  width: 90px !important;
  height: 60px !important;
  object-fit: contain;
  margin-left: 15px;
}

/* --- Navegação --- */

.nav {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.25s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  margin-right: 15px;
}

/* --- HERO --- */

.hero {
  position: relative;
  min-height: 85vh; /* Ocupa 85% da altura da tela */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  color: #ffffff; /* Texto branco para contrastar com a foto */
}

/* Camada da Imagem de Fundo */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz a imagem cobrir tudo sem distorcer */
  object-position: center;
}

/* Overlay (Sombra) para dar leitura ao texto */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Cria um degradê preto da esquerda para a direita */
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3; /* Garante que o texto fique acima da imagem e do overlay */
  width: 100%;
}

.hero-text {
  max-width: 600px; /* Limita a largura do texto no canto esquerdo */
}

.hero-tag {
  color: var(--accent-light); /* Cor clara para destacar no fundo escuro */
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--accent-light);
}

/* Ajuste do botão outline para fundo escuro */
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--accent-dark);
}

/* --- Botões --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(143, 92, 177, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 35px rgba(143, 92, 177, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
}

/* --- Grid genérico --- */

.grid {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 768px) {
  .modalidades-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* --- Cards --- */

.card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card h3,
.card h4 {
  margin-top: 0;
}

/* --- SOBRE (Ajustado) --- */

.sobre-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sobre-inner {
    /* Divide em duas colunas no computador */
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.sobre-text p {
  color: var(--text-muted);
  line-height: 1.7;
}

.sobre-card {
  background: var(--surface);
  padding: 2.5rem 1.8rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center; /* Centraliza a foto e o título */
  border: 1px solid rgba(196, 138, 211, 0.1);
}

/* Nova classe para a foto de perfil */
.foto-perfil {
  width: 160px;          /* Tamanho ideal para o card */
  height: 160px;
  object-fit: cover;     /* Mantém a proporção sem distorcer */
  border-radius: 50%;    /* Círculo perfeito */
  display: block;
  margin: 0 auto 1.5rem; /* Centraliza horizontalmente e dá espaço abaixo */
  border: 4px solid var(--accent-light);
  box-shadow: 0 8px 20px rgba(111, 67, 143, 0.1);
}

.sobre-card h3 {
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

/* --- MODALIDADES --- */

.modalidade h3 {
  margin-bottom: 0.6rem;
}

.modalidade p {
  margin: 0;
  color: var(--text-muted);
}

/* --- PLANOS --- */

.planos-toggle {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-toggle {
  border-radius: 999px;
  border: 1px solid var(--accent-light);
  background: #ffffff;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-toggle.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  border-color: transparent;
}

.planos-conteudo {
  display: none;
}

.planos-conteudo.active {
  display: block;
}

.plano {
  text-align: center;
}

.plano-preco {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.2rem 0 0.4rem;
  color: var(--accent-dark);
}

.plano-desc {
  margin: 0;
  color: var(--text-muted);
}

.planos-extra {
  margin-top: 2.5rem;
  background: var(--surface-soft);
  border-radius: var(--border-radius);
  padding: 1.6rem 1.4rem;
}

/* --- CONTATO --- */

.contato-inner {
  display: grid;
  gap: 2.5rem;
}

.contato-info p {
  color: var(--text-muted);
}

.contato-lista {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contato-lista li + li {
  margin-top: 0.4rem;
}

.contato-lista a {
  color: var(--accent-dark);
  text-decoration: none;
}

.contato-lista a:hover {
  text-decoration: underline;
}

/* --- RODAPÉ --- */

.footer {
  background: #2b2232;
  color: #f7f0ff;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* --- GALERIA INFINITA --- */

.gallery-section {
    padding: 4rem 0;
    overflow: hidden; /* Esconde as imagens que saem da tela */
    background: var(--bg);
}

.infinite-scroll-wrapper {
    width: 100%;
    cursor: grab; /* Mostra a "mãozinha" de arrastar */
}

.infinite-scroll-wrapper:active {
    cursor: grabbing;
}

.infinite-scroll {
    display: flex;
    width: max-content; /* Garante que o container tenha a largura total das imagens */
}

.scroll-container {
    display: flex;
    gap: 20px; /* Espaço entre as fotos */
    padding: 0 10px;
}

.gallery-image {
    width: 300px;         /* Largura das fotos na galeria */
    height: 400px;        /* Altura das fotos */
    object-fit: cover;    /* Não distorce a imagem */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    pointer-events: none; /* Evita que o navegador tente arrastar a imagem em si */
    user-select: none;
}

/* --- Responsivo --- */

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    text-align: center;;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero::after {
    /* No celular, escurece a imagem inteira por igual */
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(248, 243, 251, 0.98);
    border-bottom: 1px solid rgba(196, 138, 211, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .nav.open {
    max-height: 260px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1.2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .gallery-image {
        width: 220px;
        height: 300px;
    }
}