/* ============================================================
   Mecânica Dois Irmãos — Oficina mecânica em Ribeirão Preto
   Paleta: azul-aço #1f3a5f · grafite #1a1f24 · cinza #eceff3 · âmbar #f0a500
   Display: Archivo (600/800/900) · Corpo: fonte de sistema
   ============================================================ */

:root {
  --steel: #1f3a5f;
  --steel-deep: #16293f;
  --graphite: #1a1f24;
  --graphite-2: #22282e;
  --light: #eceff3;
  --white: #ffffff;
  --amber: #f0a500;
  --amber-soft: rgba(240, 165, 0, 0.14);
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb457;
  --ink: #232a31;
  --ink-soft: #4c5660;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(31, 58, 95, 0.14);

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(26, 31, 36, 0.12);
  --shadow-lift: 0 22px 44px rgba(26, 31, 36, 0.22);
  --nav-h: 4.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--light);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 1rem;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

ul, ol, dl, figure, blockquote { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--graphite);
  font-family: var(--font-display);
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus-visible { left: 0.75rem; top: 0.75rem; }

/* ---------- Layout base ---------- */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(4rem, 9vw, 6.75rem); }

.section-light { background: var(--light); color: var(--ink); }
.section-dark { background: var(--graphite); color: var(--light); }
.section-steel {
  background:
    radial-gradient(90rem 40rem at 80% -20%, rgba(240, 165, 0, 0.08), transparent 60%),
    linear-gradient(160deg, var(--steel) 0%, var(--steel-deep) 100%);
  color: var(--light);
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--steel);
  max-width: 34ch;
}
h2.on-dark { color: var(--white); }
h2 .accent { color: var(--amber); }

.section-sub {
  max-width: 56ch;
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}
.section-sub.on-dark { color: rgba(236, 239, 243, 0.75); }

/* Eyebrow: etiqueta técnica de oficina */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  background: var(--amber);
  flex: none;
}
.eyebrow-light { color: rgba(236, 239, 243, 0.85); }
.eyebrow-amber { color: var(--amber); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn .ico { flex: none; }

.btn-wa {
  background: var(--whatsapp);
  color: #0b3320;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: 1.75rem; }
.btn-nav { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(26, 31, 36, 0.58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.25s ease;
}
.nav.scrolled { background: rgba(26, 31, 36, 0.88); }

.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand strong { font-weight: 900; }
.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--amber);
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-link {
  position: relative;
  color: rgba(236, 239, 243, 0.82);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  transition: color 0.18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 3px;
  background: var(--amber);
  transition: right 0.22s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--amber); }
.nav-link.active::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s 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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--graphite);
  padding-top: var(--nav-h);
}

.hero-media,
.hero-overlay { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.5%, 1%); }
}

.hero-overlay {
  background:
    linear-gradient(to right, rgba(26, 31, 36, 0.92) 0%, rgba(26, 31, 36, 0.72) 45%, rgba(31, 58, 95, 0.45) 100%),
    linear-gradient(to top, rgba(26, 31, 36, 0.85) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  max-width: 1120px;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: var(--light);
  text-decoration: none;
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.google-badge strong { font-family: var(--font-display); font-weight: 900; }
.google-badge .stars { color: var(--amber); letter-spacing: 0.1em; }

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(236, 239, 243, 0.85);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Faixa de compromissos — assinatura: fita de segurança de oficina */
.promise-bar {
  background: var(--amber);
  color: var(--graphite);
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    var(--graphite) 0 12px,
    var(--amber) 12px 24px
  ) 10;
}
.promise-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 3rem;
  padding-block: 1.05rem;
}
.promise-list li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.promise-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--graphite);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Prova social ---------- */
.quotes {
  display: grid;
  gap: 1.25rem;
  margin-block: 2.5rem 3.25rem;
}

.quote {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.55;
  pointer-events: none;
}
.quote-stars {
  color: var(--amber);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--steel);
  margin-bottom: 0.85rem;
}
.quote figcaption {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--steel);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1;
  color: var(--amber);
}
.stat dd.stat-text { font-size: clamp(1.25rem, 3vw, 1.6rem); text-transform: uppercase; letter-spacing: 0.05em; }
.stat dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(236, 239, 243, 0.75);
}

/* ---------- Serviços ---------- */
.cards {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(240, 165, 0, 0.45);
}

.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 1.5rem 1.5rem 1.75rem; }
.card-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.card-body h3::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  background: var(--amber);
  margin-top: 0.6rem;
}
.card-body p {
  color: rgba(236, 239, 243, 0.75);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Como funciona ---------- */
.steps {
  list-style: none;
  counter-reset: passo;
  display: grid;
  gap: 2.25rem;
  margin-top: 2.75rem;
}

.step { position: relative; padding-left: 4.6rem; }

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  background: var(--amber);
  color: var(--graphite);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -4px 0 rgba(26, 31, 36, 0.25);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.step p {
  color: rgba(236, 239, 243, 0.75);
  font-size: 0.98rem;
  margin: 0;
  max-width: 38ch;
}

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--amber);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { max-width: 56ch; color: var(--ink-soft); }
.about-text strong { color: var(--steel); }

.seals {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.seal {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  background: var(--amber-soft);
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
}

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin: 1.5rem 0 0.4rem;
}
.contact-label:first-child { margin-top: 0; }

.contact-value {
  color: var(--light);
  font-size: 1.05rem;
  margin: 0;
}
.contact-link {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  transition: color 0.18s ease;
}
.contact-link:hover { color: var(--amber); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  color: var(--light);
}
.hours th, .hours td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.hours th { font-weight: 600; color: rgba(236, 239, 243, 0.7); }
.hours td { text-align: right; font-family: var(--font-display); font-weight: 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  min-height: 320px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--steel-deep);
  color: rgba(236, 239, 243, 0.75);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-block: 3rem 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.footer-brand strong { font-weight: 900; }
.footer-tag { color: var(--amber); font-size: 0.9rem; }
.footer-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(236, 239, 243, 0.5);
  margin-bottom: 0.4rem;
}
.footer p { margin: 0 0 0.25rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: rgba(236, 239, 243, 0.5);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 110;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); margin-top: 3.25rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
  .contact-grid { grid-template-columns: 1fr 1.25fr; }
}

@media (max-width: 859.98px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(26, 31, 36, 0.97);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.85rem 0.25rem; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav-link::after { display: none; }
  .btn-nav { margin-top: 1rem; justify-content: center; }
  .promise-list { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .promise-list li { white-space: normal; }
}

@media (max-width: 400px) {
  body { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .wa-float { right: 1rem; bottom: 1rem; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .wa-float::after { animation: none; opacity: 0; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card-media img, .nav-link, .wa-float { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}
