/* ==========================================================================
   AUTO BEAT — Performance Garage UI
   Motorsport editorial system: light showroom canvas with carbon-black hero,
   header and footer bands. Speed Yellow (#ffc000) is the single accent.
   Sharp 0-radius geometry, condensed uppercase display type (Barlow Condensed),
   hazard-stripe details. No shadows — depth comes from surface contrast.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --line: #e3e3e0;
  --line-strong: #c9c9c5;
  --ink: #17181a;
  --ink-soft: #5b5c60;
  --ink-faint: #8e8f93;
  --black: #0b0b0c;
  --dark-metal: #17171a;
  --dark-line: rgba(255, 255, 255, 0.12);
  --white-soft: rgba(255, 255, 255, 0.75);
  --white-faint: rgba(255, 255, 255, 0.5);
  --yellow: #ffc000;
  --yellow-hover: #e8af00;
  --container: 1180px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --stripes: repeating-linear-gradient(
    -45deg,
    #ffc000 0 12px,
    #0b0b0c 12px 24px
  );
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }

::selection { background: var(--yellow); color: #000; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--yellow);
  flex-shrink: 0;
}
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 640px;
  margin-top: 16px;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.text-accent { color: inherit; font-weight: 600; box-shadow: inset 0 -6px 0 var(--yellow); }

/* --------------------------------------------------------------------------
   Buttons — sharp rectangles, motorsport
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}
.btn-primary:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn-ghost:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
}
.btn-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--black);
  border-bottom: 1px solid var(--dark-line);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white-faint);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}

.topbar-items { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-items a { color: var(--white-soft); }
.topbar-items a:hover { color: var(--yellow); }
.topbar-items .dot { color: var(--yellow); }
.topbar-hours { color: var(--white-faint); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Header / Navigation — black bar, yellow keyline
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 78px;
}

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-name em { font-style: italic; color: var(--yellow); }
.brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-top: 5px;
}

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.main-nav > ul > li { position: relative; }

.main-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 14px;
  color: var(--white-soft);
}
.main-nav a:hover { color: var(--yellow); }
.main-nav li.active > a { color: #fff; }
.main-nav li.active > a::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--yellow);
  margin-top: 3px;
}

.main-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--black);
  border: 1px solid var(--dark-line);
  border-top: 3px solid var(--yellow);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.18s ease;
}
.main-nav li:hover > .sub,
.main-nav li:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub a { padding: 10px 18px; }
.main-nav .sub a:hover { background: rgba(255, 192, 0, 0.1); color: var(--yellow); }

.has-sub > a::after { content: none; }
.has-sub > a > .caret { display: none; }

.header-cta {
  padding: 13px 24px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--dark-line);
  border-radius: 0;
  padding: 11px 10px;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--yellow);
  transition: all 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Home hero — dark, cinematic, condensed display type
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.66) 50%, rgba(5, 5, 6, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 24px;
  width: 100%;
}

.hero .eyebrow { color: var(--yellow); }
.hero .eyebrow::before { background: var(--yellow); }

.hero-copy { display: grid; max-width: 760px; }
.hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.hero-text.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.hero-text h1,
.hero-text h2 {
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
}
.hero-text p {
  font-size: 19px;
  color: var(--white-soft);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-dots {
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
  z-index: 3;
}
.hero-dots .container { display: flex; gap: 8px; }
.hero-dots button {
  width: 44px;
  height: 5px;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.25s ease;
  padding: 0;
  transform: skewX(-20deg);
}
.hero-dots button.active { background: var(--yellow); }

/* --------------------------------------------------------------------------
   Announcement band — speed yellow with hazard stripes
   -------------------------------------------------------------------------- */

.announce {
  background: var(--yellow);
  padding: 24px 0;
  position: relative;
}
.announce::before,
.announce::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--stripes);
}
.announce::before { top: 0; }
.announce::after { bottom: 0; }

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 36px;
  flex-wrap: wrap;
  text-align: center;
  padding: 8px 24px;
}
.announce p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  line-height: 1.15;
}
.announce p b { font-weight: 700; box-shadow: inset 0 -2px 0 #000; }
.announce .btn {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
  padding: 12px 24px;
  font-size: 16px;
}
.announce .btn:hover { background: #fff; border-color: #fff; color: #000; }

/* --------------------------------------------------------------------------
   Sections — showroom rhythm
   -------------------------------------------------------------------------- */

.section { padding: 100px 0; background: var(--paper); }
.section.tight { padding: 72px 0; }
.section.alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Feature cards — pit-board panels */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.feature-card {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 44px 36px 40px;
  position: relative;
  transition: background 0.2s ease;
}
.feature-card:last-child { border-right: none; }
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--yellow);
  transition: width 0.3s ease;
}
.feature-card:hover::before { width: 100%; }
.feature-card:hover { background: var(--paper-2); }

.feature-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-faint);
  display: block;
}
.feature-card:hover .feature-num { -webkit-text-stroke-color: var(--yellow); }

.feature-card h3 {
  font-size: 26px;
  margin: 20px 0 12px;
}
.feature-card p { color: var(--ink-soft); font-size: 15.5px; }

/* Owner / story split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split .visual img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.split p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16.5px; }
.split p b, .split p strong { color: var(--ink); }

blockquote.pull {
  border-left: 4px solid var(--yellow);
  padding: 8px 0 8px 24px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}
blockquote.pull cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: var(--yellow); letter-spacing: 4px; font-size: 15px; margin-bottom: 18px; }
.testimonial-card p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.testimonial-card h6 {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.testimonial-card h6::before { content: "// "; color: var(--yellow); }

/* Mission band — dark immersive */
.mission {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(6, 6, 7, 0.88), rgba(6, 6, 7, 0.88)),
    url("../images/slider/image_02.jpg") center/cover no-repeat;
}
.mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--stripes);
}
.mission .eyebrow { color: var(--yellow); justify-content: center; }
.mission h3 {
  font-size: clamp(36px, 5vw, 56px);
  font-style: italic;
  margin-bottom: 20px;
}
.mission p { color: var(--white-soft); max-width: 660px; margin: 0 auto 40px; font-size: 18px; }

/* --------------------------------------------------------------------------
   Sub-page hero — carbon band
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--black);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  bottom: -40px;
  width: 340px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 192, 0, 0.07) 0 14px,
    transparent 14px 40px
  );
  transform: skewX(-14deg);
  pointer-events: none;
}
.page-hero .crumbs {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 16px;
}
.page-hero .crumbs a { color: var(--white-soft); }
.page-hero .crumbs a:hover { color: var(--yellow); }
.page-hero .crumbs .sep { margin: 0 10px; color: var(--yellow); }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-style: italic;
}
.page-hero .page-lead { color: var(--white-soft); max-width: 620px; margin-top: 18px; font-size: 18px; }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease;
  position: relative;
}
.service-card:hover { border-color: var(--ink); }
.service-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.service-card:hover .thumb img { transform: scale(1.05); filter: grayscale(0) contrast(1.02); }
.service-card h4 {
  font-size: 22px;
  padding: 18px 24px 20px;
  position: relative;
}
.service-card h4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 34px;
  height: 3px;
  background: var(--yellow);
}

.cert-box {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  padding: 34px 38px;
  flex-wrap: wrap;
}
.cert-box img { width: 150px; background: #fff; padding: 12px; border: 1px solid var(--line); }
.cert-box p { color: var(--ink-soft); flex: 1; min-width: 260px; font-size: 16.5px; }
.cert-box p b { color: var(--ink); }

/* --------------------------------------------------------------------------
   Document lists (newsletter, limited time)
   -------------------------------------------------------------------------- */

.doc-list { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.doc-card:hover { border-color: var(--ink); background: var(--paper-2); }
.doc-card .doc-icon {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000;
  background: var(--yellow);
  padding: 9px 12px;
  line-height: 1;
}
.doc-card .doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 1;
}
.doc-card .doc-open {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.doc-card:hover .doc-open { color: var(--ink); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 96px 24px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
}
.empty-state::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--stripes);
}
.empty-state .glyph {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.empty-state h2 { font-size: clamp(34px, 4.4vw, 52px); font-style: italic; margin-bottom: 14px; }
.empty-state p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 14px; margin: 26px 0; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 16.5px;
}
.check-list li b { color: var(--ink); }
.check-list li i { color: var(--ink-faint); }
.check-list li::before {
  content: "✓";
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: translateY(3px);
}

/* Discount tiles */
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.tile {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--line-strong);
  padding: 34px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: var(--ink); border-bottom-color: var(--yellow); transform: translateY(-4px); }
.tile .eyebrow { margin-bottom: 12px; }
.tile h3 { font-size: 30px; font-style: italic; margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 15.5px; }
.tile .tile-cta {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--yellow);
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-gallery { display: grid; gap: 24px; }
.about-gallery .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-gallery img {
  border: 1px solid var(--line);
  width: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.map-wrap {
  border-bottom: 3px solid var(--yellow);
  line-height: 0;
  background: var(--paper-2);
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(1) contrast(1.02);
}

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 72px; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  padding: 32px 34px;
}
.contact-card h5 {
  font-size: 22px;
  margin-bottom: 14px;
}
.contact-card p { color: var(--ink-soft); font-size: 16.5px; }
.contact-card a { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--yellow); }
.contact-card a:hover { box-shadow: inset 0 -8px 0 var(--yellow); }

.contact-form { display: grid; gap: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-col { display: grid; gap: 24px; align-content: start; }

.text-input, .contact-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 15px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { height: 100%; min-height: 186px; resize: vertical; }
.text-input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--yellow);
}
.text-input::placeholder, .contact-form textarea::placeholder { color: var(--ink-faint); }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-footer p { color: var(--ink-soft); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.page-404 {
  text-align: center;
  padding: 130px 24px;
  background: var(--paper);
}
.page-404 .code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  position: relative;
  display: inline-block;
}
.page-404 h2 { font-size: clamp(30px, 4vw, 44px); font-style: italic; margin: 22px 0 12px; }
.page-404 h2 { box-shadow: none; }
.page-404 p { color: var(--ink-soft); margin-bottom: 36px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer-contact-strip {
  background: var(--yellow);
  padding: 34px 0;
  position: relative;
}
.footer-contact-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--stripes);
}
.footer-contact-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}
.strip-item { display: flex; align-items: center; gap: 18px; justify-content: center; }
.strip-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--yellow);
  font-size: 20px;
}
.strip-item p { color: rgba(0, 0, 0, 0.72); font-size: 15px; font-weight: 500; }
.strip-item p b {
  color: #000;
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--dark-metal);
  color: var(--white-faint);
  padding: 76px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  padding-bottom: 60px;
}
.footer-col h6 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 22px;
}
.footer-col h6::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: var(--yellow);
  margin-top: 10px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col li { color: var(--white-faint); font-size: 14.5px; }
.footer-col li span { color: rgba(255, 255, 255, 0.35); margin-right: 6px; }
.footer-col a { color: var(--white-soft); }
.footer-col a:hover { color: var(--yellow); }

.footer-services li::before { content: "›"; color: var(--yellow); margin-right: 10px; }

.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--dark-line);
  color: var(--white-faint);
  transition: all 0.18s ease;
}
.footer-tags a:hover { border-color: var(--yellow); color: var(--yellow); }

.payment-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.payment-row img {
  width: 44px;
  height: 27px;
  object-fit: cover;
  opacity: 0.85;
}

.hours-list li { display: flex; justify-content: space-between; gap: 12px; }
.hours-list li span { color: rgba(255, 255, 255, 0.35); }

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.site-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
}
.site-credit img { width: 13px; height: 13px; }
.site-credit:hover { color: #fff; }

@media (max-width: 560px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #000;
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--black); color: var(--yellow); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-cta { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-card:last-child { border-bottom: none; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar-hours { display: none; }

  .menu-toggle { display: flex; margin-left: auto; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--black);
    border-left: 3px solid var(--yellow);
    padding: 96px 28px 40px;
    margin-left: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { font-size: 22px; padding: 12px 10px; }
  .main-nav li.active > a::after { width: 30px; }

  .main-nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    background: transparent;
    padding: 0 0 6px 20px;
    min-width: 0;
  }
  .main-nav .sub a { font-size: 17px; color: var(--white-faint); }

  .split, .form-grid, .contact-cards, .tile-row,
  .footer-contact-strip .container { grid-template-columns: 1fr; }
  .split { gap: 44px; }
  .strip-item { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 80px 24px 110px; }
  .section { padding: 76px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-items { gap: 12px; font-size: 11px; }
  .brand-name { font-size: 26px; }

  .hero { min-height: 0; }
  .hero-content { padding: 64px 24px 96px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 14px; }
  .hero-text h1,
  .hero-text h2 { font-size: clamp(36px, 11.5vw, 52px); margin-bottom: 18px; }
  .hero-text p { font-size: 16.5px; margin-bottom: 28px; }
  .hero-text .btn { width: 100%; justify-content: center; }
  .hero-dots { bottom: 30px; }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.9) 0%, rgba(5, 5, 6, 0.72) 100%);
  }

  .announce p { font-size: 18px; }
  .announce .btn { width: 100%; justify-content: center; }
  .section-title { font-size: clamp(34px, 9vw, 44px); }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 98;
}
.nav-overlay.visible { opacity: 1; visibility: visible; }
