/*
 * Seibi Garage — Landing & Feature Pages
 * Clean consolidated styles (drop-in replacement)
 */

/* ---------- Reset / Base ---------- */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: inherit; }

:root {
  --heading-font: "Russo One", sans-serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";

  /* Set your screen-centered background image here */
  --bg-image: url('/assets/uploads/background.png');
}

/* Layout + typography base */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--body-font);
  line-height: 1.6;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Optional fallback if the image hasn't loaded yet */
  background: #0a0f1a;
}

main { flex: 1; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1.1em 1.15em;
  padding: 0;
  list-style: disc;
}

li { margin: 0.35em 0; }

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

/* Screen-centered fixed background layer */
body::before {
  content: "";
  position: fixed;          /* anchors to viewport */
  inset: 0;                 /* covers the screen */
  z-index: 0;               /* behind content */
  pointer-events: none;
  background:
    /* readability overlay — tweak opacity if needed */
    linear-gradient(rgba(10,15,26,.55), rgba(10,15,26,.75)),
    var(--bg-image) center center / cover no-repeat;
  will-change: transform;
  transform: translateZ(0);
}

/* Ensure content paints above the bg layer */
header, main, footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, .nav a, .cta-btn {
  font-family: var(--heading-font);
}

/* ---------- Containers ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background-color: rgba(30,30,30,0.9);
  backdrop-filter: saturate(120%) blur(6px);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Single, non-duplicated logo sizing rule */
.site-header .logo { height: 56px; width: auto; vertical-align: middle; }
@media (min-width: 768px) { .site-header .logo { height: 80px; } }
@media (min-width: 1200px) { .site-header .logo { height: 120px; } }

.nav a {
  color: #d5d5d5;
  margin-left: 0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-features {
  position: relative;
}

.nav-features summary {
  list-style: none;
  cursor: pointer;
  color: #d5d5d5;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(142,45,226,0.35);
  background: rgba(0,0,0,0.35);
}

.nav-features[open] summary { background: rgba(0,0,0,0.5); }

.nav-menu {
  position: absolute;
  right: 0;
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(142,45,226,0.4);
  border-radius: 8px;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  z-index: 12;
}

.nav-menu li { margin: 0; }

.btn-link {
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(142,45,226,0.4);
  text-decoration: none;
  background: rgba(142,45,226,0.15);
}
.nav a:hover {
  color: #ff007f;
  text-shadow: 0 0 6px rgba(255, 0, 127, 0.6);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
}
.hero::before {
  content: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) skewX(-10deg) translateX(5%);
  font-size: 40vw;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 0, 255, 0.06);
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-shadow:
    0 0 20px rgba(255,0,255,0.3),
    0 0 40px rgba(255,0,255,0.2),
    0 0 80px rgba(255,0,255,0.1);
  pointer-events: none;
  z-index: -1;
}
.hero-container h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #f5f5f5;
  text-shadow:
    0 0 6px rgba(255,0,128,0.8),
    0 0 12px rgba(255,0,255,0.8);
}
.hero-container .subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #cfcfcf;
  text-shadow: 0 0 4px rgba(128, 0, 255, 0.6);
}
.coming-soon {
  font-size: 2.75rem;
  margin-top: 1rem;
  font-weight: 700;
  color: #f5f5f5;
  text-shadow:
    0 0 6px rgba(255,0,128,0.8),
    0 0 12px rgba(255,0,255,0.8);
}
.cta-btn {
  background-image: linear-gradient(135deg, #ff007f, #8e2de2);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 8px #ff007f, 0 0 16px #8e2de2;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  background-image: linear-gradient(135deg, #8e2de2, #ff007f);
  transform: translateY(-2px);
  box-shadow: 0 0 12px #ff007f, 0 0 24px #8e2de2;
}

/* ---------- Features (homepage + feature pages) ---------- */
.features-section {
  padding: 3rem 0;
  background-color: transparent;
}
.features-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #f5f5f5;
  text-shadow:
    0 0 6px rgba(142,45,226,0.8),
    0 0 12px rgba(142,45,226,0.4);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.section-shell { padding: 3rem 0; }

.section-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-header p { color: #c2c2c2; margin: 0.25rem 0 0; }
a.feature-card {
  display: block;
  background-color: rgba(0,0,0,0.4);
  padding: 1.8rem;
  border-radius: 10px;
  border: 1px solid rgba(142,45,226,0.4);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.3s, border-color 0.3s;
}
a.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 12px rgba(142,45,226,0.8),
    0 0 24px rgba(142,45,226,0.4);
  border-color: rgba(142,45,226,0.8);
}
.feature-card h3 {
  margin: 0 0 0.5rem;
  color: #00E1FF;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 4px rgba(0, 225, 255, 1),
    0 0 12px rgba(0, 225, 255, 0.8),
    0 0 24px rgba(0, 225, 255, 0.6);
}
.feature-card p {
  margin: 0;
  color: #d5d5d5;
  font-size: 1rem;
}

/* ---------- Feature pages (scoped tweaks) ---------- */
body.feature-page .container { max-width: 1280px; }
body.feature-page .hero { padding: 96px 0 40px; }
body.feature-page .hero h1 { font-size: clamp(34px,4.2vw,58px); }
body.feature-page .subtitle { font-size: clamp(16px,1.35vw,20px); opacity: 0.95; }

/* Single-column stack for feature pages (cleaned: no conflicting rule) */
body.feature-page .features-section { padding: 72px 0 144px; }
body.feature-page #features .features-grid { grid-template-columns: 1fr; row-gap: 48px; }

body.feature-page .feature-card {
  padding: clamp(28px, 3.2vw, 48px);
}
body.feature-page .feature-card h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.3vw, 32px);
}
body.feature-page .feature-card ul {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.85;
  margin-left: 1.1em;
}
body.feature-page .feature-card li { margin: 0 0 14px 0; }
body.feature-page .feature-card li::marker {
  font-size: 1.1em;
  color: #ffffffcc;
}
body.feature-page .cta-btn {
  display: inline-block;
  margin-top: 80px;
  padding: 0.9rem 2rem;
}

/* ---------- Waitlist ---------- */
.waitlist-section { padding: 3rem 0; text-align: center; }
.waitlist-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #f5f5f5;
  text-shadow:
    0 0 6px rgba(142,45,226,0.8),
    0 0 12px rgba(142,45,226,0.4);
}
.waitlist-section p { margin-bottom: 1.5rem; color: #b3b3b3; }
.waitlist-form {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem;
}
.waitlist-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(142,45,226,0.4);
  border-radius: 6px;
  max-width: 300px;
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.waitlist-form button {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border: none; border-radius: 6px;
  background-image: linear-gradient(135deg,#ff007f,#8e2de2);
  color: #fff; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 8px #ff007f,0 0 16px #8e2de2;
  transition: transform 0.2s, box-shadow 0.2s;
}
.waitlist-form button:hover {
  background-image: linear-gradient(135deg,#8e2de2,#ff007f);
  transform: translateY(-2px);
  box-shadow: 0 0 12px #ff007f,0 0 24px #8e2de2;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: rgba(0,0,0,0.5);
  padding: 1rem 0;
  text-align: center;
}
.site-footer p { margin: 0; color: #8e8e8e; font-size: 0.875rem; }

/* ---------- Responsive tweaks ---------- */
@media(min-width:768px){
  .hero-container h1 { font-size: 3rem; }
  .hero-container .subtitle { font-size: 1.5rem; }
}

@media (max-width: 900px) {
  .header-container { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .nav-features { width: 100%; }
  .nav-features summary { width: 100%; text-align: left; }
  .nav-menu { position: static; width: 100%; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
  .btn-link { width: 100%; text-align: center; }
}

/* Headings for subtitles + feature body to use Russo One */
.subtitle,
.feature-card,
.feature-card p,
.feature-card ul,
.feature-card li {
  font-family: var(--heading-font, "Russo One", sans-serif);
}

/* ---------- Parts marketplace fitment rails ---------- */
.parts-fitment {
  padding: 2.5rem 0 1.5rem;
}

.parts-fitment h2 {
  margin: 0 0 0.5rem;
  text-align: left;
  color: #f5f5f5;
  text-shadow:
    0 0 6px rgba(142,45,226,0.8),
    0 0 12px rgba(142,45,226,0.4);
}

.parts-fitment .section-lede {
  margin: 0 0 1.75rem;
  color: #b3b3b3;
}

.fitment-form {
  display: grid;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(142,45,226,0.4);
  border-radius: 12px;
  padding: 1.25rem;
}

.fitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.fitment-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
  color: #e6e6e6;
}

.fitment-row select,
.fitment-row input[type="number"] {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(142,45,226,0.5);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 100%;
}

.fitment-row option { color: #000; }

.field-hint {
  font-size: 0.85rem;
  color: #a0a0a0;
  font-weight: 400;
}

.fitment-actions {
  display: flex;
  justify-content: flex-start;
}

.parts-status {
  margin: 1rem 0 0.5rem;
  color: #d5d5d5;
  font-weight: 600;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.part-card {
  list-style: none;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(142,45,226,0.4);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.part-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f5f5f5;
}

.part-meta {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.fitment-pill,
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.35rem;
}

.fitment-pill {
  background: rgba(0, 225, 255, 0.1);
  border: 1px solid rgba(0, 225, 255, 0.4);
  color: #9eeaff;
}

.confidence-badge {
  background: rgba(142,45,226,0.15);
  border: 1px solid rgba(142,45,226,0.4);
  color: #f5e6ff;
}

.confidence-high { border-color: rgba(0, 200, 120, 0.6); color: #9cffc8; background: rgba(0, 200, 120, 0.12); }
.confidence-medium { border-color: rgba(255, 184, 77, 0.7); color: #ffdf9c; background: rgba(255, 184, 77, 0.14); }
.confidence-low { border-color: rgba(255, 99, 132, 0.7); color: #ffc6d2; background: rgba(255, 99, 132, 0.14); }

.parts-empty {
  text-align: center;
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px dashed rgba(142,45,226,0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.parts-empty p { margin: 0.35rem 0; }

.noscript-note {
  color: #ffdf9c;
  margin-top: 0.75rem;
}
