/* =====================================================================
   NOME DA OFICINA — Site institucional
   Tema premium/automotivo · responsivo · sem dependências externas
   ===================================================================== */

:root {
  --bg:        #0d0f12;   /* grafite escuro */
  --bg-2:      #14171c;   /* seção alternada */
  --bg-3:      #1b1f26;   /* cards */
  --surface:   #21262f;
  --text:      #eef1f5;
  --muted:     #a4adba;
  --line:      #2b313a;

  --red:       #f7b500;   /* amarelo (antes vermelho) */
  --red-dark:  #d49a00;
  --on-red:    #1a1200;   /* texto escuro para usar sobre o amarelo */
  --whats:     #25d366;
  --whats-dk:  #128c4a;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 40px rgba(0,0,0,.35);
  --maxw:      1160px;
  --font:      'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow-light { color: #ffcb3d; }

.accent { color: var(--red); }
.muted  { color: var(--muted); }

/* ------------------------------ botões ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary  { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline  { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.btn-whatsapp { background: var(--whats); color: #06301a; }
.btn-whatsapp:hover { background: var(--whats-dk); color: #fff; }

/* ícone whatsapp simples desenhado em CSS/emoji */
.i-whats::before { content: "🟢"; font-size: .9em; }
.btn-whatsapp .i-whats::before,
.whatsapp-float .i-whats::before { content: "💬"; }

/* ----------------------------- cabeçalho ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,15,18,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 52px; width: auto; }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: #fff; }
.nav .nav-cta { color: #06301a; }
.nav .nav-cta:hover { color: #fff; }

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

/* ------------------------------- hero ------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(13,15,18,.96) 30%, rgba(13,15,18,.55) 75%, rgba(13,15,18,.85)),
    url("../assets/hero.svg") center/cover no-repeat, #0d0f12;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(247,181,0,.22), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 20px 96px; }

/* Círculos animados do hero */
.hero-rings {
  position: absolute; top: 50%; right: -6%;
  transform: translateY(-50%);
  width: min(700px, 72vw); aspect-ratio: 1;
  z-index: 1; pointer-events: none;
}
.hero-rings svg { width: 100%; height: 100%; overflow: visible; }
.rings-logo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 23%; height: auto; z-index: 2; pointer-events: none;
}
.hero-rings .arc { transform-box: fill-box; transform-origin: center; will-change: transform; }
.hero-rings .r1 { animation: ringspin 6s linear infinite; }
.hero-rings .r2 { animation: ringspin-rev 9s linear infinite; }
.hero-rings .r3 { animation: ringspin 7.5s linear infinite; }
.hero-rings .r4 { animation: ringspin-rev 11s linear infinite; }

@keyframes ringspin     { to { transform: rotate(360deg); } }
@keyframes ringspin-rev { to { transform: rotate(-360deg); } }
.hero-content { max-width: 680px; }

.badge-24h {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--on-red);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  box-shadow: 0 6px 20px rgba(247,181,0,.45);
  margin-bottom: 22px;
  animation: pulse24 2.4s ease-in-out infinite;
}
.badge-24h strong {
  background: var(--on-red); color: var(--red);
  border-radius: 999px; padding: 2px 9px; font-size: .9rem;
}
@keyframes pulse24 {
  0%,100% { box-shadow: 0 6px 20px rgba(247,181,0,.45); }
  50%     { box-shadow: 0 6px 30px rgba(247,181,0,.75); }
}

.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 20px; }
.hero-sub  { font-size: clamp(1rem, 2.2vw, 1.18rem); color: #d3dae3; max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-bosch {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.hero-bosch img { height: 34px; }
.hero-bosch span { font-size: .9rem; color: var(--muted); }

.hero-values { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.hero-values span {
  position: relative; padding-left: 24px;
  font-weight: 800; font-size: .98rem; letter-spacing: .06em;
  text-transform: uppercase; color: #fff;
}
.hero-values span::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--red); color: var(--on-red);
  font-size: .62rem; font-weight: 900; display: grid; place-items: center;
}

/* ------------------------------ stats ------------------------------- */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { text-align: center; padding: 34px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: #fff; }
.stat-label { font-size: .9rem; color: var(--muted); }
.stat-24h .stat-num { color: var(--red); }

/* ------------------------------ seções ------------------------------ */
.section { padding: 84px 0; }
.section-alt  { background: var(--bg-2); }
.section-dark { background: #0a0c0f; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ------------------------------ sobre ------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
/* Carrossel (arrastar para o lado) */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.carousel-track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.carousel-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(10,12,15,.5); color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .15s; backdrop-filter: blur(2px); z-index: 2;
}
.carousel-btn:hover { background: var(--red); color: var(--on-red); transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.carousel-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dots .dot.active { background: var(--red); transform: scale(1.3); }
.about-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 16px; }
.about-text p { color: #cfd6df; margin-bottom: 16px; }

.check-list { list-style: none; margin: 6px 0 26px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #dfe4ea; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--on-red); background: var(--red); width: 20px; height: 20px;
  border-radius: 50%; font-size: .75rem; display: grid; place-items: center; font-weight: 900;
}

/* ------------------------------ comercial --------------------------- */
#comercial {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 32%, #171b22 0%, #0b0d11 68%);
}
#comercial .container { position: relative; z-index: 1; }
.comercial-bg {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1250px, 140%); pointer-events: none; z-index: 0; opacity: .48;
  -webkit-mask-image: radial-gradient(78% 90% at 50% 62%, #000 52%, transparent 100%);
          mask-image: radial-gradient(78% 90% at 50% 62%, #000 52%, transparent 100%);
}
.comercial-bg img { width: 100%; height: auto; display: block; }

.video-frame {
  position: relative;
  width: 100%; max-width: 340px;      /* vídeo vertical */
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 0 1px rgba(247,181,0,.15);
}
.video-frame::after {                  /* brilho amarelo suave ao redor */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px rgba(247,181,0,.08);
}
.video-el {
  display: block; width: 100%; height: auto;
  max-height: 78vh; background: #0a0c0f;
}
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(247,181,0,.95);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 10px rgba(247,181,0,.18);
  transition: transform .18s ease, background .2s ease;
  animation: playpulse 2.4s ease-in-out infinite;
}
.video-play:hover { transform: scale(1.08); background: var(--red); }
.video-play .play-tri {
  width: 0; height: 0; margin-left: 6px;
  border-left: 26px solid #0a0c0f;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.video-frame.is-playing .video-play { display: none; }
@keyframes playpulse {
  0%,100% { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 10px rgba(247,181,0,.18); }
  50%     { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 18px rgba(247,181,0,.05); }
}

/* --------------------------- especialidades ------------------------- */
.brands-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
}
.brand-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; transition: transform .2s, border-color .2s;
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--red); }
.brand-card img { height: 48px; width: auto; opacity: .92; }
.brand-card span { font-weight: 700; font-size: .95rem; }
.brand-card--more { justify-content: center; color: var(--muted); font-weight: 800; }

/* ------------------------------ serviços ---------------------------- */
.services-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.service-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.service-ico {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(247,181,0,.14); font-size: 1.5rem; margin-bottom: 16px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ---------------------------- diferenciais -------------------------- */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.diff-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; position: relative;
}
.diff-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.diff-card p { color: var(--muted); font-size: .96rem; }
.diff-highlight { border-color: var(--red); background: linear-gradient(160deg, rgba(247,181,0,.16), var(--surface)); }
.diff-badge {
  position: absolute; top: -16px; left: 26px;
  background: var(--red); color: var(--on-red); font-weight: 900;
  padding: 6px 14px; border-radius: 999px; font-size: .95rem;
  box-shadow: 0 6px 18px rgba(247,181,0,.5);
}

/* ------------------------------ contato ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.contact-list { list-style: none; margin: 26px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.c-ico { font-size: 1.3rem; width: 30px; text-align: center; flex: 0 0 auto; }
.contact-list a:hover { color: var(--red); }

.social { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.social a {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: .2s;
}
.social a:hover { border-color: var(--red); color: #fff; }

/* Instagram: ícone + @ embaixo */
.social .ig-link {
  border: 0; padding: 0; background: none;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text); font-weight: 700; font-size: .95rem;
  transition: transform .18s ease, color .2s ease;
}
.social .ig-link:hover { transform: translateY(-3px); color: #fff; }
.social .ig-link { font-size: .88rem; }
.ig-icon {
  width: 42px; height: 42px; display: block;
  border-radius: 12px; box-shadow: 0 5px 14px rgba(0,0,0,.45);
}

.contact-map iframe {
  width: 100%; height: 100%; min-height: 420px;
  border: 1px solid var(--line); border-radius: var(--radius);
}

/* ------------------------------ rodapé ------------------------------ */
.site-footer { background: #08090b; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 40px 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-logo { height: 56px; }
.footer-bosch img { height: 42px; opacity: .9; }
.footer-hours { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; color: var(--muted); }
.footer-hours strong { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.footer-hours b { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

/* --------------------------- whatsapp float ------------------------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whats); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(18,140,74,.55);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ----------------------------- responsivo --------------------------- */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    transform: translateY(-140%); transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-map iframe { min-height: 320px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 64px 20px 70px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* --------------------------- reduz movimento ------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
