/* ==========================================================================
   AUTO-D CENTRO AUTOMOTIVO — stylesheet
   Tokens: preto/grafite/branco/cinza metálico + vermelho de destaque
   ========================================================================== */

:root {
  /* Color */
  --c-black: #0b0c0d;
  --c-graphite: #1a1c1f;
  --c-steel: #33363b;
  --c-metal: #8b8f94;
  --c-metal-light: #c7c9cc;
  --c-fog: #eeeeee;
  --c-white: #ffffff;
  --c-accent: #e13a2e;
  --c-accent-dark: #b82c22;

  /* Type */
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --gap: 24px;
  --radius: 3px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.18);
  --shadow-2: 0 18px 40px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-graphite);
  background: var(--c-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.2px; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--c-black); color: var(--c-white); }
.section--fog { background: var(--c-fog); }

.eyebrow {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.05;
  color: var(--c-black);
}
.section--dark .section-head h2 { color: var(--c-white); }

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--c-steel);
  max-width: 56ch;
}
.section--dark .section-head p { color: var(--c-metal-light); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-accent-dark); }

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--c-white);
}
.btn--ghost-dark:hover { border-color: var(--c-white); background: rgba(255, 255, 255, 0.08); }

.btn--ghost-light {
  border-color: var(--c-steel);
  color: var(--c-black);
}
.btn--ghost-light:hover { border-color: var(--c-black); background: rgba(0,0,0,0.04); }

.btn--block { width: 100%; justify-content: center; }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(11, 12, 13, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--c-white);
}
.brand strong {
  font-family: var(--f-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand strong span { color: var(--c-accent); }
.brand em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--c-metal);
  margin-top: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-desktop a {
  color: var(--c-metal-light);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--c-white); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--c-accent);
  transition: right 0.25s var(--ease);
}
.nav-desktop a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.header-cta:hover { background: var(--c-accent-dark); }
.header-cta svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle span { top: 50%; transform: translateY(-1px); }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--c-black);
  z-index: 190;
  padding: 30px 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
  display: block;
  padding: 16px 4px;
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile .header-cta { margin-top: 26px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--c-white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: contrast(1.08) saturate(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,10,11,0.55) 0%, rgba(9,10,11,0.35) 32%, rgba(9,10,11,0.78) 78%, rgba(9,10,11,0.95) 100%),
    linear-gradient(90deg, rgba(9,10,11,0.55) 0%, rgba(9,10,11,0.05) 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 190px 0 64px;
  width: 100%;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--c-metal-light);
  margin-bottom: 18px;
}
.hero__kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--c-accent);
}

.hero h1 {
  font-size: clamp(42px, 7.4vw, 84px);
  line-height: 0.98;
  max-width: 15ch;
  color: var(--c-white);
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--c-metal-light);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero__hours {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--c-metal-light);
  border-left: 2px solid var(--c-accent);
  padding-left: 12px;
}

/* Trust strip */
.trust-strip {
  background: var(--c-graphite);
  color: var(--c-white);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: center;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--c-metal-light);
}
.trust-item strong { color: var(--c-white); font-family: var(--f-display); font-weight: 700; }
.trust-stars { color: var(--c-accent); letter-spacing: 1px; font-size: 14px; }
.trust-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.18); }
@media (max-width: 640px) { .trust-divider { display: none; } }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { font-size: 17.5px; color: var(--c-steel); margin-top: 16px; }
.about-copy p:first-of-type { margin-top: 0; }

.about-figures {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.about-figure { min-width: 130px; }
.about-figure strong {
  display: block;
  font-family: var(--f-display);
  font-size: 34px;
  color: var(--c-black);
}
.about-figure span { font-size: 13.5px; color: var(--c-metal); }

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-media__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(11,12,13,0.82);
  color: var(--c-white);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--c-accent);
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--c-metal-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--c-white);
  padding: 34px 28px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--c-fog); }
.service-card__icon {
  width: 46px; height: 46px;
  margin-bottom: 20px;
  color: var(--c-accent);
}
.service-card h3 {
  font-size: 21px;
  color: var(--c-black);
  margin-bottom: 8px;
}
.service-card p { font-size: 15px; color: var(--c-steel); }

/* ==========================================================================
   CONFIANÇA (3 pontos)
   ========================================================================== */
.trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.trust-point {
  padding: 32px 26px;
  border: 1px solid var(--c-steel);
  border-radius: var(--radius);
}
.trust-point__icon {
  width: 38px; height: 38px;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.trust-point h3 {
  font-size: 19px;
  color: var(--c-white);
  margin-bottom: 8px;
  font-family: var(--f-body);
  font-weight: 600;
}
.trust-point p { font-size: 14.5px; color: var(--c-metal-light); }

/* ==========================================================================
   GALERIA
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 190px;
  gap: 10px;
}
.gallery-item {
  position: relative;
  grid-column: span 3;
  grid-row: span 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 0;
  padding: 0;
  background: var(--c-graphite);
}
.gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--c-white);
  font-size: 14px;
  text-align: left;
  font-family: var(--f-display);
  letter-spacing: 0.3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 6, 7, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  padding: 24px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--c-white);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__caption {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  color: var(--c-metal-light);
  font-size: 14px;
}

/* ==========================================================================
   GOOGLE REVIEWS
   ========================================================================== */
.reviews-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--c-black);
  color: var(--c-white);
  padding: 46px 48px;
  border-radius: var(--radius);
}
.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.reviews-score strong {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 1;
}
.reviews-score .stars { color: var(--c-accent); font-size: 20px; letter-spacing: 2px; }
.reviews-score .count { display: block; color: var(--c-metal); font-size: 14px; margin-top: 6px; }

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: stretch;
}
.location-info {
  background: var(--c-fog);
  border-radius: var(--radius);
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.location-row { display: flex; gap: 14px; align-items: flex-start; }
.location-row svg { width: 22px; height: 22px; color: var(--c-accent); flex: none; margin-top: 2px; }
.location-row strong { display: block; font-size: 13px; color: var(--c-metal); font-weight: 600; margin-bottom: 3px; }
.location-row span, .location-row p { font-size: 16px; color: var(--c-graphite); }
.location-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--c-metal-light);
}
.location-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-wrap {
  background: var(--c-graphite);
  color: var(--c-white);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-wrap h2 { font-size: clamp(30px, 4vw, 42px); }
.contact-wrap > .contact-copy p { margin-top: 14px; color: var(--c-metal-light); font-size: 17px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; }
.contact-detail svg { width: 20px; height: 20px; color: var(--c-accent); flex: none; margin-top: 3px; }
.contact-detail strong { display: block; font-size: 12.5px; letter-spacing: 0.3px; color: var(--c-metal); font-weight: 600; margin-bottom: 2px; }
.contact-detail span { font-size: 15.5px; color: var(--c-white); }

.contact-details .btn { margin-top: 8px; }

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.07); }
.float-whatsapp svg { width: 30px; height: 30px; color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-black);
  color: var(--c-metal-light);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand strong {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--c-white);
}
.footer-brand strong span { color: var(--c-accent); }
.footer-brand p { margin-top: 12px; font-size: 14.5px; color: var(--c-metal); max-width: 32ch; }

.footer-col h4 {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--c-metal);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: var(--c-metal-light); }
.footer-col a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--c-metal);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 480px; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; padding: 40px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-actions .header-cta { display: none; }
  .menu-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .trust-points { grid-template-columns: 1fr; }
  .reviews-card { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3) {
    grid-column: span 2; grid-row: span 1;
  }
  .about-figures { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .contact-wrap { padding: 32px 20px; }
  .reviews-card { padding: 34px 24px; }
  .hero__content { padding-top: 150px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
}
