/* ============================================================
   style.css — Componentes e animações
   Layout e utilitários: css/layout.css
   ============================================================ */

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#navbar.scrolled {
  background: rgba(28, 28, 28, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-hidden { display: none !important; }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-glow {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center,
    rgba(245, 166, 35, 0.07) 0%,
    rgba(245, 166, 35, 0.02) 50%,
    transparent 70%
  );
  pointer-events: none;
}

/* Hero headline entry animations */
.hero-badge   { animation: fadeUp 0.6s ease 0.05s both; }
.hero-h1      { animation: fadeUp 0.7s ease 0.15s both; }
.hero-sub     { animation: fadeUp 0.7s ease 0.28s both; }
.hero-ctas    { animation: fadeUp 0.7s ease 0.40s both; }
.hero-stats   { animation: fadeUp 0.7s ease 0.52s both; }
.hero-figure  { animation: fadeUp 0.9s ease 0.25s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: none; }
}

/* ===== SECTION COMMON ===== */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: 0.875rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: #000;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  transform: translateY(-2px);
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--color-wa);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-pill);
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-wa:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

/* ===== VALUE PILLS ===== */
.value-pill {
  display: inline-block;
  padding: 0.3125rem 0.875rem;
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--color-gold);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--transition);
}
.value-pill:hover { background: var(--color-gold-light); }

/* ===== BENEFIT CARDS ===== */
.benefit-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover {
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.benefit-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.benefit-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.benefit-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ===== TIMELINE ===== */
.timeline-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-line-v {
  position: absolute;
  left: 1.625rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-gold) 15%, var(--color-gold) 85%, transparent);
}
@media (min-width: 768px) {
  .timeline-line-v { left: 50%; transform: translateX(-50%); }
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  padding-left: 5rem;
}
@media (min-width: 768px) {
  .timeline-item { padding-left: 0; gap: 0; }
  .timeline-item:nth-child(odd)  { justify-content: flex-start;  padding-right: calc(50% + 2.5rem); }
  .timeline-item:nth-child(even) { justify-content: flex-end;    padding-left:  calc(50% + 2.5rem); }
  .timeline-item:nth-child(even) .timeline-dot { order: -1; margin-right: 0; margin-left: 0; position: absolute; left: 50%; transform: translateX(-50%); }
  .timeline-item:nth-child(odd)  .timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); }
}
.timeline-dot {
  position: absolute;
  left: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}
@media (min-width: 768px) {
  .timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); top: 50%; margin-top: -1.625rem; }
}
.timeline-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  max-width: 340px;
}
.timeline-step { font-size: 0.7rem; font-weight: 700; color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.25rem; }
.timeline-card-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem; }
.timeline-card-desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ===== PLAN CARDS ===== */
.plan-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--plan-accent, var(--color-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.plan-card:hover { transform: translateY(-6px); }
.plan-card.featured {
  transform: scale(1.035);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.plan-card.featured:hover { transform: scale(1.035) translateY(-6px); }

.plan-badge {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan-tier  { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.2rem; display: block; }
.plan-name  { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: 0.3rem; }
.plan-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

.plan-price-block { padding: 1rem 0; border-top: 1px solid; border-bottom: 1px solid; }
.plan-price { font-size: 2.625rem; font-weight: 900; line-height: 1; }
.plan-price sup { font-size: 1.125rem; font-weight: 700; vertical-align: super; }
.plan-price sub { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.45); vertical-align: baseline; }
.plan-per-lesson { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem; }

.plan-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.plan-meta-icon { flex-shrink: 0; font-size: 1rem; }

.plan-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.plan-perk-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
}
.plan-perk-check {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 0.875rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: filter var(--transition), transform var(--transition);
  margin-top: auto;
  color: #000;
}
.plan-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.875rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: var(--gallery-img-aspect);
  background: var(--color-surface-2);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: white;
}
.gallery-item:hover img     { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(245, 166, 35, 0.2);
  transform: translateY(-4px);
}
.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stars { color: var(--color-gold); font-size: 0.875rem; letter-spacing: 0.05em; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-trigger:hover { color: var(--color-gold); }
.faq-icon {
  color: var(--color-gold);
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-panel p {
  padding-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ===== CTA FINAL ===== */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1200 0%, #1C1C1C 40%, #1C1C1C 60%, #1a1200 100%);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== FLOATING WHATSAPP ===== */
#floating-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-wa);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
#floating-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
}
#floating-wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-wa);
  animation: wa-pulse 2.5s ease infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ===== FOOTER ===== */
.footer-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--color-gold); }

/* ===== DIVIDER ===== */
.gold-divider {
  width: 3rem;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ===== CAROUSEL ===== */
.carousel-outer {
  position: relative;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
/* Container do carrossel do professor */
.prof-carousel-wrap {
  width: 100%;
  overflow: hidden;
}
.professor-swiper {
  width: 100%;
  height: 420px;
}
@media (min-width: 768px) {
  .professor-swiper {
    height: 560px;
  }
}

.professor-swiper .swiper-slide {
  position: relative;
}
.professor-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.professor-swiper .swiper-button-prev,
.professor-swiper .swiper-button-next {
  color: white;
  background: rgba(0,0,0,0.5);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.professor-swiper .swiper-button-prev::after,
.professor-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}
.professor-swiper .swiper-button-prev:hover,
.professor-swiper .swiper-button-next:hover {
  background: rgba(212,160,23,0.85);
}
.professor-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.35);
  opacity: 1;
}
.professor-swiper .swiper-pagination-bullet-active {
  background: var(--color-gold);
  width: 22px;
  border-radius: 3px;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.25rem 1.125rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  padding: 0;
}
.carousel-btn:hover {
  background: rgba(245, 166, 35, 0.88);
  transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.carousel-dot.active {
  background: var(--color-gold);
  width: 22px;
  border-radius: 3.5px;
}

/* ===== GALLERY CAROUSEL — PARÂMETROS FÁCEIS DE AJUSTAR ===== */
/*
  Para mudar o visual da galeria, edite só estas variáveis:

  --gallery-cols       : quantos slides aparecem ao mesmo tempo no desktop
  --gallery-gap        : espaço entre os slides
  --gallery-img-aspect : proporção das imagens (largura/altura)
                         ex: 4/3 = quadrada-ish  |  16/9 = wide  |  1/1 = quadrada

  ATENÇÃO: se alterar --gallery-cols também mude o valor em carousel.js
  (linha com `slice(0, 3)` e `n >= origTotal` — troque 3 pelo novo número)
*/
:root {
  --gallery-cols:       3;
  --gallery-gap:        0.75rem;
  --gallery-img-aspect: 1/1;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: white;
  background: rgba(0,0,0,0.5);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}
.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
  background: rgba(245,166,35,0.88);
}
.gallery-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.35);
  opacity: 1;
}
.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--color-gold);
  width: 22px;
  border-radius: 3px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 767px) {
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-6px); }
  .gallery-slide { min-width: 100%; }
}
