/* ============================================================
   APSE AUTOSERVISS — MAIN STYLES
   Craft-shop archetype. Warm concrete. Engine orange.
   ============================================================ */

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Tokens ----------------------------------------------- */
:root {
  --color-bg: #F2EDE8;
  --color-bg-alt: #E8E0D5;
  --color-text: #111210;
  --color-muted: #6A6660;
  --color-accent: #C94E1A;
  --color-card: #DDD8D0;
  --color-border: #C8C0B4;
  --font-display: 'Space Grotesk', Arial, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* fluid type scale */
  --fs-12: clamp(0.72rem, 0.66rem + 0.27vw, 0.85rem);
  --fs-14: clamp(0.84rem, 0.78rem + 0.27vw, 0.97rem);
  --fs-16: clamp(0.96rem, 0.90rem + 0.27vw, 1.10rem);
  --fs-18: clamp(1.08rem, 1.00rem + 0.36vw, 1.25rem);
  --fs-22: clamp(1.32rem, 1.20rem + 0.55vw, 1.60rem);
  --fs-28: clamp(1.68rem, 1.45rem + 0.95vw, 2.20rem);
  --fs-36: clamp(2.16rem, 1.80rem + 1.50vw, 3.00rem);
  --fs-48: clamp(2.88rem, 2.30rem + 2.40vw, 4.20rem);
  --fs-64: clamp(3.84rem, 2.80rem + 4.30vw, 6.00rem);
  --fs-96: clamp(5.76rem, 3.60rem + 9.00vw, 11.00rem);

  /* spacing */
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: clamp(2rem, 1.5rem + 2vw, 4rem);
  --s-16: clamp(3rem, 2rem + 4vw, 6rem);
  --s-24: clamp(4rem, 3rem + 6vw, 9rem);

  /* layout */
  --max-w: 1280px;
  --max-w-narrow: 720px;
  --line: 1px solid var(--color-border);
}

/* --- Base ------------------------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 65px; /* nav height */
}

/* --- Skip link -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-4);
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   HERO — Split layout
   Left: content panel / Right: photo
   ============================================================ */
.hero {
  min-height: calc(100svh - 65px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-16) var(--s-8) var(--s-16) var(--s-8);
  padding-left: max(var(--s-8), calc((100vw - var(--max-w)) / 2 + var(--s-8)));
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-6);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-64);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--s-6);
  overflow: hidden;
}

/* Each word is wrapped in a span.word for GSAP stagger */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.2em;
}

.hero__title .word-inner {
  display: inline-block;
  transform: translateY(100%);
}

.hero__lede {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--s-8);
  max-width: 440px;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: -0.01em;
}

.hero__cta:hover {
  background: #a83e15;
  transform: translateY(-2px);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__subtext {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--color-muted);
}

/* Hero photo panel */
.hero__photo {
  position: relative;
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Subtle texture overlay */
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(242,237,232,0.15) 0%,
    transparent 30%
  );
  pointer-events: none;
}

/* Hero stats bar */
.hero__stats {
  grid-column: 1 / -1;
  background: var(--color-bg-alt);
  border-top: var(--line);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.hero__stat {
  flex: 1;
  padding: var(--s-6);
  border-right: var(--line);
  text-align: center;
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .hero__copy {
    padding: var(--s-12) var(--s-6);
    padding-left: var(--s-6);
  }

  .hero__photo {
    aspect-ratio: 16/9;
    grid-row: 1;
    grid-column: 1;
    order: -1;
  }

  .hero__copy {
    order: 1;
  }

  .hero__stats {
    grid-column: 1;
    flex-wrap: wrap;
  }

  .hero__stat {
    flex: 1 1 50%;
  }
}

@media (max-width: 480px) {
  .hero__stat {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: var(--line);
    text-align: left;
  }
}

/* ============================================================
   MOTTO BAND
   ============================================================ */
.motto-band {
  background: var(--color-accent);
  padding: var(--s-8) var(--s-6);
  overflow: hidden;
}

.motto-band__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.motto-band__quote {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-style: italic;
  flex: 1;
}

.motto-band__attr {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .motto-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }
  .motto-band__attr {
    white-space: normal;
  }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: var(--s-16) var(--s-6);
  background: var(--color-bg);
}

.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.services__header {
  margin-bottom: var(--s-12);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.services__header-left {
  flex: 1;
}

.services__meta {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--color-muted);
  max-width: 320px;
  line-height: 1.6;
}

/* ============================================================
   SCHEDULE SECTION
   ============================================================ */
.schedule {
  padding: var(--s-16) var(--s-6);
  background: var(--color-bg-alt);
}

.schedule__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}

.schedule__aside {
  position: relative;
}

.schedule__phone-block {
  margin-top: var(--s-8);
  padding: var(--s-6);
  background: var(--color-card);
  border-radius: 6px;
  border: var(--line);
}

.schedule__phone-label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.schedule__phone-num {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: block;
  line-height: 1.15;
  transition: color 0.2s;
}

.schedule__phone-num:hover {
  color: var(--color-accent);
}

.schedule__phone-sub {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--color-muted);
  margin-top: var(--s-2);
}

.schedule__phone-num--parts {
  font-size: var(--fs-22);
  color: var(--color-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .schedule__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why {
  padding: var(--s-16) var(--s-6);
  background: var(--color-bg);
}

.why__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================================
   VISIT SECTION
   ============================================================ */
.visit {
  padding: var(--s-16) var(--s-6);
  background: var(--color-bg-alt);
}

.visit__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================================
   PARTNER STRIP
   ============================================================ */
.partner-strip {
  border-top: var(--line);
  border-bottom: var(--line);
  padding: var(--s-6) var(--s-6);
  background: var(--color-bg);
}

.partner-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  justify-content: center;
  flex-wrap: wrap;
}

.partner-strip__label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.partner-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  border: var(--line);
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
  background: var(--color-card);
}

.partner-strip__dot {
  width: 8px;
  height: 8px;
  background: #003399;
  border-radius: 50%;
}

/* ============================================================
   BOSCH badge on diagnostics
   ============================================================ */
.bosch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-top: var(--s-3);
}

.bosch-badge__dot {
  width: 6px;
  height: 6px;
  background: #e20000;
  border-radius: 50%;
}

/* ============================================================
   UTILS
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--color-accent); }
