/* HYH Global — site styles
   Palette taken from the product itself: ferrite black, navy brand, polyester insulation-tape yellow. */

@font-face {
  font-family: "Archivo";
  src: url("../../fonts/archivo-var.woff") format("woff");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
}

:root {
  --ink: #16202B;        /* ferrite: body text */
  --navy: #0E2A47;       /* brand */
  --blue: #1072C0;       /* links */
  --tape: #F2CF1D;       /* insulation tape: actions */
  --tape-deep: #D9B400;
  --steel: #56636F;      /* secondary text */
  --paper: #EEF1F4;      /* alternate sections */
  --line: #D3DAE1;
  --white: #FFFFFF;

  --measure: 66ch;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --cond: 72%;           /* condensed width for headings */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: var(--cond);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--tape); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-stretch: var(--cond); font-weight: 800; font-size: 26px; letter-spacing: 0.01em; line-height: 1; }
.brand-sub { display: block; font-size: 13px; font-weight: 400; font-stretch: 100%; opacity: 0.8; letter-spacing: 0; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; color: inherit; }
.nav .btn { color: var(--ink); }
.nav .btn:hover { text-decoration: none; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.6); border-radius: 4px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel {
  display: none; flex-direction: column; position: absolute; right: var(--gutter); top: 64px;
  background: var(--white); color: var(--ink); min-width: 220px; padding: 8px 0; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(14, 42, 71, 0.25);
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 10px 18px; }
.menu-panel a:hover { background: var(--paper); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 3px;
  background: var(--tape); color: var(--ink);
  font: inherit; font-weight: 650; font-size: 16px; text-decoration: none;
  border: 2px solid var(--tape); cursor: pointer;
}
.btn:hover { background: var(--tape-deep); border-color: var(--tape-deep); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--white); background: var(--navy);
  min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 26, 43, 0.86) 0%, rgba(10, 26, 43, 0.62) 48%, rgba(10, 26, 43, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 26, 43, 0.9) 0%, rgba(10, 26, 43, 0) 45%);
}
.hero-body { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 40px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(44px, 6.4vw, 88px);
  font-stretch: 64%;
  font-weight: 780;
  line-height: 0.95;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero-tape { display: block; width: 88px; height: 10px; background: var(--tape); margin: 0 0 24px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; margin: 24px 0 32px; color: #E3E9EF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts dl > div { padding: 20px 20px 24px 0; }
.facts dl > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.22); }
.facts dt { font-stretch: var(--cond); font-weight: 760; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; color: var(--white); }
.facts dd { margin: 4px 0 0; font-size: 14px; color: #C7D2DC; line-height: 1.4; }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.22); }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; color: var(--steel); font-size: 18px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.product picture img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-body { padding: 28px 28px 32px; border-top: 6px solid var(--tape); }
.product ul { margin: 16px 0 0; padding-left: 20px; }
.product li { margin: 6px 0; }
.product li::marker { color: var(--steel); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 2px solid var(--navy); }
.terms div { padding: 18px 20px 0 0; }
.terms dt { font-size: 14px; color: var(--steel); }
.terms dd { margin: 2px 0 0; font-stretch: var(--cond); font-weight: 720; font-size: 22px; color: var(--navy); line-height: 1.2; }
@media (max-width: 860px) { .terms { grid-template-columns: 1fr 1fr; row-gap: 12px; } }

.uses { margin-top: 40px; color: var(--steel); }
.uses strong { color: var(--ink); font-weight: 650; }

/* manufacturing */
.media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
figure { margin: 0; }
figure video, figure img { width: 100%; border-radius: 4px; background: var(--navy); }
.media-pair video { aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { font-size: 14px; color: var(--steel); margin-top: 10px; line-height: 1.45; }

.mfg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .mfg { grid-template-columns: 1fr; } }

.sites { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; margin-top: 8px; }
.sites caption { text-align: left; font-stretch: var(--cond); font-weight: 760; font-size: 24px; color: var(--navy); padding-bottom: 12px; }
.sites th, .sites td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sites thead th { font-size: 14px; font-weight: 500; color: var(--steel); border-bottom: 2px solid var(--navy); }
.sites td.num, .sites th.num { text-align: right; padding-right: 0; }
.sites tbody th { font-weight: 650; }
.sites tbody th span { display: block; font-weight: 400; font-size: 14px; color: var(--steel); }
.sites tfoot td, .sites tfoot th { font-weight: 700; border-bottom: 0; color: var(--navy); }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .strip, .media-pair { grid-template-columns: 1fr; } }

/* quality */
.quality { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.quality-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.quality-media video { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 960px) { .quality { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .quality-media { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 28px 0 0; padding: 0; }
.checks li { padding: 16px 0 16px 34px; border-top: 1px solid var(--line); position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 23px; width: 18px; height: 8px; background: var(--tape);
}
.checks strong { display: block; color: var(--navy); font-weight: 650; }

/* about */
.about-photo { margin: 0 0 48px; }
.about-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); }
.party { padding: 28px 40px 8px 0; }
.party + .party { padding-left: 40px; border-left: 1px solid var(--line); }
.party .role { font-size: 15px; color: var(--steel); margin: 0 0 6px; }
.party h3 { margin-bottom: 14px; }
@media (max-width: 760px) {
  .parties { grid-template-columns: 1fr; }
  .party + .party { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- RFQ ---------- */
.rfq-section { background: var(--navy); color: var(--white); }
.rfq-section h2 { color: var(--white); }
.rfq-section .section-head p { color: #C7D2DC; }
.rfq-section a { color: var(--tape); }
.rfq a { color: var(--blue); }

.rfq { background: var(--white); color: var(--ink); border-radius: 4px; padding: clamp(20px, 3vw, 40px); }
.rfq fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.rfq legend { font-stretch: var(--cond); font-weight: 760; font-size: 22px; color: var(--navy); padding: 0; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: 1 / -1; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--steel); }
.unit { display: flex; align-items: stretch; }
.unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.unit span {
  display: flex; align-items: center; padding: 0 12px; background: var(--paper); border: 1px solid #B9C3CD; border-left: 0;
  border-radius: 0 3px 3px 0; font-size: 14px; color: var(--steel); font-variant-numeric: tabular-nums;
}
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 12px; min-height: 46px; border: 1px solid #B9C3CD; border-radius: 3px; background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--tape); outline-offset: 0; border-color: var(--navy); }

.rfq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.rfq-actions .btn { margin-top: 20px; }
.rfq-note { font-size: 14px; color: var(--steel); margin: 20px 0 0; max-width: 52ch; }
.rfq-direct { margin-top: 32px; color: #C7D2DC; }
.rfq-direct strong { color: var(--white); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: #0A1D31; color: #AEBBC8; font-size: 15px; padding: 56px 0 40px; }
.site-footer a { color: #DCE3EA; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 20px; margin-bottom: 10px; }
.site-footer p { margin: 0 0 8px; }
.footer-base { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.page-header { position: static; background: var(--navy); }
.legal { padding: 56px 0 var(--section); }
.legal h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 32px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 32px; margin: 0; max-width: 760px; }
.legal dt { color: var(--steel); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 10px; } }
.legal ul { max-width: var(--measure); padding-left: 20px; }
.updated { color: var(--steel); font-size: 15px; }

