/* ==================================================================
   TRACKSTYLE — "SPEC SHEET" REDESIGN
   Premium dark, editorial-industrial. Component structure & copy
   untouched; this stylesheet defines the entire visual language.
   ================================================================== */

/* ==============================================
   RESET + BASE
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* persistent yellow brand rail along the very top of every page */
  border-top: 3px solid var(--yellow);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--yellow); color: var(--black); }

/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.9rem, 7.5vw, 6.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: 0; }
p  { font-size: 1rem; line-height: 1.75; color: var(--light-gray); text-wrap: pretty; }
.accent { color: var(--yellow); }

/* Mono "spec" label — the signature technical kicker */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.section-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--yellow);
  display: inline-block;
}

/* ==============================================
   LAYOUT
   ============================================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; }

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--border); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: transparent; color: var(--black); border-color: var(--black); }

/* ==============================================
   NAVIGATION
   ============================================== */
.nav {
  position: fixed;
  top: 3px; left: 0; right: 0;   /* sit just below the brand rail */
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.35s ease, border-color 0.35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}
.nav-logo span { color: var(--yellow); }

/* ---- Brand logo image (replaces TrackStyle wordmark) ---- */
.nav-logo { display: inline-flex; align-items: center; }
.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo-img { height: 38px; }
.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;
}
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links > li > a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  transition: color 0.2s;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.nav.scrolled .nav-logo, .nav.scrolled .nav-links > li > a { text-shadow: none; }
.nav-links > li > a:hover { color: var(--yellow); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 22px);
  left: -16px;
  background: var(--dark);
  border: 1px solid var(--border);
  min-width: 248px;
  padding: 6px;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0; height: 28px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  transition: color 0.15s, background 0.15s, padding-left 0.18s;
}
.nav-dropdown-menu a:hover { color: var(--black); background: var(--yellow); }

/* Nav CTA */
.nav-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  padding: 11px 22px !important;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--white) !important; color: var(--black) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: all 0.3s; }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + 3px);
  left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 99;
  overflow-y: auto;
  padding: 32px 32px 80px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-mobile a:hover { color: var(--yellow); padding-left: 8px; }
.nav-mobile-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  text-align: center;
  margin-top: 32px;
  border: none !important;
  padding: 22px !important;
  font-size: 1.3rem !important;
}

/* ==============================================
   HERO (Home)
   ============================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--black);
  /* layered scrims keep the left-aligned headline + yellow accents legible
     over the photo; the car stays visible center-right */
  background-image:
    linear-gradient(to bottom, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.46) 12%, rgba(8,8,10,0.08) 26%),
    linear-gradient(90deg, rgba(8,8,10,0.96) 0%, rgba(8,8,10,0.82) 28%, rgba(8,8,10,0.44) 58%, rgba(8,8,10,0.10) 100%),
    linear-gradient(to top, rgba(8,8,10,0.90) 0%, rgba(8,8,10,0) 46%),
    url('../assets/hero-car.jpg');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center 42%;
  background-repeat: no-repeat;
}
/* fine structural grid instead of dot field */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-bg-glow {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(245,193,0,0.06) 0%, transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* bold yellow vertical rail on the right */
.hero-stripe {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 8px;
  background: var(--yellow);
  opacity: 1;
}
.hero-stripe::before {
  content: '';
  position: absolute;
  right: 8px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--nav-height);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--yellow);
}
.hero h1 {
  font-size: clamp(3.2rem, 9.5vw, 8.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 38px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.55);
}
.hero-eyebrow { text-shadow: 0 1px 16px rgba(0,0,0,0.6); }
.hero-sub { font-family: var(--font-body); font-size: 1.1rem; color: #E6E6EA; max-width: 540px; margin-bottom: 48px; line-height: 1.7; text-shadow: 0 1px 24px rgba(0,0,0,0.7); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==============================================
   TRUST BAR
   ============================================== */
.trust-bar {
  background: var(--yellow);
  padding: 0;
  overflow: hidden;
}
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 32px;
}
.trust-item {
  text-align: center;
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid rgba(0,0,0,0.18);
}
.trust-item:last-child { border-right: none; }
.trust-item-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

/* ==============================================
   SERVICES GRID
   ============================================== */
.services-section { background: var(--dark); }
.services-section > .container > h2 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); margin-top: 4px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}
.service-card {
  background: var(--black);
  padding: 44px 38px 40px;
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
.service-card:hover { background: var(--card); }
.service-card:hover::after { transform: scaleX(1); }
.service-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 36px;
  display: block;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; color: var(--white); text-transform: uppercase; letter-spacing: -0.01em; }
.service-card p { font-size: 0.92rem; color: var(--gray); margin-bottom: 26px; line-height: 1.65; flex-grow: 1; }
.service-card-arrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.25s;
}
.service-card:hover .service-card-arrow { gap: 16px; }

/* ==============================================
   STORY SECTION
   ============================================== */
.story-section { background: var(--black); }
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 96px;
  align-items: start;
}
.story-left h2 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); line-height: 0.94; }
.story-right p { margin-bottom: 24px; font-size: 1.05rem; }
.story-right p:last-of-type { margin-bottom: 0; }
.story-quote {
  margin-top: 44px;
  padding: 32px 38px;
  border-left: 3px solid var(--yellow);
  background: var(--card);
  position: relative;
}
.story-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
}

/* ==============================================
   CTA BANNER
   ============================================== */
.cta-banner { background: var(--yellow); padding: 96px 0; position: relative; overflow: hidden; }
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 88px 100%;
  pointer-events: none;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.cta-banner h2 { color: var(--black); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 0.96; font-weight: 900; letter-spacing: -0.02em; }

/* ==============================================
   SERVICE PAGE HERO
   ============================================== */
.service-hero {
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: 0;
}
.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 90% at 20% 100%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 100%, #000 20%, transparent 75%);
}
.service-hero-glow {
  position: absolute;
  left: -5%;
  top: 20%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(245,193,0,0.09) 0%, transparent 62%);
  pointer-events: none;
}
.service-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 72px 32px 48px;
}
.service-hero h1 { margin-bottom: 22px; font-size: clamp(3rem, 8vw, 6.4rem); }
.service-hero .hero-sub { max-width: 620px; }

/* ==============================================
   SERVICE FEATURE IMAGE (optional, between hero + overview)
   ============================================== */
.service-feature {
  background: var(--dark);
  padding: 0 0 56px;
}
.service-feature-img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 45%;
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .service-feature { padding: 0 0 40px; }
  .service-feature-img { height: 220px; }
}

/* ==============================================
   SERVICE OVERVIEW
   ============================================== */
.service-overview { background: var(--black); }
.service-overview-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 88px;
  align-items: start;
}
.service-overview p { margin-bottom: 20px; }
.service-overview p:last-child { margin-bottom: 0; }

.benefits-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  position: sticky;
  top: calc(var(--nav-height) + 28px);
}
.benefits-box::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--yellow);
  margin-bottom: 26px;
}
.benefits-box h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--light-gray);
  line-height: 1.5;
}
.benefit-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  background: var(--yellow);
  margin-top: 8px;
  transform: rotate(45deg);
}

/* ==============================================
   SERVICE OPTIONS
   ============================================== */
.service-options { background: var(--dark); }
.service-options > .container > h2 { margin-top: 4px; font-size: clamp(2.2rem, 5vw, 4rem); }
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}
.option-card {
  background: var(--black);
  padding: 40px 34px;
  transition: background 0.25s;
  position: relative;
}
.option-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--yellow);
  transition: width 0.3s ease;
}
.option-card:hover { background: var(--card); }
.option-card:hover::after { width: 100%; }
.option-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--white);
}
.option-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* ==============================================
   ABOUT PAGE
   ============================================== */
.about-hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 100%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 100%, #000 20%, transparent 75%);
}
.about-hero-glow {
  position: absolute;
  right: 0; top: 0;
  width: 48vw; height: 100%;
  background: radial-gradient(ellipse at right center, rgba(245,193,0,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px;
}

.about-story { background: var(--black); }
.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 36px;
}
.about-lead span { color: var(--yellow); }
.about-story p { font-size: 1.02rem; }

.pillars-section { background: var(--dark); }
.pillars-section > .container > h2 { margin-top: 4px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 56px;
}
.pillar-card {
  background: var(--black);
  padding: 48px 40px;
  transition: background 0.25s;
}
.pillar-card:hover { background: var(--card); }
.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 28px;
  display: block;
}
.pillar-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 16px; }
.pillar-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.65; margin: 0; }

/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-page { background: var(--black); padding-top: calc(var(--nav-height) + 96px); padding-bottom: 120px; }
.contact-header { margin-bottom: 76px; }
.contact-header h1 { margin-bottom: 22px; }
.contact-header p { font-size: 1.1rem; color: var(--light-gray); max-width: 500px; }
.contact-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }

.contact-info-block { position: sticky; top: calc(var(--nav-height) + 28px); }
.contact-detail { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.contact-detail-item { display: flex; flex-direction: column; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.contact-detail-value { font-size: 1.05rem; color: var(--white); line-height: 1.5; }
.contact-detail-value a { color: var(--white); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--yellow); }

/* Form */
.contact-form { background: var(--card); border: 1px solid var(--border); padding: 52px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 26px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #5A5A60; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow); }
.form-group textarea { resize: vertical; min-height: 140px; }

.services-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--light-gray);
  cursor: pointer;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1px solid var(--border);
  transition: border-color 0.18s, background 0.18s;
}
.check-label:hover { border-color: var(--gray); }
.check-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--yellow);
  cursor: pointer;
  flex-shrink: 0;
}
.form-submit { width: 100%; padding: 19px; font-size: 0.82rem; margin-top: 8px; justify-content: center; }
.form-success {
  background: rgba(245,193,0,0.08);
  border: 1px solid rgba(245,193,0,0.45);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
}
.form-success p { color: var(--yellow); font-weight: 500; font-family: var(--font-mono); letter-spacing: 0.04em; margin: 0; }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 88px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 60px;
  margin-bottom: 64px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  display: block;
}
.footer-logo span { color: var(--yellow); }
.footer-tagline { font-size: 0.9rem; color: var(--gray); line-height: 1.65; max-width: 280px; margin: 0; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 22px;
  display: block;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-links a { font-size: 0.9rem; color: var(--gray); transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-contact-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.footer-contact-val { font-size: 0.9rem; color: var(--gray); line-height: 1.5; }
.footer-contact-val a { color: var(--gray); transition: color 0.2s; }
.footer-contact-val a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: #56565C; }
.footer-social { display: flex; gap: 24px; }
.footer-social a { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); transition: color 0.2s; }
.footer-social a:hover { color: var(--yellow); }

/* ==============================================
   PAGE TRANSITION OVERLAY
   ============================================== */
.ts-overlay {
  position: fixed;
  inset: 0;
  background: var(--yellow);
  z-index: 9999;
  transform: translateX(-100%);
  pointer-events: none;
}
.ts-overlay.entering { animation: tsEnter 0.28s cubic-bezier(0.76,0,0.24,1) forwards; }
.ts-overlay.leaving { animation: tsLeave 0.28s cubic-bezier(0.76,0,0.24,1) forwards; }
@keyframes tsEnter { from { transform: translateX(-100%); } to { transform: translateX(0%); } }
@keyframes tsLeave { from { transform: translateX(0%); } to { transform: translateX(100%); } }

/* ==============================================
   FADE IN
   ============================================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  section { padding: 88px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner, .about-story-inner, .service-overview-inner { grid-template-columns: 1fr; gap: 52px; }
  .benefits-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .contact-body { grid-template-columns: 1fr; gap: 52px; }
  .contact-info-block { position: static; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  section { padding: 72px 0; }
  .nav-inner { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* --- Hero --- */
  .hero-content {
    padding-left: 22px;
    padding-right: 22px;
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 72px;
  }
  .hero {
    background-image:
      linear-gradient(to bottom, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.3) 20%),
      linear-gradient(to top, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.35) 55%, rgba(8,8,10,0.45) 100%),
      url('../assets/hero-car.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center 35%;
    overflow: visible;
  }
  /* fix: line-height 0.9 clips uppercase letters behind overflow:hidden on mobile */
  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
  }
  .hero-sub { font-size: 1rem; }
  .hero-stripe { width: 5px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* --- Service page hero --- */
  .service-hero {
    min-height: 52vh;
    overflow: visible;
  }
  .service-hero-content { padding: 56px 22px 40px; }
  .service-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 1.05;
  }

  /* --- About hero --- */
  .about-hero-content { padding: 72px 22px 48px; }
  .about-hero { overflow: visible; }

  /* --- General h1/h2 line-height on mobile --- */
  h1 { line-height: 1.05; }
  h2 { line-height: 1.08; }
  .cta-banner h2 { line-height: 1.05; }

  /* --- Other layout --- */
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar .container { flex-direction: column; padding: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.18); width: 100%; padding: 20px 0; }
  .trust-item:last-child { border-bottom: none; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .services-checkboxes { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.2rem; }
  .service-hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .ts-overlay { display: none; }
  html { scroll-behavior: auto; }
}
