/*
 * ARCHETYPE: Single-scroll-cinematic
 * LAYOUT DNA: Text-only hero with massive typography, Full-width image bands, Tabbed content, Symmetric centered
 * SIGNATURE DETAIL: BMW M-sport inspired blue gradient stripe that runs through section dividers — evoking the BMW motorsport heritage
 * WHY: Import Service is a clean, modern German car specialist. Bright white workspace, blue accents, precision. The site mirrors their shop: clinical, precise, premium-but-accessible.
 */

:root {
  --color-primary: #0D1B2A;
  --color-secondary: #3A86FF;
  --color-accent: #C0C8D0;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F6F8;
  --color-bg-dark: #0D1B2A;
  --color-text: #0D1B2A;
  --color-text-muted: #6B7280;
  --color-text-on-dark: #FFFFFF;
  --color-border: rgba(0, 0, 0, 0.06);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1rem + 2.5vw, 3rem);
  --text-hero: clamp(3rem, 1.5rem + 5vw, 6rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-secondary); text-decoration: none; transition: color 0.25s; }
a:hover { color: #2670E0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  text-wrap: balance;
}

::selection { background: rgba(58, 134, 255, 0.15); }

.container { width: min(90%, var(--max-width)); margin-inline: auto; }

/* M-stripe divider */
.m-stripe {
  height: 4px;
  background: linear-gradient(90deg, #0066B1 0%, #0066B1 33%, #3A86FF 33%, #3A86FF 66%, #00A3E0 66%, #00A3E0 100%);
  width: 80px;
}

.m-stripe--center { margin: 0 auto; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav__links { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav__links a {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.nav__links a:hover { color: var(--color-secondary); }

.nav__cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--color-secondary) !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: #2670E0 !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out-expo);
}

/* ============================================
   HERO — Typography-first
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vh, 8rem) 0;
  position: relative;
}

.hero__content { max-width: 800px; }

.hero__brands {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.hero__brands span { opacity: 0.5; }

.hero__title {
  font-size: var(--text-hero);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 0.95;
}

.hero__title span {
  background: linear-gradient(135deg, #3A86FF, #00A3E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

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

.hero__image {
  margin-top: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(13, 27, 42, 0.12);
}

.hero__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hero__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.hero__stars { color: #F5A623; font-size: 1.1rem; letter-spacing: 2px; }
.hero__rating-text { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.btn--primary {
  background: var(--color-secondary);
  color: white;
}
.btn--primary:hover {
  background: #2670E0;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(58, 134, 255, 0.3);
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--color-text-on-dark); }

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   SPECIALTIES — Three columns with brand icons
   ============================================ */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.specialty-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-out-expo);
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.08);
  border-color: rgba(58, 134, 255, 0.2);
}

.specialty-card__brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.specialty-card__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.specialty-card__list {
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 2;
}

/* ============================================
   WORKSHOP — Full-bleed image + stats
   ============================================ */
.workshop-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 3rem;
}

.workshop-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.workshop-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-secondary);
}

.workshop-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.gallery-grid__item:hover img { transform: scale(1.05); }

/* ============================================
   REVIEWS — Dark section
   ============================================ */
.reviews-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.reviews__score {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #3A86FF, #00A3E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reviews__stars { font-size: 1.5rem; color: #F5A623; letter-spacing: 4px; margin-bottom: 1rem; }

.reviews__quote {
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.7;
  margin: 2rem 0 1rem;
  opacity: 0.9;
}

.reviews__author {
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__item { margin-bottom: 1.5rem; }

.contact__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
}

.contact__value { font-size: var(--text-base); line-height: 1.6; }
.contact__value a { color: var(--color-text); font-size: var(--text-xl); font-weight: 700; }

.contact__social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact__social a {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: all 0.25s;
}
.contact__social a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

.contact__map {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact__map img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   REVEALS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.specialties-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.specialties-grid .reveal:nth-child(3) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0; background: rgba(255,255,255,0.98);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; transform: translateX(100%); transition: transform 0.4s var(--ease-out-expo);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: var(--text-lg); color: var(--color-text); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .specialties-grid { grid-template-columns: 1fr; }
  .workshop-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero__brands { gap: 1rem; font-size: var(--text-xs); }
}
