/* ===================== styles.css — Impacto Tecnologia LP =====================
   Carregado sem bloquear render (rel=preload + onload, com <noscript> fallback
   no HTML). O CSS crítico (acima da dobra) fica inline no <head> do index.html.
================================================================================ */

/* ---- Reset mínimo e base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'Lexend', system-ui, sans-serif; color: #101828; background: #ffffff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #1746dd; text-decoration: none; }
a:hover { color: #3ba3f9; }

/* ---- Skip link (acessibilidade) ------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #101828; color: #ffffff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-size: 15px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Foco visível customizado --------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #3ba3f9; outline-offset: 2px; border-radius: 4px;
}

/* ---- Ícones (Material Symbols Rounded self-hosted) ------------------------ */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/material-symbols-rounded.woff2") format('woff2');
}
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
}

/* ---- Marquee de logos ------------------------------------------------------ */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { animation: marquee 44s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---- Reveal on scroll (progressive enhancement) --------------------------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 1; }
@supports (animation-timeline: view()) {
  [data-reveal] { animation: riseIn .8s linear both; animation-timeline: view(); animation-range: entry 4% cover 20%; }
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ---- Cards com hover (desktop apenas) -------------------------------------- */
@media (hover: hover) {
  [data-card] { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }
  [data-card]:hover { border-color: #3ba3f9; }
}

/* ---- Abas Empresário / RH / DP --------------------------------------------- */
[data-tab-btn] { font-family: inherit; font-size: 15px; font-weight: 600; padding: 11px 22px; border-radius: 999px; cursor: pointer; background: #ffffff; color: #4d4d4d; border: 1px solid #e6ebf7; }
[data-tab-btn].is-active { background: #1746dd; color: #ffffff; border-color: #1746dd; }

/* ---- Facade de vídeo -------------------------------------------------------- */
[data-video-facade] { position: relative; width: 100%; height: 100%; background: #0f31a4; }
[data-video-play] {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none; cursor: pointer;
  background: rgba(15,49,164,.35); display: flex; align-items: center; justify-content: center;
}
[data-video-play] .play-icon {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(6,20,70,.4);
  transition: transform .2s ease;
}
[data-video-play]:hover .play-icon { transform: scale(1.08); }
[data-video-play] svg { width: 30px; height: 30px; fill: #1746dd; }

/* ---- FAQ (accordion) -------------------------------------------------------- */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .25s ease; }

/* ---- Formulário (JotForm nativo estilizado) -------------------------------- */
.jf input.form-textbox, .jf select.form-dropdown {
  width: 100%; max-width: 100%; min-width: 0; font-family: 'Lexend', sans-serif; font-size: 16px;
  color: #101828; background: #ffffff; border: 1px solid #d8e0f2; border-radius: 10px;
  padding: 13px 14px; outline: none; appearance: none;
}
.jf select.form-dropdown {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231746dd'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 38px;
}
.jf input.form-textbox:focus, .jf select.form-dropdown:focus { border-color: #1746dd; box-shadow: 0 0 0 3px rgba(23,70,221,.14); }
.jf input[aria-invalid="true"], .jf select[aria-invalid="true"] { border-color: #d92d20; }
.jf-erro { display: block; color: #d92d20; font-size: 13px; font-weight: 500; margin-top: 6px; }
.jf .form-all, .jf .form-section { margin: 0; padding: 0; list-style: none; }
.jf .form-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jf .form-line { margin: 0; min-width: 0; }
.jf .form-line[data-type="control_dropdown"], .jf .form-line[data-type="control_button"] { grid-column: 1 / -1; }
.jf .form-line.always-hidden, .jf-honeypot { display: none; }
.jf .form-label { display: block; font-size: 13px; font-weight: 500; color: #4d4d4d; margin: 0 0 7px; }
.jf .form-required { color: #1746dd; margin-left: 2px; }
.jf .form-buttons-wrapper { margin: 6px 0 0; }
.jf button.form-submit-button {
  width: 100%; font-family: 'Lexend', sans-serif; font-size: 17px; font-weight: 700; color: #ffffff;
  background: #1746dd; border: none; border-radius: 12px; padding: 17px 24px; cursor: pointer;
  box-shadow: 0 12px 28px rgba(23,70,221,.26); transition: background .2s ease;
}
.jf button.form-submit-button:hover { background: #3ba3f9; }
.jf button.form-submit-button:disabled { opacity: .7; cursor: not-allowed; }
@media (max-width: 560px) { .jf .form-section { grid-template-columns: 1fr; } }

/* ---- CTA fixo mobile -------------------------------------------------------- */
[data-sticky-cta] {
  position: fixed; left: 0; right: 0; bottom: -80px; z-index: 40; padding: 12px 16px;
  background: #ffffff; box-shadow: 0 -8px 24px rgba(6,20,70,.18); transition: bottom .25s ease;
  display: none;
}
[data-sticky-cta].is-visible { bottom: 0; }
[data-sticky-cta] a {
  display: flex; align-items: center; justify-content: center; gap: 8px; background: #12E03D; color: #ffffff;
  font-weight: 700; font-size: 16px; padding: 14px; border-radius: 12px; min-height: 44px;
}
@media (prefers-reduced-motion: reduce) { [data-sticky-cta] { transition: none; } }
@media (max-width: 767px) { [data-sticky-cta] { display: block; } }

/* ---- Breakpoints (layout preservado do design original) -------------------- */
@media (min-width: 981px) and (max-width: 1239px) {
  [data-video-row] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [data-cards-fill] { height: auto !important; grid-template-rows: auto !important; }
  [data-cards-fill] [data-card] { padding: 22px !important; }
}
@media (max-width: 980px) {
  [data-depo-track] { max-width: none !important; }
  [data-video-row] { grid-template-columns: 1fr !important; }
  [data-cards-fill] { grid-template-rows: auto !important; height: auto !important; }
  [data-grid="two"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  [data-grid="cards3"], [data-grid="cards4"] { grid-template-columns: 1fr !important; }
  [data-grid="tech"] { grid-template-columns: 1fr 1fr !important; }
  [data-grid="proof"] { grid-template-columns: 1fr !important; }
  main section, main div, main img, main p, main h1, main h2, main h3,
  footer, footer div, footer img { max-width: 100% !important; }
  main section > div, [data-grid], [data-grid] > div { width: auto !important; min-width: 0 !important; }
  main h1, main h2, main h3, main p { white-space: normal !important; overflow-wrap: anywhere; }
  [data-hero-h1] { font-size: 34px !important; }
  [data-sec-h2] { font-size: 30px !important; }
  [data-card] { height: auto !important; min-height: 0 !important; }
}
@media (max-width: 640px) {
  [data-grid="tech"] { grid-template-columns: 1fr !important; }
  [data-hero-h1] { font-size: 30px !important; }
  [data-sec-h2] { font-size: 26px !important; }
  [data-hero-trust] { display: none !important; }
  [data-logos] { padding: 14px 0 12px !important; }
  .marquee { animation-duration: 22s !important; }
  .marquee > span { flex: 0 0 200px !important; height: 118px !important; padding: 0 14px !important; }
  [data-sec] { padding: 52px 20px !important; }
}
