/* =========================================================
   T2 Energias — estilos
   ========================================================= */
:root {
  --navy: #002D4A;
  --navy-2: #0E2F5A;
  --navy-deep: #001B2E;
  --gold: #DFA232;
  --gold-2: #F2BB4E;
  --sun: #FFD25A;
  --ac: #5FD4FF;
  --text: #1c2b38;
  --muted: #5b6b79;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 45, 74, .10);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.eyebrow {
  display: inline-block;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 24px rgba(223, 162, 50, .35); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 27, 46, .75), transparent);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: var(--navy); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; color: var(--gold-2); }
.menu-toggle, .menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .25s;
  }
  .menu-btn span::before { position: absolute; top: -7px; }
  .menu-btn span::after { position: absolute; top: 7px; }
  .menu-toggle:checked + .menu-btn span { background: transparent; }
  .menu-toggle:checked + .menu-btn span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle:checked + .menu-btn span::after { top: 0; transform: rotate(-45deg); }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; }
  .menu-toggle:checked ~ .nav { transform: none; opacity: 1; pointer-events: auto; }
  .header:has(.menu-toggle:checked) { background: var(--navy); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding: 120px 0 64px;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 27, 46, .92) 0%, rgba(0, 45, 74, .72) 45%, rgba(0, 45, 74, .15) 100%);
}
.hero__content { position: relative; max-width: 1180px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hl { color: var(--gold-2); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 48px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.hero__stats li { border-left: 3px solid var(--gold); padding-left: 14px; }
.hero__stats strong { display: block; font: 700 1.9rem/1.1 var(--font-head); }
.hero__stats span { font-size: .9rem; opacity: .85; }

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(1200px 600px at 80% 0%, #0b3c60 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #dbe6ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section__head p { color: #b9cbd9; }

/* ---------- Cena animada ---------- */
.scene {
  position: relative;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  background: #0b1f33;
  outline: 1px solid rgba(255,255,255,.08);
}
.scene__svg { width: 100%; height: auto; }
.scene__photo { transition: filter 1s ease; }
.scene__tint { fill: #001B2E; opacity: .18; transition: opacity 1s ease; }

.scene__toggle {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; padding: 4px; gap: 4px;
  background: rgba(0, 27, 46, .7); backdrop-filter: blur(8px);
  border-radius: 999px; border: 1px solid rgba(255,255,255,.15);
}
.scene__toggle button {
  border: 0; background: transparent; color: #fff; cursor: pointer;
  font: 600 .85rem/1 var(--font-body); padding: 9px 14px; border-radius: 999px;
}
.scene__toggle button.is-active { background: var(--gold); color: var(--navy-deep); }

/* dia / noite */
.day-only, .night-only { transition: opacity .8s ease; }
.night-only { opacity: 0; }
.scene.is-night .day-only { opacity: 0; }
.scene.is-night .night-only { opacity: 1; }
.scene.is-night .scene__photo { filter: brightness(.32) saturate(.5) hue-rotate(190deg); }
.scene.is-night .scene__tint { opacity: .35; }

/* sol */
.sun-halo { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rays line {
  stroke: #FFE07A; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 18 34; opacity: .85;
  animation: flow-dash 1.2s linear infinite;
}
.panel-glow { opacity: .08; animation: panel 3s ease-in-out infinite; }

/* cabos e fluxo */
.cable { fill: none; stroke: rgba(0, 20, 35, .55); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.flow { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 26; animation: flow-dash .9s linear infinite; }
.flow--dc { stroke: var(--sun); }
.flow--ac { stroke: var(--ac); }
.flow--grid { stroke: #B8A6FF; }
.dot--dc { fill: #FFE07A; }
.dot--ac { fill: #A6ECFF; }
.dot--grid { fill: #D2C7FF; }

/* equipamentos */
.device__box { fill: #0E2F5A; stroke: rgba(255,255,255,.35); stroke-width: 3; }
.device__screen { fill: #04182a; }
.device__screen-txt { fill: #7CFFB2; font: 700 24px var(--font-body); text-anchor: middle; }
.led { fill: #7CFFB2; animation: blink 1.4s ease-in-out infinite; }
.meter-hand { transform-box: fill-box; transform-origin: 50% 100%; animation: spin 2.4s linear infinite; }
.wire { fill: none; stroke: #2a333b; stroke-width: 4; }

/* casa */
.home__card { fill: rgba(0, 27, 46, .82); stroke: rgba(255,255,255,.18); stroke-width: 2; }
.appliance__halo { fill: var(--sun); opacity: .18; animation: pulse-soft 2s ease-in-out infinite; }
.appliance:nth-of-type(2) .appliance__halo { animation-delay: .5s; }
.appliance:nth-of-type(3) .appliance__halo { animation-delay: 1s; }
.appliance:nth-of-type(4) .appliance__halo { animation-delay: 1.5s; }
.appliance__icon { fill: none; stroke: #FFE7A3; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.appliance__label { fill: #fff; font: 600 24px var(--font-body); text-anchor: middle; }
.scene.is-night .appliance__halo { fill: #B8A6FF; }

/* rótulos */
.label rect { fill: rgba(0, 27, 46, .85); stroke: rgba(255,255,255,.2); stroke-width: 2; }
.label text { fill: #fff; font: 600 30px var(--font-body); }
.marker circle { fill: var(--gold); stroke: #fff; stroke-width: 4; }
.marker text { fill: var(--navy-deep); font: 800 30px var(--font-head); text-anchor: middle; }

@keyframes flow-dash { to { stroke-dashoffset: -28; } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes pulse-soft { 50% { opacity: .45; } }
@keyframes panel { 50% { opacity: .22; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* passos */
.steps {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.steps li {
  display: flex; gap: 14px;
  padding: 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  animation: step-hl 8s infinite;
}
.steps li:nth-child(2) { animation-delay: 2s; }
.steps li:nth-child(3) { animation-delay: 4s; }
.steps li:nth-child(4) { animation-delay: 6s; }
.steps span {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy-deep); font: 800 1rem var(--font-head);
}
.steps h3 { margin-bottom: .25em; font-size: 1.05rem; }
.steps p { margin: 0; font-size: .92rem; color: #b9cbd9; }
@keyframes step-hl {
  0%, 25% { background: rgba(223,162,50,.14); border-color: rgba(223,162,50,.55); }
  30%, 100% { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
}
.night-note {
  display: none; margin-top: 24px; padding: 16px 20px; border-radius: var(--radius);
  background: rgba(184,166,255,.12); border: 1px solid rgba(184,166,255,.4); color: #e4ddff;
}
.section.is-night .night-note { display: block; }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .label { display: none; }
  .marker circle { r: 62; stroke-width: 8; }
  .marker text { font-size: 70px; transform: translateY(14px); }
  .appliance__label { display: none; }
  .scene__toggle { top: 8px; left: 8px; }
  .scene__toggle button { padding: 7px 10px; font-size: .78rem; }
}

/* ---------- Benefícios ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.benefit:hover { transform: translateY(-4px); border-color: var(--gold); }
.benefit__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold-2); font: 700 1.5rem var(--font-head);
}
.benefit p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 27, 46, .8); color: #fff; font-size: .85rem; font-weight: 600;
}
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: auto; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
}

/* ---------- Vídeos ---------- */
.videos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.video { margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video--main { grid-row: span 2; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video figcaption { background: rgba(255,255,255,.05); padding: 12px 16px; font-size: .92rem; color: #dbe6ef; }
.video--insta {
  display: grid; place-items: center; text-align: center; text-decoration: none;
  min-height: 180px; color: #fff;
  background: linear-gradient(135deg, #833AB4, #E1306C 55%, #F77737);
  transition: transform .25s;
}
.video--insta:hover { transform: translateY(-3px); }
.video--insta svg { margin: 0 auto 10px; }
.video--insta strong { display: block; font: 700 1.2rem var(--font-head); }
.video--insta span { opacity: .9; }
@media (max-width: 800px) {
  .videos { grid-template-columns: 1fr; }
  .video--main { grid-row: auto; }
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,45,74,.04);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font: 600 1.05rem var(--font-head); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Contato ---------- */
.section--contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dbe6ef; }
.section--contact h2 { color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact__list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.contact__list a, .contact__list span { color: #fff; text-decoration: none; font-size: 1.05rem; }
.contact__list a:hover { color: var(--gold-2); }
.form { background: #fff; color: var(--text); border-radius: 22px; padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.3); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form input, .form textarea {
  font: 400 1rem var(--font-body); color: var(--text);
  padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-alt);
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form small { color: var(--muted); text-align: center; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form { padding: 22px; } .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #8fa5b8; padding: 36px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__inner p { margin: 0; }
.footer__social { display: flex; gap: 22px; }
.footer__social a { color: #fff; text-decoration: none; }
.footer__social a:hover { color: var(--gold-2); }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }

/* ---------- Entrada suave ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
