/*
Theme Name: Dyuhan B2B
Theme URI: https://ttch.ai/
Author: 天天出海
Description: Evidence-bounded B2B inquiry theme for Dyuhan Technology.
Version: 0.5.0
Text Domain: dyuhan-b2b
*/

:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #e9eef8;
  --ink: #101828;
  --muted: #53627a;
  --border: #cad3e4;
  --primary: #2345a3;
  --primary-strong: #18347f;
  --primary-soft: #dfe7ff;
  --focus: #2f65c7;
  --danger: #b42318;
  --success: #176b4d;
  --header-bg: rgb(245 247 251 / 0.92);
  --shadow: 0 24px 70px rgb(35 69 163 / 0.12);
  --radius: 14px;
  --shell: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1424;
    --surface: #151f33;
    --surface-2: #1d2a42;
    --ink: #eef3ff;
    --muted: #aab8d0;
    --border: #33435e;
    --primary: #6f95ef;
    --primary-strong: #9bb5f3;
    --primary-soft: #1d356b;
    --focus: #8aacff;
    --danger: #ff9c93;
    --success: #7ad3ad;
    --header-bg: rgb(13 20 36 / 0.92);
    --shadow: 0 24px 70px rgb(0 0 0 / 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  height: 46px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 184px;
  height: 49px;
  background-image: url("assets/dyuhan-logo-english-v1.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}

.brand-fallback {
  display: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  color: #f7f9ff;
  background: #2345a3;
  border-radius: 999px;
  padding: 10px 18px;
}

.menu-button {
  display: none;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
  padding-block: clamp(56px, 7vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Aptos Display", Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 5.2vw, 5.9rem);
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  color: #f7f9ff;
  background: #2345a3;
}

.button-primary:hover {
  background: #18347f;
}

.button-secondary {
  color: var(--primary-strong);
  background: transparent;
  border-color: var(--primary);
}

.hero-media {
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1568 / 1003;
  background-image: url("assets/hero-global-english-v1.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero > p:empty,
.company-layout > p:empty {
  display: none;
}

.hero > .hero-media {
  grid-column: 2;
}

.buyer-strip {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.buyer-grid {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  align-items: center;
}

.buyer-grid > div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding-inline: 28px;
  border-right: 1px solid var(--border);
}

.buyer-grid > div:first-child {
  padding-left: 0;
}

.buyer-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.buyer-grid strong {
  color: var(--primary-strong);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buyer-grid span {
  color: var(--muted);
}

.section {
  padding-block: 112px;
  scroll-margin-top: 72px;
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2,
.capability-intro h2,
.company-copy h2,
.rfq-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  letter-spacing: -0.045em;
}

.section-heading p,
.capability-intro p,
.company-copy > p,
.rfq-intro > p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 22px;
}

.product-card {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgb(35 69 163 / 0.08);
}

.product-card:first-child {
  grid-column: span 8;
  grid-row: span 2;
}

.product-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow);
}

.product-visual {
  aspect-ratio: 1.7 / 1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: #eef3f8;
  border-bottom: 1px solid var(--border);
}

.product-card:first-child .product-visual {
  aspect-ratio: 1.66 / 1;
}

.product-visual.top-left {
  background-position: center;
}

.product-visual.bottom-left {
  background-position: center;
}

.product-visual.top-right {
  background-position: center;
}

.product-visual.bottom-right {
  background-position: center;
}

.product-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.product-card:first-child .product-body {
  grid-template-columns: 1fr;
}

.product-body h3 {
  margin-bottom: 7px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.product-meta,
.product-summary,
.product-note {
  margin: 0;
  color: var(--muted);
}

.product-meta {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-cluster div {
  min-width: 0;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 10px;
}

.spec-cluster dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-cluster dd {
  margin: 3px 0 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.product-note {
  font-size: 0.82rem;
}

.product-action {
  align-self: end;
  justify-self: start;
  border: 0;
}

.product-card:first-child .product-action {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
}

.loading-state,
.notice,
.error-state {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.capability-section {
  padding-block: 112px;
  background: var(--surface);
  border-block: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 84px;
}

.capability-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.capability-intro h2 {
  margin-bottom: 22px;
}

.capability-list {
  display: grid;
  gap: 28px;
}

.capability-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.capability-list article:last-child {
  border-bottom: 0;
}

.capability-list span {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--primary-strong);
  font-size: 1.35rem;
  font-weight: 800;
}

.capability-list h3 {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.capability-list p {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.capability-list article > p:empty {
  display: none;
}

.factory-proof-section {
  padding-block: 112px;
  background: #0f245c;
  color: #f7f9ff;
  scroll-margin-top: 72px;
}

.factory-proof-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 44px;
}

.factory-proof-heading h2 {
  max-width: 12ch;
  margin: 0;
}

.factory-proof-heading p:not(.eyebrow) {
  margin: 0 0 18px;
  color: #c8d5f6;
}

.factory-proof-section .eyebrow {
  color: #9db7ff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
}

.factory-proof-section .text-link {
  color: #ffffff;
}

.factory-gallery {
  display: grid;
  gap: 18px;
}

.factory-gallery--home {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.factory-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius);
}

.factory-gallery--home .factory-card {
  grid-column: span 4;
}

.factory-gallery--home .factory-card:first-child {
  grid-column: span 12;
  aspect-ratio: 16 / 7;
}

.factory-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}

.factory-card:hover img {
  transform: scale(1.018);
}

.factory-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 18px 15px;
  background: linear-gradient(transparent, rgb(4 12 33 / 0.86));
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.factory-gallery--full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.factory-gallery--full .factory-card:first-child,
.factory-gallery--full .factory-card:nth-child(7) {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.page-hero.factory-page-hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding-block: 96px;
  background: linear-gradient(90deg, rgb(8 20 50 / 0.92), rgb(8 20 50 / 0.28)), url("assets/factory-assembly-line-v1.webp") center / cover no-repeat;
  color: #ffffff;
}

.page-hero.factory-page-hero h1 {
  max-width: 10ch;
}

.page-hero.factory-page-hero p:last-child {
  max-width: 58ch;
  color: #dce5fb;
  font-size: 1.15rem;
}

.factory-page-intro,
.company-page-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.factory-page-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.factory-page-gallery {
  padding-top: 0;
}

.company-page-overview .company-media {
  min-height: 0;
}

.factory-cta {
  padding-block: 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.factory-cta .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.factory-cta h2 {
  margin: 0;
}

.process-list {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.15fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 180px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.process-list li:nth-child(2) {
  background: var(--primary-soft);
  transform: translateY(26px);
}

.process-list strong {
  font-size: 1.25rem;
}

.process-list span {
  color: var(--muted);
}

.company-section {
  padding-block: 112px;
  background: var(--surface);
  border-block: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 68px;
}

.company-media {
  min-height: 0;
  width: 100%;
  aspect-ratio: 1568 / 1003;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-copy h2 {
  margin-bottom: 24px;
}

.fact-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.fact-list dt {
  color: var(--muted);
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
  font-weight: 800;
}

.rfq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 78px;
}

.rfq-intro {
  position: sticky;
  top: 120px;
}

.rfq-intro h2 {
  margin-bottom: 22px;
}

.contact-status {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.rfq-form {
  display: grid;
  gap: 21px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-banner {
  padding: 14px 16px;
  background: var(--primary-soft);
  border-radius: 10px;
  color: var(--primary-strong);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label,
.checkbox-field label {
  font-weight: 800;
}

.optional {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
}

input,
select {
  min-height: 48px;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.1em;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 700;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.checkbox-error {
  margin-top: -14px;
}

.submit-button {
  justify-self: start;
  border: 0;
}

.form-result {
  padding: 18px;
  border: 1px solid var(--success);
  border-radius: 10px;
  color: var(--success);
}

.form-result strong {
  display: block;
  margin-bottom: 4px;
}

.site-footer {
  padding-block: 48px 92px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 56px;
  }

  .product-card,
  .product-card:first-child {
    grid-column: span 6;
    grid-row: auto;
  }

  .product-card:first-child .product-body {
    grid-template-columns: 1fr;
  }

  .product-card:first-child .product-action {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }

  .capability-layout,
  .company-layout,
  .rfq-section,
  .factory-page-intro,
  .company-page-overview {
    gap: 44px;
  }
}

@media (max-width: 767px) {
  .shell {
    width: min(calc(100% - 40px), var(--shell));
  }

  .site-header,
  .header-inner {
    min-height: 64px;
    height: 64px;
  }

  .brand {
    min-width: 122px;
    height: 38px;
  }

  .brand-logo {
    width: 154px;
    height: 42px;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .menu-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    padding: 8px 13px;
    font-weight: 800;
  }

  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    width: 17px;
    height: 2px;
    display: block;
    background: currentColor;
    content: "";
  }

  .menu-lines {
    position: relative;
  }

  .menu-lines::before {
    position: absolute;
    top: -5px;
  }

  .menu-lines::after {
    position: absolute;
    top: 5px;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding-inline: 20px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-cta {
    margin: 12px 20px 18px;
    justify-content: center;
    color: #f7f9ff;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 48px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .hero > .hero-media {
    min-height: 0;
    height: auto;
    background-size: contain;
    background-position: center;
    grid-column: auto;
  }

  .buyer-grid {
    grid-template-columns: 1fr;
    padding-block: 8px;
  }

  .buyer-grid > div,
  .buyer-grid > div:first-child,
  .buyer-grid > div:last-child {
    min-height: 84px;
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .buyer-grid > div:last-child {
    border-bottom: 0;
  }

  .section,
  .capability-section,
  .company-section,
  .factory-proof-section {
    padding-block: 80px;
    scroll-margin-top: 64px;
  }

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

  .section-heading h2,
  .capability-intro h2,
  .company-copy h2,
  .rfq-intro h2 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

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

  .product-card,
  .product-card:first-child {
    grid-column: auto;
  }

  .product-body {
    padding: 20px;
  }

  .capability-layout,
  .company-layout,
  .rfq-section,
  .factory-page-intro,
  .company-page-overview {
    grid-template-columns: 1fr;
  }

  .factory-proof-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .factory-gallery--home,
  .factory-gallery--full {
    grid-template-columns: 1fr 1fr;
  }

  .factory-gallery--home .factory-card,
  .factory-gallery--home .factory-card:first-child,
  .factory-gallery--full .factory-card:first-child,
  .factory-gallery--full .factory-card:nth-child(7) {
    grid-column: auto;
  }

  .factory-gallery--home .factory-card:first-child,
  .factory-gallery--full .factory-card:first-child,
  .factory-gallery--full .factory-card:nth-child(7) {
    aspect-ratio: 4 / 3;
  }

  .page-hero.factory-page-hero {
    min-height: 480px;
    padding-block: 72px;
  }

  .factory-cta .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-intro,
  .rfq-intro {
    position: static;
  }

  .capability-list article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .capability-list span {
    grid-column: 1;
    grid-row: 1;
  }

  .capability-list h3 {
    grid-column: 2;
    grid-row: 1;
    overflow-wrap: normal;
    word-break: normal;
  }

  .capability-list p {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-wrap: normal;
    word-break: normal;
  }

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

  .process-list li:nth-child(2) {
    transform: none;
  }

  .company-media {
    min-height: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .rfq-form {
    padding: 22px;
  }

  .footer-inner,
  .footer-links {
    flex-direction: column;
  }

}

@media (max-width: 420px) {
  .menu-label {
    display: none;
  }

  .spec-cluster {
    grid-template-columns: 1fr;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .factory-gallery--home,
  .factory-gallery--full {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* WordPress integration */
.site-main {
  min-height: 70vh;
}

.page-hero {
  min-height: 480px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding-block: 84px;
}

.page-hero h1 {
  max-width: 15ch;
  margin-bottom: 0;
}

.page-hero > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

figure.hero-media,
figure.company-media,
figure.product-detail-media {
  margin: 0;
  overflow: hidden;
}

.hero-media img,
.company-media img,
.product-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-media img {
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.company-media img {
  object-position: center;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-visual {
  display: block;
}

.rfq-form-wrap {
  min-width: 0;
  grid-column: 2;
}

.rfq-section > p:empty {
  display: none;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-error {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
}

.field small,
.evidence-note {
  color: var(--muted);
}

.evidence-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.single-product-hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
  padding-block: 70px;
}

.product-detail-media {
  min-height: 560px;
  background: #dce7f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-detail-media img {
  object-position: center;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
}

.product-spec-table {
  margin: 0;
}

.product-spec-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.product-spec-table dt {
  color: var(--muted);
  font-weight: 700;
}

.product-spec-table dd {
  margin: 0;
  font-weight: 800;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 420px;
    padding-block: 64px;
  }

  .single-product-hero,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .single-product-hero {
    min-height: 0;
    gap: 32px;
    padding-block: 44px;
  }

  .product-detail-media {
    min-height: 320px;
  }

  .rfq-form-wrap {
    grid-column: auto;
  }

  .product-spec-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-bar .site-header {
    top: 46px;
  }
}
