/* =========================================================
   Nomad'Z Mobile Auto Detailing — Stylesheet
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #171717;
  --bg-card-hover: #1f1f1f;
  --border: #262626;
  --border-strong: #333;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --red: #dc2626;
  --red-hover: #ef4444;
  --red-dark: #991b1b;
  --gradient: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
  --shadow-red: 0 10px 30px rgba(220, 38, 38, 0.25);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

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

/* =====================  Typography  ===================== */

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.eyebrow {
  display: inline-block;
  color: var(--red-hover);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* =====================  Buttons  ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
}

.btn--secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--red);
  color: var(--red-hover);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* =====================  Navigation  ===================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { height: 38px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--red-hover); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* =====================  Hero  ===================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45) saturate(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.5) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 0.9s ease;
}

.hero__logo {
  width: min(620px, 90vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

.hero__tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

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

/* =====================  Services  ===================== */

.services {
  padding: 100px 0 80px;
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.service-card--premium {
  background: linear-gradient(180deg, var(--bg-card) 0%, #1a0d0d 100%);
  border-color: rgba(220, 38, 38, 0.3);
}
.service-card--premium:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.service-card__badge {
  position: absolute;
  top: -12px; left: 1.75rem;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.service-card__badge--premium { background: var(--gradient); }

.service-card h3 {
  margin-bottom: 0.25rem;
}
.service-card__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-card__price {
  font-family: 'Oswald', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.service-card__price span { color: var(--red-hover); }

.service-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
}
.service-card li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  padding-left: 24px;
  position: relative;
}
.service-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red-hover);
  font-weight: 700;
}
.service-card li:last-child { border-bottom: none; }

.service-card__cta {
  display: inline-block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.service-card__cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.services__note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  font-style: italic;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================  Gallery  ===================== */

.gallery {
  padding: 80px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: transform var(--transition);
}
.gallery__item:hover { transform: translateY(-4px); }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

.gallery__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 2rem;
  opacity: 1;
  transition: all var(--transition);
}
.gallery__play::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--red);
  z-index: 0;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
  transition: transform var(--transition);
}
.gallery__item:hover .gallery__play::after { transform: scale(1.15); }
.gallery__play { position: absolute; }
.gallery__play > * { z-index: 1; }
.gallery__play {
  /* emoji/arrow content stacking */
}

/* Re-specify to ensure the arrow stays above the red circle */
.gallery__item .gallery__play {
  font-size: 0;
}
.gallery__item .gallery__play::before {
  content: "▶";
  font-size: 1.5rem;
  color: #fff;
  margin-left: 4px;
  z-index: 2;
  position: relative;
}

/* =====================  Testimonials  ===================== */

.testimonials {
  padding: 100px 0 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -22px;
  left: 14px;
  font-family: 'Oswald', Georgia, serif;
  font-size: 7rem;
  color: var(--red);
  opacity: 0.18;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 1.05rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  position: relative;
}

.testimonial-card__text {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
  position: relative;
  font-style: italic;
}

.testimonial-card__author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  position: relative;
}
.testimonial-card__author strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.testimonial-card__author span {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.testimonials__cta {
  text-align: center;
  margin-top: 3rem;
}

/* =====================  About  ===================== */

.about {
  padding: 100px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text h2 { margin-bottom: 1.5rem; }
.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about__stats > div { text-align: center; }
.about__stats strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-hover);
}
.about__stats span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.about__area h4 {
  margin-bottom: 0.5rem;
  color: var(--text);
}
.about__area p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.about__card-header {
  background: var(--gradient);
  color: #fff;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.about__contact { padding: 8px 24px 24px; }
.about__contact li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.about__contact li:last-child { border-bottom: none; }
.about__contact span:first-child {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.about__contact a {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.about__contact a:hover { color: var(--red-hover); }

/* =====================  Contact  ===================== */

.contact {
  padding: 80px 0 100px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact__form label {
  display: block;
  margin-bottom: 1rem;
}
.contact__form label span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact__form textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__small {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.contact__aside {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact__aside h3 { margin-bottom: 0.75rem; }
.contact__aside p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.contact__aside .btn { margin-bottom: 0.75rem; }

.contact__social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact__social a {
  color: var(--red-hover);
  font-weight: 600;
}

/* =====================  Footer  ===================== */

.footer {
  background: #050505;
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__brand img { width: 220px; height: auto; margin-bottom: 1rem; }
.footer__brand p {
  color: var(--text-muted);
  font-style: italic;
  max-width: 300px;
  display: none; /* tagline already part of logo */
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__cols h5 {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__cols li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0;
}
.footer__cols a:hover { color: var(--red-hover); }

.footer__bottom {
  padding: 20px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--red-hover); }

/* =====================  Lightbox  ===================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__close:hover { background: var(--red); }

/* =====================  Responsive  ===================== */

@media (max-width: 900px) {
  .about__inner,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .about__card { position: static; }
  .footer__inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-elev);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; width: 100%; padding: 8px 0; font-size: 1.05rem; }
  .nav__cta { text-align: center; margin-top: 1rem; }

  .hero { padding-top: 100px; min-height: auto; padding-bottom: 80px; }
  .hero__cta .btn { width: 100%; max-width: 320px; }

  .services { padding: 70px 0; }
  .gallery { padding: 60px 0; }
  .about, .contact { padding: 70px 0; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .about__stats { grid-template-columns: 1fr; padding: 1rem 0; gap: 0.5rem; }
  .about__stats > div { padding: 0.5rem; border-bottom: 1px solid var(--border); }
  .about__stats > div:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 1.5rem 1.25rem 1.25rem; }
  .contact__form, .contact__aside { padding: 1.5rem; }
}
