/* =========================================================
   Auto Detailer — Estética Automotiva (Iguape-SP)
   Identidade: escudo preto + letreiro cromado/prata + 💎
   ========================================================= */

:root {
  --bg: #0a0b0d;
  --bg-2: #111317;
  --surface: #16191e;
  --surface-2: #1d2128;
  --line: rgba(255, 255, 255, .08);
  --text: #f2f4f7;
  --muted: #9aa3ae;
  --silver: #c9ced6;
  --ice: #8fd3ff;           /* azul "diamante" */
  --ice-deep: #3aa6e8;
  --whats: #25d366;

  --chrome: linear-gradient(180deg, #ffffff 0%, #e3e7ec 38%, #8a929c 52%, #d8dde3 70%, #ffffff 100%);
  --chrome-btn: linear-gradient(180deg, #ffffff 0%, #dfe3e8 45%, #b3bac3 55%, #eef1f4 100%);

  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font-display: "Saira", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

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

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .78rem/1 var(--font-display);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 18px;
}
.eyebrow svg { width: 16px; height: 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font: 700 .95rem/1 var(--font-display);
  letter-spacing: .06em; text-transform: uppercase;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--chrome {
  background: var(--chrome-btn);
  color: #0b0c0f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 10px 30px -10px rgba(143, 211, 255, .45);
}
.btn--chrome:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 16px 40px -10px rgba(143, 211, 255, .7); }
.btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .85rem; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: height .3s, background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 76px;
  background: rgba(10, 11, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; line-height: 0; }
/* o PNG é quadrado com sobra transparente em cima/embaixo: recorta no próprio escudo */
.brand__logo {
  height: 82px; width: auto; aspect-ratio: 447 / 315; object-fit: cover;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
  transition: height .3s;
}
.header.is-scrolled .brand__logo { height: 58px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font: 600 .9rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--silver); position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ice); transition: width .3s;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .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); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
  /* fundo enquanto o vídeo não carrega / se não existir */
  background:
    radial-gradient(1200px 600px at 75% 30%, rgba(143, 211, 255, .14), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(160deg, #15181d 0%, #0a0b0d 70%);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.65) 50%, rgba(10,11,13,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  letter-spacing: -.01em;
  max-width: 14ch;
}
.hero__title .chrome-text { font-weight: 900; }
.hero__lead { max-width: 560px; margin-top: 24px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #cfd5dc; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 48px; color: var(--silver); font-size: .92rem; }
.hero__badges li { display: flex; align-items: center; gap: 10px; }
.hero__badges svg { width: 22px; height: 22px; color: var(--ice); }

/* Vitrine do vídeo (desktop) */
.hero__showcase { display: none; margin: 0; }
@media (min-width: 981px) {
  .hero__content { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(40px, 5vw, 80px); }
  .hero__video { transform: scale(1.08); filter: saturate(1.1); }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.7) 50%, rgba(10,11,13,.5) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  }
  .hero__showcase { display: grid; justify-items: center; gap: 16px; }
  .hero__frame {
    position: relative;
    height: min(64vh, 600px); min-height: 440px; aspect-ratio: 9 / 16;
    padding: 5px; border-radius: 30px;
    background: var(--chrome);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(143, 211, 255, .35);
    transform: rotate(2deg);
    transition: transform .5s;
  }
  .hero__frame:hover { transform: rotate(0deg) scale(1.02); }
  .hero__reel { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; background: #000; }
  .hero__showcase figcaption a {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 .8rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
    color: var(--silver); padding: 10px 16px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line); backdrop-filter: blur(6px);
    transition: color .25s, border-color .25s;
  }
  .hero__showcase figcaption a:hover { color: #fff; border-color: rgba(143, 211, 255, .5); }
  .hero__showcase figcaption svg { width: 16px; height: 16px; }
}

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section__title { font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section__lead { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Serviços ---------- */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.services__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(143, 211, 255, .35); box-shadow: var(--shadow); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--chrome); opacity: .55; transition: opacity .35s;
}
.card:hover::before { opacity: 1; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 26px 26px; }
.card h3 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.card p { color: var(--muted); font-size: .94rem; margin: 12px 0 22px; }
.card__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .85rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ice); padding: 12px 18px; border: 1px solid rgba(143, 211, 255, .35); border-radius: 999px;
  transition: background .25s, color .25s, gap .25s;
}
.card__cta:hover { background: var(--ice); color: #0b0c0f; gap: 12px; }

/* ---------- Faixa CTA ---------- */
.cta-band {
  position: relative;
  padding: clamp(56px, 7vw, 80px) 0;
  background:
    radial-gradient(600px 300px at 85% 50%, rgba(143, 211, 255, .18), transparent 70%),
    linear-gradient(90deg, #15181d, #0e1013);
  border-block: 1px solid var(--line);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { text-transform: uppercase; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 520px; }

/* ---------- Área de atendimento ---------- */
.area__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.area .section__lead { margin-bottom: 32px; }
.area__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.area__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font: 600 1.05rem/1.2 var(--font-display); letter-spacing: .03em;
}
.area__list li::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; transform: rotate(45deg);
  background: var(--ice); box-shadow: 0 0 12px var(--ice);
}

/* ---------- Rodapé ---------- */
.footer { background: #07080a; border-top: 1px solid var(--line); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.brand--footer { margin-bottom: 18px; }
.brand--footer .brand__logo { height: 128px; }
.footer p, .footer__links { color: var(--muted); font-size: .94rem; }
.footer__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 18px; color: #fff;
}
.footer__title svg { width: 18px; height: 18px; color: var(--ice); }
.footer__links li + li { margin-top: 10px; }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--silver);
  transition: background .25s, color .25s, border-color .25s;
}
.footer__social a:hover { background: var(--ice); border-color: var(--ice); color: #0b0c0f; }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; text-align: center; }
.footer__bottom p { font-size: .85rem; }

/* ---------- 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: var(--whats); color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .25s;
}
.whats-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whats); animation: pulse 2.2s infinite;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

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

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .area__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .brand__logo, .header.is-scrolled .brand__logo { height: 58px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(10, 11, 13, .97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 1.3rem; }
  .header.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; }
  .hero__overlay { background: linear-gradient(0deg, rgba(10,11,13,.96) 0%, rgba(10,11,13,.72) 45%, rgba(10,11,13,.4) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badges { gap: 12px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .area__list { grid-template-columns: 1fr 1fr; }
  .area__list li { padding: 14px; font-size: .95rem; }
  .btn--lg { width: 100%; }
  .whats-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

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

.footer__address { display: inline-flex; gap: 8px; align-items: flex-start; }
.footer__address svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--ice); }
