/* ==========================================================================
   Rafa Electric Mob — base visual compartilhada (links, site, catálogo e modelos)
   Estilo: claro, delicado e moderno. Laranja só como acento.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  /* Cores */
  --bg: #fafaf7;
  --bg-alt: #f3f2ee;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --faint: #9a9a96;
  --line: rgba(17, 17, 17, 0.08);
  --line-2: rgba(17, 17, 17, 0.14);
  --orange: #ff6a00;
  --orange-text: #e85d00;
  --orange-soft: #fff1e6;
  --orange-grad: linear-gradient(135deg, #ff8a1f 0%, #ff5a00 100%);
  --dark: #111111;
  --wa: #1fae55;

  /* Tipografia */
  --font-title: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Forma */
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px -4px rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 48px -20px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange-soft); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-title); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); }
.h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.04em; line-height: 1.02; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); }
.h3 { font-size: clamp(20px, 2.2vw, 24px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; max-width: 560px; }
.accent { color: var(--orange-text); }
.num { font-family: var(--font-title); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }

/* ---------- Layout ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { align-items: center; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange-grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -10px rgba(255, 90, 0, 0.6); }
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 16px 32px -12px rgba(255, 90, 0, 0.7); }
.btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: rgba(17, 17, 17, 0.28); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: rgba(17, 17, 17, 0.05); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
/* brilho que atravessa a cada ~6s */
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-110%); animation: btn-shine 6s var(--ease) infinite 1.5s;
}
@keyframes btn-shine { 0%, 82% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.chip svg { width: 14px; height: 14px; color: var(--orange); }
.chip--soft { background: var(--orange-soft); border-color: transparent; color: var(--orange-text); font-weight: 600; }
button.chip:hover { border-color: var(--line-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active svg { color: #fff; }
.chip .chip__count { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { color: rgba(255, 255, 255, 0.6); }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card__photo { overflow: hidden; background: #fff; }
.card__photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease), opacity 0.3s ease; }
a.card:hover .card__photo img, .card--hover:hover .card__photo img { transform: scale(1.04); }

/* ---------- Preço ---------- */
.price { display: flex; flex-direction: column; gap: 2px; }
.price del { color: var(--faint); font-size: 13px; text-decoration-color: rgba(17, 17, 17, 0.35); font-variant-numeric: tabular-nums; }
.price strong { font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.off {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-text);
  font-family: var(--font-title); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ---------- Ícones redondos ---------- */
.icon-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); flex: none; }
.icon-dot svg { width: 20px; height: 20px; }
.icon-dot--wa { background: #e8f8ee; color: var(--wa); }

/* ---------- Aurora (fundo pastel desfocado) ---------- */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: aurora 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -18vmax; background: #ffd9b8; }
.aurora span:nth-child(2) { width: 38vmax; height: 38vmax; right: -14vmax; top: -10vmax; background: #ffe7c7; animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vmax; height: 30vmax; left: 30%; top: 10vmax; background: #fff0e0; animation-duration: 26s; animation-delay: -12s; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.08); } 100% { transform: translate(-4vmax, 6vmax) scale(0.96); } }

/* ---------- Efeitos ---------- */
/* entrada ao rolar */
.js [data-reveal] { opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* halo que segue o mouse */
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 106, 0, 0.1), transparent 65%);
}
[data-glow]:hover::before { opacity: 1; }
[data-glow] > * { position: relative; z-index: 1; }
/* magnético */
[data-magnetic] { transform: translate(var(--mx, 0), var(--my, 0)); }

/* Cabeçalho translúcido */
.site-header { position: sticky; top: 0; z-index: 50; transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease; }
.site-header.is-scrolled { background: rgba(250, 250, 247, 0.78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; transition: height 0.35s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px rgba(255, 106, 0, 0.35); }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 12px; }

/* Transições entre páginas */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  [data-magnetic] { transform: none; }
  @view-transition { navigation: none; }
}
