/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --cream: #fff8f0;
  --cream-2: #ffe9d3;
  --rose: #f2711c;
  --rose-dark: #16294f;
  --rose-light: #ffe0c2;
  --gold: #ffb400;
  --choco: #24211d;
  --choco-soft: #6b6259;
  --white: #ffffff;
  --shadow: 0 20px 45px -20px rgba(22, 41, 79, 0.35);
  --radius: 22px;
  --ff-heading: 'Baloo 2', 'Playfair Display', sans-serif;
  --ff-body: 'Poppins', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--choco);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--ff-heading); line-height: 1.15; }
section { padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem); }

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-cake { font-size: 3.5rem; animation: bounce 1s infinite ease-in-out; }
@keyframes bounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.08); } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose), #d95a0c);
  color: #fff;
  box-shadow: 0 12px 25px -8px rgba(242, 113, 28, .55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -8px rgba(242, 113, 28, .65); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.9); color: var(--rose-dark); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--rose-dark); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); }

/* ===== Header ===== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
#site-header.scrolled {
  background: rgba(255, 248, 240, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px -12px rgba(22,41,79,.25);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  max-width: 1400px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.65);
  box-shadow: 0 8px 16px -6px rgba(242,113,28,.5);
}
.footer-brand .brand-mark { border-color: rgba(255,255,255,.2); }
.brand-text {
  font-family: var(--ff-heading); font-weight: 700; font-size: 1.25rem;
  color: var(--choco);
  display: flex; flex-direction: column; line-height: 1.1;
}
#site-header:not(.scrolled) .brand-text { color: #fff; }
.brand-text small { font-family: var(--ff-body); font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-weight: 500; font-size: .93rem; position: relative; padding: .3rem 0;
  color: var(--choco);
}
#site-header:not(.scrolled) .nav-links a { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: .85rem; padding: .7rem 1.4rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.hamburger span { width: 24px; height: 2.5px; border-radius: 2px; background: #fff; transition: all .3s ease; }
#site-header.scrolled .hamburger span { background: var(--choco); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 1.5rem; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,41,79,.62) 0%, rgba(22,41,79,.62) 40%, rgba(10,16,30,.8) 100%);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petal { position: absolute; font-size: 1.8rem; opacity: .9; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.petal-1 { top: 15%; left: 8%; animation-delay: 0s; }
.petal-2 { top: 25%; left: 85%; animation-delay: 1.2s; font-size: 1.3rem; }
.petal-3 { top: 70%; left: 12%; animation-delay: 2.4s; font-size: 2.2rem; }
.petal-4 { top: 80%; left: 88%; animation-delay: .6s; }
.petal-5 { top: 12%; left: 50%; animation-delay: 1.8s; font-size: 1.1rem; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
.hero-content { position: relative; z-index: 2; max-width: 780px; color: #fff; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600;
  color: var(--rose-light); margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.8rem); font-weight: 700; color: #fff;
  text-shadow: 0 10px 35px rgba(0,0,0,.35); margin-bottom: 1.1rem;
}
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; color: #fff3e8; max-width: 640px; margin: 0 auto 2.3rem; }
.hero-subtitle em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.75);
  border-radius: 15px; position: relative;
}
.scroll-cue span::before {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 9px; border-radius: 3px; background: #fff;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 22px; } }

/* ===== Stats ===== */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; padding: 3rem clamp(1.25rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  color: #fff; text-align: center; position: relative; z-index: 3; margin-top: -2px;
}
.stat-card p { font-size: .85rem; opacity: .9; margin-top: .3rem; font-weight: 300; }
.stat-number, .stat-suffix {
  font-family: var(--ff-heading); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; color: var(--gold);
}
.stat-suffix { color: #fff; }

/* ===== Reveal animation ===== */
.reveal, .fade-in { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible, .fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-of-type(1) { transition-delay: .05s; }
.fade-in:nth-of-type(2) { transition-delay: .2s; }
.fade-in:nth-of-type(3) { transition-delay: .35s; }
.fade-in:nth-of-type(4) { transition-delay: .5s; }

/* ===== Section heading ===== */
.section-heading { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600;
  color: var(--rose); margin-bottom: .6rem;
}
.section-kicker.light { color: var(--gold); }
.section-heading h2, .sobre-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--choco); }
.section-lead { margin-top: .9rem; color: var(--choco-soft); font-size: 1.05rem; }
.section-lead a { color: var(--rose); font-weight: 600; text-decoration: underline; }

/* ===== Sobre ===== */
.sobre { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 1300px; margin: 0 auto; }
.sobre-media { position: relative; }
.sobre-media img, .sobre-media video { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.sobre-badge {
  position: absolute; bottom: -1.5rem; right: -1rem; background: #fff; border-radius: 18px;
  padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center;
}
.sobre-badge span { display: block; font-family: var(--ff-heading); font-size: 1.5rem; color: var(--rose); font-weight: 700; }
.sobre-badge small { font-size: .7rem; color: var(--choco-soft); }
.sobre-text p { color: var(--choco-soft); margin-bottom: 1rem; }
.sobre-checklist { margin-top: 1.5rem; display: grid; gap: .7rem; }
.sobre-checklist li { position: relative; padding-left: 1.9rem; font-weight: 500; color: var(--choco); }
.sobre-checklist li::before {
  content: '🐾'; position: absolute; left: 0; top: -2px; width: 22px; height: 22px;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Especialidades ===== */
.especialidades { background: var(--cream-2); max-width: 100%; }
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.8rem; max-width: 1300px; margin: 0 auto;
}
.spec-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.spec-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -20px rgba(22,41,79,.4); }
.spec-img { overflow: hidden; aspect-ratio: 4/3; }
.spec-img img, .spec-img video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spec-card:hover .spec-img img, .spec-card:hover .spec-img video { transform: scale(1.1) rotate(1deg); }
.spec-body { padding: 1.4rem 1.5rem 1.7rem; }
.spec-body h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--choco); }
.spec-body p { font-size: .9rem; color: var(--choco-soft); }

/* ===== Galeria ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
  max-width: 1200px; margin: 0 auto;
}
.gallery-item {
  border: none; padding: 0; background: none; cursor: pointer; border-radius: 16px; overflow: hidden;
  aspect-ratio: 1/1; position: relative;
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
.gallery-item::after {
  content: '🔍'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(22,41,79,0); opacity: 0; transition: opacity .35s ease, background .35s ease;
  font-size: 1.4rem; color: #fff;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover::after { opacity: 1; background: rgba(22,41,79,.35); }

.gallery-video {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1;
}
.gallery-video video { width: 100%; height: 100%; object-fit: cover; }
.gallery-video .video-badge {
  position: absolute; top: .6rem; right: .6rem; background: rgba(22,41,79,.75); color: #fff;
  font-size: .7rem; font-weight: 600; padding: .3rem .55rem; border-radius: 999px; z-index: 2;
  display: flex; align-items: center; gap: .3rem;
}

/* ===== Cursos (reused for "Como Funciona") ===== */
.cursos { max-width: 1300px; margin: 0 auto; }
.cursos-card {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose) 60%, var(--gold) 130%);
  border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: #fff; box-shadow: var(--shadow); flex-wrap: wrap;
}
.cursos-text { max-width: 620px; }
.cursos-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.cursos-text p { margin-bottom: 1.6rem; opacity: .95; }
.cursos-icon { font-size: 4.5rem; animation: floaty 6s ease-in-out infinite; }
.info-list { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
.info-list li { font-size: .95rem; opacity: .95; }
.info-list strong { color: var(--gold); }

/* ===== Reconhecimento ===== */
.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.badge-card {
  background: #fff; border-radius: 18px; padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow); transition: transform .3s ease;
}
.badge-card:hover { transform: translateY(-6px); }
.badge-icon { font-size: 1.8rem; display: block; margin-bottom: .8rem; }
.badge-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.badge-card p { font-size: .85rem; color: var(--choco-soft); }

/* ===== Contato ===== */
.contato-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.contato-card {
  background: var(--cream-2); border-radius: 18px; padding: 2rem 1.5rem;
  transition: transform .3s ease, background .3s ease; border: 1px solid transparent;
}
a.contato-card:hover { transform: translateY(-6px); background: #fff; border-color: var(--rose-light); box-shadow: var(--shadow); }
.contato-icon { font-size: 1.7rem; display: block; margin-bottom: .7rem; }
.contato-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contato-card p { font-size: .87rem; color: var(--choco-soft); }

/* ===== Footer ===== */
.site-footer { background: var(--rose-dark); color: #eef2fb; padding: 3.5rem clamp(1.25rem, 6vw, 5rem) 2rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: 1300px; margin: 0 auto; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.footer-brand .brand-text { color: #fff; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
  transition: background .3s ease, transform .3s ease;
}
.footer-social a:hover { background: var(--rose); transform: translateY(-3px); }
.footer-bottom { max-width: 1300px; margin: 1.6rem auto 0; font-size: .8rem; color: #c7d1e8; display: grid; gap: .4rem; }
.footer-bottom a { text-decoration: underline; color: #dbe4f7; }
.footer-credit { color: var(--gold); font-weight: 500; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,16,30,.92); z-index: 2000;
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease; padding: 2rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(90vw, 900px); max-height: 85vh; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.8rem; background: rgba(255,255,255,.1); border: none;
  color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  transition: background .3s ease;
}
.lightbox-close:hover { background: var(--rose); }

/* ===== Instagram floating button ===== */
.insta-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 25px -8px rgba(0,0,0,.4);
  animation: pulseIG 2.4s ease-in-out infinite;
}
@keyframes pulseIG { 0%,100% { box-shadow: 0 0 0 0 rgba(214,36,159,.5), 0 12px 25px -8px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 12px rgba(214,36,159,0), 0 12px 25px -8px rgba(0,0,0,.4); } }
.insta-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre-media img, .sobre-media video { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #site-header.nav-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1.5rem; gap: 1.2rem; box-shadow: var(--shadow);
  }
  #site-header.nav-open .nav-links a { color: var(--choco); }
  #site-header.nav-open .nav-cta { display: inline-flex; margin: 0 1.5rem 1.5rem; }
  .cursos-card { justify-content: center; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
}
