/* ===================================================
   William Auto Mecânica — Oficina Premium
   Font: Montserrat
   Paleta: asfalto #18181B · surface #27272A · laranja #F97316
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --wm-bg:        #18181B;
  --wm-surface:   #27272A;
  --wm-text:      #FAFAFA;
  --wm-text-soft: #A1A1AA;
  --wm-accent:    #F97316;
  --wm-accent-dim:rgba(249, 115, 22, 0.10);
  --wm-border:    #3F3F46;
  --wm-radius:    12px;
  --wm-font:      'Montserrat', sans-serif;
}

body {
  font-family: var(--wm-font);
  background: var(--wm-bg);
  color: var(--wm-text);
}

/* ─── Header ─── */
.wm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(24, 24, 27, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wm-border);
}

.wm-logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.wm-logo span { color: var(--wm-accent); }
.wm-nav { display: flex; gap: 32px; }

.wm-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wm-text-soft);
  position: relative;
  transition: color 0.25s;
}

.wm-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--wm-accent);
  border-radius: 1px;
  transition: width 0.3s;
}

.wm-nav a:hover { color: var(--wm-text); }
.wm-nav a:hover::after { width: 100%; }

.wm-menu-toggle { display: none; flex-direction: column; gap: 5px; }
.wm-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--wm-text); border-radius: 2px; }

/* ─── Hero ─── */
.wm-hero {
  position: relative;
  height: clamp(380px, 30vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wm-hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1600&q=80')
    center / cover no-repeat;
}

.wm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(24, 24, 27, 0.95) 0%,
    rgba(24, 24, 27, 0.82) 50%,
    rgba(249, 115, 22, 0.12) 100%
  );
  backdrop-filter: blur(3px);
}

.wm-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 660px;
}

.wm-hero-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wm-accent);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 5px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
}

.wm-hero-content h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.wm-hero-content h1 em { font-style: normal; color: var(--wm-accent); }

.wm-hero-content p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--wm-text-soft);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-transform: none;
}

.wm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--wm-font);
  color: #fff;
  background: var(--wm-accent);
  border-radius: 52px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.25);
  transition: all 0.3s;
}

.wm-btn:hover {
  background: #e06610;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.wm-btn svg { transition: transform 0.25s; }
.wm-btn:hover svg { transform: translateX(3px); }

/* ─── Sections ─── */
.wm-section {
  padding: 36px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.wm-section-header {
  text-align: center;
  margin-bottom: 24px;
}

.wm-section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.wm-section-header p {
  font-size: 0.9375rem;
  color: var(--wm-text-soft);
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto;
}

/* ─── Carousel ─── */
.wm-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 40px;
  padding: 4px 40px 12px;
  margin: 0 -40px;
  scrollbar-width: none;
}

.wm-carousel::-webkit-scrollbar { display: none; }

.wm-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--wm-surface);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.35s, transform 0.3s, border-color 0.3s;
}

.wm-card:hover {
  box-shadow: 0 10px 36px rgba(249, 115, 22, 0.12);
  transform: translateY(-4px);
  border-color: var(--wm-accent);
}

.wm-card:last-child { margin-right: 40px; }

.wm-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #27272A 0%, #3F3F46 100%);
  background-size: cover;
  background-position: center;
}

.wm-card:nth-child(1) .wm-card-img {
  background-image: url('https://images.unsplash.com/photo-1625047509248-ec889cbff17f?w=600&q=80');
}

.wm-card:nth-child(2) .wm-card-img {
  background-image: url('https://images.unsplash.com/photo-1613214150384-14921ff659b2?w=600&q=80');
}

.wm-card:nth-child(3) .wm-card-img {
  background-image: url('https://images.unsplash.com/photo-1640021042525-5610f9f75444?w=600&q=80');
}

.wm-card:nth-child(4) .wm-card-img {
  background-image: url('https://images.unsplash.com/photo-1625047509168-a7026f36de04?w=600&q=80');
}

.wm-card-body { padding: 20px; }

.wm-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }

.wm-card-body p {
  font-size: 0.8125rem;
  color: var(--wm-text-soft);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 14px;
}

.wm-card-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wm-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s;
}

.wm-card-cta:hover { gap: 12px; }

.wm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

.wm-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wm-border);
}

.wm-carousel-dots span:first-child {
  background: var(--wm-accent);
  width: 18px;
  border-radius: 3px;
}

/* ─── Diferenciais Row ─── */
.wm-diff-row {
  display: flex;
  gap: 20px;
}

.wm-diff-item {
  flex: 1;
  min-width: 0;
  background: var(--wm-surface);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wm-diff-item:hover {
  border-color: var(--wm-accent);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.10);
}

.wm-diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--wm-accent-dim);
  margin-bottom: 16px;
}

.wm-diff-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--wm-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-diff-item h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }

.wm-diff-item p {
  font-size: 0.8125rem;
  color: var(--wm-text-soft);
  font-weight: 300;
  line-height: 1.6;
}

/* ─── Footer ─── */
.wm-footer {
  padding: 32px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--wm-border);
}

.wm-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wm-border);
  text-align: center;
}

.wm-footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.wm-footer-col p {
  font-size: 0.8125rem;
  color: var(--wm-text-soft);
  font-weight: 300;
  line-height: 1.7;
}

.wm-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wm-accent);
  margin-top: 8px;
  transition: gap 0.2s;
}

.wm-footer-link:hover { gap: 10px; }

.wm-footer-col .wm-footer-link + .wm-footer-link { margin-top: 6px; display: flex; justify-content: center; }

.wm-footer-bottom {
  text-align: center;
  padding: 16px 0;
  font-size: 0.75rem;
  color: var(--wm-text-soft);
  font-weight: 300;
}

@media (min-width: 901px) {
  .wm-carousel-dots { display: none; }
}

/* ─── Responsivo ─── */
@media (max-width: 900px) {
  .wm-header { padding: 0 20px; }
  .wm-diff-row { flex-direction: column; }
  .wm-section { padding: 32px 20px; }
  .wm-carousel { scroll-padding-left: 20px; padding-left: 20px; padding-right: 20px; margin: 0 -20px; }
  .wm-card:last-child { margin-right: 20px; }
}

@media (max-width: 768px) {
  .wm-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(24, 24, 27, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--wm-border);
    padding: 16px 24px;
    gap: 16px;
  }
  .wm-nav.open { display: flex; }
  .wm-menu-toggle { display: flex; }
  .wm-hero { height: auto; padding: 100px 20px 48px; }
  .wm-hero-content h1 { font-size: 1.5rem; }
  .wm-hero-content p { font-size: 0.875rem; margin-bottom: 20px; }
  .wm-btn { padding: 12px 26px; font-size: 0.8125rem; }
  .wm-section { padding: 28px 16px; }
  .wm-section-header { margin-bottom: 20px; }
  .wm-section-header h2 { font-size: 1.4rem; }
  .wm-card { flex: 0 0 calc(100vw - 48px); }
  .wm-card-img { height: 150px; }
  .wm-carousel { scroll-padding-left: 16px; padding-left: 16px; padding-right: 16px; margin: 0 -16px; gap: 14px; }
  .wm-card:last-child { margin-right: 16px; }
  .wm-footer { padding: 24px 16px 0; }
  .wm-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  .wm-header { padding: 0 16px; height: 56px; }
  .wm-hero { padding: 88px 16px 40px; }
  .wm-hero-content h1 { font-size: 1.3rem; }
  .wm-hero-content p { font-size: 0.8125rem; }
  .wm-hero-tag { font-size: 0.6rem; padding: 4px 12px; }
  .wm-btn { padding: 11px 22px; font-size: 0.75rem; }
  .wm-section { padding: 24px 14px; }
  .wm-card { flex: 0 0 calc(100vw - 40px); }
  .wm-card-img { height: 130px; }
  .wm-card-body { padding: 16px; }
}
