:root {
  --ink: #111111;
  --muted: #666666;
  --line: #dedbd4;
  --paper: #f7f4ee;
  --white: #ffffff;
  --soft: #eeebe4;
  --accent: #8d6f46;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

main {
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  font-weight: 760;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 24px;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-parent::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(860px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 10px;
  background:
    linear-gradient(rgba(247, 244, 238, 0.88), rgba(247, 244, 238, 0.92)),
    url("/assets/guzhen-rfq-hero.webp") center / cover;
  border: 1px solid var(--line);
  box-shadow: 0 26px 90px rgba(17, 17, 17, 0.16);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition:
    opacity 180ms ease 140ms,
    transform 180ms ease 140ms,
    visibility 0s linear 320ms;
}

.submenu::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: inherit;
  filter: blur(18px);
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.submenu-card {
  min-height: 188px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.submenu-card strong {
  font-size: 16px;
  line-height: 1.1;
}

.submenu-number,
.submenu-body,
.submenu-action {
  color: var(--muted);
}

.submenu-number {
  font-size: 12px;
  font-weight: 760;
}

.submenu-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.submenu-action {
  margin-top: auto;
  font-size: 12px;
  font-weight: 760;
}

.submenu-action::after {
  content: " ->";
}

.nav .submenu-card:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.nav .submenu-card:hover .submenu-number,
.nav .submenu-card:hover .submenu-body,
.nav .submenu-card:hover .submenu-action {
  color: rgba(255, 255, 255, 0.74);
}

.product-submenu {
  width: min(1040px, calc(100vw - 40px));
  grid-template-columns: 1.15fr 0.9fr 0.9fr 0.9fr;
  background:
    linear-gradient(rgba(247, 244, 238, 0.9), rgba(247, 244, 238, 0.94)),
    url("/assets/material-library.webp") center / cover;
}

.product-menu-column {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.submenu-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.product-icon-list,
.product-text-list,
.product-colour-list {
  display: grid;
  gap: 8px;
}

.product-icon-link,
.product-colour-list a,
.product-text-list a,
.featured-product-menu a {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
}

.product-icon-link {
  font-weight: 700;
}

.mini-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 760;
}

.colour-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--swatch);
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.product-icon-link:hover,
.product-colour-list a:hover,
.product-text-list a:hover,
.featured-product-menu a:hover {
  color: var(--accent);
}

.nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--ink);
}

.header-tools {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tool-group {
  position: relative;
}

.tool-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 18px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-button:hover,
.tool-group:focus-within .icon-button,
.tool-group:hover .icon-button {
  border-color: var(--ink);
  background: var(--white);
}

.tool-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(220px, calc(100vw - 40px));
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 20px 64px rgba(17, 17, 17, 0.14);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease 120ms,
    transform 180ms ease 120ms,
    visibility 0s linear 300ms;
  backdrop-filter: blur(14px);
}

.tool-group:hover .tool-popover,
.tool-group:focus-within .tool-popover {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.tool-popover button,
.tool-popover a,
.tool-popover span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 0;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.tool-popover button:hover,
.tool-popover a:hover {
  color: var(--ink);
  background: var(--paper);
}

.tool-note {
  margin: 4px 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Keep the legacy class available for content CTAs if reused outside the header. */
.header-cta {
  justify-self: end;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.hero,
.page-hero,
.section,
.band,
.form-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  padding: 54px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  font-weight: 640;
}

h2 {
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  font-weight: 620;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
}

.lead {
  width: min(100%, 640px);
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.22;
}

.hero-actions,
.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  border: 1px solid var(--ink);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.button.light {
  background: transparent;
}

.button.disabled {
  background: var(--soft);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.hero-media {
  margin: 0;
}

.hero-media img,
.image-split img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

figcaption,
.small-note,
.offer-actions span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.split,
.band {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-end;
}

.text-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.path-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-card,
.guide-card {
  display: block;
  min-height: 260px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.path-card.primary {
  background: var(--ink);
  color: var(--white);
}

.path-card span {
  display: block;
  margin-bottom: 46px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.path-card.primary span,
.path-card.primary p {
  color: rgba(255, 255, 255, 0.74);
}

.path-card p,
.guide-card p {
  color: var(--muted);
}

.rule-grid article {
  min-height: 220px;
  padding: 28px;
  background: var(--paper);
}

.rule-grid p,
.prose p,
.offer-card p,
.band p {
  color: var(--muted);
}

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

.product-entry-section {
  padding-top: 24px;
}

.product-entry-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.product-entry-grid > div,
.product-status-grid article,
.filter-panel,
.collection-note {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.product-icon-list.large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-icon-list.large .product-icon-link {
  min-height: 96px;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 1px solid var(--line);
}

.product-text-list.large,
.product-colour-list.large {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-text-list.large a,
.product-colour-list.large a {
  min-height: 44px;
  padding: 0 14px;
  background: var(--paper);
}

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

.product-status-grid p,
.collection-note p {
  color: var(--muted);
}

.collection-shell {
  width: min(var(--max), calc(100% - 40px));
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-inline: auto;
  padding: 24px 0 84px;
}

.filter-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 24px;
}

.filter-title {
  margin-bottom: 10px;
  font-weight: 760;
}

.tag-list,
.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list button,
.sort-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
}

.tag-list button:hover,
.sort-row button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.collection-note {
  margin-bottom: 18px;
}

.offer-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}

.offer-card img {
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.offer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.price {
  color: var(--ink) !important;
  font-weight: 760;
}

ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.offer-actions {
  margin-top: auto;
  padding-top: 24px;
}

.band {
  margin-top: 48px;
  margin-bottom: 72px;
  padding: clamp(32px, 5vw, 58px);
  background: var(--ink);
  color: var(--white);
}

.band p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.74);
}

.page-hero {
  padding: 76px 0 34px;
}

.page-hero.compact {
  max-width: 960px;
}

.page-hero h1 {
  font-size: clamp(48px, 7vw, 94px);
}

.page-hero.image-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.page-hero.image-split.reverse {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 0.9fr);
}

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(32px, 7vw, 96px);
}

.prose {
  font-size: 20px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  padding: 24px 0 84px;
}

form,
.form-shell aside {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 13px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px clamp(20px, 4vw, 56px);
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer p {
  margin-bottom: 2px;
}

.footer-title,
.footer-brand {
  color: var(--ink);
  font-weight: 760;
}

.legal {
  min-height: 50vh;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group::after {
    display: none;
  }

  .submenu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
    transition: none;
    box-shadow: none;
  }

  .nav-group:hover .submenu,
  .nav-group:focus-within .submenu {
    transform: none;
  }

  .submenu-card {
    min-height: 154px;
    padding: 16px;
  }

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

  .product-menu-column {
    min-height: auto;
    padding: 16px;
  }

  .tool-group::after {
    display: none;
  }

  .header-tools,
  .header-cta {
    justify-self: start;
  }

  .tool-popover {
    right: auto;
    left: 0;
  }

  .hero,
  .page-hero.image-split,
  .page-hero.image-split.reverse,
  .two-col,
  .form-shell,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .offer-grid,
  .rule-grid,
  .path-grid,
  .path-grid.four,
  .guide-grid,
  .product-entry-grid,
  .product-status-grid,
  .collection-shell {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    position: static;
  }

  .section-heading.split,
  .band {
    display: block;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
  }

  .lead {
    font-size: 18px;
    line-height: 1.32;
  }

  .hero {
    padding-top: 36px;
  }
}
