/* Hwacheon Americas — site theme overrides on top of the Industry design system.
   Montserrat throughout, rounded corners, no blueprint registration marks. */

/* Montserrat, self-hosted (latin + latin-ext) so pages don’t wait on Google Fonts. */
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("assets/fonts/montserrat-latin-ext-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("assets/fonts/montserrat-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Montserrat", system-ui, sans-serif;
  /* The accent ramp is re-pitched onto the logo blue (#0d5cab) so the whole
     site reads as Hwacheon rather than generic steel. Steps keep the design
     system's perceptual spacing: 100-300 tints, 600 the brand itself, 700+ for
     type on light grounds (accent-700 clears 4.5:1 on --color-bg). */
  --color-brand: #0d5cab;
  --color-accent-100: #eef5fd;
  --color-accent-200: #d5e6f8;
  --color-accent-300: #a9c9ee;
  --color-accent-400: #74a5de;
  --color-accent-500: #3980c6;
  --color-accent: #0d5cab;
  --color-accent-600: #0b5197;
  --color-accent-700: #094275;
  --color-accent-800: #073255;
  --color-accent-900: #0a2340;
  --color-divider: #dfe3e8;
  --color-surface: #f7f9fc;
  /* Muted copy roles taken from the Industry neutral ramp — both clear 4.5:1
     on the --color-bg ground, which ad-hoc color-mix() tints did not. */
  --color-muted: var(--color-neutral-700);
  --color-muted-strong: var(--color-neutral-800);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --radius-btn: 10px;
  /* The overlay menu's panel language, translated to the light ground:
     a raised white plate rather than a tinted glass one. */
  --panel-bg: #ffffff;
  --panel-border: #e3e8ee;
  --panel-shadow: 0 1px 2px rgba(10, 35, 64, 0.04), 0 10px 28px rgba(10, 35, 64, 0.06);
  --panel-shadow-hover: 0 2px 4px rgba(10, 35, 64, 0.05), 0 18px 44px rgba(10, 35, 64, 0.10);
}

body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; }

/* One type scale for the whole site. Pages carry no inline heading sizes —
   h1 page title, h2 section title, h3 block title, h6 kicker. */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
h1 { font-size: clamp(32px, min(3.8vw, 7.5vh), 64px); line-height: 1.02; letter-spacing: -0.024em; }
h2 { font-size: clamp(24px, min(2.5vw, 5vh), 42px); line-height: 1.07; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.014em; }
h4 { font-size: 19px; line-height: 1.3; }
/* Kicker / eyebrow: one recipe (Nov 3 2026 type pass). h6 on light grounds is brand blue; dark grounds set accent-300 inline. .eyebrow is the same look on a span, where a heading tag would be wrong (inside buttons, list rows). */
h5, h6, .eyebrow { font-family: var(--font-heading); font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; }
h6 { color: var(--color-accent-700); }
.eyebrow { color: var(--color-muted); }
p { line-height: 1.65; }

/* Text sizes below body (Nov 3 2026): 15px inside cards and list rows, 14px meta, 13px fine print. No other sizes on the pages. */
.t-card { font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }
.t-sub { font-family: var(--font-heading); font-weight: 600; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.3; letter-spacing: -0.012em; }
/* The blue statement under a section kicker ("Machine tools built on decades of…"). */
.t-intro { font-family: var(--font-heading); font-weight: 600; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.35; letter-spacing: -0.012em; color: var(--color-accent-700); }
.small { font-size: 15px; line-height: 1.6; }
.meta { font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.fine { font-size: 13px; line-height: 1.5; color: var(--color-muted); }
/* Arrow text links ("See solutions →"): one style. */
.link-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); text-decoration: none; transition: color .2s ease; }
.link-more:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.link-more svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Titles inside a card or side panel, where the section scale would shout. */
.t-panel { font-size: clamp(20px, 2.2vw, 28px) !important; line-height: 1.15 !important; letter-spacing: -0.016em !important; }

/* Intro paragraph under a page title. */
.lead { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; }

/* Montserrat is far wider than Barlow Condensed — pull the display sizes back
   in with tighter tracking so long headlines still fit their measure. */
h1, h2, h3, h4 { letter-spacing: -0.022em; }

/* Blueprint frames become raised panels — the light-ground twin of the
   overlay menu's glass plates. */
.blueprint {
  border-radius: var(--radius);
  background-image: none;
  background-color: var(--panel-bg);
  border-color: var(--panel-border);
  box-shadow: var(--panel-shadow);
}
.blueprint > .corner,
.corner { display: none !important; }

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--panel-bg);
  border-color: var(--panel-border);
  box-shadow: var(--panel-shadow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
a.card:hover, a.blueprint:hover {
  transform: translateY(-3px);
  box-shadow: var(--panel-shadow-hover);
  border-color: var(--color-accent-300);
}
/* Rounded-square buttons, matching the lineup cards and menu tiles. */
.btn { border-radius: var(--radius-btn); }
/* Outline buttons match the hero buttons: 13px/24px padding, 14px type. */
.btn-secondary { box-sizing: border-box; min-height: 45px; padding: 13px 24px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.1em !important; align-items: center; }
/* Every outline button matches the hero's "Explore the lineup": blue text, blue hairline, 58px. Compact ones (nav, map toolbar) keep their height. */
.btn-secondary { color: var(--color-accent-700); border-color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.06em !important; gap: 14px; }
.btn-secondary:not(.btn-compact) { min-height: 58px; padding: 0 34px; font-size: 16px; }
/* Outline buttons fill with Hwacheon blue on hover; !important beats per-button inline colours. */
.btn-secondary { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--color-accent) !important; border-color: var(--color-accent) !important; color: #fff !important; }
.btn-secondary:active { background: var(--color-accent-700) !important; border-color: var(--color-accent-700) !important; color: #fff !important; }
/* Solid buttons share the outline buttons' box, type and spacing. */
.btn-primary { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em !important; }
.btn-primary:not(.btn-compact) { min-height: 58px; padding: 0 34px; font-size: 16px; }
.btn-primary { box-shadow: 0 2px 8px color-mix(in srgb, var(--color-accent) 26%, transparent); }
.btn-primary { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
/* Solid buttons turn white with blue text on hover; !important beats per-button inline colours. */
.btn-primary:hover, .btn-primary:focus-visible { background: #ffffff !important; color: var(--color-accent-700) !important; border-color: var(--color-accent) !important; box-shadow: 0 2px 8px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-primary:active { background: var(--color-accent-100) !important; color: var(--color-accent-800) !important; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.input, select.input, textarea.input { border-radius: var(--radius-sm); }
.tag { border-radius: 999px; }
.table { border-radius: var(--radius); overflow: hidden; }
figure > img, .duotone { border-radius: var(--radius); }
.duotone > img { border-radius: inherit; }

/* The card grid puts its own border-radius on the media block's wrapper. */
.card .duotone { border-radius: 0; }
.card > :first-child { border-radius: var(--radius) var(--radius) 0 0; }

/* Icon links — Lucide geometry, stroked at 1.5 per the design system. Stroke
   styling lives here so the templates carry only the path data. */
.icon-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.icon-link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-link svg.solid { fill: currentColor; stroke: none; }
.icon-link.lg svg { width: 22px; height: 22px; }

/* Footer — identical on every page. */
.site-footer { background: var(--color-accent-900); color: #eaf1fa; }
.site-footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); max-width: 1400px; margin: 0 auto; padding: clamp(44px, 6vw, 76px) clamp(16px, 4vw, 56px) 0; }
.site-footer h6 { margin: 0 0 14px; color: var(--color-accent-300); letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer a { color: #eaf1fa; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.site-footer-links { display: grid; gap: 9px; font-size: 14px; }
@media (pointer: coarse) { .site-footer-links { gap: 2px; } .site-footer-links a { padding: 8px 0; } }
.site-footer-mark { display: block; width: 168px; height: auto; color: #ffffff; padding: 10px 0 2px; }
.site-footer-tag { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #a9c9ee; }
.site-footer-base { max-width: 1400px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 56px) 30px; }
.site-footer-rule { border-top: 1px solid rgba(234, 241, 250, 0.16); padding-top: 22px; font-size: 12px; color: #a9c9ee; }

/* A faint brand wash, as on the overlay — used on hero sections and the footer. */
.brand-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 8% 0%, color-mix(in srgb, var(--color-accent) 12%, transparent) 0%, transparent 62%); }
.site-footer .brand-wash { background: radial-gradient(120% 90% at 8% 0%, rgba(13,92,171,0.5) 0%, rgba(10,35,64,0) 62%); }
.site-footer { position: relative; overflow: hidden; }
.site-footer-inner, .site-footer-base { position: relative; }
.footer-mark-bg { position: absolute; right: -4%; bottom: 12%; width: min(46vw, 620px); height: auto; opacity: 0.045; pointer-events: none; }

/* Photographs show in their natural colour — no accent wash. */
.duotone::after { content: none; display: none; }



/* Phone: wider side gutters and left-aligned text everywhere. */
@media (max-width: 760px) {
  [style*="clamp(16px, 4vw, 56px)"] { padding-left: 24px !important; padding-right: 24px !important; }
  h1, h2, h3, h4, h5, h6, p { text-align: left; }
}

/* Footer newsletter field: readable placeholder on the dark footer. */
[data-sub-email]::placeholder { color: #a9c9ee; opacity: 1; }

/* Newsletter row shares the footer's 4-column grid: copy over columns 1–2, form over 3–4. */
.site-footer-news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px clamp(28px, 4vw, 56px); align-items: start; }
.site-footer-news > * { grid-column: span 2; min-width: 0; }
@media (max-width: 1100px) { .site-footer-news { grid-template-columns: minmax(0, 1fr); } .site-footer-news > * { grid-column: auto; } }

/* HMAteam shared pieces (Nov 2 2026 design pass, step 1). New admin pages use these instead of their own rules. */
.hw-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.hw-tbl th { padding: 12px 12px; text-align: left; background: var(--color-surface); font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--color-muted); white-space: nowrap; }
.hw-tbl td { padding: 12px; border-top: 1px solid var(--color-divider); vertical-align: middle; }
.hw-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.st-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e9edf2; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.st-pill.wait { background: #dbeafe; color: #1e4f8a; } .st-pill.warn { background: #fef3c7; color: #8a5a00; } .st-pill.ok { background: #dcfce7; color: #166534; } .st-pill.bad { background: #fee2e2; color: #991b1b; }
.hw-empty { margin: 0; padding: 28px 24px; border: 1px dashed var(--color-divider); border-radius: var(--radius-sm); text-align: center; font-size: 14px; line-height: 1.5; color: var(--color-muted); }

/* Scrolling side lists in rounded cards (Nov 2 2026, user: the Dealers list looked square at the top right): a thin scrollbar that starts below the corner. */
.dd-nav, .ql-ppl, .mg-ppl, .op-nav, .pd-nav, .sl-nav, .sk-nav, .ht-nav, .ib-nav, .ib-list, .pp-nav, .tk-side { scrollbar-width: thin; scrollbar-color: transparent transparent; }
/* The bar only shows while the pointer is over the list (it still scrolls with the wheel and by touch). */
.dd-nav:hover, .ql-ppl:hover, .mg-ppl:hover, .op-nav:hover, .pd-nav:hover, .sl-nav:hover, .sk-nav:hover, .ht-nav:hover, .ib-nav:hover, .ib-list:hover, .pp-nav:hover, .tk-side:hover { scrollbar-color: #c8d1db transparent; }
.dd-nav::-webkit-scrollbar, .ql-ppl::-webkit-scrollbar, .mg-ppl::-webkit-scrollbar, .op-nav::-webkit-scrollbar, .pd-nav::-webkit-scrollbar, .sl-nav::-webkit-scrollbar, .sk-nav::-webkit-scrollbar, .ht-nav::-webkit-scrollbar, .ib-nav::-webkit-scrollbar, .ib-list::-webkit-scrollbar, .pp-nav::-webkit-scrollbar, .tk-side::-webkit-scrollbar { width: 8px; }
.dd-nav::-webkit-scrollbar-track, .ql-ppl::-webkit-scrollbar-track, .mg-ppl::-webkit-scrollbar-track, .op-nav::-webkit-scrollbar-track, .pd-nav::-webkit-scrollbar-track, .sl-nav::-webkit-scrollbar-track, .sk-nav::-webkit-scrollbar-track, .ht-nav::-webkit-scrollbar-track, .ib-nav::-webkit-scrollbar-track, .ib-list::-webkit-scrollbar-track, .pp-nav::-webkit-scrollbar-track, .tk-side::-webkit-scrollbar-track { margin: var(--radius) 0; background: transparent; }
.dd-nav::-webkit-scrollbar-thumb, .ql-ppl::-webkit-scrollbar-thumb, .mg-ppl::-webkit-scrollbar-thumb, .op-nav::-webkit-scrollbar-thumb, .pd-nav::-webkit-scrollbar-thumb, .sl-nav::-webkit-scrollbar-thumb, .ht-nav::-webkit-scrollbar-thumb, .sk-nav::-webkit-scrollbar-thumb, .ib-nav::-webkit-scrollbar-thumb, .ib-list::-webkit-scrollbar-thumb, .pp-nav::-webkit-scrollbar-thumb, .tk-side::-webkit-scrollbar-thumb { border: 2px solid #ffffff; border-radius: var(--radius-pill); background: transparent; }
.dd-nav:hover::-webkit-scrollbar-thumb, .ql-ppl:hover::-webkit-scrollbar-thumb, .mg-ppl:hover::-webkit-scrollbar-thumb, .op-nav:hover::-webkit-scrollbar-thumb, .pd-nav:hover::-webkit-scrollbar-thumb, .sl-nav:hover::-webkit-scrollbar-thumb, .sk-nav:hover::-webkit-scrollbar-thumb, .ht-nav:hover::-webkit-scrollbar-thumb, .ib-nav:hover::-webkit-scrollbar-thumb, .ib-list:hover::-webkit-scrollbar-thumb, .pp-nav:hover::-webkit-scrollbar-thumb, .tk-side:hover::-webkit-scrollbar-thumb { background: #c8d1db; }
