/* ============================================
   ZAMX AUTO SERVICE — DESIGN SYSTEM
   Colors:  Black #111111 · Red #DB0C12 · White #FFFFFF
            Off-white #F2F1EC · Grey #8A8B86
   Type:    Display — Bebas Neue / Body — Inter
   ============================================ */

:root {
  --black: #111111;
  --red: #DB0C12;
  --red-dark: #A80007;
  --white: #FFFFFF;
  --offwhite: #F2F1EC;
  --grey: #8A8B86;
  --grey-line: #dddad2;
  --black-line: #2a2a2a;

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

  --container: 1240px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--offwhite);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
@media (max-width: 899px) {
  body { padding-bottom: 76px; }
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.01em; line-height: 1.02; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: var(--white); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--red); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  max-width: 16ch;
  margin-bottom: 20px;
}
.section-title--light { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--lg { padding: 17px 32px; font-size: 13.5px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(10px);
  height: 68px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: none; gap: 36px; }
.nav__links a {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--white); opacity: 0.85;
  position: relative; padding: 6px 0;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--red); transition: right .25s var(--ease);
}
.nav__links a:hover::after { right: 0; }
.nav__right { display: none; align-items: center; gap: 22px; }
.nav__cta { display: none; }

/* ---------- Social icons (subtle, quiet by design) ---------- */
.social-row { display: flex; align-items: center; gap: 14px; }
.social-row a { display: flex; color: rgba(255,255,255,0.55); transition: color .2s; }
.social-row a:hover { color: var(--red); }
.social-row svg { width: 17px; height: 17px; }

.social-row--footer a { color: rgba(255,255,255,0.5); }
.social-row--footer a:hover { color: var(--white); }

.social-row--mobile { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--black-line); gap: 22px; }
.social-row--mobile svg { width: 20px; height: 20px; }
.nav__burger {
  width: 34px; height: 34px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 6px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--white); transition: transform .25s var(--ease), opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--black);
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 40px;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  z-index: 400;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-menu a {
  font-size: 22px; font-family: var(--font-display); letter-spacing: 0.02em;
  color: var(--white); padding: 16px 4px; border-bottom: 1px solid var(--black-line);
  text-transform: uppercase;
}
.mobile-menu .btn { margin-top: 18px; align-self: flex-start; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__right { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ============================================
   01 — HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 100px;
}
.hero__field { position: absolute; inset: 0; z-index: 0; }
.hero__stripes {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(219,12,18,0.28), transparent 70%),
    repeating-linear-gradient(90deg, rgba(219,12,18,0.55) 0 2px, rgba(17,17,17,0.9) 2px 5px);
  filter: blur(1.5px);
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, black 0%, transparent 72%);
}
.hero__x {
  position: absolute; fill: var(--white); opacity: 0.05;
}
.hero__x--1 { width: 60vw; max-width: 640px; top: -8%; left: -12%; transform: rotate(-8deg); }
.hero__x--2 { width: 46vw; max-width: 520px; bottom: -14%; right: -10%; transform: rotate(12deg); fill: var(--red); opacity: 0.10; }

.hero__content { position: relative; z-index: 2; text-align: center; max-width: 780px; }
.hero__headline {
  font-size: clamp(52px, 11vw, 118px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__sub {
  margin: 26px auto 0;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255,255,255,0.78);
}
.hero__actions {
  margin-top: 40px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 20px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--red); border-radius: 3px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================
   02 — BRAND STATEMENT
   ============================================ */
.statement { padding: 130px 0; background: var(--offwhite); text-align: center; }
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 58px);
  text-transform: uppercase;
  line-height: 1.08;
  max-width: 20ch;
  margin: 0 auto;
}
.statement__support {
  max-width: 58ch; margin: 32px auto 0;
  color: #4a4a46; font-size: 16.5px; line-height: 1.7;
}

/* ============================================
   WHY ZAMX (condensed reasons)
   ============================================ */
.why { padding: 110px 0; background: var(--white); }
.why__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
.why-card__icon { width: 32px; height: 32px; color: var(--red); margin-bottom: 18px; }
.why-card h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.01em; }
.why-card p { color: #4a4a46; font-size: 14.5px; max-width: 40ch; }

@media (min-width: 700px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
}
@media (min-width: 1000px) {
  .why__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   04 — SERVICES
   ============================================ */
.services { padding: 110px 0; background: var(--offwhite); }
.services__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
}
.service-card {
  background: var(--offwhite);
  padding: 40px 32px;
  position: relative;
}
.service-card__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 21px; text-transform: uppercase; margin-bottom: 12px; }
.service-card p { color: #4a4a46; font-size: 15px; }

@media (min-width: 700px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   05 — DIAGNOSTICS / TECH
   ============================================ */
.tech { padding: 120px 0; background: var(--black); color: var(--white); }
.tech__grid { display: grid; gap: 60px; align-items: center; }
.tech__lead { margin-top: 20px; color: rgba(255,255,255,0.78); font-size: 16px; max-width: 52ch; }
.tech__points { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.tech__points li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 15px; color: rgba(255,255,255,0.88);
  border-top: 1px solid var(--black-line); padding-top: 16px;
}
.tech__points span {
  font-family: var(--font-display); color: var(--red); font-size: 15px; flex-shrink: 0;
}

.scan-panel {
  background: #161616;
  border: 1px solid var(--black-line);
  padding: 6px;
  font-family: 'Inter', monospace;
}
.scan-panel__row {
  display: flex; justify-content: space-between;
  padding: 15px 16px;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--black-line);
}
.scan-panel__row:first-child { color: rgba(255,255,255,0.35); font-size: 11px; }
.scan-panel__row span:first-child { color: rgba(255,255,255,0.85); }
.scan-panel__row .ok { color: #5fbf6b; }
.scan-panel__row .warn { color: var(--red); font-weight: 700; }
.scan-panel__row--flag { background: rgba(219,12,18,0.06); }
.scan-panel__foot {
  padding: 16px; font-size: 10.5px; letter-spacing: 0.1em; text-align: center;
  color: rgba(255,255,255,0.4);
}

@media (min-width: 880px) {
  .tech__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ============================================
   06 — TRUST SYSTEM
   ============================================ */
.trust-system { padding: 120px 0; background: var(--offwhite); }
.trust-system__lead { max-width: 50ch; color: #4a4a46; font-size: 16px; }
.trust-steps {
  margin-top: 60px;
  display: grid; grid-template-columns: 1fr; gap: 44px;
  counter-reset: step;
}
.trust-step { position: relative; padding-left: 0; }
.trust-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--red); color: var(--red);
  font-family: var(--font-display); font-size: 18px;
  margin-bottom: 18px;
}
.trust-step h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.trust-step p { color: #4a4a46; font-size: 15px; max-width: 34ch; }

@media (min-width: 860px) {
  .trust-steps { grid-template-columns: repeat(4, 1fr); position: relative; }
  .trust-steps::before {
    content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 1.5px;
    background: var(--grey-line); z-index: 0;
  }
  .trust-step__num { background: var(--offwhite); position: relative; z-index: 1; }
}

/* ============================================
   07 — VISUAL STORY (cinematic)
   ============================================ */
.story {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: center;
  background: var(--black);
  overflow: hidden;
}
.story__bg {
  position: absolute; inset: -15%;
  background:
    radial-gradient(ellipse 60% 60% at 65% 40%, rgba(219,12,18,0.35), transparent 65%),
    repeating-linear-gradient(100deg, rgba(219,12,18,0.35) 0 2px, rgba(17,17,17,0.95) 2px 6px);
  mask-image: radial-gradient(ellipse 55% 65% at 60% 45%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 60% 45%, black 0%, transparent 75%);
  opacity: 0.65;
}
.story__content { position: relative; z-index: 2; padding: 90px 24px; }
.story__headline {
  color: var(--white);
  font-size: clamp(38px, 7vw, 74px);
  text-transform: uppercase;
  line-height: 1.05;
}

/* ============================================
   CONTACT (includes merged closing statement)
   ============================================ */
.contact { padding: 120px 0 160px; background: var(--offwhite); position: relative; overflow: hidden; }

.contact__lead { position: relative; text-align: center; max-width: 760px; margin: 0 auto 100px; }
.contact__lead-x {
  position: absolute; top: 50%; left: 50%;
  width: 620px; max-width: none;
  transform: translate(-50%,-50%) rotate(-4deg);
  fill: var(--red); opacity: 0.05; z-index: 0;
}
.contact__lead-text {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  text-transform: uppercase;
  line-height: 1.15;
}

.contact__grid { display: grid; gap: 56px; }
.contact__list { margin-top: 40px; display: grid; gap: 26px; }
.contact__list dt {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 6px;
}
.contact__list dd { font-size: 16.5px; }
.contact__list a:hover { color: var(--red); }
.contact__primary-cta { margin-top: 40px; }
.contact__map { min-height: 340px; border: 1px solid var(--grey-line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.15); }

.quick-contact {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 420px;
}
.quick-contact__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px;
  border: 1px solid var(--grey-line);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--black);
  transition: border-color .2s, color .2s;
}
.quick-contact__item svg { width: 20px; height: 20px; }
.quick-contact__item:hover { border-color: var(--red); color: var(--red); }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* ============================================
   MOBILE STICKY CONTACT BAR
   ============================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 450;
  display: flex;
  background: var(--black);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.25);
}
.sticky-cta__item {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 2px;
}
.sticky-cta__item svg { width: 17px; height: 17px; flex-shrink: 0; }
.sticky-cta__item--outline { border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
.sticky-cta__item--primary { background: var(--red); color: var(--white); }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 56px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer__logo { height: 26px; width: auto; opacity: 0.9; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 13px; }
.footer__links a:hover { color: var(--white); }
.footer__address, .footer__copy { font-size: 12.5px; }
.footer__address a:hover { color: var(--white); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
