/* ============================================================
   MHY Kiosk — Shared theme
   Brand: deep blue #1456C9, navy #0B2A6B, amber #FFC51D
   ============================================================ */
:root {
  color-scheme: light;
  --brand: #1456c9;
  --brand-600: #0f47ac;
  --brand-dark: #0b2a6b;
  --navy: #0a1f4e;
  --brand-cyan: #19b6e8;
  --accent: #ffc51d;
  --accent-600: #f2b700;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #16233b;
  --muted: #5b6b82;
  --border: #e3e8f0;
  --focus: #0b66ff;
  --ok: #15a05a;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 92, 0.06);
  --shadow-card: 0 10px 30px -12px rgba(16, 42, 92, 0.18);
  --shadow-lift: 0 18px 40px -14px rgba(16, 42, 92, 0.28);
  --content: 1200px;
  --space: 0.25rem;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: min(var(--content), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: linear-gradient(160deg, var(--navy), var(--brand-dark)); color: #dbe6fb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.bg-white { background: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.section--dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #b9cbf0; }
.text-center { text-align: center; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: fixed; left: 1rem; top: 1rem; transform: translateY(-220%);
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--accent); color: #2a2205; }
.btn-accent:hover { background: var(--accent-600); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: rgba(20,86,201,.06); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #cfe0ff; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: center; gap: 1.5rem; padding: 0.45rem 0; flex-wrap: wrap; text-align: center; }
.topbar strong { color: #fff; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand) 55%, #7a5cff);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.main-nav > ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; align-items: center; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.8rem; color: var(--text); font-weight: 600; font-size: 0.94rem;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav-item > a:hover, .nav-item > button:hover { color: var(--brand); background: rgba(20,86,201,.06); text-decoration: none; }
.nav-item > a[aria-current="page"] { color: var(--brand); }
.caret { font-size: 0.65rem; opacity: .6; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 0.5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item > button[aria-expanded="true"] ~ .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--text); font-size: 0.9rem; }
.dropdown a:hover { background: var(--bg); color: var(--brand); text-decoration: none; }
.dropdown .dd-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0.5rem 0.7rem 0.25rem; }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.lang { font-size: 0.85rem; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .65rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1100px 480px at 78% -10%, #e7f0ff 0%, #f6f8fc 55%); }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; padding: 4.5rem 0 4rem; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 1.1rem; }
.hero p.lead { font-size: 1.13rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 1.25rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .tick { color: var(--ok); font-weight: 900; }
.hero-media { position: relative; }
.hero-media .grid-bg {
  position: absolute; inset: -6% -4% -10% -4%; border-radius: 24px;
  background-image: linear-gradient(rgba(20,86,201,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(20,86,201,.08) 1px, transparent 1px);
  background-size: 34px 34px; z-index: 0;
}
.hero-media img { position: relative; z-index: 1; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(16,42,92,.22)); max-height: 480px; object-fit: contain; }
.hero-badge {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-card); border-radius: 12px; padding: .6rem .9rem; font-size: .82rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: .5rem;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.hero-badge.b1 { top: 6%; left: -2%; }
.hero-badge.b2 { bottom: 8%; right: -2%; }

.badge-strip { border-top: 1px solid var(--border); background: #fff; }
.badge-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem; padding: 1.4rem 0; }
.cert { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--brand-dark); font-size: .95rem; border: 1.5px solid var(--border); border-radius: 999px; padding: .4rem 1rem; background: #fff; }
.cert small { color: var(--muted); font-weight: 500; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); text-decoration: none; }
.card .card-media { background: #fff; aspect-ratio: 4/3; display: grid; place-items: center; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.card .card-media img { max-height: 100%; width: auto; object-fit: contain; }
.card .card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card h3 { font-size: 1.12rem; margin: 0; }
.card .card-desc { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.card .card-link { color: var(--brand); font-weight: 700; font-size: .9rem; margin-top: .5rem; }
.card .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--brand); background: rgba(20,86,201,.08); padding: .2rem .6rem; border-radius: 999px; }

.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(20,86,201,.09); color: var(--brand);
}
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* industry cards on dark */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.industry-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md);
  padding: 1.4rem 1rem; text-align: center; color: #fff; transition: background .15s, transform .15s;
}
.industry-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); text-decoration: none; }
.industry-card .ic { width: 46px; height: 46px; margin: 0 auto .7rem; display: grid; place-items: center; color: var(--accent); }
.industry-card span { font-weight: 700; font-size: .92rem; }

/* ---------- Stats / steps ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; color: var(--brand); line-height: 1; }
.stat .num em { color: var(--accent-600); font-style: normal; }
.stat .lbl { color: var(--muted); font-weight: 600; margin-top: .5rem; font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; text-align: left; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin-bottom: .75rem;
}
.step h4 { font-size: .98rem; margin-bottom: .25rem; }
.step p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Media / factory banner ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.media-right .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0; }
.checklist li { display: flex; gap: .65rem; padding: .4rem 0; font-size: .97rem; }
.checklist .tick { color: var(--ok); font-weight: 900; flex: none; }

.factory-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: center; }
.factory-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.factory-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,78,.92) 0%, rgba(10,31,78,.55) 60%, rgba(10,31,78,.2) 100%); }
.factory-banner .inner { position: relative; z-index: 1; padding: 3rem; max-width: 560px; color: #fff; }
.factory-banner h2 { color: #fff; }
.factory-banner p { color: #cfe0ff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-radius: var(--radius-lg); color: #fff; padding: clamp(2.25rem, 5vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #cfe0ff; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; margin-bottom: .9rem; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ---------- Breadcrumb / page hero ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 1rem 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-hero { background: linear-gradient(135deg, var(--navy), var(--brand-dark)); color: #fff; padding: 3.5rem 0; }
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero p { color: #c2d4f5; max-width: 44em; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--accent); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: .94rem; vertical-align: top; }
.spec-table th { width: 32%; background: var(--bg); color: var(--navy); font-weight: 700; }
.spec-table tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(20,86,201,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .75rem; }

.contact-info li { list-style: none; display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.contact-info .ic { color: var(--brand); flex: none; margin-top: 3px; }
.contact-info ul { padding: 0; margin: 0; }

/* ---------- Article / resources ---------- */
.article { max-width: 780px; margin-inline: auto; }
.article h2 { margin-top: 2.25rem; }
.article h3 { margin-top: 1.6rem; }
.article p, .article li { color: #2d3c54; }
.article blockquote { border-left: 4px solid var(--accent); background: #fff; margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.article th, .article td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.article th { background: var(--bg); }

/* logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.logo-wall .logo-cell { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; display: grid; place-items: center; font-weight: 700; color: var(--brand-dark); font-size: .92rem; text-align: center; min-height: 64px; }

/* timeline */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.6rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.75rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.timeline-item .yr { font-weight: 800; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebfe2; padding: 4rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #aebfe2; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand p { font-size: .87rem; color: #93a7d0; }
.footer-certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.footer-certs .cert { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #dce7ff; font-size: .78rem; padding: .3rem .7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: #8298c4; }
.social { display: flex; gap: .75rem; }
.social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #cddcfb; }
.social a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.media-right .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: fixed; inset: 72px 0 0 0; background: #fff; z-index: 90; margin: 0;
    flex-direction: column; align-items: stretch; padding: 1rem; gap: .25rem;
    transform: translateX(100%); transition: transform .2s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-item > a, .nav-item > button { width: 100%; justify-content: space-between; padding: .9rem .5rem; font-size: 1.02rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; display: none; }
  .nav-item.open .dropdown { display: block; }
  .header-cta .btn { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .factory-banner .inner { padding: 2rem 1.5rem; }
  .topbar .container { gap: .35rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
