/* ============================================================
   Auto Mecânica Borges — landing page
   Paleta: fundo escuro (garage) + acento azul (tom da logo)
   Mobile-first: estilos base = mobile, media queries sobem pra desktop
   ============================================================ */

:root {
  --bg: #0d0d0f;
  --bg-alt: #17171a;
  --card: #1c1c20;
  --border: #2a2a30;
  --text: #f2f2f0;
  --text-muted: #a8a8b0;
  --accent: #2c56d6;
  --accent-hover: #4b74ff;
  --accent-dark: #1b3690;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb958;

  --font-display: 'Rajdhani', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 10px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

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

.icon-wa { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--whatsapp); color: #06210f; }
.btn--primary:hover { background: var(--whatsapp-hover); }

.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

.btn--urgent { background: var(--whatsapp); color: #06210f; }
.btn--urgent:hover { background: var(--whatsapp-hover); }

.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.header__logo {
  display: flex;
  align-items: center;
  height: 68px;
}
.header__logo img {
  height: 100%;
  width: auto;
  /* logo original é azul-marinho, pouco legível no header escuro: filtro recolore o desenho pra branco mantendo a transparência */
  filter: brightness(0) invert(1);
}
.header__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.header__logo-fallback strong { color: var(--accent); }

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); }
.nav__link--cta {
  background: var(--whatsapp);
  color: #06210f;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__link--cta:hover { background: var(--whatsapp-hover); color: #06210f; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
}
.nav.is-open .nav__link { width: 100%; padding: 10px 0; }
.nav.is-open .nav__link--cta { width: 100%; text-align: center; margin-top: 8px; padding: 12px 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(13,13,15,0.55) 0%, rgba(13,13,15,0.92) 100%),
    radial-gradient(circle at 75% 30%, rgba(44,86,214,0.18), transparent 55%),
    url('../assets/hero-mecanico.png') center center / cover no-repeat,
    var(--bg);
  background-size: cover;
  background-position: center;
  padding: 100px 0 60px;
}

.hero__content { position: relative; z-index: 2; max-width: 640px; }

.hero__eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 18px;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Section shared ---------- */
.section { padding: 72px 0; }
.section__eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 36px; }

/* ---------- Serviços ---------- */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(44,86,214,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; fill: var(--accent); }

.card__title { font-size: 1.15rem; margin-bottom: 8px; }
.card__text { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.card__link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.card__link:hover { color: var(--accent-hover); }

/* ---------- Urgência ---------- */
.urgency {
  background: var(--accent);
  padding: 26px 0;
}
.urgency__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.urgency__text { font-size: 1.05rem; font-weight: 600; }
.urgency .btn--urgent { align-self: flex-start; }

/* ---------- Diferenciais ---------- */
.diffs { background: var(--bg-alt); }
.diffs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.diff__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(44,86,214,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.diff__icon svg { width: 22px; height: 22px; fill: var(--accent); }
.diff h3 { font-size: 1.05rem; margin-bottom: 6px; }
.diff p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Sobre ---------- */
.about { background: var(--bg); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.about__img-placeholder {
  aspect-ratio: 4/3;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__img-placeholder svg { width: 64px; height: 64px; fill: var(--border); }

.about__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about__text p { color: var(--text-muted); margin-bottom: 22px; }

/* ---------- Credenciais ---------- */
.credentials { background: var(--bg-alt); }
.credentials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Localização ---------- */
.location { background: var(--bg); }
.location__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
.location__list { list-style: none; margin: 18px 0 26px; }
.location__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
}
.location__list strong { color: var(--text); }
.location__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  padding: 64px 0;
  text-align: center;
}
.final-cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 12px; }
.final-cta p { margin-bottom: 26px; color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); padding: 44px 0 20px; border-top: 1px solid var(--border); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer__logo strong { color: var(--accent); }
.footer__brand p { color: var(--text-muted); margin-top: 6px; font-size: 0.9rem; }
.footer__contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
.footer__copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #06210f; }

/* ============================================================
   Breakpoints — mobile-first, sobe a partir daqui
   ============================================================ */

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .diffs__grid { grid-template-columns: repeat(2, 1fr); }
  .credentials__grid { grid-template-columns: repeat(3, 1fr); }
  .urgency__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .urgency .btn--urgent { align-self: center; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .diffs__grid { grid-template-columns: repeat(4, 1fr); }

  .about__inner { grid-template-columns: 1fr 1.1fr; }
  .location__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
