:root {
  color-scheme: light;
  --ink: #141a18;
  --muted: #68746f;
  --soft: #8a9690;
  --line: #dce4dd;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --surface-2: #eef2e9;
  --green: #286448;
  --green-dark: #193f2e;
  --blue: #315f7b;
  --blue-soft: #dcebf1;
  --amber: #bc7a22;
  --rust: #9f4a2f;
  --shadow: 0 22px 70px rgba(25, 45, 35, 0.14);
  --tight-shadow: 0 12px 30px rgba(25, 45, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247, 248, 242, 0.94) 0%, rgba(247, 248, 242, 0.88) 42%, rgba(255, 255, 255, 0.96) 100%),
    url("https://images.pexels.com/photos/28852335/pexels-photo-28852335.jpeg?auto=compress&cs=tinysrgb&w=1500") center top / cover fixed,
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(40, 100, 72, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(1px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand,
nav,
.header-right,
.header-meta,
.actions,
footer,
.trust-strip,
.board-top,
.section-heading,
.admin-heading,
.admin-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(40, 100, 72, 0.24);
  object-fit: contain;
}

.header-right {
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.header-meta {
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 228, 221, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #4c5b53;
  font-size: 0.86rem;
  font-weight: 760;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(25, 45, 35, 0.08);
}

.header-meta a {
  color: var(--green-dark);
}

.header-meta span {
  position: relative;
  padding-left: 12px;
}

.header-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: var(--amber);
  transform: translateY(-50%);
}

nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(220, 228, 221, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  color: #48554e;
  font-size: 0.92rem;
  font-weight: 720;
  box-shadow: var(--tight-shadow);
}

nav a {
  padding: 9px 14px;
  border-radius: 5px;
}

nav a:hover {
  background: var(--surface-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 56px;
  max-width: 1200px;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 62px 24px 88px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 16px 34px rgba(40, 100, 72, 0.24);
}

.button.primary:hover {
  box-shadow: 0 18px 40px rgba(40, 100, 72, 0.3);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
  color: #435047;
}

.trust-strip span {
  padding: 10px 13px;
  border: 1px solid rgba(220, 228, 221, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 740;
}

.parts-board {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 233, 0.94)),
    #fff;
  box-shadow: var(--shadow);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 16px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(188, 122, 34, 0.12);
}

.status-dot.enabled {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 100, 72, 0.14);
}

.hero-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: clamp(190px, 28vw, 230px);
  margin-bottom: 14px;
  border-radius: 8px;
  background: #d9e0db;
}

.hero-photo img,
.garage-photos img,
.card-photo,
.card-thumb,
.category-photo,
.workflow-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 26, 24, 0.72) 100%);
}

.photo-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
}

.photo-label span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.shelf-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shelf-card,
.category-grid article,
.admin-card {
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--tight-shadow);
}

.shelf-card {
  overflow: hidden;
  min-height: 132px;
  padding: 12px;
}

.shelf-card.featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  min-height: 150px;
  align-items: center;
  background: #fff;
}

.shelf-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-photo {
  height: 126px;
  border-radius: 8px;
  background: #d9e0db;
}

.card-thumb {
  height: 86px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #d9e0db;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section-heading {
  justify-content: space-between;
  gap: 28px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-number {
  flex: 0 0 auto;
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.product-card {
  display: grid;
  grid-template-rows: 142px 1fr;
  overflow: hidden;
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--tight-shadow);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #d9e0db;
}

.product-card div {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.product-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-card a {
  color: var(--green-dark);
  font-weight: 850;
}

.product-type {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.category-grid article {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  padding: 14px 14px 24px;
}

.category-grid p,
.checklist p,
.muted {
  color: var(--muted);
  line-height: 1.62;
}

.category-photo {
  height: 128px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #d9e0db;
}

.garage-band {
  max-width: 1200px;
  margin: 24px auto;
  padding: 42px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.garage-band .compact {
  max-width: none;
}

.garage-photos {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  margin-bottom: 16px;
}

.garage-photos figure {
  position: relative;
  overflow: hidden;
  height: clamp(170px, 24vw, 215px);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d9e0db;
  box-shadow: var(--tight-shadow);
}

.garage-photos figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(20, 26, 24, 0.7));
}

.garage-photos figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-weight: 850;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.workflow div {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 14px 18px 22px;
  border-right: 1px solid var(--line);
}

.workflow-photo {
  height: 78px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: #d9e0db;
}

.workflow div:last-child {
  border-right: 0;
}

.workflow strong {
  font-size: 1.3rem;
}

.workflow span {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: start;
}

.split .section-number {
  margin-bottom: 22px;
}

.checklist {
  display: grid;
  border-top: 1px solid var(--line);
}

.checklist p {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.contact-card,
.map-frame {
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--tight-shadow);
}

.contact-card {
  padding: 26px;
}

.contact-card address {
  margin: 0 0 22px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.hours-list {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.hours-list dt {
  color: var(--ink);
  font-weight: 850;
}

.hours-list dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.map-frame {
  width: 100%;
  min-height: 390px;
  overflow: hidden;
}

footer {
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(49, 95, 123, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 90%, rgba(188, 122, 34, 0.14), transparent 26rem),
    var(--paper);
}

.admin-shell {
  width: min(100%, 560px);
  padding: 24px;
}

.admin-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.admin-heading {
  gap: 16px;
  margin-bottom: 26px;
}

.admin-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.admin-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.back-link,
.ghost-button {
  display: inline-flex;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: #38453d;
  font-weight: 850;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(40, 100, 72, 0.12);
}

.admin-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.small-label {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 36px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #9ba79f;
  border-radius: 6px;
  background: #e6ece8;
  cursor: pointer;
  transition: background 170ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(20, 26, 24, 0.14);
  transition: transform 170ms ease;
}

.switch input:checked + span {
  border-color: var(--green);
  background: #dcebe2;
}

.switch input:checked + span::after {
  background: var(--green);
  transform: translateX(29px);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.full {
  width: 100%;
  margin-top: 22px;
}

.notice {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 800;
}

.hidden {
  display: none;
}

.product-header {
  border-bottom: 1px solid rgba(220, 228, 221, 0.9);
}

.product-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 24px 88px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.product-detail > img {
  width: 100%;
  height: min(54vw, 520px);
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  background: #d9e0db;
}

.product-detail h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.product-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.product-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .header-meta {
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .split,
  .category-grid,
  .product-grid,
  .product-detail,
  .workflow,
  .garage-photos,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .workflow div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow div:last-child {
    border-bottom: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail > img {
    height: 340px;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .garage-band,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .actions,
  footer,
  .section-heading,
  .admin-panel,
  .hours-list div {
    align-items: stretch;
    flex-direction: column;
  }

  .hours-list dd {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .shelf-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .shelf-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .card-photo {
    height: 112px;
  }
}
