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

:root {
  --brand-red: #e52421;
  --brand-dark: #1a0f0e;
  --text-muted: rgba(255, 255, 255, 0.65);
  --font: "Outfit", system-ui, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--brand-dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Hero layout ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
}

/* ── Background image with subtle Ken Burns ── */
.hero__bg {
  position: absolute;
  inset: -4%;
  background: url("IMG/mechanic-hand-checking-fixing-broken-car-car-service-garage.jpg")
    center / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

/* ── Layered overlay for depth & readability ── */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(26, 15, 14, 0.55) 100%),
    linear-gradient(
      180deg,
      rgba(26, 15, 14, 0.72) 0%,
      rgba(26, 15, 14, 0.45) 45%,
      rgba(26, 15, 14, 0.82) 100%
    );
  backdrop-filter: blur(1px);
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-wrap {
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.45));
}

.logo {
  width: min(72vw, 420px);
  height: auto;
  display: block;
}

.tagline {
  margin-top: 2.25rem;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp 1.2s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accent-line {
  width: 48px;
  height: 2px;
  margin-top: 1.5rem;
  background: var(--brand-red);
  border-radius: 2px;
  animation: fadeUp 1.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Footer ── */
.hero__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  animation: fadeUp 1.2s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
    inset: 0;
  }

  .hero__content,
  .tagline,
  .accent-line,
  .hero__footer {
    animation: none;
  }
}
