/* ===================== VARIÁVEIS ===================== */
:root {
  --navy-900: #04122e;
  --navy-800: #071f47;
  --navy-700: #0b2a63;
  --blue-600: #1657d0;
  --blue-500: #1f6fe0;
  --blue-400: #38a0f5;
  --cyan-300: #6ec9f7;
  --cyan-200: #a9e2fb;
  --gold: #f6b52d;
  --white: #ffffff;
  --gray-100: #f2f6fc;
  --gray-300: #cdd8e8;
  --gray-500: #6b7a90;
  --wpp: #25d366;
  --wpp-dark: #1da851;

  --shadow-sm: 0 4px 14px rgba(6, 27, 65, 0.10);
  --shadow-md: 0 14px 40px rgba(6, 27, 65, 0.16);
  --shadow-lg: 0 24px 60px rgba(6, 27, 65, 0.28);
  --radius: 18px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.1; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-family: 'Montserrat', sans-serif;
  padding: 13px 26px; border-radius: 50px; border: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  font-size: .98rem; white-space: nowrap;
}
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--wpp { background: linear-gradient(135deg, var(--wpp), var(--wpp-dark)); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.btn--wpp:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,211,102,.45); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.icon-wpp { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* ===================== PRELOADER ===================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; position: relative; }
.preloader__logo { width: min(340px, 74vw); filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); animation: floatLogo 2.4s ease-in-out infinite; }
.preloader__bar { width: 220px; max-width: 60vw; height: 6px; border-radius: 50px; background: rgba(255,255,255,.15); margin: 26px auto 14px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; border-radius: 50px; background: linear-gradient(90deg, var(--cyan-300), var(--blue-400)); animation: loadBar 1.3s ease-in-out infinite; }
.preloader__text { color: var(--cyan-200); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.preloader__snow { position: absolute; inset: -40px; pointer-events: none; }
.preloader__snow span {
  position: absolute; top: -10%; color: #cdeafd; font-size: 20px; opacity: .8;
  animation: snowFall linear infinite;
}
.preloader__snow span::before { content: "❄"; }
.preloader__snow span:nth-child(1){ left: 8%;  animation-duration: 4s; }
.preloader__snow span:nth-child(2){ left: 26%; animation-duration: 5.5s; font-size: 14px; }
.preloader__snow span:nth-child(3){ left: 48%; animation-duration: 4.8s; }
.preloader__snow span:nth-child(4){ left: 66%; animation-duration: 6s; font-size: 16px; }
.preloader__snow span:nth-child(5){ left: 82%; animation-duration: 4.2s; }
.preloader__snow span:nth-child(6){ left: 92%; animation-duration: 5s; font-size: 12px; }

@keyframes loadBar { 0%{ transform: translateX(-120%);} 100%{ transform: translateX(320%);} }
@keyframes floatLogo { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@keyframes snowFall { to { transform: translateY(120vh) rotate(360deg);} }

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 14px 0; transition: all .35s var(--ease);
}
.header.is-scrolled { background: rgba(4,18,46,.92); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 8px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header__logo img { height: 54px; transition: height .35s var(--ease); filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.header.is-scrolled .header__logo img { height: 44px; }
.nav__list { display: flex; gap: 28px; }
.nav__link { color: #fff; font-weight: 600; font-size: .96rem; position: relative; padding: 4px 0; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--cyan-300); transition: width .3s var(--ease); }
.nav__link:hover::after { width: 100%; }
.header__cta { padding: 10px 20px; font-size: .9rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: .3s; }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 90px;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 45%, var(--blue-600) 100%);
  overflow: hidden;
}
.hero__glow { position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(56,160,245,.35), transparent 60%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; position: relative; z-index: 2; }
.hero__badge { display: inline-block; background: rgba(110,201,247,.16); color: var(--cyan-200); border: 1px solid rgba(110,201,247,.4); padding: 7px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 20px; }
.hero__logo { width: min(420px, 82%); margin-bottom: 22px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45)); }
.hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.hero__title span { color: var(--cyan-300); }
.hero__subtitle { color: var(--gray-300); font-size: clamp(1rem, 1.4vw, 1.15rem); margin: 18px 0 30px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__phone { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: #fff; }
.hero__phone svg { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.12); fill: var(--cyan-300); }
.hero__phone small { display: block; color: var(--gray-300); font-size: .8rem; }
.hero__phone strong { font-size: 1.3rem; font-family: 'Montserrat', sans-serif; }
.hero__media { position: relative; }
.hero__flyer { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.1); }
.hero__float { position: absolute; font-size: 2.4rem; color: var(--cyan-200); filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); animation: floatY 4s ease-in-out infinite; }
.hero__float--1 { top: 6%; left: -18px; }
.hero__float--2 { bottom: 10%; right: -14px; animation-delay: 1.5s; font-size: 1.8rem; }
@keyframes floatY { 0%,100%{ transform: translateY(0) rotate(0);} 50%{ transform: translateY(-18px) rotate(20deg);} }

/* neve caindo no hero */
.hero__snowflakes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__snowflakes span { position: absolute; top: -5%; color: rgba(255,255,255,.55); animation: snowFall linear infinite; }

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__wave path { fill: var(--white); }

/* ===================== FEATURES ===================== */
.features { background: var(--white); padding: 60px 0; margin-top: -1px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { background: var(--gray-100); border-radius: var(--radius); padding: 30px 24px; text-align: center; border: 1px solid #e4ecf7; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-card__icon { width: 66px; height: 66px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); box-shadow: 0 10px 22px rgba(31,111,224,.35); }
.feature-card h3 { font-size: 1.1rem; color: var(--navy-700); margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: .92rem; }

/* ===================== SECTIONS ===================== */
.section { padding: 84px 0; }
.section--alt { background: var(--gray-100); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section__tag { display: inline-block; color: var(--blue-500); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 12px; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy-700); font-weight: 900; }
.section__title::after { content: ""; display: block; width: 70px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-300)); margin: 16px auto 0; }
.section__desc { color: var(--gray-500); margin-top: 16px; font-size: 1.02rem; }

/* ===================== SERVIÇOS ===================== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.service__img { height: 240px; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__img img { transform: scale(1.08); }
.service__body { padding: 26px 24px; }
.service__body h3 { color: var(--navy-700); font-size: 1.35rem; margin-bottom: 10px; }
.service__body p { color: var(--gray-500); }

/* ===================== ANTES E DEPOIS ===================== */
.ba { max-width: 780px; margin: 0 auto; }
.ba__wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); user-select: none; aspect-ratio: 3/4; }
.ba__img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { position: absolute; inset: 0; }
.ba__after { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba__after img { width: 100vw; max-width: 780px; height: 100%; object-fit: cover; }
.ba__handle { position: absolute; top: 0; left: 50%; height: 100%; transform: translateX(-50%); display: flex; align-items: center; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.ba__line { position: absolute; top: 0; left: 50%; width: 3px; height: 100%; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,.4); }
.ba__grip { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue-600); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; box-shadow: var(--shadow-md); }
.ba__tag { position: absolute; top: 16px; padding: 6px 14px; border-radius: 50px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: #fff; }
.ba__tag--before { left: 16px; background: rgba(4,18,46,.75); }
.ba__tag--after { right: 16px; background: var(--blue-500); }
.ba__range { -webkit-appearance: none; appearance: none; width: 100%; margin-top: 20px; height: 6px; border-radius: 50px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-300)); cursor: pointer; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-500); cursor: pointer; box-shadow: var(--shadow-sm); }
.ba__range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-500); cursor: pointer; }

/* ===================== CAROUSEL ===================== */
.carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); }
.carousel__track { display: flex; transition: transform .6s var(--ease); }
.carousel__slide { min-width: 100%; }
.carousel__slide img { width: 100%; height: 560px; object-fit: cover; }
.carousel--video .carousel__slide { display: flex; justify-content: center; background: transparent; }
.carousel--video .carousel__slide video { width: 100%; height: 560px; object-fit: contain; background: transparent; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--blue-600); font-size: 2rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-md); transition: .3s; z-index: 3;
}
.carousel__btn:hover { background: var(--blue-500); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.carousel__dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: var(--gray-300); cursor: pointer; transition: .3s; padding: 0; }
.carousel__dots button.is-active { background: var(--blue-500); width: 30px; border-radius: 50px; }

/* ===================== PLANOS ===================== */
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan { background: #fff; border-radius: var(--radius); padding: 38px 30px; box-shadow: var(--shadow-sm); border: 1px solid #e4ecf7; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; }
.plan:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.plan--featured { background: linear-gradient(160deg, var(--navy-700), var(--blue-600)); color: #fff; transform: scale(1.04); box-shadow: var(--shadow-lg); }
.plan--featured:hover { transform: scale(1.04) translateY(-10px); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: .78rem; padding: 6px 18px; border-radius: 50px; box-shadow: var(--shadow-sm); font-family: 'Montserrat', sans-serif; }
.plan__head { text-align: center; padding-bottom: 22px; border-bottom: 1px solid rgba(128,150,180,.2); margin-bottom: 22px; }
.plan--featured .plan__head { border-color: rgba(255,255,255,.2); }
.plan__name { font-size: 1.5rem; margin-bottom: 12px; color: var(--navy-700); }
.plan--featured .plan__name { color: #fff; }
.plan__price { display: flex; align-items: baseline; justify-content: center; gap: 4px; color: var(--navy-700); font-family: 'Montserrat', sans-serif; }
.plan--featured .plan__price { color: #fff; }
.plan__price span { font-size: 1.2rem; font-weight: 700; }
.plan__price strong { font-size: 3rem; font-weight: 900; line-height: 1; }
.plan__price small { font-size: 1rem; color: var(--gray-500); }
.plan--featured .plan__price small { color: var(--cyan-200); }
.plan__features { flex: 1; margin-bottom: 28px; }
.plan__features li { padding: 10px 0 10px 30px; position: relative; color: var(--gray-500); border-bottom: 1px dashed rgba(128,150,180,.18); }
.plan--featured .plan__features li { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.14); }
.plan__features li::before { content: "❄"; position: absolute; left: 0; color: var(--blue-500); font-size: .95rem; }
.plan--featured .plan__features li::before { color: var(--cyan-300); }
.plan__btn { width: 100%; }

/* ===================== CTA ===================== */
.cta { position: relative; padding: 90px 0; background: linear-gradient(150deg, var(--navy-900), var(--blue-600)); text-align: center; color: #fff; overflow: hidden; }
.cta__snow { position: absolute; inset: 0; pointer-events: none; }
.cta__snow span { position: absolute; top: -5%; color: rgba(255,255,255,.4); animation: snowFall linear infinite; }
.cta__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta__logo { width: 260px; max-width: 70%; margin: 0 auto 24px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 900; margin-bottom: 16px; }
.cta p { color: var(--gray-300); margin-bottom: 30px; font-size: 1.08rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-900); color: #fff; padding: 50px 0 30px; text-align: center; }
.footer__logo { width: 200px; margin: 0 auto 16px; }
.footer__slogan { color: var(--cyan-200); font-family: 'Montserrat', sans-serif; font-weight: 600; margin-bottom: 18px; }
.footer__copy { color: var(--gray-500); font-size: .86rem; }

/* ===================== WPP FLOAT ===================== */
.wpp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wpp), var(--wpp-dark));
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.5);
  transition: transform .3s var(--ease);
}
.wpp-float:hover { transform: scale(1.1); }
.wpp-float svg { width: 34px; height: 34px; fill: #fff; z-index: 2; }
.wpp-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wpp); animation: pulse 2s ease-out infinite; z-index: 1; }
@keyframes pulse { 0%{ transform: scale(1); opacity: .6;} 100%{ transform: scale(1.8); opacity: 0;} }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__media { order: 1; max-width: 420px; margin: 0 auto; }
  .hero__actions, .hero__phone { justify-content: center; }
  .hero__logo { margin-inline: auto; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plans__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { transform: scale(1); }
  .plan--featured:hover { transform: translateY(-10px); }

  .nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); background: var(--navy-800); flex-direction: column; padding: 90px 30px; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.4); }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 22px; }
  .nav__toggle { display: flex; z-index: 1001; }
  .header__cta { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-open .nav__toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg);} 
  .nav-open .nav__toggle span:nth-child(2){ opacity: 0;} 
  .nav-open .nav__toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg);} 
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .carousel__slide img, .carousel--video .carousel__slide video { height: 380px; }
  .carousel__btn { width: 42px; height: 42px; font-size: 1.5rem; }
  .section { padding: 60px 0; }
  .hero { padding: 120px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
