/* ============================================================
   EMTOP light industrial homepage (front-page.php) — 2026-11-19
   Scoped to .emtop-home. Navy #0b2545, amber accent #e8a317.
   No web fonts; system sans + system mono.
   ============================================================ */

/* let the homepage use full width inside The7's #main (front page only) */
body.home #main { padding-top: 0; padding-bottom: 0; }
body.home #main .wf-wrap { width: 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
body.home #main .wf-container-main { width: 100%; }

.emtop-home {
  --eh-navy: #0b2545; --eh-navy-2: #13315c; --eh-ink: #1d2733; --eh-muted: #5b6676;
  --eh-line: #dde2e8; --eh-gray: #f4f6f8; --eh-amber: #e8a317; --eh-amber-ink: #8a5a00;
  --eh-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --eh-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: var(--eh-sans); font-size: 16px; line-height: 1.6; color: var(--eh-ink); background: #fff;
}
.emtop-home *, .emtop-home *::before, .emtop-home *::after { box-sizing: border-box; }
.emtop-home img { max-width: 100%; height: auto; display: block; }
.emtop-home a { color: var(--eh-navy); text-decoration: none; }
.emtop-home a:hover { color: var(--eh-navy-2); text-decoration: underline; }
.emtop-home h1, .emtop-home h2, .emtop-home h3 { font-family: var(--eh-sans); color: var(--eh-navy); margin: 0; letter-spacing: -0.01em; }
.emtop-home h2 { font-size: 28px; line-height: 1.25; font-weight: 700; }
.emtop-home ul { list-style: none; margin: 0; padding: 0; }
.emtop-home p { margin: 0; }
.eh-mono, .eh-num { font-family: var(--eh-mono); font-variant-numeric: tabular-nums; }
.eh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.eh-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.emtop-home .eh-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; border: 1px solid var(--eh-navy); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background-color .15s, color .15s; }
.emtop-home .eh-btn-primary { background: var(--eh-navy); color: #fff; }
.emtop-home .eh-btn-primary:hover { background: var(--eh-navy-2); color: #fff; text-decoration: none; }
.emtop-home .eh-btn-line { background: #fff; color: var(--eh-navy); }
.emtop-home .eh-btn-line:hover { background: var(--eh-gray); text-decoration: none; }
.emtop-home .eh-btn-accent { background: var(--eh-amber); border-color: var(--eh-amber); color: #1b1300; }
.emtop-home .eh-btn-accent:hover { background: #d29210; color: #1b1300; text-decoration: none; }

/* ---------- hero ---------- */
.eh-hero { background: var(--eh-gray); border-bottom: 1px solid var(--eh-line); }
.eh-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eh-eyebrow { font-family: var(--eh-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--eh-amber-ink); margin-bottom: 14px !important; }
.eh-hero h1 { font-size: 40px; line-height: 1.15; font-weight: 700; margin-bottom: 16px; }
.eh-lead { font-size: 17px; color: var(--eh-muted); max-width: 560px; margin-bottom: 28px !important; }
.eh-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px !important; border-top: 1px solid var(--eh-line); }
.eh-facts li { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--eh-line); }
.eh-facts li:last-child { border-right: 0; margin-right: 0; }
.eh-facts b { display: block; font-size: 20px; color: var(--eh-navy); font-weight: 600; }
.eh-facts span { font-size: 13px; color: var(--eh-muted); }
.eh-hero-media { margin: 0; background: #fff; border: 1px solid var(--eh-line); border-radius: 6px; padding: 20px; }
.eh-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.eh-hero-media figcaption { margin-top: 10px; font-size: 13px; color: var(--eh-muted); border-top: 1px solid var(--eh-line); padding-top: 10px; }

/* ---------- sections ---------- */
.eh-section { padding: 64px 0; }
.eh-gray { background: var(--eh-gray); border-top: 1px solid var(--eh-line); border-bottom: 1px solid var(--eh-line); }
.eh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.eh-kicker { font-family: var(--eh-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--eh-amber-ink); margin-bottom: 6px !important; }
.emtop-home .eh-more { font-weight: 600; font-size: 15px; white-space: nowrap; }
.eh-note { margin-top: 12px !important; font-size: 13px; color: var(--eh-muted); }

/* ---------- platform matrix ---------- */
.eh-table-wrap { overflow-x: auto; border: 1px solid var(--eh-line); border-radius: 6px; }
.emtop-home .eh-matrix { width: 100%; min-width: 980px; border-collapse: collapse; margin: 0; font-size: 14px; background: #fff; }
.emtop-home .eh-matrix th, .emtop-home .eh-matrix td { padding: 12px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--eh-line); }
.emtop-home .eh-matrix thead th { background: var(--eh-navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.emtop-home .eh-matrix tbody tr:last-child th, .emtop-home .eh-matrix tbody tr:last-child td { border-bottom: 0; }
.emtop-home .eh-matrix tbody tr:hover { background: #fbfaf5; }
.emtop-home .eh-matrix tbody th { font-weight: 700; white-space: nowrap; }
.emtop-home .eh-matrix td.eh-mono { font-size: 13px; }
.emtop-home .eh-matrix td:nth-child(4) { white-space: nowrap; }

/* ---------- product lines ---------- */
.eh-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.eh-line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; background: #fff; border: 1px solid var(--eh-line); border-radius: 6px; padding: 16px; }
.eh-line:hover { border-color: #b8c2cf; }
.eh-line-img { display: block; width: 96px; height: 96px; }
.eh-line-img img { width: 96px; height: 96px; object-fit: contain; }
.eh-line h3 { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.eh-line li { font-size: 13px; line-height: 1.7; }
.eh-also { margin-top: 20px !important; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.eh-also span { color: var(--eh-muted); }
.emtop-home .eh-also a { font-weight: 600; }

/* ---------- docs + service ---------- */
.eh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.eh-panel { border: 1px solid var(--eh-line); border-radius: 6px; padding: 28px; background: #fff; border-top: 3px solid var(--eh-navy); }
.eh-panel h2 { font-size: 22px; margin-bottom: 12px; }
.eh-panel > p { color: var(--eh-muted); margin-bottom: 16px !important; }
.eh-links li { border-top: 1px solid var(--eh-line); }
.emtop-home .eh-links a { display: block; padding: 11px 0; font-weight: 600; }
.eh-svcs li { border-top: 1px solid var(--eh-line); }
.emtop-home .eh-svcs a { display: block; padding: 12px 0; color: var(--eh-ink); }
.emtop-home .eh-svcs a:hover { text-decoration: none; }
.emtop-home .eh-svcs a:hover strong { text-decoration: underline; }
.eh-svcs strong { display: block; color: var(--eh-navy); }
.eh-svcs span { font-size: 14px; color: var(--eh-muted); }

/* ---------- CTA band ---------- */
.eh-cta-band { border-top: 1px solid var(--eh-line); background: #fff; padding: 40px 0 56px; }
.eh-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-left: 4px solid var(--eh-amber); padding-left: 24px; }
.eh-cta-band h2 { font-size: 24px; margin-bottom: 6px; }
.eh-cta-band p { color: var(--eh-muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .eh-hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .eh-hero h1 { font-size: 30px; }
  .eh-hero-media { max-width: 520px; }
  .eh-two { grid-template-columns: 1fr; }
  .eh-cta-inner { flex-direction: column; align-items: flex-start; }
  .eh-section { padding: 44px 0; }
}
@media (max-width: 760px) {
  .emtop-home .eh-matrix { min-width: 0; }
  .emtop-home .eh-matrix thead { display: none; }
  .emtop-home .eh-matrix, .emtop-home .eh-matrix tbody, .emtop-home .eh-matrix tr, .emtop-home .eh-matrix th, .emtop-home .eh-matrix td { display: block; width: 100%; }
  .emtop-home .eh-matrix tr { border-bottom: 1px solid var(--eh-line); padding: 10px 0; }
  .emtop-home .eh-matrix tbody tr:last-child { border-bottom: 0; }
  .emtop-home .eh-matrix th, .emtop-home .eh-matrix td { border: 0; padding: 3px 14px; white-space: normal !important; }
  .emtop-home .eh-matrix tbody th { font-size: 16px; padding-top: 6px; }
  .emtop-home .eh-matrix td::before { content: attr(data-label); display: block; font-family: var(--eh-sans); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--eh-muted); }
}
@media (max-width: 560px) {
  .eh-wrap { padding: 0 16px; }
  .eh-hero h1 { font-size: 26px; }
  .emtop-home h2 { font-size: 22px; }
  .eh-head { flex-direction: column; align-items: flex-start; }
  .eh-facts li { padding-right: 16px; margin-right: 16px; }
  .eh-line { grid-template-columns: 72px 1fr; }
  .eh-line-img, .eh-line-img img { width: 72px; height: 72px; }
}
