/* =========================================================
   ALLE AUTO SOCORRO — CSS puro (sem frameworks)
   ========================================================= */

:root {
  --brand-yellow: #fbbf24;
  --brand-yellow-dark: #f59e0b;
  --brand-dark: #111827;
  --brand-dark-2: #1f2937;
  --brand-light: #f3f4f6;
  --brand-green: #22c55e;
  --brand-green-dark: #16a34a;
  --text-body: #374151;
  --text-muted: #6b7280;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 20px 45px rgba(17, 24, 39, 0.18);

  --container-width: 1180px;
  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 17.5px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background: var(--brand-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--brand-dark); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 10px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-yellow-dark);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-yellow-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-dark { background: var(--brand-dark); color: #d1d5db; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-white { background: var(--white); }
.section-light { background: var(--brand-light); }
.section-border-top { border-top: 1px solid #e5e7eb; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.18rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.15rem; padding: 17px 34px; }
.btn-call {
  background: var(--brand-yellow);
  color: var(--brand-dark);
  box-shadow: 0 0 0 0 rgba(251,191,36,0.4), var(--shadow-sm);
}
.btn-call:hover { background: var(--brand-yellow-dark); box-shadow: var(--shadow-md); }
.btn-whatsapp {
  background: var(--brand-green);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--brand-green-dark); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }
.btn-dark {
  background: var(--brand-dark);
  color: var(--white);
}
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-dark);
  color: #d1d5db;
  font-size: 0.85rem;
  border-bottom: 1px solid #374151;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info svg { width: 14px; height: 14px; color: var(--brand-yellow); flex-shrink: 0; }
.topbar-phone { font-weight: 700; color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.topbar-phone svg { width: 14px; height: 14px; color: var(--brand-green); }
@media (max-width: 720px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px;
  background: var(--brand-yellow);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--brand-dark); }
.logo-text span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; color: var(--text-muted); margin-top: 2px; }

.main-nav { display: none; align-items: center; gap: 32px; }
.main-nav a {
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand-yellow-dark); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 3px;
  background: var(--brand-yellow);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-call { display: none; }
.header-call-mobile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--brand-yellow);
  border-radius: var(--radius-full);
  color: var(--brand-dark);
}
.header-call-mobile svg { width: 18px; height: 18px; }

.menu-toggle {
  background: none; border: none;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-call-mobile, .menu-toggle { display: none; }
  .header-actions .btn-call { display: inline-flex; }
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid #f0f0f0;
  box-shadow: var(--shadow-md);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; padding: 8px 20px 24px; }
.mobile-menu a {
  padding: 14px 4px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
}
.mobile-menu a[aria-current="page"] { color: var(--brand-yellow-dark); }
.mobile-menu .btn { margin-top: 16px; }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-block: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-yellow-dark); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #d1d5db; }
.breadcrumb li[aria-current] { color: var(--brand-dark); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: 72px 0 110px;
  background:
    radial-gradient(circle at 15% 20%, rgba(251,191,36,0.12), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #0b0f1a 0%, var(--brand-dark) 55%, #1a2233 100%);
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(251,191,36,0.14);
  border: 1px solid rgba(251,191,36,0.35);
  color: var(--brand-yellow);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-yellow);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  max-width: 800px;
  margin-bottom: 24px;
}
.hero h1 mark {
  background: none;
  color: var(--brand-yellow);
}
.hero-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 34px;
  font-weight: 300;
}
.hero-lead strong { color: var(--white); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #9ca3af;
}
.hero-meta svg { width: 18px; height: 18px; color: var(--brand-yellow); }
.stars-row { display: inline-flex; align-items: center; gap: 2px; }
.stars-row svg { width: 16px; height: 16px; color: var(--brand-yellow); }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 70px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid #eef0f3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--brand-dark);
  transition: background-color 0.18s ease;
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--brand-yellow); }
.card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 20px; }
.card-link { font-weight: 700; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 8px; }
.card-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.card-link:hover svg { transform: translateX(3px); }
.card-tag {
  position: absolute; top: 0; right: 24px;
  background: var(--brand-yellow); color: var(--brand-dark);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 0 0 8px 8px;
}

.dark-card {
  background: var(--brand-dark-2);
  border: 1px solid #2c3444;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.dark-card h4 { font-size: 1.3rem; margin-bottom: 12px; color: var(--white); }
.dark-card p { color: #b6bcc7; font-size: 1rem; }
.dark-card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #2c3444;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-yellow);
}
.dark-card-icon svg { width: 24px; height: 24px; }

/* ---------- Feature rows (áreas de atendimento) ---------- */
.feature-row { display: flex; gap: 18px; align-items: flex-start; }
.feature-row + .feature-row { margin-top: 26px; }
.feature-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-row h4 { font-size: 1.18rem; margin-bottom: 6px; }
.feature-row p { color: var(--text-muted); font-size: 1.02rem; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media { position: relative; }
.split-media-frame {
  position: absolute; inset: -14px;
  background: rgba(251,191,36,0.18);
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
  z-index: 0;
}
.split-media img, .split-media .media-fallback {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.media-fallback {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: linear-gradient(150deg, var(--brand-dark) 0%, #2b3243 100%);
  color: var(--brand-yellow);
  text-align: center;
  padding: 24px;
}
.media-fallback svg { width: 64px; height: 64px; }
.media-fallback span { color: #cbd5e1; font-size: 0.9rem; max-width: 260px; }
.floating-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 2;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.floating-badge-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #dcfce7; color: var(--brand-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.floating-badge-icon svg { width: 22px; height: 22px; }
.floating-badge p:first-child { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.floating-badge p:last-child { font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-yellow); }
.cta-band .container {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  padding-block: 44px;
}
.cta-band h3 { font-size: 1.75rem; margin-bottom: 8px; }
.cta-band p { font-weight: 600; font-size: 1.15rem; color: var(--brand-dark); }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid #eef0f3;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: none; border: none;
  text-align: left;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1.1rem;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--brand-yellow-dark); }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.is-open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { color: var(--text-muted); }

/* ---------- Related services ---------- */
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a {
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-dark);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.related-links a:hover { border-color: var(--brand-yellow); background: #fffbeb; color: var(--brand-yellow-dark); }
.related-links svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b0f19;
  color: #9ca3af;
  padding: 64px 0 32px;
  border-top: 4px solid var(--brand-yellow);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h4 {
  color: var(--white); font-size: 1rem; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid #262e3d;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand-yellow); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-brand .logo-mark { width: 34px; height: 34px; }
.footer-brand .logo-mark svg { width: 18px; height: 18px; }
.footer-logo-img { height: 74px; width: auto; }
.footer-brand strong { color: var(--white); font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; }
.footer-desc { font-size: 0.9rem; margin-bottom: 22px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1a2130;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--brand-yellow); color: var(--brand-dark); }
.social-row svg { width: 16px; height: 16px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brand-yellow); flex-shrink: 0; }
.footer-contact strong { display: block; color: var(--white); font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid #1e2531;
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34,197,94,0.45);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); background: var(--brand-green-dark); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 48px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag-pill {
  background: var(--brand-light);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}
mark.hl { background: #fef3c7; color: var(--brand-dark); padding: 0 4px; border-radius: 4px; }
