/* =====================================================
   Zé Bob Auto Center — estilo do site
   Paleta: azul escuro, preto, vermelho, branco/prata
   ===================================================== */

:root {
  --navy:        #0b1f3a;   /* azul escuro */
  --navy-deep:   #071528;
  --black:       #0d0d0f;
  --red:         #e11919;   /* vermelho da marca */
  --red-dark:    #b30f0f;
  --white:       #ffffff;
  --silver:      #c9d1dc;
  --gray:        #8a94a6;
  --gray-line:   rgba(255, 255, 255, 0.08);
  --surface:     #10233f;
  --surface-2:   #16294a;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 44px rgba(0, 0, 0, 0.35);
  --shadow-red:  0 10px 30px rgba(225, 25, 25, 0.35);
  --container:   1180px;

  --ff-head: "Barlow Condensed", "Inter", sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--ff-body);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ===== Tipografia utilitária ===== */
.highlight { color: var(--red); }
.section-tag {
  display: inline-block;
  font-family: var(--ff-head);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--red);
  background: rgba(225, 25, 25, 0.12);
  border: 1px solid rgba(225, 25, 25, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-desc { color: var(--silver); margin-top: 12px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--whatsapp { background: #25d366; color: #072d17; }
.btn--whatsapp:hover { background: #1fb457; transform: translateY(-2px); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 16px 0;
}
.header--scrolled {
  background: rgba(7, 21, 40, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-red);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--ff-head); font-size: 1.4rem; letter-spacing: 0.5px; }
.logo-text small { font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--silver); }

.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-link {
  padding: 8px 14px;
  font-weight: 500;
  color: var(--silver);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-cta { background: var(--red); color: #fff !important; box-shadow: var(--shadow-red); }
.nav-cta:hover { background: var(--red-dark); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: 0.3s; }
.menu-toggle--active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle--active span:nth-child(2) { opacity: 0; }
.menu-toggle--active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(225,25,25,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--black) 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gray-line);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.9rem; color: var(--silver);
  margin-bottom: 22px;
}
.badge-star { color: #ffc531; }
.hero-title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title .highlight { display: block; }
.hero-subtitle { color: var(--silver); font-size: 1.12rem; margin: 22px 0 32px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { display: flex; align-items: center; gap: 26px; margin-top: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number, .stat-suffix {
  font-family: var(--ff-head);
  font-weight: 800; font-size: 2.2rem; color: #fff; display: inline;
}
.stat-suffix { color: var(--red); }
.stat-label { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 42px; background: var(--gray-line); }

/* ===== HIGHLIGHTS ===== */
.highlights { background: var(--black); border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); }
.highlights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 34px 20px;
}
.highlight-item { display: flex; align-items: center; gap: 14px; }
.hl-icon { font-size: 1.9rem; }
.highlight-item strong { display: block; font-size: 1.02rem; }
.highlight-item small { color: var(--gray); }

/* ===== SEÇÕES GENÉRICAS ===== */
section { padding: 90px 0; }
.services { background: var(--navy-deep); }

/* ===== SERVIÇOS ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225,25,25,0.5);
  box-shadow: var(--shadow);
}
.service-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; font-size: 1.7rem;
  background: rgba(225,25,25,0.12);
  border: 1px solid rgba(225,25,25,0.3);
  border-radius: 14px; margin-bottom: 16px;
}
.service-card h3 { font-family: var(--ff-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.service-card p { color: var(--silver); font-size: 0.95rem; }
.services-cta { text-align: center; margin-top: 46px; }
.services-cta p { color: var(--silver); margin-bottom: 16px; }

/* ===== SOBRE ===== */
.about { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-desc { color: var(--silver); margin: 16px 0; }
.about-list { list-style: none; margin: 20px 0 28px; display: grid; gap: 10px; }
.about-list li { color: #fff; }
.about-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.about-card {
  display: grid; place-items: center; gap: 4px;
  width: 240px; height: 240px;
  background: radial-gradient(circle at 30% 20%, var(--surface-2), var(--navy-deep));
  border: 1px solid var(--gray-line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.about-card-icon { font-size: 2.6rem; }
.about-card-num { font-family: var(--ff-head); font-weight: 800; font-size: 3rem; color: var(--red); }
.about-card-label { color: var(--silver); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.about-badge {
  position: absolute;
  background: var(--red); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-red);
}
.about-badge--1 { top: 20px; right: 0; }
.about-badge--2 { bottom: 20px; left: 0; background: var(--surface); border: 1px solid var(--gray-line); }

/* ===== AVALIAÇÕES ===== */
.reviews { background: var(--black); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stars { color: #ffc531; font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { color: var(--silver); font-style: italic; }
.review-author { display: block; margin-top: 14px; color: var(--gray); font-weight: 600; }

/* ===== CONTATO ===== */
.contact { background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: stretch; }
.contact-desc { color: var(--silver); margin: 14px 0 24px; }
.contact-list { list-style: none; display: grid; gap: 20px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; }
.contact-ico {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px; font-size: 1.2rem;
  background: rgba(225,25,25,0.12);
  border: 1px solid rgba(225,25,25,0.3);
  border-radius: 12px;
}
.contact-list a:hover { color: var(--red); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-map {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; }

/* ===== FOOTER ===== */
.footer { background: var(--black); border-top: 1px solid var(--gray-line); padding: 54px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 380px; }
.footer-brand strong { font-family: var(--ff-head); font-size: 1.2rem; }
.footer-brand p { color: var(--gray); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: var(--silver); transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--gray-line); padding: 20px; text-align: center; color: var(--gray); font-size: 0.85rem; }

/* ===== WHATSAPP FLUTUANTE ===== */
.fab-whatsapp {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37,211,102,0.5);
  transition: transform 0.2s ease;
  animation: pulse 2.4s infinite;
}
.fab-whatsapp:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== WIDGET DE CHAT (BOB IA) ===== */
.rute-chat { position: fixed; bottom: 24px; right: 24px; z-index: 95; }

.rute-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: #fff; border: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rute-toggle:hover { transform: translateY(-2px); }
.rute-toggle-icon { font-size: 1.3rem; }
.rute-toggle--active { transform: scale(0.92); opacity: 0.85; }

.rute-window {
  position: absolute; bottom: 74px; right: 0;
  width: min(380px, calc(100vw - 40px));
  height: 540px; max-height: calc(100vh - 130px);
  background: var(--navy);
  border: 1px solid var(--gray-line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.rute-window--open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.rute-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}
.rute-avatar-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; font-size: 1.4rem;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
}
.rute-info { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.rute-name { font-weight: 700; font-size: 1rem; }
.rute-status { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.9; }
.status-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
.rute-close { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: 0.85; padding: 4px; }
.rute-close:hover { opacity: 1; }

.rute-messages {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--navy-deep);
}
.rute-msg { max-width: 82%; }
.rute-msg p {
  padding: 11px 15px; border-radius: 14px;
  font-size: 0.94rem; line-height: 1.5;
}
.rute-msg--bot { align-self: flex-start; }
.rute-msg--bot p { background: var(--surface); color: #fff; border-bottom-left-radius: 4px; }
.rute-msg--user { align-self: flex-end; }
.rute-msg--user p { background: var(--red); color: #fff; border-bottom-right-radius: 4px; }

.rute-typing p, .rute-typing { background: transparent !important; }
.rute-typing { display: flex; gap: 5px; padding: 12px 15px; }
.rute-typing span {
  width: 8px; height: 8px; background: var(--gray); border-radius: 50%;
  animation: typing 1.2s infinite ease-in-out;
}
.rute-typing span:nth-child(2) { animation-delay: 0.2s; }
.rute-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.rute-input-area {
  display: flex; gap: 10px; padding: 14px;
  background: var(--navy);
  border-top: 1px solid var(--gray-line);
}
.rute-input {
  flex: 1; background: var(--surface);
  border: 1px solid var(--gray-line);
  border-radius: 999px; padding: 12px 16px;
  color: #fff; font-size: 0.95rem; outline: none;
}
.rute-input:focus { border-color: var(--red); }
.rute-input::placeholder { color: var(--gray); }
.rute-send {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--red); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  transition: background 0.2s ease;
}
.rute-send:hover { background: var(--red-dark); }
.rute-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== ANIMAÇÃO DE REVELAÇÃO ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,21,40,0.98);
    backdrop-filter: blur(10px);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav--open { max-height: 420px; border-top: 1px solid var(--gray-line); }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .nav-link { padding: 12px 14px; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; }
  .rute-toggle-label { display: none; }
  .rute-toggle { padding: 16px; }
}

@media (max-width: 460px) {
  .services-grid, .highlights-grid { grid-template-columns: 1fr; }
}
