/* Davis Hot Rods — Collinsville, OK */
:root {
  --orange: #e06810;
  --orange-hot: #f07820;
  --orange-deep: #b8500c;
  --black: #0a0a0b;
  --charcoal: #121214;
  --steel-900: #1a1b1e;
  --steel-800: #24262b;
  --steel-600: #5c6169;
  --steel-400: #9aa0a8;
  --cream: #efebe3;
  --white: #f6f3ec;
  --line: rgba(234, 232, 226, 0.12);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  --header-h: 4.25rem;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange-hot); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; line-height: 0.95; margin: 0; color: var(--white); }
h2 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h3 { font-size: 1.75rem; letter-spacing: 0.06em; }

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--orange); color: var(--black); padding: 0.5rem 0.9rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--black); }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--cream); text-decoration: none;
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange); }
.nav-toggle {
  display: none; background: none; border: 0; width: 2.5rem; height: 2.5rem;
  padding: 0.55rem; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--cream); margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 3px solid var(--orange);
  background: var(--black);
}
.hero-bg, .hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero picture { display: block; }
.hero-bg {
  object-fit: cover;
  object-position: center 40%;
  height: 100%;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 8rem 0 3.5rem;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 11, 0.88) 0%,
    rgba(10, 10, 11, 0.72) 42%,
    rgba(10, 10, 11, 0.15) 75%,
    rgba(10, 10, 11, 0.2) 100%
  );
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 1.05rem;
}
.hero-logo {
  width: min(16rem, 70vw);
  height: auto;
  margin: 0 0 0.6rem -0.3rem;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.65));
}
.hero-tag {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--cream);
  font-size: 1.125rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 1.35rem; border: 1px solid transparent;
  font-size: 1.05rem; line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--orange-hot); color: var(--black);
}
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(246,243,236,0.45); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--orange); color: var(--orange);
}
.icon { flex: none; }

/* Sections */
.section { padding: 5rem 0 5.25rem; position: relative; }
.section-index {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  color: var(--orange);
  font-size: 1rem;
}
.section-intro {
  margin: 0.85rem 0 2.5rem;
  color: var(--steel-400);
  max-width: 36rem;
  font-size: 1.125rem;
}

/* Builds */
.builds { background: var(--black); }
.build-group { margin-bottom: 2.75rem; }
.build-group:last-child { margin-bottom: 0; }
.build-group h3 {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.tile {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--steel-900);
  aspect-ratio: 1;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.45s ease;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 0.8rem 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }

/* Shop strip */
.shop-section { background: var(--charcoal); }
.shop-strip {
  grid-template-columns: repeat(4, 1fr);
}

/* Services */
.services { background: var(--black); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.service-card {
  grid-column: span 2;
  background: var(--steel-900);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
}
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--orange);
  pointer-events: none;
}
.service-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.service-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.service-num {
  display: block;
  font-family: var(--font-display);
  color: var(--orange);
  letter-spacing: 0.16em;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.service-card p { margin: 0.7rem 0 0; color: var(--steel-400); }

/* About */
.about { background: var(--charcoal); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { color: var(--steel-400); max-width: 36rem; font-size: 1.125rem; }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-photo {
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  max-width: 26rem;
  justify-self: end;
  width: 100%;
}
.about-photo img { width: 100%; height: auto; object-fit: cover; max-height: 28rem; object-position: center 40%; }

/* Contact */
.contact {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(224, 104, 16, 0.1), transparent 60%),
    var(--black);
  border-top: 3px solid var(--orange);
}
.contact-lead {
  font-size: 1.25rem;
  color: var(--cream);
  margin: 0.85rem 0 1.5rem;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.contact-details dt {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.contact-details dd { margin: 0; color: var(--steel-400); }
.contact-details a { color: var(--cream); text-decoration: none; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--orange); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  background: var(--black);
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
}
.footer-brand, .footer-credit { margin: 0; color: var(--steel-600); font-size: 0.92rem; }
.footer-brand a { color: var(--steel-400); text-decoration: none; }
.footer-brand a:hover, .footer-brand a:focus-visible { color: var(--orange); }
.footer-credit a { color: var(--steel-400); }
.footer-credit a:hover { color: var(--orange); }

/* Lightbox */
.lightbox {
  width: min(96vw, 90rem);
  height: min(96vh, 56rem);
  max-width: none; max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(0,0,0,0.88); }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.lightbox-caption { margin: 0; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox-close, .lightbox-nav {
  background: transparent; border: 0; color: var(--cream);
  cursor: pointer; font-size: 2rem; line-height: 1; padding: 0.2rem 0.55rem;
}
.lightbox-close:hover, .lightbox-nav:hover { color: var(--orange); }
.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: calc(100% - 3.2rem);
  padding: 0.5rem;
}
.lightbox-stage img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.page-404 { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.page-404 h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0.5rem; }
.page-404 p { color: var(--steel-400); margin: 0 0 1.5rem; }

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .about-photo { justify-self: start; max-width: 22rem; }
  .service-grid, .contact-details { grid-template-columns: 1fr 1fr; }
  .service-card { grid-column: span 1; }
  .gallery, .shop-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: min(78vh, 40rem); }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.85) 70%, rgba(10,10,11,0.94) 100%);
    padding: 10rem 0 2.5rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: rgba(10,10,11,0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 560px) {
  .tile-cap { opacity: 1; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
}
