:root {
  color-scheme: light;
  --bg: #f6f7f7;
  --panel: #ffffff;
  --text: #172126;
  --muted: #5f6a70;
  --line: #d7dddd;
  --accent: #145f63;
  --accent-dark: #0d4548;
  --accent-warm: #9b6235;
  --soft: #edf1f1;
  --shadow: none;
  --radius: 3px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 3px;
}
.skip-link:focus { left: 12px; z-index: 1000; }

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  position: sticky;
  top: 12px;
  z-index: 20;
  background: rgba(245, 247, 248, 0.97);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: none;
  transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 46px;
  border-radius: 3px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  transition: none;
}
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong,
.brand-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy strong { font-size: 0.98rem; line-height: 1.15; }
.brand-copy small { font-size: 0.82rem; line-height: 1.2; }
.brand-copy small { color: var(--muted); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 0.96rem;
  transition: none;
}
.main-nav a { color: var(--muted); font-weight: 600; }
.main-nav a:hover { color: var(--accent-dark); }
.header-rfq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.header-rfq:hover { background: var(--accent-dark); }

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.lang-switch a,
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  min-width: 44px;
  font-weight: 700;
}
.lang-switch a.is-active,
.lang-switch button.is-active {
  background: var(--accent);
  color: #fff;
}

.site-header.is-scrolled {
  background: rgba(245, 247, 248, 0.98);
  border-color: #bcc7c2;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 76vh;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
  box-shadow: none;
  background: #0f1b24;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media img {
  filter: saturate(0.95) contrast(1.02);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 25, 29, 0.84) 0%, rgba(7, 25, 29, 0.56) 52%, rgba(7, 25, 29, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 79, 86, 0.32), rgba(8, 79, 86, 0));
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  padding: 72px 0 72px 44px;
  color: #fff;
}
.eyebrow,
.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}
.hero .eyebrow { color: #d8e2f3; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.06;
}
.lead {
  margin: 18px 0 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-weight: 700;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.button.quiet { background: #fff; color: var(--accent-dark); border-color: var(--line); }
.button.quiet:hover { border-color: var(--accent); }
.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.subhero,
.product-hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 12px auto 0;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.subhero {
  padding: clamp(30px, 5vw, 56px);
  background: #fff;
  border-left: 5px solid var(--accent);
}
.subhero.compact {
  padding: clamp(26px, 4vw, 44px);
}
.subhero h1,
.product-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.6rem);
  line-height: 1.12;
}
.subhero p:last-child {
  max-width: 760px;
  color: var(--muted);
}
.product-hero {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border-left: 5px solid var(--accent);
}
.product-hero > div {
  padding: clamp(18px, 3vw, 42px);
}
.product-hero > div > p:not(.kicker):not(.lead-dark) {
  color: var(--muted);
  max-width: 720px;
}
.product-hero figure {
  margin: 0;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}
.lead-dark {
  margin: 12px 0 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.section {
  padding-top: 64px;
  scroll-margin-top: 96px;
}
.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}
.section-lead {
  margin: 4px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.intro-grid,
.factory-layout,
.factory-layout {
  display: grid;
  gap: 24px;
}
.intro-grid,
.factory-layout {
  grid-template-columns: 1.08fr 0.92fr;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
}
.panel-copy { margin-top: 0; color: var(--muted); }
.panel h2 { margin-top: 0; }
.panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.panel li + li { margin-top: 8px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.trust-strip div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.trust-strip strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--accent-dark);
  line-height: 1;
}
.trust-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.image-stack {
  display: grid;
  gap: 16px;
}
.image-stack figure,
.factory-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  box-shadow: none;
}

.product-grid,
.application-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-card,
.application-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: none;
}
.product-card figure,
.application-card figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}
.product-card .card-body,
.application-card .card-body {
  padding: 16px 18px 18px;
}
.product-card h3,
.application-card h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}
.product-card h3 small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.product-card p,
.application-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card-category {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.product-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.category-guide {
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  background: #fff;
  padding: 18px;
}
.category-guide p {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 800;
}
.product-tools a,
.product-tools button,
.tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 3px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--line);
  cursor: pointer;
}
.product-tools a {
  min-height: 54px;
  padding: 10px 14px;
  color: var(--accent-dark);
  border-color: var(--line);
  flex-direction: column;
  align-items: flex-start;
  min-width: min(100%, 260px);
}
.product-tools a strong {
  font-size: 0.98rem;
}
.product-tools a span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.product-tools a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.product-tools a:hover span {
  color: rgba(255, 255, 255, 0.82);
}
.product-tools button {
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
}
.product-tools button.is-active,
.product-tools button:hover,
.tagline:hover,
.tagline.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tagline.solid:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.fact-list li {
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--soft);
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
}
.rfq-layout,
.detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 0.72fr;
  align-items: start;
}
.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rfq-callout {
  display: grid;
  gap: 12px;
}
.section-action {
  margin-top: 22px;
}
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-grid figure {
  margin: 0;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  position: relative;
}
.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(8, 79, 86, 0.88);
  color: #fff;
  font-weight: 800;
}
.contact-panel {
  max-width: 840px;
}
.rfq-note {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  color: var(--muted);
}
.rfq-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.rfq-form input,
.rfq-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}
.rfq-form label:has(textarea),
.rfq-form button {
  grid-column: 1 / -1;
}
.rfq-success,
.rfq-error {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 600;
}
.rfq-success {
  background: #eaf6ed;
  color: #14532d;
}
.rfq-error {
  background: #fff0ed;
  color: #8a1f11;
}

.site-footer {
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-list {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.contact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}
.contact-list dt {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: #fff;
  flex: 0 0 auto;
}
.contact-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-note {
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--radius);
  padding: 24px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    top: 8px;
  }
  .main-nav {
    justify-content: flex-start;
  }
  .hero-copy {
    width: calc(100% - 32px);
    padding-left: 24px;
  }
  .intro-grid,
  .factory-layout,
  .footer-grid,
  .product-hero,
  .rfq-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid,
  .application-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer,
  .subhero,
  .product-hero {
    width: min(calc(100% - 20px), var(--max));
  }
  .site-header {
    gap: 8px;
    padding: 8px 10px;
  }
  .hero {
    min-height: 82vh;
  }
  .hero-copy {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .product-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }
  .product-card figure {
    aspect-ratio: 5 / 3;
  }
  .main-nav {
    gap: 6px 10px;
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .header-rfq {
    min-height: 36px;
  }
  .subhero {
    padding: 32px 20px;
  }
  .product-hero {
    padding: 16px;
  }
  .product-hero > div {
    padding: 8px 2px;
  }
  .product-hero figure {
    min-height: 240px;
  }
  .trust-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .main-nav a {
    padding: 0;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 56px;
    height: 36px;
    font-size: 0.76rem;
  }
  .brand-copy strong {
    font-size: 0.84rem;
  }
  .brand-copy small {
    font-size: 0.7rem;
  }
  .lang-switch button {
    padding: 6px 11px;
  }
  .rfq-form {
    grid-template-columns: 1fr;
  }
  .rfq-note {
    margin-bottom: 0;
  }
}
