:root {
  --ink: #15191d;
  --muted: #5d6873;
  --line: #d9e0e6;
  --paper: #f6f8f7;
  --panel: #ffffff;
  --teal: #0d766e;
  --teal-strong: #075f58;
  --steel: #34414d;
  --amber: #c8852e;
  --blue: #245c9d;
  --shadow: 0 18px 48px rgba(22, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 247, 0.9);
  border-bottom: 1px solid rgba(217, 224, 230, 0.85);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.hero-actions,
.catalogue-toolbar,
.drawer-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  gap: 8px;
}

.main-nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--ink);
  background: #fff;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 104px;
  padding: 3px;
  background: #e8eeeb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.language-switch button,
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
}

.language-switch button.active,
.language-switch a.active {
  color: #fff;
  background: var(--steel);
}

.cart-button,
.primary-action,
.secondary-action,
.ghost-button,
.category-tile {
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 6px;
}

.cart-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal);
}

.cart-button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--teal);
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px) 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.8), rgba(238,242,240,0.95)),
    radial-gradient(circle at 75% 25%, rgba(13, 118, 110, 0.14), transparent 36%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.primary-action,
.secondary-action,
.ghost-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--teal);
}

.primary-action:hover,
.cart-button:hover {
  background: var(--teal-strong);
}

.secondary-action,
.ghost-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero-panel {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 224, 230, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
  height: 420px;
}

.hero-image-stack img,
.product-card img,
.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef2f1;
  border-radius: 6px;
}

.hero-image-stack img:first-child {
  object-fit: cover;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.hero-stat-grid span {
  min-height: 72px;
  padding: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.hero-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px) 18px;
  background: #e1e7e4;
}

.category-tile {
  min-height: 104px;
  padding: 18px;
  text-align: left;
  background: #fff;
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.category-tile strong {
  display: block;
  font-size: 18px;
}

.category-tile.active,
.category-tile:hover {
  color: #fff;
  background: var(--steel);
}

.category-tile.active span,
.category-tile:hover span {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

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

.section-heading > p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.6;
}

.finder {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 118, 110, 0.12);
}

.catalogue-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalogue-toolbar span {
  color: var(--muted);
}

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

.product-card {
  display: grid;
  grid-template-rows: 190px auto;
  min-height: 480px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.meta-row,
.chip-row,
.card-actions,
.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  padding: 5px 8px;
  color: var(--steel);
  background: #eef3f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.brand-chip {
  color: #fff;
  background: var(--blue);
}

.product-card p,
.modal-summary,
.inquiry-section p {
  color: var(--muted);
  line-height: 1.55;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 8px;
  background: #f7f9f8;
  border: 1px solid #edf1ef;
  border-radius: 6px;
  font-size: 12px;
}

.card-actions button,
.text-button {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.card-actions button:first-child,
.text-button.accent {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.brand-grid article {
  min-height: 190px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-grid span {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 8px 10px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.brand-profile {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
}

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

.brand-family-grid article,
.brand-profile-meta > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.brand-family-grid h3,
.brand-family-grid p {
  margin: 0;
}

.brand-family-grid p,
.brand-profile-meta span {
  color: var(--muted);
  line-height: 1.65;
}

.brand-profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-profile-meta strong {
  font-size: 14px;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.download-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-card h3 {
  margin-bottom: 18px;
}

.download-meta {
  color: var(--muted);
  font-size: 13px;
}

.inquiry-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  color: #fff;
  background: var(--steel);
}

.inquiry-section .eyebrow,
.inquiry-section p {
  color: rgba(255, 255, 255, 0.74);
}

.modal,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.open,
.cart-drawer.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 24, 0.54);
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.modal-image {
  height: 360px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.modal-specs div {
  padding: 12px;
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.modal-specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 64vh;
  padding: clamp(46px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.8), rgba(238,242,240,0.95)),
    radial-gradient(circle at 75% 25%, rgba(36, 92, 157, 0.12), transparent 34%);
}

.detail-main-image {
  width: 100%;
  height: min(430px, 58vh);
  object-fit: contain;
  background: #eef2f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.product-detail-body article,
.product-detail-body aside {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-detail-body p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-spec-grid {
  display: grid;
  gap: 10px;
}

.detail-spec-grid div {
  padding: 12px;
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-spec-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-quote-box {
  margin-top: 18px;
  padding: 18px;
  color: #fff;
  background: var(--steel);
  border-radius: 8px;
}

.detail-quote-box p {
  color: rgba(255, 255, 255, 0.75);
}

.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  width: min(460px, 100vw);
  height: 100%;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 24, 0.42);
}

.drawer-head {
  justify-content: space-between;
  padding-right: 44px;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 12px 0;
}

.cart-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cart-item button {
  justify-self: start;
  color: #a13d31;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.inquiry-form {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .hero,
  .finder,
  .modal-layout,
  .inquiry-section,
  .product-detail-hero,
  .product-detail-body {
    grid-template-columns: 1fr;
  }

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

  .brand-grid,
  .brand-family-grid,
  .brand-profile-meta,
  .category-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    position: static;
  }
}

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

  .main-nav {
    overflow: auto;
  }

  .language-switch {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-image-stack,
  .hero-stat-grid,
  .product-grid,
  .brand-grid,
  .brand-family-grid,
  .brand-profile-meta,
  .download-list,
  .category-band,
  .modal-specs {
    grid-template-columns: 1fr;
  }

  .hero-image-stack {
    height: auto;
  }

  .hero-image-stack img {
    height: 260px;
  }

  .section-heading {
    display: block;
  }

  .product-card {
    grid-template-rows: 220px auto;
  }

  .modal-layout {
    padding: 18px;
  }
}
