/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --cream: #faf6ee;
  --cream-2: #f0e4d0;
  --rose: #b5872f;
  --rose-dark: #3d2b1f;
  --rose-light: #ecd9ae;
  --gold: #d4af37;
  --choco: #2a221b;
  --choco-soft: #6b6055;
  --white: #ffffff;
  --shadow: 0 20px 45px -20px rgba(42, 34, 27, 0.35);
  --radius: 18px;
  --ff-heading: 'Playfair Display', 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.65;
}
img { 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.2; }
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: 3rem; animation: bounce 1s infinite ease-in-out; color: var(--rose); }
@keyframes bounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.06); } }

/* ===== Continuous slow zoom (Ken Burns) for photos ===== */
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.kb-media { overflow: hidden; }
.kb-media img { animation: kenburns 16s ease-in-out infinite alternate; }

/* ===== 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), var(--rose-dark));
  color: #fff;
  box-shadow: 0 12px 25px -8px rgba(181, 135, 47, .5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -8px rgba(181, 135, 47, .6); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.65);
  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(250, 246, 238, .93);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px -12px rgba(42,34,27,.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(181,135,47,.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.15rem;
  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: .6rem; letter-spacing: .1em; 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-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,29,18,.68) 0%, rgba(42,29,18,.68) 40%, rgba(20,14,8,.85) 100%);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petal { position: absolute; font-size: 1.6rem; opacity: .85; animation: floaty 8s 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: 87%; animation-delay: 1.2s; font-size: 1.2rem; }
.petal-3 { top: 78%; left: 12%; animation-delay: 2.4s; }
.petal-4 { top: 82%; left: 88%; animation-delay: .6s; font-size: 1.3rem; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
.hero-content { position: relative; z-index: 2; max-width: 780px; color: #fff; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600;
  color: var(--rose-light); margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2.7rem, 7vw, 5rem); 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.02rem, 2vw, 1.25rem); font-weight: 300; color: #fbf3e6; 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.6rem); 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: .76rem; font-weight: 600;
  color: var(--rose); margin-bottom: .6rem;
}
.section-kicker.light { color: var(--gold); }
.section-heading h2, .sobre-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--choco); }
.section-lead { margin-top: .9rem; color: var(--choco-soft); font-size: 1.02rem; }
.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; border-radius: var(--radius); box-shadow: var(--shadow); }
.sobre-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.sobre-badge {
  position: absolute; bottom: -1.5rem; right: -1rem; background: #fff; border-radius: 16px;
  padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center;
}
.sobre-badge span { display: block; font-family: var(--ff-heading); font-size: 1.4rem; color: var(--rose); font-weight: 700; }
.sobre-badge small { font-size: .68rem; 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: .85rem; color: var(--rose);
  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(42,34,27,.4); }
.spec-img { overflow: hidden; aspect-ratio: 4/3; }
.spec-img img { width: 100%; height: 100%; object-fit: cover; }
.spec-body { padding: 1.4rem 1.5rem 1.7rem; }
.spec-body h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--choco); }
.spec-body p { font-size: .88rem; color: var(--choco-soft); }

/* ===== Galeria ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 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 { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after {
  content: '🔍'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(42,29,18,0); opacity: 0; transition: opacity .35s ease, background .35s ease;
  font-size: 1.3rem; color: #fff;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover::after { opacity: 1; background: rgba(42,29,18,.35); }

/* ===== 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: 26px; 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.7rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
.cursos-text p { margin-bottom: 1.6rem; opacity: .95; }
.cursos-icon { font-size: 4rem; animation: floaty 7s ease-in-out infinite; }
.info-list { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
.info-list li { font-size: .92rem; 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: 16px; 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.7rem; display: block; margin-bottom: .8rem; }
.badge-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.badge-card p { font-size: .83rem; 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: 16px; 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.6rem; display: block; margin-bottom: .7rem; }
.contato-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.contato-card p { font-size: .85rem; color: var(--choco-soft); }

/* ===== Footer ===== */
.site-footer { background: var(--rose-dark); color: #f1e6d3; 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: .88rem; }
.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: .7rem; 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: .78rem; color: #d6c6ac; display: grid; gap: .4rem; }
.footer-bottom a { text-decoration: underline; color: #ecdcbe; }
.footer-credit { color: var(--gold); font-weight: 500; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,14,8,.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); }

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 25px -8px rgba(0,0,0,.4);
  animation: pulseWA 2.4s ease-in-out infinite;
}
@keyframes pulseWA { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 12px 25px -8px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0), 0 12px 25px -8px rgba(0,0,0,.4); } }
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre-media img { 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) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
}
