/* ============================================================
   Motor Max Car Clinic
   Design: dark/industrial, red accent, angular cuts
   Fonts: Bebas Neue + Barlow Condensed + Barlow
   ============================================================ */

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

:root {
  --red:    #e8150e;
  --red2:   #b80f09;
  --dark:   #0a0a0a;
  --dark2:  #111111;
  --dark3:  #181818;
  --mid:    #2c2c2c;
  --light:  #ebebeb;
  --muted:  #7a7a7a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--light);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); }

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

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

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 34px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--light);
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 1px solid rgba(255,255,255,0.25);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ── Section typography ─────────────────────────────────── */
.section-label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1.0;
  color: var(--light);
  margin-bottom: 1.2rem;
}
.section-sub { font-size: 0.92rem; color: var(--muted); max-width: 520px; }
.section-header { margin-bottom: 3rem; }

/* ── Header / Nav ───────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 70px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
#site-header.scrolled { border-bottom-color: var(--red); }

.nav-logo { height: 52px; width: auto; object-fit: contain; }

nav { display: flex; align-items: center; gap: 2.5rem; }

.nav-links { display: flex; list-style: none; gap: 2.2rem; }
.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--red);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--light); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 10px 24px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--light);
  border-radius: 1px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ─────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--dark2);
  display: flex;
  flex-direction: column;
  padding: 2rem 5vw 3rem;
  gap: 0;
  border-bottom: 2px solid var(--red);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 999;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--mid);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover { color: var(--red); padding-left: 0.5rem; }
.mobile-nav a.mobile-cta { color: var(--red); border-bottom: none; margin-top: 0.5rem; }

/* ── HERO ───────────────────────────────────────────────── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0,0,0,0.92) 0%, rgba(10,10,10,0.65) 55%, rgba(10,10,10,0.3) 100%),
    url('https://images.unsplash.com/photo-1583267746897-2cf415887172?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  z-index: 0;
}

/* red glow emanating from left */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 20%; left: -80px;
  width: 400px; height: 60%;
  background: radial-gradient(ellipse at left, rgba(232,21,14,0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* vertical red accent bar */
.hero-red-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent 10%, var(--red) 40%, var(--red) 70%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 5vw 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--red);
}

/* Outlined + filled Bebas Neue mix */
.hero-title {
  font-family: var(--font-display);
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
}
.title-outline {
  display: block;
  font-size: clamp(5rem, 13vw, 10.5rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--light);
  letter-spacing: 0.04em;
}
.title-filled {
  display: block;
  font-size: clamp(4.2rem, 10vw, 8.5rem);
  color: var(--red);
  letter-spacing: 0.04em;
}
.title-sub {
  font-size: 0.5em;
  color: var(--light);
  letter-spacing: 0.08em;
  vertical-align: middle;
  opacity: 0.85;
}

.hero-tagline {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-tagline em { color: var(--light); font-style: normal; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Credentials strip */
.hero-credentials {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--mid);
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.4rem 3.5vw;
  flex: 1;
}
.cred-badge { height: 38px; width: auto; }
.cred-stars { font-size: 1.1rem; color: #f5c518; letter-spacing: 2px; line-height: 1; }
.cred-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;
}
.cred-title {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}
.cred-sub { font-size: 0.72rem; color: var(--muted); font-family: var(--font-cond); letter-spacing: 0.06em; margin-top: 2px; }
.cred-divider { width: 1px; background: var(--mid); align-self: stretch; margin: 0; }

/* ── About ──────────────────────────────────────────────── */
#about {
  padding: 8vw 5vw 6vw;
  background: var(--dark2);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p { font-size: 0.94rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.78; }
.about-text p strong { color: var(--light); }

.about-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.about-list-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}
.list-check {
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
}

.about-visual { position: relative; }
.cert-wrap {
  position: relative;
}
.cert-wrap::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  bottom: 12px; left: 12px;
  border: 2px solid var(--red);
  opacity: 0.35;
  z-index: 0;
}
.cert-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.rmi-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--dark3);
  border-left: 3px solid var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.rmi-strip img { height: 42px; width: auto; }
.rmi-strip span {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
}

/* ── Services ───────────────────────────────────────────── */
#services {
  padding: 8vw 0 6vw;
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--mid);
  margin-top: 0.5rem;
}
.service-card {
  background: var(--dark2);
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.service-card:hover { background: var(--dark3); }
.service-card:hover::before { transform: scaleY(1); }
.service-card--feature { background: var(--dark3); }
.service-card--feature::before { transform: scaleY(1); opacity: 0.5; }

.svc-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--mid);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  transition: color 0.25s;
}
.service-card:hover .svc-num { color: var(--red); }
.service-card--feature .svc-num { color: rgba(232,21,14,0.35); }

.svc-icon {
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 22px; height: 22px; color: var(--red); }

.service-card h3 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

.svc-badge {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(232,21,14,0.4);
  padding: 4px 10px;
}

/* ── Reviews ────────────────────────────────────────────── */
#reviews {
  padding: 8vw 0 6vw;
  background: var(--dark2);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--mid);
  margin-bottom: 2rem;
}
.review-card {
  background: var(--dark3);
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.25s;
}
.review-card:hover { background: var(--dark); }

.review-quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: 0.5rem; right: 1rem;
  pointer-events: none;
  user-select: none;
}

.review-stars { color: #f5c518; font-size: 0.9rem; letter-spacing: 3px; }
.review-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.7; flex: 1; }

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 1rem;
  border-top: 1px solid var(--mid);
}
.review-av {
  width: 34px; height: 34px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.87rem; color: var(--light); font-weight: 600; }
.review-author span   { font-size: 0.72rem; color: var(--muted); font-family: var(--font-cond); letter-spacing: 0.06em; }
.reviews-more { text-align: center; padding-top: 1rem; }

/* ── Quote section ──────────────────────────────────────── */
#quote {
  padding: 7vw 0 8vw;
  background: var(--dark);
}

.quote-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.quote-subtext {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  text-align: right;
  max-width: 340px;
}

/* Contact strip */
.quote-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--mid);
  gap: 1px;
  margin-bottom: 2px;
}
.qcs-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.8rem;
  background: var(--dark3);
  text-decoration: none;
  transition: background 0.2s;
}
a.qcs-item:hover { background: var(--mid); }
.qcs-svg {
  width: 22px; height: 22px;
  color: var(--red);
  flex-shrink: 0;
}
.qcs-label {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}
.qcs-value {
  font-family: var(--font-cond);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--light);
}

/* Form card */
.quote-form-card {
  background: var(--dark3);
  border: 1px solid var(--mid);
  border-top: 3px solid var(--red);
  padding: 2.5rem 3rem 3rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-family: var(--font-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-bottom: 2px solid var(--mid);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 0.85rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
  border-bottom-color: var(--red);
  background: var(--dark);
}
.form-select option { background: var(--dark2); }
.form-textarea { resize: vertical; min-height: 130px; }

.form-footer {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--font-cond);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-style: italic;
}

.cert-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cert-badges img:first-child { height: 44px; width: auto; }
.cert-badges img:last-child  { height: 66px; width: auto; }

/* ── Map ────────────────────────────────────────────────── */
#map {
  height: 420px;
  position: relative;
  background: var(--dark3);
}
#map iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(0.6) invert(0.88) hue-rotate(165deg);
  opacity: 0.8;
}
.map-overlay {
  position: absolute;
  bottom: 2rem; left: 5vw;
  background: rgba(10,10,10,0.92);
  border-left: 3px solid var(--red);
  padding: 1rem 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.map-overlay-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--red);
  letter-spacing: 0.06em;
}
.map-overlay-addr {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-family: var(--font-cond);
  letter-spacing: 0.08em;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--mid);
  padding: 4rem 5vw 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--mid);
  margin-bottom: 1.5rem;
}
.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.footer-creds { margin-top: 1.2rem; }
.footer-creds img { height: 40px; width: auto; }

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-title {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.footer-col a, .footer-col span { font-size: 0.87rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .quote-header { flex-direction: column; align-items: flex-start; }
  .quote-subtext { text-align: left; }
  .quote-contact-strip { grid-template-columns: 1fr; }
  .quote-form-card { padding: 2rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-credentials { flex-wrap: wrap; }
  .cred-item { flex: 0 0 33.333%; }
  .cred-divider { display: none; }
  .cert-badges { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .title-outline { font-size: clamp(3.6rem, 15vw, 7rem); }
  .title-filled  { font-size: clamp(3rem, 11vw, 5.5rem); }
  .form-row { grid-template-columns: 1fr; }
  .cert-wrap::before { display: none; }
  .map-overlay { left: 1rem; right: 1rem; bottom: 1rem; }
  .hero-content { padding-top: 110px; }
  .about-visual { order: -1; }
  .cert-img { max-width: 100%; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .cred-item { flex: 0 0 100%; border-bottom: 1px solid var(--mid); }
  .cred-item:last-child { border-bottom: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .rmi-strip { clip-path: none; }
  .cert-badges img:last-child { height: 56px; }
  .section-title { font-size: clamp(2rem, 9vw, 3rem); }
}
