/* =========================================================
   Fast Repair — Estilos
   Prioridades: confiança, legibilidade (público 35+),
   performance (sem fontes externas) e responsividade real.
   ========================================================= */

:root {
  --navy-900: #0b3d5c;
  --navy-800: #0f4a6e;
  --navy-700: #14608c;
  --navy-050: #eef5fa;
  --ink: #1c2733;
  --ink-soft: #45505c;
  --paper: #ffffff;
  --paper-alt: #f5f8fb;
  --line: #dde5ec;
  --green: #1fae5c;
  --green-dark: #178a49;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 92, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 61, 92, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  /* Fontes nativas do sistema: carregam instantaneamente em
     Android (Roboto), iPhone/Mac (San Francisco) e Windows. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.25; color: var(--navy-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Foco visível para navegação por teclado — acessibilidade */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-800); }

.btn-outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-050); }

.btn-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  flex-shrink: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.footer-brand .logo-mark { background: #fff; color: var(--navy-900); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-color: var(--navy-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--navy-900);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--navy-050) 0%, var(--paper) 100%);
  padding: 56px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--navy-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.hero-sub { font-size: 1.08rem; max-width: 54ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}
.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--green); flex-shrink: 0; }

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-card-glow {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37,211,102,0.18), transparent 70%);
}
.hero-card-content { position: relative; }
.hero-card-label { font-weight: 700; color: var(--navy-900); margin-top: 14px; margin-bottom: 6px; }
.hero-card-desc { font-size: 0.95rem; margin: 0; }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--navy-900);
  padding: 22px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-item svg { color: #7fd8a0; flex-shrink: 0; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .feature, .testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.card-icon, .feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy-050);
  color: var(--navy-800);
  margin-bottom: 16px;
}
.card p, .feature p { font-size: 0.98rem; }
.card-link {
  font-weight: 700;
  color: var(--navy-800);
  display: inline-block;
  margin-top: 6px;
}
.card-link:hover { color: var(--navy-900); text-decoration: underline; }

/* ===== Como funciona (steps) ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step p { font-size: 0.96rem; }

/* ===== Testimonials ===== */
.testimonial { margin: 0; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; font-size: 1.1rem; }
.testimonial p { font-style: italic; font-size: 0.98rem; }
.testimonial cite { display: block; margin-top: 14px; font-weight: 700; color: var(--navy-900); font-style: normal; }

/* ===== Localização ===== */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.loc-list { margin: 24px 0 28px; }
.loc-list > div { margin-bottom: 18px; }
.loc-list dt { font-weight: 700; color: var(--navy-900); margin-bottom: 4px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
.loc-list dd { margin: 0; color: var(--ink-soft); }
.loc-list a { color: var(--navy-800); font-weight: 600; text-decoration: underline; }

.loc-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.loc-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== CTA final ===== */
.cta-final {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 72px 0;
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #d7e6f0; font-size: 1.1rem; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-final-inner .hero-actions { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: #0a2c42;
  color: #cfe0ec;
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 28px;
  margin-bottom: 20px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-name { color: #fff; font-weight: 800; margin: 0; }
.footer-tag { margin: 4px 0 0; font-size: 0.9rem; color: #a9c2d3; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.95rem; color: #cfe0ec; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { font-size: 0.88rem; color: #a9c2d3; }
.footer-legal p { margin: 0 0 6px; color: inherit; }

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* Evita sobrepor o botão flutuante ao rodapé em telas pequenas */
@supports (padding: max(0px)) {
  .whatsapp-float { bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; margin: 0 auto; }
  .cards-grid, .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .main-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .header-phone span { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 12px; min-width: 48px; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .section { padding: 52px 0; }
  .cards-grid, .cards-grid-3, .steps { grid-template-columns: 1fr; }
  .trust-strip-grid { grid-template-columns: 1fr; text-align: left; }
  .hero { padding: 40px 0 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-final-inner .hero-actions { align-items: stretch; }
  .header-actions .btn-whatsapp span { display: none; }
}
