/* ═══════════════════════════════════════════════════════════════════════
   Pro Mobile Detail — style.css
   ═══════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────── CUSTOM PROPERTIES ──── */
:root {
  --bg:           #0a0a0a;
  --surface:      #111111;
  --gold:         #c9a84c;
  --gold-hover:   #d9b85c;
  --gold-10:      rgba(201, 168, 76, 0.10);
  --gold-30:      rgba(201, 168, 76, 0.30);
  --text:         #f0f0f0;
  --text-muted:   #888888;
  --border:       #222222;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w:        1200px;
  --pad-x:        clamp(1.25rem, 4vw, 2.5rem);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.45, 0, 0.55, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--gold);
  color: #000;
}

/* ─────────────────────────────────────────────── LAYOUT UTILS ──── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ───────────────────────────────────────────── SECTION LABEL ──── */
.section-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.75rem;
  display: block;
}

/* ──────────────────────────────────────────────────── BUTTONS ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  white-space: nowrap;
  position: relative;
}

.btn--gold {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
  font-weight: 600;
}
.btn--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.32);
}
.btn--gold:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(240, 240, 240, 0.35);
}
.btn--outline:hover {
  border-color: rgba(240, 240, 240, 0.75);
}

.btn--lg {
  padding: 1.125rem 3.25rem;
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════ HERO ══ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1567808291548-fc3ee04dbcf0?w=1920&q=85');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  padding: 0 var(--pad-x);
}

/* Initial opacity 0 — Anime.js animates in */
.hero__headline,
.hero__sub,
.hero__actions {
  opacity: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  line-height: 0.93;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(240, 240, 240, 0.7);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll arrow */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid rgba(240, 240, 240, 0.45);
  border-bottom: 1.5px solid rgba(240, 240, 240, 0.45);
  transform: rotate(45deg);
  opacity: 0;
}

/* ══════════════════════════════════════════════════ SERVICES ══ */
.services {
  background: var(--surface);
  padding: 7rem 0 6rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.35s ease,
              transform 0.35s var(--ease-out),
              box-shadow 0.35s ease;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

.card__img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.card:hover .card__img-wrap img {
  transform: scale(1.03);
}

.card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.card__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.card__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.22s ease;
  position: relative;
  padding-bottom: 2px;
}

.card__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.28s ease;
}

.card:hover .card__link {
  color: var(--gold);
}

.card:hover .card__link::after {
  width: 100%;
}

/* ══════════════════════════════════════════ HOW IT WORKS ══ */
.how {
  background: var(--bg);
  padding: 7rem 0;
}

.how__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Connecting line spans from center of col-1 to center of col-3 */
.how__line {
  position: absolute;
  top: 2.15rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
  overflow: hidden;
}

.how__line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--gold), rgba(201, 168, 76, 0.4));
  transform-origin: left center;
  transform: scaleX(0);
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem 0;
}

.step__num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  isolation: isolate;
}

/* Small circle behind number for line break */
.step__num::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 50%;
  z-index: -1;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════ GALLERY ══ */
.gallery {
  background: var(--surface);
  padding: 7rem 0 6rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__hover {
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.gallery__item:hover .gallery__hover {
  opacity: 0.30;
}

/* ══════════════════════════════════════════════════════ CTA ══ */
.cta {
  background: var(--bg);
  padding: 8.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 50% 50%,
    rgba(201, 168, 76, 0.055) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cta__sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ═════════════════════════════════════════════════ FOOTER ══ */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__credit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__credit a {
  color: var(--gold);
  transition: opacity 0.2s ease;
}

.footer__credit a:hover {
  opacity: 0.7;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════ RESPONSIVE ══ */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .how__line {
    display: none;
  }

  .step {
    text-align: center;
    padding: 0;
  }

  .step__desc {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ═════════════════════════ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero__headline,
  .hero__sub,
  .hero__actions,
  .hero__scroll-arrow {
    opacity: 1 !important;
    transform: none !important;
  }
}
