/* =====================================================================
   Maakamela VW & Audi Specialists — v2
   Design: single-page, black / red / white, Garet Heavy (Outfit as web fallback)
   ===================================================================== */

:root {
  --red: #fe0000;
  --red-deep: #7a0000;
  --red-shadow: #b8181c;
  --black: #000;
  --white: #fff;
  --grey: #5c5c5c;

  --font: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1366px;
  --gutter: clamp(20px, 3.5vw, 48px);
  --header-h: 120px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 14px; border-radius: 6px;
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.location :focus-visible { outline-color: var(--black); }

/* ---------------------------------------------------------------- type */
.h2 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

/* Large faded section watermarks */
.wm {
  position: absolute;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: 16px;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-block: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo img {
  width: clamp(76px, 8.2vw, 112px); height: auto;
  transition: width .35s var(--ease);
}
.header.is-scrolled .logo img { width: clamp(60px, 5.5vw, 76px); }

.nav { display: flex; gap: clamp(26px, 4.4vw, 60px); }
.nav a {
  color: var(--white); text-decoration: none;
  font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  position: relative; padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-panel {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 18px var(--gutter) 28px;
  background: rgba(0, 0, 0, .96);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.nav-panel:not([hidden]) { display: flex; }
.nav-panel > a:not(.btn-book) {
  color: var(--white); text-decoration: none;
  font-size: 22px; font-weight: 900; text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-panel .btn-book { margin-top: 18px; align-self: flex-start; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: clamp(600px, 56.2vw, 900px);
  display: flex; align-items: center;
  background: var(--black) url("../assets/img/hero.webp") no-repeat 62% center / cover;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 34%, rgba(0, 0, 0, 0) 58%);
  opacity: 0;
  transition: opacity .3s;
}
.hero__inner { padding-block: calc(var(--header-h) + 8px) 56px; }

.hero__title {
  font-weight: 900;
  font-size: clamp(50px, 6.9vw, 94px);
  line-height: .92;
  letter-spacing: -.012em;
  text-transform: uppercase;
  display: grid;
}
.hero__line1 { color: var(--white); }
.hero__line2 { color: var(--red); margin-top: .02em; }
.amp { color: var(--red); }

.hero__sub {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hero__sub span { color: var(--white); margin: 0 .25em; }

.btn-book {
  display: inline-flex; align-items: center; gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(28px, 4vw, 56px);
  padding: 15px 18px 15px clamp(18px, 1.5vw, 22px);
  background: var(--red); color: var(--white);
  border-radius: 999px; text-decoration: none;
  font-size: clamp(17px, 1.75vw, 24px); font-weight: 900; text-transform: uppercase; letter-spacing: .005em;
  box-shadow: 0 14px 40px rgba(254, 0, 0, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(254, 0, 0, .38); background: #ff1414; }
.btn-book:active { transform: translateY(0); }
.btn-book__icon {
  width: clamp(38px, 3.4vw, 48px); height: clamp(38px, 3.4vw, 48px); flex: none;
  display: grid; place-items: center;
  color: var(--white);
}
.btn-book__icon svg { width: 100%; height: 100%; }
.btn-book--sm { font-size: 16px; padding: 12px 14px 12px 18px; margin-top: 0; }
.btn-book--sm .btn-book__icon { width: 30px; height: 30px; }

/* ------------------------------------------------------------- strips */
.strip {
  height: 48px;
  background-repeat: repeat-x;
  background-position: 12px center;
  background-size: auto 100%;
}
.strip--gear { background-image: url("../assets/img/strip-gear.png"); }
.strip--wrench { background-image: url("../assets/img/strip-wrench.png"); }

/* ----------------------------------------------------------- services */
.services { padding-bottom: clamp(56px, 7vw, 100px); }
.services .strip { margin-bottom: clamp(36px, 4.5vw, 60px); }
.services .h2 { margin-bottom: clamp(24px, 3vw, 40px); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(28px, 3.3vw, 46px) clamp(18px, 3.3vw, 46px);
}

.svc {
  position: relative; display: block;
  height: 250px;
  padding: 92px 16px 0 clamp(12px, 1.2vw, 16px);
  color: var(--white); text-decoration: none;
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 3px solid var(--red);
  border-radius: 58px 24px 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, .55) 62%, transparent 84%);
          mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, .55) 62%, transparent 84%);
  transition: filter .35s var(--ease), border-color .35s;
}
.svc:hover::before, .svc:focus-visible::before {
  filter: drop-shadow(0 0 10px rgba(254, 0, 0, .75));
}
.svc__label {
  display: block;
  font-size: 16px; font-weight: 900; line-height: 1;
  text-transform: uppercase; letter-spacing: .005em;
  max-width: 10.5em;
}

.badge {
  position: absolute; top: 10px; right: 12px;
  width: 74px; height: 74px;
  color: var(--red);
  transition: transform .6s var(--ease);
}
.svc:hover .badge { transform: rotate(45deg); }
.svc:hover .badge img { transform: rotate(-45deg); }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.badge img {
  position: absolute; left: 10%; top: 10%; width: 80%; height: 80%;
  transition: transform .6s var(--ease);
}

/* -------------------------------------------------------------- about */
.about {
  position: relative; overflow: hidden;
  background: var(--black);
  padding: clamp(64px, 9vw, 136px) 0 clamp(120px, 16vw, 210px);
  isolation: isolate;
}
.about__glow {
  position: absolute; inset: 0 0 0 30%; z-index: 0;
  background: linear-gradient(90deg, rgba(122, 0, 0, 0) 0%, var(--red-deep) 40%, #e10000 100%);
}
.about__photo {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  width: 40%;
  /* the mask isolates this group, so the img multiplies against this red — not the glow */
  background: linear-gradient(90deg, #9a0000 0%, #e10000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  filter: grayscale(1) contrast(1.18) brightness(1.02);
  mix-blend-mode: multiply;
}
.about__inner { position: relative; z-index: 2; }
.about .h2 { margin-bottom: clamp(24px, 3.6vw, 50px); }
.about__name {
  font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -.005em;
  margin-bottom: 14px;
}
.about__copy {
  max-width: 800px;
  font-size: clamp(13px, 1.02vw, 14px);
  font-weight: 800;
  line-height: 1.78;
  text-transform: uppercase;
  letter-spacing: .012em;
}
.about__wm {
  left: 46%; bottom: -.2em; z-index: 1;
  font-size: clamp(110px, 14vw, 190px);
  color: rgba(0, 0, 0, .34);
}

/* --------------------------------------------------------------- work */
.work {
  position: relative; overflow: hidden;
  padding-bottom: clamp(110px, 13vw, 180px);
}
.work .strip { margin-bottom: clamp(40px, 5.2vw, 70px); }
.work .h2 { margin-bottom: clamp(6px, 1vw, 12px); }

.gallery { position: relative; }
.gallery__track {
  display: flex; align-items: center; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 34px 0;
  /* bleed to the right edge of the viewport like the design */
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
  scroll-padding-left: 0;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  position: relative; flex: 0 0 auto;
  width: clamp(200px, 19.6vw, 268px);
  aspect-ratio: 268 / 340;
  overflow: hidden;
  scroll-snap-align: start;
  background: #1a0000;
  transition: width .5s var(--ease), transform .5s var(--ease);
  isolation: isolate;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: #b30000;
  mix-blend-mode: multiply;
  opacity: .88;
  transition: opacity .5s var(--ease);
}
.gallery__item.is-active { width: clamp(232px, 22.7vw, 310px); }
.gallery__item.is-active::after,
.gallery__item:hover::after { opacity: 0; }
.gallery__item:hover img { transform: scale(1.04); }

.gallery__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white); color: var(--black); border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), background .3s;
  z-index: 2;
}
.gallery__btn svg { width: 34px; height: 34px; }
.gallery__btn--next { right: 8px; }
.gallery__btn--prev { left: 8px; }
.gallery__btn--prev svg { transform: rotate(180deg); }
.gallery__btn:hover { transform: translateY(-50%) scale(1.06); background: #f2f2f2; }
.gallery__btn[hidden] { display: none; }

.work__wm {
  left: 32%; bottom: -.14em;
  font-size: clamp(90px, 11.6vw, 158px);
  color: #555;
  filter: blur(7px);
  opacity: .85;
}

/* ----------------------------------------------------------- location */
.location {
  background: var(--white); color: var(--black);
  padding: clamp(40px, 4.4vw, 60px) 0 clamp(52px, 5.4vw, 74px);
}
.location .h2 { color: var(--black); margin-bottom: clamp(24px, 3vw, 40px); }
.map {
  position: relative;
  max-width: 1040px; margin: 0 auto;
  aspect-ratio: 1036 / 603;
  background: #e9ecef;
  box-shadow: 14px 14px 0 var(--red-shadow);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map__caption {
  max-width: 1040px; margin: 28px auto 0;
  font-size: 15px; font-weight: 700; color: #333;
}
.map__caption a { color: var(--red-shadow); font-weight: 800; text-underline-offset: 3px; }

/* ------------------------------------------------------------ contact */
.contact {
  background: var(--red); color: var(--white);
  padding: clamp(52px, 5.6vw, 76px) 0 clamp(72px, 8vw, 110px);
}
.contact .h2 { color: var(--black); }

.form {
  position: relative;
  max-width: 470px;
  margin: clamp(24px, 2.2vw, 30px) auto 0;
}
.form::after {
  content: ""; position: absolute;
  top: -22px; right: -40px; bottom: -58px; left: -40px;
  border-right: 1px solid rgba(255, 255, 255, .65);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  pointer-events: none;
}
.hp { display: none; }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 6px;
  color: var(--white);
  font: 700 17px/1.3 var(--font);
  padding: 16px 18px;
  height: 58px;
  transition: border-color .25s, background .25s;
}
.field textarea { height: 116px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--white); }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--white); background: rgba(255, 255, 255, .08);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--black); background: rgba(0, 0, 0, .12); }

.btn-send {
  width: 100%; height: 58px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ff1e2f 0%, #e6000f 100%);
  color: var(--white);
  font: 700 22px/1 var(--font);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn-send:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); filter: brightness(1.04); }
.btn-send:disabled { opacity: .7; cursor: progress; transform: none; }

.form__note {
  min-height: 1.4em;
  margin-top: 16px;
  font-size: 15px; font-weight: 700;
  color: var(--white);
}
.form__note.is-error { color: var(--black); }

/* ------------------------------------------------------------- footer */
.footer {
  background: var(--black); color: rgba(255, 255, 255, .72);
  padding: 22px 0;
  font-size: 13.5px; font-weight: 700;
}
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--red); }

/* ------------------------------------------------------- thanks page */
.thanks {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
  background:
    radial-gradient(60% 50% at 80% 100%, rgba(254, 0, 0, .35), transparent 70%),
    var(--black);
}
.thanks__card { max-width: 640px; }
.thanks__eyebrow {
  color: var(--red); font-size: 15px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.thanks h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: .95;
  text-transform: uppercase; letter-spacing: -.01em;
}
.thanks__text { margin-top: 22px; font-size: 17px; font-weight: 700; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin-top: 8px; }
.thanks__back { color: var(--white); font-weight: 800; text-transform: uppercase; font-size: 15px; text-decoration: none; margin-top: clamp(28px, 4vw, 56px); }
.thanks__back:hover { color: var(--red); }

/* --------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge, .badge img, .gallery__item, .gallery__item img, .btn-book { transition: none; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero::before { opacity: 1; }
  /* keep the design's 5 x 2 grid, just tighter */
  .svc-grid { gap: 24px 16px; }
  .svc { height: 220px; padding-top: 80px; }
  .svc::before { border-radius: 50px 20px 20px 20px; }
  .badge { width: 64px; height: 64px; top: 8px; right: 10px; }
  .svc__label { font-size: 14px; }
  .about__photo { width: 46%; }
}

@media (max-width: 860px) {
  :root { --header-h: 96px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: 92svh; background-position: 68% 30%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .8) 72%, #000 100%);
  }
  .hero__inner { padding-bottom: 64px; align-self: end; }

  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc { height: 200px; padding-top: 74px; padding-inline: 12px; }
  .badge { width: 58px; height: 58px; }
  .svc__label { font-size: 13.5px; }

  .about { padding-top: 0; padding-bottom: clamp(100px, 18vw, 150px); }
  .about__glow { inset: 0; background: linear-gradient(180deg, #d40000 0%, var(--red-deep) 38%, #000 60%); }
  .about__photo {
    position: relative; width: 100%; height: min(78vw, 520px);
    background: linear-gradient(180deg, #e10000 0%, #9a0000 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .about__photo img { object-position: 50% 12%; }
  .about__inner { margin-top: -40px; }
  .about__wm { left: auto; right: -2%; bottom: -.1em; }

  .work__wm { left: 10%; }
  .gallery__btn { width: 56px; height: 56px; }
  .gallery__btn svg { width: 26px; height: 26px; }

  .map { aspect-ratio: 4 / 3; }
  .form::after { right: -18px; left: -18px; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .svc { height: 210px; padding-top: 84px; }
  .svc::before { border-radius: 46px 20px 20px 20px; }
  .badge { width: 62px; height: 62px; top: 8px; right: 8px; }
  .svc__label { font-size: 14px; }
  .strip { height: 40px; }
  .btn-book { width: 100%; justify-content: space-between; }
  .gallery__item { width: 66vw; }
  .gallery__item.is-active { width: 74vw; }
  .map { aspect-ratio: 1 / 1; box-shadow: 10px 10px 0 var(--red-shadow); }
}
