:root {
  color-scheme: light;
  --ink: #101413;
  --muted: #5d6862;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --green: #0f4f36;
  --green-dark: #062f22;
  --gold: #d6ad3f;
  --clay: #b55531;
  --line: rgba(16, 20, 19, 0.12);
  --shadow: 0 24px 80px rgba(6, 47, 34, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 24px;
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(24px);
  background: rgba(251, 250, 245, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
}

.brand img {
  aspect-ratio: 1;
  border: 1px solid rgba(15, 79, 54, 0.2);
  border-radius: 50%;
  height: 48px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2vw, 30px);
}

nav a,
.header-action,
.ai-trigger {
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

nav a {
  color: #26302b;
  padding-bottom: 6px;
  position: relative;
}

nav a::after {
  background: var(--gold);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.55);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 100%;
}

nav a.active::after,
nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-action {
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  padding: 12px 18px;
}

.ai-trigger {
  align-items: center;
  animation: aiPulse 3.4s ease-in-out infinite;
  background: linear-gradient(135deg, #4285f4 0%, #7b61ff 38%, #d965ff 68%, #fbbc04 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(123, 97, 255, 0);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  text-shadow: 0 1px 8px rgba(6, 47, 34, 0.32);
}

@keyframes aiPulse {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(123, 97, 255, 0);
  }

  50% {
    filter: saturate(1.28);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(123, 97, 255, 0.46);
  }
}

.ai-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-width: 420px;
  padding: 14px;
  position: fixed;
  right: 14px;
  top: 92px;
  width: calc(100% - 28px);
  z-index: 35;
}

.ai-panel form {
  display: grid;
  gap: 8px;
}

.ai-panel label {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-panel form div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ai-panel input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 0 12px;
}

.ai-panel button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0 14px;
}

.ai-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 10px 0 0;
}

.hero {
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(6, 47, 34, 0.92) 0%, rgba(6, 47, 34, 0.72) 42%, rgba(6, 47, 34, 0.1) 76%),
    url("assets/vue-auto-parts-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    radial-gradient(circle at 16% 20%, rgba(214, 173, 63, 0.22), transparent 34%),
    linear-gradient(180deg, transparent 68%, var(--paper) 100%);
}

.hero-content {
  color: #fff;
  max-width: 790px;
  padding: clamp(58px, 9vw, 118px) clamp(20px, 5vw, 76px) clamp(56px, 7vw, 76px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 8vw, 7.6rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 28px;
  max-width: 980px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  max-width: 650px;
}

.hero-actions,
.hero-metrics {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #12100a;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
}

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 34px;
  padding-top: 18px;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  min-width: 160px;
}

.hero-metrics strong {
  color: #fff;
  display: block;
  font-size: 1.45rem;
  margin-bottom: 2px;
}

.trust-strip {
  background: var(--green-dark);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip span {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 58px;
  padding: 18px 24px;
}

.section {
  padding: clamp(54px, 7vw, 96px) clamp(20px, 5vw, 76px);
  scroll-margin-top: 116px;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  margin-bottom: 42px;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

h2 {
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 0;
}

.model-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}

.model-card,
.category-grid article,
.contact-card,
.stock-panel,
.process-list div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(16, 20, 19, 0.06);
}

.model-card {
  min-height: 270px;
  padding: 26px;
  position: relative;
}

.model-card::after {
  background: linear-gradient(135deg, var(--green), var(--gold));
  bottom: 24px;
  content: "";
  height: 5px;
  left: 26px;
  position: absolute;
  width: 54px;
}

.model-card.feature {
  background: var(--green);
  color: #fff;
}

.model-card span,
.model-card p,
.category-grid p,
.stock-panel p,
.sourcing-copy p,
.process-list p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.model-card.feature span,
.model-card.feature p {
  color: rgba(255, 255, 255, 0.76);
}

.model-card h3 {
  font-size: clamp(2.1rem, 4vw, 4.7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 10px 0 20px;
}

.inventory {
  background: #f4f6f1;
}

.inventory-heading {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  margin-bottom: 34px;
}

.inventory-heading p:last-child {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.inventory-toolbar {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.28fr);
  margin-bottom: 14px;
}

.search-box,
.filter-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.filter-box span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input,
.filter-box select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  min-height: 52px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.search-box input:focus,
.filter-box select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 173, 63, 0.18);
}

.inventory-status,
.inventory-empty {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 14px 0;
}

.inventory-table-wrap {
  background: #fff;
  border: 1px solid rgba(16, 20, 19, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.inventory-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.inventory-table th,
.inventory-table td {
  border-bottom: 1px solid rgba(16, 20, 19, 0.08);
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
}

.inventory-table th {
  background: #d63a2f;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.inventory-table td {
  color: #26302b;
  font-size: 0.94rem;
  font-weight: 650;
}

.inventory-table td:nth-child(4),
.inventory-table td:nth-child(5),
.inventory-table td:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.inventory-table .price-cell {
  background: #ecfbf3;
  font-weight: 900;
}

.inventory-table td:nth-child(5) {
  background: #edf5ff;
  font-weight: 900;
}

.hold-button {
  background: var(--green);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.hold-button:disabled {
  background: #d7ddd8;
  color: var(--muted);
  cursor: not-allowed;
}

.hold-basket {
  align-items: start;
  background: var(--green-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.55fr) minmax(280px, 1fr);
  margin-top: 20px;
  padding: clamp(22px, 4vw, 34px);
}

.hold-basket h3 {
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1;
  margin-bottom: 14px;
}

.hold-basket p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.basket-empty {
  align-self: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.basket-items {
  display: grid;
  gap: 10px;
}

.basket-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 96px 92px auto;
  padding: 14px;
}

.basket-item strong,
.basket-item span {
  display: block;
}

.basket-item span,
.basket-item label span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 3px;
}

.basket-item input {
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  min-height: 38px;
  padding: 0 10px;
  width: 100%;
}

.basket-item button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 36px;
  padding: 0 12px;
}

.basket-total {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

.basket-total span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.basket-total strong {
  color: var(--gold);
  font-size: 1.35rem;
}

.hold-whatsapp {
  justify-self: start;
}

.hold-whatsapp.disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.inventory-table .stock-out {
  background: #231f20;
  color: #fff;
}

.inventory-table .stock-good {
  color: var(--green);
}

.stock {
  background: #eef1ea;
}

.stock-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 0.72fr 1.28fr;
  margin-top: 42px;
}

.stock-panel {
  background: var(--green-dark);
  color: #fff;
  padding: clamp(28px, 4vw, 44px);
}

.stock-panel h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.stock-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.text-link {
  color: var(--gold);
  display: inline-block;
  font-weight: 900;
  margin-top: 18px;
  text-decoration: none;
}

.category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.category-grid article {
  min-height: 230px;
  padding: 26px;
}

.category-icon {
  color: var(--clay);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 34px;
}

.category-grid h3,
.process-list h3 {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.sourcing {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 86px);
  grid-template-columns: 0.95fr 1.05fr;
}

.sourcing-copy p {
  font-size: 1.04rem;
  margin-top: 28px;
  max-width: 640px;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-list div {
  display: grid;
  gap: 18px;
  grid-template-columns: 48px 0.36fr 1fr;
  padding: 18px;
}

.process-list span {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.contact {
  align-items: center;
  background: var(--green-dark);
  color: #fff;
  display: grid;
  gap: clamp(30px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.48fr);
}

.contact h2 {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 28px;
  max-width: 680px;
}

.contact-card {
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: end;
  padding: 26px;
}

.contact-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  object-fit: cover;
  width: 92px;
}

.contact-card dl {
  display: contents;
}

.contact-card dl > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.contact-card dl > div:not(:first-child) {
  grid-column: 1;
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

dd {
  font-weight: 800;
  margin: 0;
  word-break: break-word;
}

.site-footer {
  align-items: center;
  background: #071b14;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 76px);
}

.whatsapp-footnote {
  align-items: center;
  background: #071b14;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  left: 0;
  letter-spacing: 0;
  position: fixed;
  right: 0;
  text-decoration: none;
  z-index: 40;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    justify-content: center;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(6, 47, 34, 0.95) 0%, rgba(6, 47, 34, 0.72) 56%, rgba(6, 47, 34, 0.28) 100%),
      url("assets/vue-auto-parts-hero.png") center / cover no-repeat;
  }

  .trust-strip,
  .model-grid,
  .stock-layout,
  .sourcing,
  .contact,
  .hold-basket,
  .inventory-heading,
  .inventory-toolbar,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 250px;
  }

  .process-list div {
    grid-template-columns: 44px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px 10px;
    padding-bottom: 4px;
    padding-top: 8px;
  }

  nav {
    margin-top: -2px;
    padding-bottom: 0;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 164px);
  }

  .brand img {
    height: 42px;
  }

  .header-action {
    align-items: center;
    align-self: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    height: 40px;
    justify-content: center;
    padding: 0 12px;
    white-space: nowrap;
  }

  .ai-trigger {
    height: 40px;
  }

  .ai-panel {
    right: 10px;
    top: 82px;
    width: calc(100% - 20px);
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 14px;
    padding: 20px;
  }

  .contact-card img {
    width: 82px;
  }

  .hero-content {
    padding-bottom: 56px;
  }

  .hero-metrics span {
    min-width: 130px;
  }

  .trust-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .inventory-table {
    min-width: 0;
  }

  .inventory-table thead {
    display: none;
  }

  .inventory-table,
  .inventory-table tbody,
  .inventory-table tr,
  .inventory-table td {
    display: block;
    width: 100%;
  }

  .inventory-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }

  .inventory-table td {
    align-items: start;
    border-bottom: 0;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 9px 16px;
    text-align: left;
  }

  .inventory-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .inventory-table td:nth-child(4),
  .inventory-table td:nth-child(5),
  .inventory-table td:nth-child(6) {
    text-align: left;
  }

  .basket-item {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hold-whatsapp {
    justify-self: stretch;
  }

  .section {
    padding-block: 52px;
  }

  .intro {
    padding-top: 24px;
  }

  .process-list div {
    align-items: center;
    gap: 10px 14px;
    grid-template-columns: 42px 1fr;
  }

  .process-list p {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-trigger {
    animation: none;
  }
}
