/* =========================================================
   Voltize Solar — estilos
   Paleta: laranja #FF7A00 · marinho #13233F · azul céu #1E86E8
   Fonte: Sora
   ========================================================= */

:root {
  --orange: #FF7A00;
  --orange-2: #FF9A1F;
  --orange-3: #FFB02E;
  --navy: #13233F;
  --navy-2: #0C1729;
  --sky: #1E86E8;
  --sky-light: #CDEBFF;
  --sun: #FFD23F;
  --green: #5DB53F;
  --cream: #FFF7EE;
  --white: #FFFFFF;
  --text: #13233F;
  --muted: #5B6880;
  --line: #E6E9EF;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(19, 35, 63, .08);
  --shadow-lg: 0 20px 50px rgba(19, 35, 63, .14);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 22px rgba(255, 122, 0, .35); }
.btn--primary:hover { background: #F06F00; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 122, 0, .45); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 35, 63, .08); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo__icon { width: 34px; height: 34px; }
.logo__text { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--navy); }
.logo__text strong { color: var(--orange); font-weight: 800; }
.logo--light .logo__text { color: var(--white); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
  position: relative; font-size: .88rem; font-weight: 600; color: var(--navy);
  padding: 6px 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--orange); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__toggle .chev { font-size: .7rem; margin-left: 2px; }

.nav__dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 200px;
  background: var(--white); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease);
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .88rem; font-weight: 500; }
.dropdown a:hover { background: var(--cream); color: var(--orange); }
.nav__dropdown:hover .dropdown,
.nav__dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: var(--header-h);
  background: linear-gradient(115deg, var(--cream) 0%, #FFF1E2 45%, #FFFFFF 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-height: clamp(480px, calc(100vh - var(--header-h)), 760px);
}
.hero__content { position: relative; z-index: 2; padding: clamp(40px, 6vh, 72px) 0; max-width: 560px; }
.hero__title {
  font-size: clamp(2.1rem, 1.2rem + 2.7vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  text-wrap: balance;
}
.highlight {
  display: inline-block; background: var(--orange); color: var(--white);
  padding: 0 .18em; border-radius: 6px; transform: rotate(-1.5deg);
}
.hero__badge { display: flex; align-items: center; gap: 10px; margin: 24px 0 28px; font-weight: 700; font-size: 1rem; }
.hero__badge u { text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hero__badge-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--white); font-size: 1rem; flex-shrink: 0;
}
.hero__note { margin-top: 14px; font-size: .78rem; color: var(--muted); }

.hero__media {
  position: relative; align-self: stretch; min-height: 420px;
  /* estende a foto até a borda direita da tela, qualquer que seja a largura */
  margin-right: calc((min(100vw - 40px, var(--container)) - 100vw) / 2);
  /* Foto: Unsplash (uso livre). Para usar uma foto própria da Voltize, troque a URL por assets/img/hero.jpg. A ilustração .svg fica como reserva se a foto não carregar. */
  background-image: url('https://images.unsplash.com/photo-1780445392792-556e5609c5ab?auto=format&fit=crop&w=2000&q=80'), url('../assets/img/hero.svg');
  background-size: cover; background-position: center;
  border-radius: 50% 0 0 50% / 70% 0 0 70%;
  box-shadow: -20px 0 60px rgba(255, 122, 0, .12);
}

/* ---------- Números ---------- */
.stats { background: var(--orange); color: var(--white); padding-block: 56px; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, .45), transparent 65%);
}
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .35); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(2.2rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat__num small { font-size: 1.1rem; font-weight: 700; }
.stat__title { font-size: .88rem; font-weight: 700; margin: 14px 0 6px; }
.stat__text { font-size: .8rem; opacity: .9; max-width: 28ch; }

/* ---------- Seções ---------- */
.section { padding-block: 96px; }
.section--tight { padding-block: 72px; }
.section--cream { background: #F6F4F2; }
.section--dark { background: var(--navy); color: var(--white); }
.section__head { max-width: 560px; margin-bottom: 40px; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.section__sub { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.section--dark .section__sub { color: rgba(255, 255, 255, .7); }

/* ---------- Segmentos ---------- */
.segments { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.segment {
  display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; font: inherit;
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.segment::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(19, 35, 63, .85));
  transition: background .4s;
}
.segment::after {
  content: "→"; position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--white); font-weight: 700;
  opacity: 0; transform: scale(.6); transition: all .35s var(--ease);
}
.segment span { position: absolute; left: 16px; right: 16px; bottom: 16px; color: var(--white); font-weight: 800; font-size: 1rem; line-height: 1.15; }
.segment:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.segment:hover::before { background: linear-gradient(180deg, rgba(255, 122, 0, .1) 30%, rgba(255, 122, 0, .9)); }
.segment:hover::after { opacity: 1; transform: scale(1); }

/* ---------- Modal de segmento ---------- */
.seg-modal {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: 100%; height: 100%; margin: 0; display: none;
}
.seg-modal[open] { display: grid; place-items: center; padding: 20px; }
.seg-modal::backdrop { background: rgba(12, 23, 41, .6); backdrop-filter: blur(4px); }
.seg-modal[open] .seg-modal__box { animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.seg-modal__box {
  position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.seg-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1;
  box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s;
}
.seg-modal__close:hover { background: var(--orange); color: var(--white); transform: rotate(90deg); }
.seg-modal__media { min-height: 100%; background-size: cover; background-position: center; }
.seg-modal__body { padding: 40px 36px 36px; }
.seg-modal__kicker {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); background: var(--cream); padding: 5px 12px; border-radius: 999px;
}
.seg-modal__title { font-size: 1.8rem; font-weight: 800; letter-spacing: -.025em; margin: 12px 0 10px; }
.seg-modal__text { color: var(--muted); font-size: .92rem; }
.seg-modal__list { margin: 20px 0; display: grid; gap: 10px; }
.seg-modal__list li { position: relative; padding-left: 30px; font-size: .9rem; font-weight: 600; }
.seg-modal__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--white); font-size: .7rem; font-weight: 800;
}
.seg-modal__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.seg-modal__info div { background: #F6F4F2; border-radius: 12px; padding: 12px 14px; }
.seg-modal__info span { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.seg-modal__info strong { font-size: .9rem; }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  content: ""; position: absolute; top: 14px; left: 36px; right: -24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--white); font-weight: 800; font-size: .85rem;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, .15);
}
.step h3 { font-size: 1rem; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.step p { font-size: .84rem; color: var(--muted); }
.step__tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .75rem; font-weight: 700; }
.step__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; padding: 20px 0; font-weight: 700; font-size: .98rem; transition: color .2s;
}
.faq__q:hover { color: var(--orange); }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__item.is-open .faq__q { color: var(--orange); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > p { overflow: hidden; color: var(--muted); font-size: .9rem; max-width: 640px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: 20px; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); padding-block: 64px; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; left: -80px; bottom: -200px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, .5), transparent 65%);
}
.cta__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--navy); max-width: 520px; }
.cta__sub { margin-top: 10px; color: var(--navy); opacity: .85; }
.cta__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta__link { color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.cta__link:hover { color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: rgba(255, 255, 255, .75); padding-top: 64px; font-size: .86rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin: 16px 0 20px; max-width: 240px; }
.footer h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--orange); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); transition: background .2s, color .2s;
}
.socials a:hover { background: var(--orange); color: var(--white); }
.socials svg { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .76rem; opacity: .7; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease);
}
.whats-float:hover { transform: scale(1.08) rotate(-6deg); }
.whats-float svg { width: 30px; height: 30px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  html { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --container: 1520px; }
  html { font-size: 19px; }
}

/* =========================================================
   Responsivo (telas menores)
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .segments { grid-template-columns: repeat(3, 1fr); }
  .segment { aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .step:nth-child(3)::before { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 20px 24px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .nav__link::after { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 0 12px; display: none; min-width: 0;
  }
  .nav__dropdown:hover .dropdown { display: none; }
  .nav__dropdown.is-open .dropdown { display: block; }
  .nav__cta { margin-top: 24px; }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__content { padding: 40px 0 28px; max-width: 600px; }
  .hero__media {
    width: calc(100% + 40px); margin: 0 -20px; min-height: 0; height: clamp(240px, 62vw, 440px);
    border-radius: 60% 60% 0 0 / 30% 30% 0 0;
  }

  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .seg-modal[open] { padding: 0; align-items: end; }
  .seg-modal__box { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .seg-modal__media { min-height: 190px; }
  .seg-modal__body { padding: 26px 22px 28px; }
  .seg-modal__title { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .section { padding-block: 72px; }
  .stat { padding: 0 16px; }
  .segments { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
