/* Valley Ridge Mechanical V2 - dark blue industrial theme */

:root {
  --bg: #05080c;
  --bg-2: #081017;
  --panel: #0d151d;
  --panel-2: #121b25;
  --border: #263544;
  --text: #f4f8fb;
  --muted: #aeb9c4;
  --accent: #1ea7e8;
  --accent-hover: #38b6f0;
  --accent-dark: #0b78b5;
  --shadow: 0 18px 45px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #0c1822 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
}

.site-header {
  background: rgba(4, 7, 10, .96);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header.compact .header-inner { min-height: 98px; }

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text);
}

.site-logo {
  display: block;
  width: 258px;
  max-width: 258px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(30,167,232,.22));
}

.brand-name {
  font-size: clamp(1.5rem, 2.4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.tagline {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  opacity: .9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .04em;
}

.main-nav a, .nav-link {
  color: var(--text);
  padding: 10px 0;
  border-bottom: 4px solid transparent;
}

.main-nav a:hover,
.main-nav .active,
.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  min-height: 390px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05), rgba(0,0,0,.35)),
    url("assets/hero-bg.svg") center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-content { max-width: 950px; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,.7);
}

.hero-subtitle {
  margin: 18px 0 18px;
  color: var(--accent);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto 32px;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.btn,
button,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 25px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-dark));
  color: white;
  border: 1px solid var(--accent);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(30,167,232,.18);
  cursor: pointer;
}

.btn:hover,
button:hover,
a.btn:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(30,167,232,.32);
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  text-transform: none;
}

.btn.outline:hover {
  background: rgba(30,167,232,.1);
  color: var(--accent-hover);
}

.hero-btn {
  font-size: 1.12rem;
  min-width: 300px;
}

.inventory-section {
  padding: 24px 0 52px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 370px) minmax(200px, 290px) minmax(250px, 360px);
  gap: 26px;
  align-items: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
}

.search-box { position: relative; }

input, select {
  width: 100%;
  min-height: 52px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(10,16,22,.82);
  color: var(--text);
  padding: 0 18px;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,167,232,.18);
}

.sort-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  letter-spacing: .03em;
  text-transform: uppercase;
}

#resultCount { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: linear-gradient(180deg, rgba(18,27,37,.95), rgba(7,13,18,.98));
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30,167,232,.65);
  box-shadow: 0 0 22px rgba(30,167,232,.25), var(--shadow);
}

.product-image-wrap {
  display: block;
  aspect-ratio: 1.72 / 1;
  background: #0c0f12;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.04);
  transition: transform .25s ease;
}

.product-card:hover img { transform: scale(1.035); }

.product-body {
  padding: 16px 16px 18px;
}

.category-pill {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(30,167,232,.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-card h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 500;
}

.price {
  margin: 6px 0 16px;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.price.large { font-size: 2rem; }

.info-section {
  padding: 54px 0;
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 28px;
}

.info-section h2, .info-card h3 { margin-top: 0; }

.info-section p { color: var(--muted); }

.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 7, 10, .96);
}

.footer-inner {
  width: min(1540px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: space-between;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer-logo {
  width: 118px;
  height: auto;
}

.footer-links {
  display: flex;
  gap: 30px;
  text-transform: uppercase;
  font-weight: 800;
}

.part-main { padding: 42px 0 70px; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 900;
}

.part-detail {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) 1.05fr;
  gap: 36px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.part-media img {
  width: 100%;
  border-radius: 8px;
  background: #080c10;
}

.part-content h1 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.05;
}

.part-description, .part-tags {
  color: var(--muted);
  font-size: 1.05rem;
}

.empty-state {
  padding: 50px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
}

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

@media (max-width: 1180px) {
  .header-inner { align-items: flex-start; padding: 14px 0; }
  .site-logo { width: 210px; max-width: 210px; }
  .brand-name { font-size: 1.7rem; }
  .main-nav { gap: 22px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .container { width: min(100% - 32px, 720px); }
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .header-right { align-items: flex-start; }
  .main-nav { flex-wrap: wrap; }
  .site-logo { width: 180px; max-width: 180px; }
  .brand { gap: 14px; }
  .brand-name { white-space: normal; }
  .toolbar { grid-template-columns: 1fr; }
  .sort-label { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid, .part-detail { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-logo { width: 150px; max-width: 150px; }
  .brand { align-items: flex-start; }
  .brand-name { font-size: 1.05rem; }
  .hero { min-height: 360px; padding: 60px 16px; }
  .hero-btn { min-width: 0; width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 10px; }
}
