/* ============================================================
   LD FEST KIDS — Site institucional
   Estilo: minimalista premium (Apple / Airbnb / Stripe / Linear)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --gray-light: #F5F5F7;
  --text: #1D1D1F;
  --text-soft: #6E6E73;
  --pink-light: #F8D8E8;
  --pink-medium: #F6AFCB;
  --gold: #E8D7A5;
  --btn: #FF4D8D;
  --btn-hover: #E63E7E;

  --font: 'SF Pro Display', 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --shadow-sm: 0 4px 16px rgba(29, 29, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(29, 29, 31, 0.08);
  --shadow-lg: 0 24px 64px rgba(29, 29, 31, 0.12);
  --shadow-pink: 0 16px 40px rgba(255, 77, 141, 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }

svg { width: 100%; height: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 780px; }

section { position: relative; padding: 72px 0; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--btn);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 560px;
}

.section-header { text-align: center; margin: 0 auto 44px; max-width: 640px; }
.section-header .section-subtitle { margin: 0 auto; }
.section-footer { text-align: center; margin-top: 36px; }

.text-accent { color: var(--btn); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { --delay: 1; }
[data-reveal-delay="2"] { --delay: 2; }
[data-reveal-delay="3"] { --delay: 3; }
[data-reveal-delay="4"] { --delay: 4; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--btn);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 20px 48px rgba(230, 62, 126, 0.34); }

.btn--ghost {
  background: var(--gray-light);
  color: var(--text);
}
.btn--ghost:hover { background: #ebebee; transform: translateY(-2px); }

.btn--sm { padding: 10px 22px; font-size: 0.9rem; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }
.btn--xl { padding: 22px 48px; font-size: 1.15rem; }

/* ---------- Grid utilitário ---------- */
.grid { display: grid; gap: 28px; }
.grid--services { grid-template-columns: repeat(5, 1fr); }
.grid--themes { grid-template-columns: repeat(4, 1fr); }
.grid--highlights { grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Placeholder de mídia ---------- */
.ph-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-light), var(--gray-light) 55%, var(--gold));
  isolation: isolate;
}
.ph-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
}
.ph-media::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(29, 29, 31, 0.45);
  letter-spacing: 0.01em;
}
.ph-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(29, 29, 31, 0.06);
}

.navbar__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 8px; }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.logo__text { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

.navbar__menu { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--btn); }
.nav-link:hover::after { transform: scaleX(1); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-active span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 48px;
  background: linear-gradient(180deg, var(--gray-light), #ffffff 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__media { aspect-ratio: 4/5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.ph-media--hero { border-radius: var(--radius-lg); }

/* ---------- Sobre ---------- */
.about { background: var(--bg); }
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }

.about__media { position: relative; display: flex; justify-content: center; }
.about__img { position: relative; width: 100%; max-width: 440px; aspect-ratio: 3/4; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

.about__text { font-size: 1.1rem; color: var(--text-soft); margin-bottom: 20px; max-width: 520px; }

/* ---------- Cards de serviço ---------- */
.card--service {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding-bottom: 32px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.card--service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.card__photo { aspect-ratio: 4/3; overflow: hidden; }
.card__photo .ph-media { border-radius: 0; }
.card__photo img { transition: transform 0.6s var(--ease); }
.card--service:hover .card__photo img { transform: scale(1.08); }
.card__icon {
  width: 52px; height: 52px;
  margin: -26px 26px 20px;
  position: relative;
  z-index: 2;
  color: var(--btn);
  background: var(--pink-light);
  border: 4px solid #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.card--service h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; padding: 0 26px; }
.card--service p { font-size: 0.95rem; color: var(--text-soft); padding: 0 26px; }

/* ---------- Como funciona (timeline) ---------- */
.how { background: var(--gray-light); }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 26px; left: 10%; right: 10%;
  height: 1px;
  background: rgba(29,29,31,0.12);
}
.timeline__step { position: relative; text-align: center; }
.timeline__number {
  display: none;
}
.timeline__icon {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  margin: 0 auto 24px;
  background: #fff;
  border: 1px solid rgba(29,29,31,0.08);
  color: var(--btn);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 13px;
  box-shadow: var(--shadow-sm);
}
.timeline__step h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.timeline__step p { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Carrossel (galeria + depoimentos) ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.carousel .container { width: 100%; }

.carousel__viewport { overflow: hidden; width: 100%; }
.carousel__track { display: flex; will-change: transform; transition: transform 0.65s var(--ease); }
.carousel__slide { flex: 0 0 auto; padding: 0 12px; }

.gallery .carousel { padding: 0 32px; }
.gallery .carousel__slide { width: 380px; }
.gallery .ph-media { border-radius: var(--radius-lg); aspect-ratio: 4/3; box-shadow: var(--shadow-md); }

.carousel__arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(29,29,31,0.1);
  background: #fff;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background-color 0.3s ease, color 0.3s ease;
  z-index: 2;
}
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow:hover { background: var(--btn); color: #fff; transform: scale(1.08); }

.carousel__dots {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(29,29,31,0.2);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.carousel__dot.is-active { background: var(--btn); transform: scale(1.3); }

.testimonials { background: var(--gray-light); overflow: hidden; }
.carousel--testimonials { gap: 24px; }
.carousel--testimonials .carousel__slide {
  width: min(560px, 82vw);
  opacity: 0.3;
  transform: scale(0.88);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.carousel--testimonials .carousel__slide.is-center { opacity: 1; transform: scale(1); }
.carousel--testimonials .carousel__viewport { max-width: 780px; margin: 0 auto; overflow: visible; }
.carousel--testimonials .carousel__track { align-items: center; }

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 48px 44px;
  text-align: center;
  border: 1px solid rgba(255, 77, 141, 0.10);
  box-shadow: 0 24px 64px rgba(255, 77, 141, 0.10), 0 6px 20px rgba(29, 29, 31, 0.05);
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--btn), var(--pink-medium), var(--gold));
}
.testimonial-card__mark {
  position: absolute;
  top: 20px; left: 26px;
  width: 42px; height: 42px;
  color: var(--pink-light);
}
.testimonial-card__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--btn);
  margin-bottom: 22px;
}
.testimonial-card__stars svg { width: 17px; height: 17px; }
.testimonial-card__quote {
  font-size: 1.18rem;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.testimonial-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn), var(--pink-medium));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 77, 141, 0.32);
}
.testimonial-card__meta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.testimonial-card__name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.testimonial-card__context { font-size: 0.82rem; color: var(--text-soft); }

@media (max-width: 640px) {
  .carousel__arrow { display: none; }
  .carousel__dots { bottom: -32px; }
  .carousel__dot { width: 8px; height: 8px; }

  .gallery .carousel { padding: 0 22px; gap: 0; }
  .gallery .carousel__slide { width: min(340px, 86vw); }
  .gallery .ph-media { aspect-ratio: 4/5; border-radius: var(--radius-md); }

  .carousel--testimonials { gap: 0; }
  .carousel--testimonials .carousel__slide { width: 88vw; }
  .testimonial-card { padding: 48px 26px 36px; border-radius: var(--radius-md); }
  .testimonial-card__quote { font-size: 1.05rem; margin-bottom: 26px; }
  .testimonial-card__mark { width: 34px; height: 34px; top: 16px; left: 20px; }
}

/* ---------- Temas ---------- */
.theme-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.theme-card .ph-media { position: absolute; inset: 0; border-radius: inherit; }
.theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
  z-index: 2;
}
.theme-card__name {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 3;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.theme-card.is-extra { opacity: 0; transition: opacity 0.5s var(--ease); }
.theme-card.is-extra.is-shown { opacity: 1; }
.theme-card[hidden] { display: none !important; }

/* ---------- Diferenciais ---------- */
.highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), background-color 0.35s ease;
}
.highlight:hover { transform: translateY(-4px); background: var(--pink-light); }
.highlight svg { width: 30px; height: 30px; color: var(--btn); flex-shrink: 0; }
.highlight h3 { font-size: 1rem; font-weight: 600; }

/* ---------- FAQ / Accordion ---------- */
.accordion__item { border-bottom: 1px solid rgba(29,29,31,0.1); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.accordion__trigger svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--btn);
  transition: transform 0.35s var(--ease);
}
.accordion__item.is-open .accordion__trigger svg { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion__panel p { padding: 0 4px 26px; color: var(--text-soft); font-size: 0.98rem; max-width: 640px; }

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  padding: 180px 0;
  text-align: center;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; border-radius: 0; }
.cta__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,29,31,0.55), rgba(29,29,31,0.7));
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 780px;
  margin: 0 auto 44px;
  line-height: 1.2;
}

/* ---------- Footer ---------- */
.footer { background: var(--gray-light); padding: 64px 0 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
}
.footer__city { color: var(--text-soft); font-size: 0.95rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { background: var(--btn); color: #fff; transform: translateY(-3px); }

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(29,29,31,0.08);
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 15px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 56px 0; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { order: -1; max-width: 460px; margin: 0 auto; aspect-ratio: 4/3; }

  .about__inner { grid-template-columns: 1fr; }
  .about__media { width: 100%; max-width: 420px; margin: 0 auto; }
  .about__content { text-align: center; }
  .about__text { margin-left: auto; margin-right: auto; }

  .grid--services { grid-template-columns: repeat(3, 1fr); }
  .grid--themes { grid-template-columns: repeat(3, 1fr); }
  .grid--highlights { grid-template-columns: repeat(2, 1fr); }

  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
}

@media (max-width: 860px) {
  .navbar__menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .navbar__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .navbar__toggle { display: flex; }

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

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .container { padding: 0 22px; }
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .grid--services { grid-template-columns: 1fr; }
  .grid--highlights { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .about__media {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .about__img { position: static; width: 100%; height: auto; aspect-ratio: 3/4; }
  .cta { padding: 120px 0; }
  .cta__inner .btn {
    max-width: 100%;
    white-space: normal;
    padding: 18px 30px;
    font-size: 1rem;
    line-height: 1.35;
  }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
