/* ==========================================================================
   JF MUTUAL — MOBILE (base, < 768px)
   tablet.css (>= 768px) e desktop.css (>= 1024px) apenas complementam.
   ========================================================================== */

:root {
  --navy-900: #020817;
  --navy-800: #06152B;
  --blue-700: #064A87;
  --blue-500: #0878E8;
  --blue-400: #168BFF;
  --yellow: #FFD21C;
  --white: #FFFFFF;
  --gray: #B8C1CF;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);

  --header-h: 64px;
  --gutter: 16px;
  --radius: 16px;

  /* Largura da imagem da capa (formato retrato 9:16). Altura = largura x 16/9. */
  --mw: 100vw;
}

* { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--white);
  background: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { position: fixed; left: 0; right: 0; width: 100%; }

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--yellow); color: var(--navy-900); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.hl { color: var(--yellow); }

section[id] { scroll-margin-top: var(--header-h); }
#inicio { scroll-margin-top: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .25s, border-color .25s;
}
.btn .ico { width: 1.2em; height: 1.2em; stroke-width: 2.2; }
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--yellow); color: var(--navy-900);
  box-shadow: 0 6px 22px rgba(255, 210, 28, .22);
}
.btn--primary:hover { background: #ffdb4a; box-shadow: 0 8px 28px rgba(255, 210, 28, .34); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(2, 8, 23, .72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(22, 139, 255, .14);
  transition: background-color .3s, border-color .3s;
}
.header.is-scrolled { background: rgba(2, 8, 23, .88); border-bottom-color: rgba(22, 139, 255, .24); }

.header__inner {
  height: 100%; max-width: 1280px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand__badge { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.brand__sep { width: 1px; height: 28px; background: rgba(184, 193, 207, .35); flex: none; }
.brand__logo { height: 28px; width: auto; }

.nav-desktop { display: none; }

.menu-toggle {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; cursor: pointer;
  background: linear-gradient(160deg, rgba(8, 120, 232, .22), rgba(6, 21, 43, .85));
  border: 1px solid rgba(22, 139, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .2s var(--ease), border-color .25s;
}
.menu-toggle .ico { width: 22px; height: 22px; stroke-width: 2; }
.menu-toggle:active { transform: scale(.94); }

/* ---------- Menu lateral (entra pela esquerda) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 8, 23, .68);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 70;
  width: min(82vw, 320px);
  display: flex; flex-direction: column;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(8, 120, 232, .22), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border-right: 1px solid rgba(22, 139, 255, .3);
  box-shadow: 18px 0 50px rgba(0, 0, 0, .5);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  overflow-y: auto;
}
.menu-open .overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(22, 139, 255, .22);
  position: relative;
}
.drawer__head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--yellow);
}
.drawer__logo { height: 30px; width: auto; }
.drawer__close {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border-radius: 12px; cursor: pointer;
  background: rgba(6, 21, 43, .8); border: 1px solid rgba(22, 139, 255, .4);
}
.drawer__close .ico { width: 20px; height: 20px; stroke-width: 2; }

.drawer__list { display: grid; gap: 6px; }
.drawer__list a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 14px;
  border-radius: 14px; text-decoration: none;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.drawer__list a > .ico:first-child { color: var(--blue-400); }
.drawer__list a span { flex: 1; }
.drawer__chev { width: 16px !important; height: 16px !important; color: var(--gray); }
.drawer__list a:hover,
.drawer__list a[aria-current] {
  background: linear-gradient(90deg, rgba(8, 120, 232, .2), rgba(8, 120, 232, .04));
  border-color: rgba(22, 139, 255, .3);
}
.drawer__list a[aria-current]::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--yellow);
}
.drawer__foot {
  margin-top: auto; padding-top: 24px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;      /* a capa nunca passa da tela só por causa da imagem */
  background: var(--navy-900);
}
.hero__media {
  /* imagem encostada na base, centralizada, um pouco cortada embaixo (reflexo) */
  position: absolute; z-index: -2;
  left: 0; right: 0; margin-inline: auto;
  bottom: calc(var(--mw) * -.12);
  width: var(--mw);
  aspect-ratio: 9 / 16;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%);
          mask-image: linear-gradient(180deg, transparent 0, #000 20%);
}
.hero__media picture { display: block; }
.hero__media img { width: 100%; height: auto; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, .9) 0, rgba(2, 8, 23, .55) 26%, transparent 46%),
    linear-gradient(0deg, var(--navy-900) 0, rgba(2, 8, 23, .6) 5%, transparent 16%);
}

.hero__content {
  position: relative;
  /* reserva embaixo o espaço do carro: o texto nunca fica por cima dele */
  padding: calc(var(--header-h) + 76px) var(--gutter) calc(var(--mw) * .8);
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: #E6ECF5;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--yellow); flex: none; }

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 8.7vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
}
.hero h1 span { display: block; }
.hero__lead { max-width: 270px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; color: #E4EAF3; }

/* ---------- Seções: rótulo e cabeçalho ---------- */
.label {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #D3DBE8;
}
.label::before, .label::after {
  content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--yellow);
  transform: scaleX(0); transition: transform .8s var(--ease) .15s;
}
.label::before { transform-origin: right; }
.label::after { transform-origin: left; }
.is-visible .label::before, .is-visible .label::after,
.label.is-visible::before, .label.is-visible::after { transform: scaleX(1); }
html:not(.js) .label::before, html:not(.js) .label::after { transform: none; }

.label--left { justify-content: flex-start; letter-spacing: .22em; }
.label--left::after { display: none; }
.label--left::before { width: 26px; }

/* ---------- Serviços ---------- */
.services {
  position: relative; overflow: hidden;
  padding: 44px 0 56px;
  background:
    radial-gradient(70% 38% at 8% 0%, rgba(8, 120, 232, .24), transparent 70%),
    radial-gradient(60% 30% at 100% 60%, rgba(6, 74, 135, .28), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0, var(--navy-800) 45%, var(--navy-900) 100%);
}
.services::before {            /* feixe amarelo discreto, inspirado no carro */
  content: ""; position: absolute; left: -10%; top: 18px; width: 52%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow) 70%, transparent);
  transform: rotate(-4deg); opacity: .8;
}
.services .container { position: relative; }

.section-head { text-align: center; }
.section-head h2 { display: grid; gap: 12px; font-weight: 700; }
.section-head__title .hl { display: block; }
.section-head__title { font-size: clamp(23px, 6.8vw, 28px); line-height: 1.2; letter-spacing: -.015em; }

.cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-top: 26px;
}

.card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  min-height: 64px; height: 100%; padding: 8px 10px 8px 9px;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 139, 255, .34);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(8, 120, 232, .26), transparent 62%),
    linear-gradient(135deg, rgba(6, 74, 135, .32), rgba(6, 21, 43, .94) 70%);
  box-shadow: inset 0 1px 0 rgba(22, 139, 255, .45), 0 10px 24px rgba(0, 0, 0, .35);
  text-decoration: none; color: var(--white);
  transition: transform .2s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {                  /* pequeno ponto de luz na borda superior */
  content: ""; position: absolute; top: -1px; left: 50%; width: 46%; height: 2px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 168, 255, .95), transparent);
  opacity: .75; transition: opacity .3s, width .3s;
}
.card:hover { border-color: rgba(22, 139, 255, .65); box-shadow: inset 0 1px 0 rgba(70, 168, 255, .7), 0 12px 28px rgba(8, 120, 232, .2); }
.card:hover::before { opacity: 1; width: 62%; }
.card:active { transform: scale(.97); border-color: rgba(255, 210, 28, .55); }

.card__icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--blue-500), var(--blue-700) 80%);
  box-shadow: 0 0 14px rgba(8, 120, 232, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.card__icon .ico { width: 19px; height: 19px; stroke-width: 1.8; }
.card__label {
  flex: 1; min-width: 0;
  font-size: clamp(12.5px, 3.6vw, 14px); font-weight: 500; line-height: 1.25;
}
.card__arrow { width: 15px; height: 15px; color: #DCE5F2; stroke-width: 2; transition: transform .25s var(--ease); }
.card:hover .card__arrow { transform: translateX(3px); }

/* ---------- Sobre ---------- */
.about {
  position: relative; overflow: hidden;
  padding: 24px 0 60px;
  background:
    radial-gradient(60% 40% at 100% 100%, rgba(8, 120, 232, .18), transparent 70%),
    var(--navy-900);
}
.about::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 28, .75) 50%, transparent);
}
.about__grid { display: grid; gap: 24px; padding-top: 34px; }

.about__media {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(22, 139, 255, .4);
  box-shadow: 0 0 0 1px rgba(2, 8, 23, .6), 0 16px 40px rgba(0, 0, 0, .5), 0 0 34px rgba(8, 120, 232, .18);
  overflow: hidden;
}
.about__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 52%; }
.about__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 23, .55)), linear-gradient(120deg, rgba(8, 120, 232, .14), transparent 45%);
}

.about__body { display: grid; gap: 14px; }
.about__title { font-size: clamp(22px, 6.4vw, 27px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.about__body p:not(.about__title) { font-size: 14px; line-height: 1.65; color: var(--gray); max-width: 60ch; }

/* ---------- Rodapé ---------- */
.footer {
  position: relative;
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border-top: 1px solid rgba(22, 139, 255, .22);
}
.footer::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 96px; height: 2px; background: var(--yellow);
}
.footer__inner { display: grid; gap: 22px; justify-items: start; }
.footer__brand img { height: 34px; width: auto; margin-bottom: 12px; }
.footer__name { font-size: 14px; font-weight: 600; }
.footer__desc { font-size: 12px; color: var(--gray); }

.footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(22, 139, 255, .34);
  background: linear-gradient(135deg, rgba(8, 120, 232, .18), rgba(6, 21, 43, .9));
  transition: transform .2s var(--ease), border-color .3s;
}
.chip .ico { color: var(--yellow); width: 18px; height: 18px; }
.chip:hover { border-color: rgba(22, 139, 255, .7); }
.chip:active { transform: scale(.97); }
[hidden] { display: none !important; }

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s ease, transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes glow-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
.services::before { animation: glow-breathe 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .label::before, .label::after { transform: none; }
}

/* telas baixas (celulares pequenos) */
@media (max-height: 700px) {
  .hero h1 { font-size: 29px; margin: 10px 0 8px; }
  .hero__lead { font-size: 13px; margin-bottom: 14px; }
  .hero__content { padding-top: calc(var(--header-h) + 58px); }
}

/* ---------- Hero: botões lado a lado ---------- */
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 11px; letter-spacing: .03em; }
.btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }

/* ---------- Hero: canvas da animação (frames) ---------- */
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: none; pointer-events: none;
}
.hero__canvas.is-ready { display: block; }
