/* Cores tiradas do logo da Escola Tom da Vida */
:root {
  --blue: #1E6FB4;
  --orange: #F5A01A;
  --magenta: #C8358F;
  --green: #5A9B1B;
  --green-dark: #3D6913;
  --red: #E4322B;
  --sky: #2FA9D6;
  --brown: #7A5843;
  --navy: #1F2D4D;
  --cream: #FFF8EC;
  --ink: #26302C;
  --muted: #5E6A66;
  --radius: 22px;
  --shadow: 0 12px 32px rgba(31, 45, 77, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); line-height: 1.65; background: #fff; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Baloo 2', 'Nunito', sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .6rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ===== Botões ===== */
.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 800; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid var(--orange);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 160, 26, .4); }
.btn--small { padding: .55rem 1.2rem; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; box-shadow: none; }
.btn--light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 3px; border-radius: 3px; background: var(--magenta); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav a.nav__mat { color: var(--magenta); font-weight: 800; }
a.tag { text-decoration: none; transition: transform .2s; }
a.tag:hover { transform: translateY(-2px); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 3px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; background: var(--cream); padding: 3.5rem 0 7rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47,169,214,.18), transparent 70%); top: -180px; left: -160px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.tag { display: inline-block; background: #fff; color: var(--green-dark); font-weight: 800; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); margin-bottom: 1.1rem; color: var(--navy); }
.hl { background: linear-gradient(90deg, var(--blue), var(--magenta) 50%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__art { position: relative; height: 460px; }
.hero__photo { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--a { top: 0; right: 0; width: 78%; height: 66%; transform: rotate(2deg); }
.hero__photo--b { bottom: 0; left: 0; width: 60%; height: 50%; transform: rotate(-3deg); }
.hero__badge { position: absolute; bottom: 6%; right: 4%; width: 150px; background: #fff; border-radius: 24px; padding: .7rem; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.dot { position: absolute; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.dot--1 { width: 26px; height: 26px; background: var(--magenta); top: -10px; left: 12%; }
.dot--2 { width: 18px; height: 18px; background: var(--green); top: 62%; right: -8px; animation-delay: -1.5s; }
.dot--3 { width: 34px; height: 34px; background: var(--orange); top: 38%; left: 4%; animation-delay: -3s; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ===== Stats ===== */
.stats { margin-top: -3rem; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.stat { text-align: center; }
.stat strong { display: block; font-family: 'Baloo 2'; font-size: 2.6rem; line-height: 1; }
.stat:nth-child(1) strong { color: var(--blue); }
.stat:nth-child(2) strong { color: var(--orange); }
.stat:nth-child(3) strong { color: var(--magenta); }
.stat:nth-child(4) strong { color: var(--green); }
.stat span { color: var(--muted); font-weight: 700; }

/* ===== Seções ===== */
.section { padding: 6rem 0; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .8rem; color: var(--magenta); margin-bottom: .5rem; }
.eyebrow--light { color: var(--orange); }

/* Sobre */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split__text p { margin-bottom: 1rem; color: var(--muted); font-size: 1.05rem; }
.split__text strong { color: var(--ink); }
.split__media { position: relative; min-height: 440px; }
.photo { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.photo--a { top: 0; left: 0; width: 82%; height: 46%; object-position: top; }
.photo--b { bottom: 0; right: 0; width: 58%; height: 60%; border: 6px solid #fff; }
.checks { list-style: none; margin-top: 1.2rem; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .6rem; font-weight: 700; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: .15rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; display: grid; place-items: center; }

/* Vídeo */
.video { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; }
.video__text p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.video__frame { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; border: 8px solid var(--navy); box-shadow: 0 24px 50px rgba(31,45,77,.3); }
.video__frame video { width: 100%; height: 100%; object-fit: cover; }

/* Cards de ensino */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__img--blank { display: grid; place-items: center; font-size: 4rem; background: linear-gradient(135deg, var(--orange), #FFCF6B); }
.card__body { padding: 1.4rem 1.5rem 1.7rem; border-top: 5px solid; }
.card:nth-child(1) .card__body { border-color: var(--orange); }
.card:nth-child(2) .card__body { border-color: var(--magenta); }
.card:nth-child(3) .card__body { border-color: var(--blue); }
.card:nth-child(4) .card__body { border-color: var(--green); }
.card h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* Galeria de diferenciais */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 1.2rem; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.g-item--wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.3rem 1.1rem; color: #fff; background: linear-gradient(transparent, rgba(20,25,45,.85)); font-size: .95rem; }
.g-item figcaption b { display: block; font-family: 'Baloo 2'; font-size: 1.45rem; line-height: 1.1; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.pill { background: #fff; border: 2px solid #EFE4CD; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 800; color: var(--green-dark); }

/* Estrutura */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 2px solid #F0EBDD; transition: border-color .25s, box-shadow .25s; }
.feature:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.feature span { font-size: 2rem; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--cream); margin-bottom: 1rem; }
.feature h4 { font-size: 1.25rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); }

/* Valores */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; }
.value b { display: block; font-family: 'Baloo 2'; font-size: 1.6rem; margin-bottom: .4rem; }
.value:nth-child(1) b { color: var(--orange); }
.value:nth-child(2) b { color: #FF6FB8; }
.value:nth-child(3) b { color: #5EC6F0; }
.value:nth-child(4) b { color: #9BD14E; }
.value p { opacity: .85; }

/* Matrículas */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.posts img { border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s; }
.posts img:hover { transform: translateY(-6px) rotate(-1deg); }
.cta { margin-top: 3rem; background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; border-radius: var(--radius); padding: 2.6rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h3 { font-size: 1.9rem; }
.cta p { opacity: .95; }

/* Contato */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__list span { font-size: 1.3rem; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.contact__list a { color: var(--blue); font-weight: 800; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 280px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__link { display: inline-block; margin-top: .8rem; font-weight: 800; color: var(--magenta); text-decoration: none; }

.form { background: #fff; border-radius: var(--radius); padding: 2.2rem; display: grid; gap: 1rem; box-shadow: var(--shadow); }
.form h3 { font-size: 1.6rem; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: .8rem 1rem; border-radius: 14px; border: 2px solid #EADFC8; background: #fff; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 3.5rem 0 3rem; text-align: center; }
.footer__inner { display: grid; gap: .9rem; justify-items: center; }
.footer__slogan { font-family: 'Baloo 2'; font-size: 1.4rem; color: #fff; }
.footer__social a { color: #fff; font-weight: 700; }
.footer__copy { font-size: .85rem; opacity: .6; }

/* WhatsApp flutuante */
.whats { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s; }
.whats:hover { transform: scale(1.08); }

/* Animação de entrada (só quando o JS carrega) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .hero__badge, .dot { animation: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .nav { gap: 1.1rem; }
}
@media (max-width: 920px) {
  .hero__inner, .split, .contact, .video { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero__art { height: 360px; max-width: 520px; width: 100%; justify-self: center; }
  .values { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .split__media { min-height: 380px; }
  .video__text { text-align: center; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 1.5rem; gap: 1.2rem; box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .nav.open { display: flex; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts img:last-child { display: none; }
}
@media (max-width: 600px) {
  .cards, .features, .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-item--wide { grid-column: auto; }
  .posts { grid-template-columns: 1fr; }
  .posts img:last-child { display: block; }
  .section { padding: 4.5rem 0; }
  .hero__art { height: 300px; }
  .hero__badge { width: 110px; }
  .split__media { min-height: 320px; }
  .cta { padding: 2rem; text-align: center; justify-content: center; }
  .brand img { height: 52px; }
}
