:root {
  --bg: #090b12;
  --surface: #131824;
  --text: #f2f4fb;
  --muted: #b7bec7;
  --primary: #1684ff;
  --primary-dark: #0c57ad;
  --border: #363b41;
  --signal: #d1d6dc;
  --accent: #278cff;
  --ink: #070910;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(#91beff12 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  font: 400 1rem/1.6 "IBM Plex Sans", sans-serif;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, .eyebrow, .brand, .button, .ride-number, .ride-link {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0;
}
h1, h2, h3 { line-height: 1.1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem max(1.5rem, calc((100vw - 1320px) / 2));
  background: #080a11;
  border-bottom: 2px solid var(--accent);
}

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand-image { display: block; width: 88px; height: 88px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a, .dropdown-toggle { color: var(--text); font-weight: 700; }
.nav-links a:hover, .dropdown:hover .dropdown-toggle { color: var(--accent); }
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 160px;
  flex-direction: column;
  padding: 0.5rem 0;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 5px 5px 0 var(--primary);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown-menu.is-open { display: flex; }
.dropdown-menu a { padding: 0.6rem 0.9rem; }
.dropdown-menu a:hover { color: var(--ink); background: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--primary);
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.button:hover { color: var(--ink); background: var(--signal); box-shadow: 2px 2px 0 var(--primary); transform: translate(2px, 2px); }
.button-secondary { color: var(--text); background: var(--surface); border: 2px solid var(--accent); }
.button-small { padding: 0.65rem 0.9rem; font-size: 1rem; }

main { width: min(1320px, calc(100% - 3rem)); margin: 0 auto; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100vw;
  min-height: min(740px, calc(100vh - 90px));
  align-items: center;
  margin-left: calc((min(1320px, 100vw - 3rem) - 100vw) / 2);
  padding: 5rem max(1.5rem, calc((100vw - 1320px) / 2));
  overflow: hidden;
  color: #f2f4fb;
  background: #151722;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #090b12f2 0%, #090b12c7 44%, #090b1224 100%), linear-gradient(0deg, #090b128c, transparent 28%);
  content: "";
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 34px, #ffffff08 35px 36px);
  content: "";
  pointer-events: none;
}
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; animation: hero-arrive 900ms ease-out both; }
.hero-content { width: min(740px, 100%); animation: content-arrive 700ms 100ms ease-out both; }
.eyebrow { margin: 0 0 0.75rem; color: var(--primary); font-size: 1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { margin: 0; font-size: 6.5rem; font-weight: 900; line-height: 0.82; text-transform: uppercase; }
.hero h1 span { color: var(--signal); }
.hero-text { max-width: 520px; margin: 1.5rem 0 0; color: #f2f4fb; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2rem; }
.hero-actions .button-secondary { color: #f2f4fb; background: #10131dbb; border-color: var(--primary); }
.hero-actions .button-secondary:hover { color: var(--ink); background: var(--signal); }
.hero-caption {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1320px) / 2));
  bottom: 1.4rem;
  left: max(1.5rem, calc((100vw - 1320px) / 2));
  display: flex;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid #ffffff70;
  color: #f2f4fb;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section { padding: 4.75rem 0; }
.section-heading { max-width: 700px; margin-bottom: 2rem; }
.section-heading h1, .section-heading h2, .about-section h1 { margin: 0 0 0.9rem; font-size: 3.5rem; font-weight: 900; line-height: 0.95; text-transform: uppercase; }
.section-heading > p:last-child { max-width: 610px; color: var(--muted); }
.services-title { color: var(--text); }
.ride-section { padding-bottom: 5rem; }
.ride-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; align-items: end; max-width: none; }
.ride-heading .eyebrow { grid-column: 1 / -1; }
.ride-heading h2 { margin: 0; }
.ride-heading > p:last-child { margin: 0 0 0.3rem; }
.ride-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ride-card { position: relative; display: flex; min-height: 390px; flex-direction: column; justify-content: flex-end; padding: 1.3rem; overflow: hidden; color: white; background: var(--ink); border: 2px solid var(--accent); }
.ride-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, #090b12e8, transparent); content: ""; }
.ride-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ride-card > *:not(img) { position: relative; z-index: 1; }
.ride-number { margin-bottom: 0.3rem; color: var(--signal); font-size: 0.95rem; font-weight: 800; }
.ride-card h3 { margin: 0; font-size: 2.5rem; font-weight: 900; line-height: 0.98; text-transform: uppercase; }
.ride-link { margin-top: 0.75rem; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.garage-band { margin: 0 calc((min(1320px, 100vw - 3rem) - 100vw) / 2); padding: 3.5rem max(1.5rem, calc((100vw - 1320px) / 2)); color: white; background: var(--primary); border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); text-align: center; }
.garage-band .eyebrow { color: var(--signal); }
.garage-band h2 { margin: 0 0 1.2rem; font-size: 3.5rem; font-weight: 900; line-height: 0.95; text-transform: uppercase; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: none; margin: 0 auto; }
.service-menu-grid, .service-page-grid, .about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .hero-card, .about-box, .contact-form { padding: 1.5rem; background: var(--surface); border: 2px solid var(--accent); border-radius: 0; box-shadow: 4px 4px 0 #1684ff38; }
.card { text-align: left; }
.card h3 { margin-top: 0; font-size: 1.65rem; font-weight: 800; text-transform: uppercase; }
.card p { color: var(--muted); }
.card .button-secondary { margin-top: 0.5rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.service-price { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 0.55rem; margin-top: auto; padding: 0.65rem 0.85rem; color: var(--text); background: var(--ink); border-left: 4px solid var(--primary); }
.service-price-label { grid-column: 1 / -1; color: var(--signal); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.service-price strong { color: var(--primary); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.service-price-detail { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.service-detail-section + .service-detail-section { margin-top: 4rem; }
.service-image { width: 100%; height: 250px; object-fit: cover; border: 1px solid var(--accent); background: var(--bg); }
.contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-cards .card { display: flex; min-width: 0; min-height: 0; flex-direction: column; align-items: center; text-align: center; }
.contact-cards .card p { max-width: 100%; overflow-wrap: anywhere; }
.social-card { grid-column: 1 / -1; }
.social-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem; width: 100%; }
.social-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text); font-weight: 700; text-align: left; }
.social-item:hover { color: var(--accent); }
.social-logo { display: block; width: 36px; height: 36px; flex: 0 0 auto; color: #fff; }
.social-copy { display: grid; gap: 0.1rem; }
.social-status { justify-self: center; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.hours-card { width: min(100%, 360px); margin: 2rem auto 0; padding: 1rem 1.25rem; text-align: center; }
.hours-card p { margin: 0.3rem 0; }
.hours-card .hours-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.contact-note { max-width: 700px; margin: 1.5rem auto 0; font-weight: 600; text-align: center; }
.about-section { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
.about-section > div:first-child { max-width: 780px; }
.about-cards .card p { max-width: none; text-align: left; text-wrap: pretty; }
.contact-form { display: grid; gap: 0.85rem; max-width: 640px; }
.contact-form-full { max-width: 700px; margin: 2rem auto 0; }
.contact-form input, .contact-form textarea, .contact-form .upload-label { width: 100%; padding: 0.85rem 0.95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 0; font: inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .upload-label { display: block; color: var(--muted); }
.contact-form .upload-label input { margin-top: 0.5rem; padding: 0; border: 0; background: transparent; }
.site-footer { padding: 1.5rem; color: #f2f4fb; background: var(--ink); text-align: center; }
.site-footer p { margin: 0; }

@media (min-width: 1200px) {
  .ride-heading { grid-template-columns: minmax(0, 1fr) max-content; }
  .ride-heading > p:last-child { max-width: none; white-space: nowrap; }
  .services-intro { max-width: none; }
  .services-intro > p:last-child { max-width: none; white-space: nowrap; }
  .service-detail-section > .section-heading { max-width: none; }
  .service-detail-section > .section-heading > p:last-child { max-width: none; white-space: nowrap; }
}

@keyframes hero-arrive { from { transform: scale(1.04); opacity: 0.7; } to { transform: scale(1); opacity: 1; } }
@keyframes content-arrive { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 900px) {
  .nav-links { gap: 0.8rem; }
  .site-header { padding-right: 1.2rem; padding-left: 1.2rem; }
  .ride-card { min-height: 320px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; flex-wrap: wrap; gap: 0.5rem; }
  .brand-image { width: 66px; height: 66px; }
  .menu-toggle { display: flex; }
  .nav-links, .site-header .button-small { display: none; }
  .nav-links.open { display: flex; order: 4; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 0.5rem 0 0.25rem; border-top: 1px solid var(--border); }
  .nav-links.open > a, .nav-links.open .dropdown-toggle { display: block; padding: 0.75rem 0; }
  .nav-links.open .dropdown-menu { position: static; box-shadow: none; }
  .site-header .button-small { display: inline-flex; padding: 0.5rem 0.65rem; font-size: 0.87rem; }
  main { width: calc(100% - 2rem); }
  .hero { min-height: 670px; align-items: flex-start; margin-left: -1rem; padding: 4rem 1.25rem 5rem; }
  .hero::before { background: linear-gradient(90deg, #090b12e8, #090b1273 75%), linear-gradient(0deg, #090b12b0, transparent 55%); }
  .hero-image { object-position: 59% center; }
  .hero h1 { font-size: 4.5rem; }
  .hero-text { max-width: 440px; font-size: 1rem; }
  .hero-caption { right: 1.25rem; bottom: 1.2rem; left: 1.25rem; font-size: 0.65rem; }
  .hero-caption span:last-child { text-align: right; }
  .ride-heading { grid-template-columns: 1fr; gap: 0.35rem; }
  .ride-heading > p:last-child { margin-top: 0.6rem; }
  .ride-grid, .card-grid, .contact-cards { grid-template-columns: 1fr; }
  .ride-card { min-height: 340px; }
  .section { padding: 3.25rem 0; }
  .section-heading h1, .section-heading h2, .about-section h1 { font-size: 2.9rem; }
  .garage-band { margin-right: -1rem; margin-left: -1rem; padding: 2.75rem 1.25rem; }
  .garage-band h2 { font-size: 2.7rem; }
  .service-image { height: 280px; }
}

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