/* ============================================================
   ZION Serviços Automotivos — styles
   Dark + gold theme, parallax scene, assembling car
   ============================================================ */

:root {
  --bg:        #07070a;
  --bg-2:      #0d0d12;
  --panel:     rgba(18, 18, 24, 0.72);
  --panel-brd: rgba(245, 166, 35, 0.14);

  --gold:      #f5a623;
  --gold-lt:   #ffcf6b;
  --gold-dk:   #c9821a;
  --silver:    #dfe3ea;

  --text:      #f4f5f7;
  --muted:     #9aa0ab;

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);

  --shadow:    0 24px 60px rgba(0,0,0,.45);
  --glow-gold: 0 0 0 1px rgba(245,166,35,.25), 0 12px 40px rgba(245,166,35,.18);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: radial-gradient(120% 80% at 50% -10%, #15110a 0%, var(--bg-2) 38%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.grad {
  background: linear-gradient(100deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }

/* ============================================================
   Fixed parallax scene + assembling car
   ============================================================ */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.scene__glow {
  position: absolute; left: 50%; top: 42%;
  width: 1100px; height: 1100px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(245,166,35,.16) 0%, rgba(245,166,35,.05) 35%, transparent 65%);
  filter: blur(8px);
}

.scene__streak { position: absolute; height: 2px; border-radius: 99px; opacity: .5; filter: blur(.4px); }
.scene__streak--1 {
  top: 22%; left: -10%; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,207,107,.0), rgba(245,166,35,.7), transparent);
}
.scene__streak--2 {
  top: 70%; right: -10%; width: 55%;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,.55), rgba(255,207,107,.0), transparent);
}

.scene__grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(245,166,35,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 75%);
  opacity: .6;
}

.scene__car {
  position: absolute; left: 50%; top: 50%;
  width: min(96vw, 1180px); transform: translate(-50%,-50%);
}
.scene__car svg { width: 100%; height: auto; overflow: visible; }
#car { filter: drop-shadow(0 0 10px rgba(245,166,35,.5)) drop-shadow(0 0 30px rgba(245,166,35,.28)); }

.scene__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* Car part defaults — JS drives the transforms */
#car .part { transition: opacity .15s linear; }
#car .stroke { fill: none; stroke: var(--gold-lt); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
#car .stroke-thin { fill: none; stroke: rgba(255,207,107,.8); stroke-width: 2.4; stroke-linecap: round; }
#car .glass { fill: rgba(120,190,255,.14); stroke: rgba(190,220,255,.7); stroke-width: 2.4; }
#car .body-fill { fill: rgba(245,166,35,.1); stroke: var(--gold-lt); stroke-width: 3.6; stroke-linejoin: round; }
#car .tyre { fill: rgba(8,8,10,.9); stroke: var(--gold-lt); stroke-width: 3.6; }
#car .rim  { fill: none; stroke: var(--gold-lt); stroke-width: 2.8; }
#car .hub  { fill: var(--gold-lt); }
#car .light { fill: #fff3d6; }
#car .accent { fill: var(--gold); }

/* Build meter */
.build-meter {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 18px; border-radius: 99px;
  background: rgba(10,10,14,.55); border: 1px solid var(--panel-brd);
  backdrop-filter: blur(6px);
  font-size: .8rem; opacity: 0; transition: opacity .4s;
}
.build-meter.visible { opacity: 1; }
.build-meter__label { color: var(--muted); letter-spacing: .15em; text-transform: uppercase; font-size: .68rem; }
.build-meter__value { color: var(--gold); font-weight: 700; font-family: "Montserrat"; font-size: 1rem; min-width: 44px; text-align: right; }

/* keep content above the scene */
.header, main, .footer, .wa-float { position: relative; z-index: 2; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --b: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-family: "Montserrat", sans-serif;
  font-size: .95rem; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  will-change: transform;
}
.btn .ic { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(100deg, var(--gold-lt), var(--gold) 60%, var(--gold-dk));
  color: #1a1205; box-shadow: var(--glow-gold);
}
.btn--gold:hover { box-shadow: 0 0 0 1px rgba(245,166,35,.4), 0 16px 44px rgba(245,166,35,.34); }

.btn--ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--ghost:hover { background: rgba(245,166,35,.1); }

.btn--wa { background: #25d366; color: #04220f; box-shadow: 0 10px 30px rgba(37,211,102,.28); }
.btn--wa:hover { box-shadow: 0 16px 40px rgba(37,211,102,.4); }

.btn--block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s, padding .35s;
  padding: 14px 0;
}
.header.scrolled {
  background: rgba(7,7,10,.82); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(245,166,35,.12), 0 12px 30px rgba(0,0,0,.4);
}
.header__inner { display: flex; align-items: center; gap: 24px; }

.brand__logo {
  height: 52px; width: auto; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(245,166,35,.25), 0 8px 22px rgba(0,0,0,.5);
}

.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav__link {
  position: relative; font-weight: 500; color: #e9eaee; padding: 6px 0;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease); border-radius: 2px;
}
.nav__link:hover, .nav__link.active { color: var(--gold); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 600; color: var(--silver); white-space: nowrap; }
.header__phone:hover { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Sections / generic
   ============================================================ */
.section { padding: clamp(80px, 12vh, 150px) 0; }
.section__title {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; text-align: center;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.section__lead {
  max-width: 720px; margin: 0 auto 48px; text-align: center; color: var(--muted);
  font-size: 1.08rem;
}

.panel {
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: clamp(28px, 5vw, 64px);
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 120px; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero__title {
  font-family: "Montserrat", sans-serif; font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__lead { color: #c6cad2; font-size: 1.12rem; max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__phone { display: flex; align-items: center; gap: 14px; }
.hero__phone-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(245,166,35,.12); color: var(--gold);
}
.hero__phone-ic .ic { width: 22px; height: 22px; fill: currentColor; }
.hero__phone-label { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.hero__phone a { display: inline-block; margin-right: 14px; color: var(--silver); font-weight: 600; }
.hero__phone a:hover { color: var(--gold); }

.hero__card {
  position: relative; border-radius: var(--radius);
  padding: 22px; background: rgba(10,10,12,.5);
  border: 1px solid var(--panel-brd); box-shadow: var(--shadow);
}
.hero__card img { border-radius: 12px; }
.hero__card-glow {
  position: absolute; inset: -2px; border-radius: var(--radius); z-index: -1;
  background: conic-gradient(from 0deg, var(--gold-dk), var(--gold-lt), var(--gold), var(--gold-dk));
  filter: blur(18px); opacity: .5; animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.scroll-hint__mouse {
  width: 24px; height: 38px; border: 2px solid var(--gold); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-hint__mouse span { width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1;transform:translateY(0)} 70%{opacity:0;transform:translateY(10px)} 100%{opacity:0} }

/* ============================================================
   Stats
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 44px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--radius-sm); background: rgba(245,166,35,.05); border: 1px solid var(--panel-brd); }
.stat__num { display: block; font-family: "Montserrat"; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); line-height: 1; }
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* ============================================================
   Cards / serviços
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  padding: 30px 26px; backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(245,166,35,.4); box-shadow: var(--glow-gold); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(245,166,35,.2), rgba(245,166,35,.05));
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; fill: var(--gold); }
.card__title { font-family: "Montserrat"; font-weight: 700; font-size: 1.25rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.card__list { list-style: none; display: grid; gap: 10px; }
.card__list li { position: relative; padding-left: 26px; color: #d4d7dd; font-size: .92rem; }
.card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800;
  width: 18px; height: 18px;
}

/* ============================================================
   Form
   ============================================================ */
.form { display: grid; gap: 18px; max-width: 760px; margin: 8px auto 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .86rem; color: var(--silver); font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; resize: vertical;
  background: rgba(8,8,12,.6); border: 1px solid rgba(245,166,35,.18); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6c727d; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #e0533f; }
.form__hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ============================================================
   Contato
   ============================================================ */
.contato__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.contato__info { display: grid; gap: 16px; align-content: start; }
.info-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s; backdrop-filter: blur(10px);
}
.info-card:hover { transform: translateX(6px); border-color: rgba(245,166,35,.4); }
.info-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(245,166,35,.12); flex: none; }
.info-card__ic svg { width: 24px; height: 24px; fill: var(--gold); }
.info-card__label { display: block; font-size: .76rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.info-card strong { font-size: 1.05rem; }
.contato__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-brd); min-height: 380px; box-shadow: var(--shadow); }
.contato__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.3) contrast(1.05) brightness(.9); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: rgba(5,5,8,.85); border-top: 1px solid var(--panel-brd); margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer__brand img { height: 56px; width: auto; border-radius: 10px; margin-bottom: 16px; box-shadow: 0 0 0 1px rgba(245,166,35,.2); }
.footer__brand p { color: var(--muted); font-size: .94rem; max-width: 320px; }
.footer__col h4 { font-family: "Montserrat"; font-size: 1rem; margin-bottom: 16px; color: var(--gold); }
.footer__col a, .footer__col span { display: block; color: var(--muted); margin-bottom: 10px; font-size: .94rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; text-align: center; color: var(--muted); font-size: .86rem; }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(1.9);opacity:0} }

/* ============================================================
   Cookie banner (LGPD)
   ============================================================ */
.cookie {
  position: fixed; z-index: 70; left: 22px; bottom: 22px;
  width: min(420px, calc(100vw - 44px));
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(13,13,18,.92); border: 1px solid var(--panel-brd);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transform: translateY(140%); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie__text strong { display: block; font-family: "Montserrat"; font-size: 1.02rem; margin-bottom: 6px; }
.cookie__text p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.cookie__actions { display: flex; gap: 12px; }
.cookie__btn { flex: 1; padding: 12px 18px; font-size: .9rem; }

@media (max-width: 760px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 20px; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__card { order: 1; max-width: 440px; margin-inline: auto; }
  .hero__cta, .hero__phone { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contato__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .header__phone { display: none; }
  .brand { margin-right: auto; }
  .header__actions { gap: 10px; }
  .btn--wa { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,7,10,.96); backdrop-filter: blur(14px);
    padding: 16px 22px; border-top: 1px solid var(--panel-brd);
  }
  .nav.open .nav__link { padding: 12px 0; }
  .header__actions .header__phone { display: none; }
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .build-meter { bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card-glow, .wa-float__pulse, .scroll-hint__mouse span { animation: none; }
  html { scroll-behavior: auto; }
}
