/* ============================================================
   Colamark USA — Design System
   Modern industrial B2B: deep navy, safety orange, clean grid
   ============================================================ */

:root {
  --navy-900: #0b1626;
  --navy-800: #101f36;
  --navy-700: #16294a;
  --navy-600: #1e3a66;
  --accent: #f97316;
  --accent-dark: #dd5f07;
  --accent-soft: #fff1e6;
  --ink: #17233a;
  --ink-soft: #48566e;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 22, 38, .08);
  --shadow-md: 0 8px 28px rgba(11, 22, 38, .12);
  --shadow-lg: 0 18px 50px rgba(11, 22, 38, .18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #b9c6da;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e8eef7; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-group { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; border-radius: 6px; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--navy-900); letter-spacing: -.02em; }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > .nav-item { position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 600 15px var(--font); color: var(--ink); text-decoration: none;
  border-radius: 8px;
}
.nav a.nav-link:hover, .nav button.nav-link:hover,
.nav .nav-item.open > .nav-link { background: var(--bg-soft); color: var(--navy-900); }
.nav a.nav-link.active { color: var(--accent-dark); }
.nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav .nav-item.open .caret { transform: rotate(-135deg) translateY(-2px); }
.nav .nav-split { display: grid; grid-template-columns: auto 44px; align-items: stretch; }
.nav .nav-split > a.nav-link { padding-right: 4px; }
.nav .nav-split > .dropdown-toggle { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
#equipment { scroll-margin-top: 90px; }
.machine-search { margin: 28px 0; max-width: 560px; }
.machine-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.machine-search input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.machine-library-card[hidden] { display: none; }
.machine-library-card h2[id] { scroll-margin-top: 110px; }
.machine-photo-request { color: var(--ink-soft); text-align: center; }
.service-contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.service-contact-strip h2 { margin-bottom: 0; }
.service-task { scroll-margin-top: 90px; }
.service-task h2 { font-size: 23px; line-height: 1.25; }
.service-task-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; font-weight: 600; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: none;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.dropdown a small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 12.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 15px var(--font); text-decoration: none; transition: all .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.header-cta { margin-left: 10px; }

/* Mobile nav */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 75%);
}
.hero .container { position: relative; padding: 96px 24px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.16); border: 1px solid rgba(249,115,22,.45);
  color: #ffb47e; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 22px 0 34px; font-size: 19px; color: #c3cfe2; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats > div { background: rgba(11,22,38,.55); padding: 22px 28px; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats span { color: #9fb0c9; font-size: 13.5px; }


/* Homepage copy and equipment slideshow. */
.hero .hero-layout { max-width: 1360px; padding-block: clamp(48px, 5.5vw, 72px); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(55%, 660px));
  gap: clamp(24px, 3.75vw, 48px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-layout h1 { font-size: clamp(34px, 3.5vw, 48px); }
.hero-layout p.lead { margin: 20px 0 28px; font-size: clamp(17px, 1.5vw, 19px); }
.hero-layout .hero-eyebrow { font-size: 11px; letter-spacing: .04em; }
.hero-slideshow { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius); background: var(--navy-900); }
.hero-slideshow-stage { position: relative; }
.hero-slide { margin: 0; opacity: 0; visibility: hidden; position: absolute; inset: 0; transition: opacity .6s ease, visibility .6s; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f6fa; }
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-slideshow { width: 100%; max-width: 660px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(130deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 58px 0 50px;
}
.page-hero .crumbs { font-size: 13.5px; color: #8ea2bf; margin-bottom: 14px; }
.page-hero .crumbs a { color: #c3cfe2; text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: 12px; color: #c3cfe2; max-width: 680px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 700; font-size: 13px;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (width > 1020px) {
  .equipment-grid { max-width: 1042px; margin-inline: auto; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { object-fit: contain; padding: 14px; }
a.card-media:focus-visible { outline: 3px solid var(--navy-600); outline-offset: -3px; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3, .machine-card-heading h2 { font-size: 19px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
.card-body p { color: var(--ink-soft); font-size: 14.8px; flex: 1; }
.card-link { font-weight: 600; font-size: 14.5px; color: var(--accent-dark); text-decoration: none; }
.card-link::after { content: " →"; transition: margin .15s; }
.card:hover .card-link::after { margin-left: 4px; }
.machine-card-heading { display: flex; flex-direction: column; gap: 8px; padding: 18px 24px 16px; }
.machine-card .card-body { padding-top: 16px; padding-bottom: 12px; }
.machine-card .card-link { display: flex; align-items: center; min-height: 44px; align-self: flex-start; }
.machine-card .card-link::after { margin-left: 6px; }
.machine-card:hover .card-link::after { margin-left: 10px; }
.machine-card .machine-photo-request { text-decoration: none; padding: 16px; }
.card .tag {
  align-self: flex-start; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

/* Feature list card */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark); font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 17.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14.6px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: start; }
.product-detail .photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background:#fff; }
.product-detail .photo img { width: 100%; }
.about-intro { max-width: 1410px; }
.about-intro .product-detail { grid-template-columns: minmax(0, 792px) minmax(0, 1fr); }
@media (max-width: 1280px) {
  .about-intro .product-detail { grid-template-columns: 1fr; }
  .about-intro .photo { width: 100%; max-width: 792px; }
}
.product-detail h2 { font-size: 28px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; margin-bottom: 14px; }
.product-detail p, .equipment-details > p { color: var(--ink-soft); margin-bottom: 14px; }
.equipment-overview { padding-top: 0; scroll-margin-top: 110px; }
.equipment-details { display: block; max-width: 760px; }
.spec-list { list-style: none; margin: 18px 0 26px; }
.spec-list li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: 15px; }
.spec-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.machine-detail { padding-top: 32px; scroll-margin-top: 110px; }
.machine-detail .machine-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.machine-crumbs a { color: var(--navy-600); }
.machine-detail .product-detail { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; }
.machine-detail .machine-detail-photo { margin: 0; background: var(--bg-soft); }
.machine-detail-photo img, .machine-detail-photo .machine-photo-request { display: block; width: 100%; aspect-ratio: 16 / 10; }
.machine-detail-photo img { object-fit: contain; padding: 20px; }
.machine-detail-photo .machine-photo-request { display: grid; place-items: center; padding: 20px; }
.machine-detail-photo figcaption { border-top: 1px solid var(--line); padding: 12px 16px; color: var(--ink-soft); font-size: 14px; }
.machine-detail-copy h1 { color: var(--navy-900); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; overflow-wrap: anywhere; margin-bottom: 12px; }
.machine-detail-copy .eyebrow { color: var(--navy-600); margin: 0 0 8px; }
.machine-detail-copy .machine-description { font-size: 18px; margin-bottom: 24px; }
.machine-detail-copy h2 { margin-bottom: 8px; font-size: 22px; }
.machine-specs { margin: 0; }
.machine-specs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.machine-specs dt { font-weight: 600; }
.machine-specs dd { margin: 0; color: var(--ink-soft); }
.machine-spec-jump { display: inline-flex; margin-top: 20px; min-height: 44px; }
.machine-technical { margin-top: clamp(40px, 6vw, 72px); scroll-margin-top: 110px; }
.machine-technical h2 { margin-bottom: 20px; font-size: clamp(26px, 3.4vw, 36px); color: var(--navy-900); }
.machine-technical > details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.machine-technical > details > summary {
  padding: 13px clamp(14px, 3vw, 24px);
  color: var(--navy-700);
  font-weight: 700;
  cursor: pointer;
  border-radius: inherit;
}
.machine-technical > details > summary:hover,
.machine-technical > details[open] > summary { background: var(--bg-soft); }
.machine-technical > details[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.machine-spec-jump:focus-visible, .machine-technical > details > summary:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
}
.machine-technical > details > .machine-specs { margin: 0 clamp(14px, 3vw, 24px); padding: 4px 0; }
.machine-technical > details > .machine-specs > div:last-child { border-bottom: 0; }
.machine-resource-pending { align-self: center; padding: 8px 12px; background: var(--bg-soft); color: var(--ink-soft); border-radius: 8px; font-size: 14px; }
.machine-detail .machine-related { margin: 12px 0 0; }

/* ---------- Machine literature and videos ---------- */
.machine-resource-links { scroll-margin-top: 110px; min-width: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.machine-resource-links .detail-actions { margin-top: 12px; flex-direction: column; align-items: flex-start; }
.machine-resource-links .btn { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
.machine-resource-links .resource-video-note { color: var(--ink-soft); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.resource-primary { color: #fff; background: #c24d00; border: 1.5px solid #c24d00; }
.resource-primary:hover { color: #fff; background: #a64100; border-color: #a64100; }
.machine-spec-jump + .machine-resource-links .resource-primary {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}
.machine-spec-jump + .machine-resource-links .resource-primary:hover {
  color: var(--navy-900);
  border-color: var(--navy-700);
}
.machine-resource-links a:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; }
.machine-service-resources { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.machine-service-resources summary { min-height: 44px; padding: 10px 0; color: var(--navy-700); font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.machine-service-resources summary:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; }
.machine-service-resources .service-document { margin-top: 12px; }
.machine-service-resources .service-download { font-size: 14px; }
.resource-note { color: var(--ink-soft); font-size: 14px; margin: 24px 0 0; }
.resource-note a { color: var(--navy-700); text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 20px; color: #fff; padding: 54px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.35), transparent 65%);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; position: relative; }
.cta-band p { color: #c3cfe2; margin: 12px auto 28px; max-width: 560px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Partner logos ---------- */
.partner-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 26px; min-height: 92px;
  filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s, box-shadow .2s;
}
.partner:hover { filter: none; opacity: 1; box-shadow: var(--shadow-sm); }
.partner img { width: auto; max-height: 44px; max-width: 100%; object-fit: contain; }
@media (max-width: 1020px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Line banner (wide panorama) ---------- */
.line-banner {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 18px; box-shadow: var(--shadow-sm);
}
.line-banner img { width: 100%; height: auto; }
.line-banner figcaption { margin-top: 12px; font-size: 13.8px; color: var(--ink-soft); text-align: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background:#fff; }
table.doc-table { width: 100%; border-collapse: collapse; font-size: 14.8px; min-width: 560px; }
.doc-table th {
  text-align: left; background: var(--navy-900); color: #fff;
  padding: 13px 18px; font-weight: 600; font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase;
}
.doc-table td { padding: 13px 18px; border-top: 1px solid var(--line); }
.doc-table tr:hover td { background: var(--bg-soft); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: #e7f6ec; color: #157a3c; }
.badge.soon { background: #fff4e0; color: #a05e00; }

/* ---------- Public model-level service library ---------- */
.service-guidance { margin-bottom: 32px; max-width: 900px; }
.service-guidance h2 { color: var(--navy-900); font-size: 28px; line-height: 1.3; margin-bottom: 16px; }
.service-guidance p { margin: 12px 0; color: var(--ink-soft); }
.service-guidance p a, .service-library-note a { color: var(--navy-700); text-decoration: underline; }
.service-table caption { padding: 20px 18px; text-align: left; font-size: 18px; font-weight: 700; color: var(--navy-900); }
table.service-table { font-size: 16px; }
.service-table tbody th { background: #fff; color: var(--ink); border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; scroll-margin-top: 110px; }
.service-table tr { scroll-margin-top: 110px; }
.service-table td { vertical-align: top; }
.service-document + .service-document { margin-top: 18px; }
.service-download, .service-request { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy-700); text-decoration: underline; line-height: 1.5; }
.service-meta { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.service-library-note { color: var(--ink-soft); font-size: 14px; margin-top: 24px; }
.service-table-wrap:focus-visible, .service-table a:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-card h3 { font-size: 20px; font-weight: 800; color: var(--navy-900); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.8px; margin-bottom: 6px; color: var(--navy-900); }
.field label .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 400 15px var(--font); color: var(--ink); background: #fff; transition: border .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.field .error-msg { display: none; color: #c02626; font-size: 12.8px; margin-top: 5px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c02626; }
.field.invalid .error-msg { display: block; }
.form-status { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.form-status.ok { display: block; background: #e7f6ec; color: #157a3c; }
.form-status.error { display: block; background: #fff0ed; color: #a52d24; }
.turnstile-box { min-height: 70px; margin: 16px 0; }
.cfga-quote { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cfga-quote h3 { margin-bottom: 14px; color: var(--navy-900); }

.info-rows { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info-row .icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.info-row b { display: block; color: var(--navy-900); font-size: 14.5px; }
.info-row span, .info-row a { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Blog ---------- */
.blog-card:not(:has(> .card-media)) { align-self: start; }
.blog-card .meta { display: flex; gap: 10px; align-items: center; font-size: 12.8px; color: var(--ink-soft); }
.blog-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }
.article { max-width: 780px; margin: 0 auto; }
.article .art-meta { display: flex; gap: 12px; align-items: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 25px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; margin: 38px 0 14px; }
.article h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: #2c3a52; font-size: 16.5px; line-height: 1.75; }
.article ul, .article ol { margin: 0 0 18px 24px; color: #2c3a52; font-size: 16.5px; line-height: 1.75; }
.article li { margin-bottom: 8px; }
.article .pullout {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 26px 0; font-size: 15.8px; color: #7a3c05;
}
.article .art-cta { margin-top: 44px; padding: 30px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); text-align: center; }
.article .art-cta h3 { margin-top: 0; }

/* ---------- Configurator app ("Build My Equipment") ---------- */
.configurator-title { margin: 28px 0 0; font-size: clamp(24px, 3vw, 32px); color: var(--navy-900); letter-spacing: -.02em; }
.cfga {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 292px; gap: 28px;
  align-items: start; padding: 34px 0 70px;
}
.cfga svg { width: 22px; height: 22px; }

/* Left rail — step list */
.cfga-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; }
.cfga-rail-step {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: none; border: 1.5px solid transparent; border-radius: 12px;
  padding: 10px 12px; cursor: pointer; font-family: var(--font);
  color: var(--ink-soft); transition: all .15s;
}
.cfga-rail-step.open:hover { background: var(--bg-soft); }
.cfga-rail-step[disabled] { opacity: .45; cursor: default; }
.cfga-rail-step.now { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.cfga-dot {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px;
}
.cfga-dot svg { width: 15px; height: 15px; }
.cfga-rail-step.done .cfga-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.cfga-rail-step.now .cfga-dot { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.cfga-rail-txt { display: flex; flex-direction: column; min-width: 0; }
.cfga-rail-txt b { font-size: 14px; color: var(--navy-900); }
.cfga-rail-txt small { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfga-rail-final { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; }

/* Main panel */
.cfga-main { min-width: 0; }
.cfga-view.enter { animation: cfgaIn .32s ease both; }
@keyframes cfgaIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cfga-head { margin-bottom: 26px; }
.cfga-step-count {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px;
}
.cfga-head h2 { font-size: clamp(23px, 2.8vw, 30px); font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.cfga-head p { color: var(--ink-soft); margin-top: 8px; max-width: 560px; }
.cfga-group { margin-bottom: 30px; }
.cfga-group-title { font-size: 15.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.cfga-group-title em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--ink-soft); margin-left: 6px; }

/* Option grids */
.cfga-grid { display: grid; gap: 12px; }
.cfga-grid.style-photo { grid-template-columns: repeat(4, 1fr); }
.cfga-grid.style-icon { grid-template-columns: repeat(3, 1fr); }
.cfga-grid.style-chip { grid-template-columns: repeat(3, 1fr); }

.cfga-opt {
  position: relative; display: flex; text-align: left; background: #fff; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; font-family: var(--font);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cfga-opt:hover { border-color: var(--navy-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cfga-opt:focus-visible { outline: 3px solid rgba(249,115,22,.4); outline-offset: 2px; }
.cfga-opt.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.16); }
.cfga-tick {
  position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center;
}
.cfga-tick svg { width: 12px; height: 12px; }
.cfga-opt.picked .cfga-tick { display: flex; }
.cfga-opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cfga-opt-label { font-weight: 700; font-size: 14px; color: var(--navy-900); line-height: 1.3; }
.cfga-opt-desc { font-size: 12.6px; color: var(--ink-soft); line-height: 1.45; }

.cfga-opt.style-photo { flex-direction: column; padding: 10px 12px 14px; gap: 9px; }
.cfga-opt-photo { display: block; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: var(--bg-soft); }
.cfga-opt-photo img { width: 100%; height: 100%; object-fit: cover; }
.cfga-opt-photo.contain img { object-fit: contain; padding: 5px; }

.cfga-opt.style-icon { align-items: flex-start; gap: 12px; padding: 15px 15px 15px 13px; }
.cfga-opt-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.cfga-opt.picked .cfga-opt-icon { background: var(--accent); color: #fff; }

.cfga-opt.style-chip { flex-direction: column; padding: 14px 16px; gap: 2px; }
.cfga-chip-big { font-size: 19px; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }

/* Sticky nav */
.cfga-nav {
  position: sticky; bottom: 0; z-index: 20; margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 -6px 24px rgba(11,22,38,.06);
}
.cfga-nav-count { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cfga-continue[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.cfga-continue.ready { animation: cfgaPulse 1.6s ease 1; }
@keyframes cfgaPulse { 0% { box-shadow: 0 0 0 0 rgba(249,115,22,.45); } 70% { box-shadow: 0 0 0 12px rgba(249,115,22,0); } 100% { box-shadow: 0 4px 14px rgba(249,115,22,.35); } }

/* Right rail — live build summary */
.cfga-side {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
}
.cfga-side h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); margin-bottom: 12px; }
.cfga-side-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%;
  background: none; border: 0; border-bottom: 1px dashed var(--line); cursor: pointer;
  font-family: var(--font); padding: 8px 2px; text-align: left;
}
.cfga-side-row:hover span { color: var(--accent-dark); }
.cfga-side-row span { font-size: 12.4px; color: var(--ink-soft); flex: 0 0 auto; transition: color .15s; }
.cfga-side-row b { font-size: 12.8px; color: var(--navy-900); text-align: right; min-width: 0; }
.cfga-side-empty { font-size: 13px; color: var(--ink-soft); padding: 6px 0 2px; }
.cfga-match {
  margin-top: 16px; background: linear-gradient(130deg, var(--navy-900), var(--navy-700));
  border-radius: 12px; padding: 14px; color: #fff;
}
.cfga-match.dim { background: var(--bg-soft); color: var(--ink-soft); }
.cfga-match-kicker { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffb47e; margin-bottom: 8px; }
.cfga-match.dim .cfga-match-kicker { color: var(--ink-soft); }
.cfga-match-row { display: flex; gap: 12px; align-items: center; }
.cfga-match-row img { width: 56px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.cfga-match-row b { display: block; font-size: 14.5px; }
.cfga-match-row small { font-size: 11.6px; color: #b9c6da; line-height: 1.35; display: block; }
.cfga-match-hint { font-size: 12.3px; line-height: 1.5; }
.cfga-side-note { display: flex; gap: 9px; align-items: center; margin-top: 14px; font-size: 11.8px; color: var(--ink-soft); }
.cfga-side-note svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--accent-dark); }

/* Summary view */
.cfga-print-header, .cfga-print-footer { display: none; }
.cfga-summary-title { margin-top: 34px; }
.cfga.is-summary .cfga-side { display: none; }
.cfga.is-summary { grid-template-columns: 250px minmax(0, 1fr); }
.cfga-result {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  margin-bottom: 18px;
}
.cfga-result-photo { border-radius: 12px; overflow: hidden; background: var(--bg-soft); align-self: stretch; display: flex; align-items: center; }
.cfga-result-photo a { display: block; width: 100%; }
.cfga-result-photo img { width: 100%; max-height: 300px; object-fit: contain; }
.cfga-result-photo .machine-photo-request { width: 100%; padding: 24px 12px; }
.cfga-machine-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cfga-machine-links .card-link { display: inline-flex; align-items: center; min-height: 44px; }
.cfga-result-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.cfga-result-body h3 { font-size: 30px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; margin-top: 4px; }
.cfga-result-name { color: var(--ink-soft); font-weight: 600; margin: 2px 0 8px; }
.cfga-alt { margin-top: 10px; font-size: 13.8px; color: var(--ink-soft); }
.cfg-notes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.cfg-note {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 14px; color: #7a3c05;
}
.cfga-sum { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; }
.cfga-sum-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--bg-soft); }
.cfga-sum-row:last-child { border-bottom: 0; }
.cfga-sum-row > span { flex: 0 0 190px; font-size: 13.4px; color: var(--ink-soft); }
.cfga-sum-row > b { flex: 1; font-size: 14.3px; color: var(--navy-900); }
.cfga-edit { background: none; border: 0; cursor: pointer; color: var(--ink-soft); padding: 4px; border-radius: 6px; }
.cfga-edit:hover { color: var(--accent-dark); background: var(--accent-soft); }
.cfga-edit svg { width: 15px; height: 15px; }
.cfga-trust { display: flex; gap: 14px; align-items: center; margin-top: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font-size: 13.8px; color: var(--ink-soft); }
.cfga-trust-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.cfga-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Landing extras */
.cfg-steps-overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 34px 0; }
.cfg-step-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.cfg-step-card b { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 14px; margin-bottom: 10px; }
.cfg-step-card span { font-size: 13.6px; color: var(--ink-soft); }
.cfg-step-card h4 { font-size: 14.5px; color: var(--navy-900); margin-bottom: 4px; }
.cfg-popular { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Responsive */
@media (max-width: 1120px) {
  .cfga, .cfga.is-summary { grid-template-columns: 1fr; }
  .cfga-rail { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 8px; }
  .cfga-rail-step { flex: 0 0 auto; border: 1.5px solid var(--line); }
  .cfga-rail-txt small { display: none; }
  .cfga-rail-final { margin-top: 0; border-top: 1.5px solid var(--line); border-radius: 12px; padding-top: 10px; }
  .cfga-side { position: static; order: 3; }
  .cfga-grid.style-photo { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .cfga-grid.style-photo, .cfga-grid.style-icon, .cfga-grid.style-chip { grid-template-columns: repeat(2, 1fr); }
  .cfga-result { grid-template-columns: 1fr; }
  .cfga-sum-row > span { flex-basis: 120px; }
  .cfg-popular, .cfg-steps-overview { grid-template-columns: 1fr; }
  .cfga-nav { flex-wrap: wrap; }
  .cfga-nav-count { order: 3; width: 100%; text-align: center; }
}
@page configurator-summary { size: portrait; margin: 14mm; }
@media print {
  .topbar, .site-header, .site-footer, .cfga-nav, .cfga-rail, .cfga-side, .cfga-actions, .cfga-edit, #backTop { display: none !important; }
  .cfga, .cfga.is-summary { display: block; padding: 0; }
  .page-hero { background: none; color: #000; padding: 10px 0; }
  .page-hero h1, .page-hero p { color: #000; }

  /* Print a document, not the interactive quote form. Scope these overrides to
     the completed configurator so other pages retain their normal print flow. */
  body.configurator-summary { page: configurator-summary; }
  body.configurator-summary main > .container { width: 100%; max-width: none; padding: 0; }
  body.configurator-summary .configurator-title, .cfga.is-summary .cfga-head, .cfga.is-summary .cfga-quote { display: none !important; }
  .cfga.is-summary { width: 100%; max-width: none; margin: 0; color: var(--ink); font-size: 10.5pt; line-height: 1.4; }
  .cfga.is-summary .cfga-view { animation: none; transform: none; }
  .cfga-print-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--accent); padding: 0 0 16px; margin-bottom: 18px; break-inside: avoid; }
  .cfga-print-header img { width: 2in; height: auto; flex: 0 0 auto; }
  .cfga-print-header > div { text-align: right; }
  .cfga-print-header p { margin: 0; font-size: 10.5pt; }
  .cfga-print-header h2 { color: var(--navy-900); font-size: 20pt; line-height: 1.2; margin: 4px 0; }
  .cfga-print-reference { font-weight: 600; }
  .cfga.is-summary .cfga-result { grid-template-columns: 1fr 2fr; gap: 20px; padding: 0; border: 0; border-radius: 0; margin-bottom: 14px; break-inside: avoid; }
  .cfga.is-summary .cfga-result-photo { background: #fff; border-radius: 0; }
  .cfga.is-summary .cfga-result-photo img { height: 130px; max-height: 130px; object-fit: contain; }
  .cfga.is-summary .cfga-machine-links { display: none; }
  .cfga.is-summary .cfga-result-kicker { font-size: 9pt; color: #c24d00; }
  .cfga.is-summary .cfga-result-body h3 { font-size: 20pt; margin: 3px 0; }
  .cfga.is-summary .cfga-result-name, .cfga.is-summary .spec-list, .cfga.is-summary .cfga-alt { font-size: 10.5pt; line-height: 1.4; }
  .cfga.is-summary .spec-list li { margin-bottom: 3px; }
  .cfga.is-summary .cfga-alt { margin-top: 6px; }
  .cfga.is-summary .cfg-notes { display: block; margin: 0; }
  .cfga.is-summary .cfg-note { background: none; color: var(--ink-soft); border-left-width: 2px; border-radius: 0; padding: 5px 10px; margin-bottom: 6px; font-size: 10.5pt; line-height: 1.4; break-inside: avoid; }
  .cfga.is-summary .cfga-summary-title { font-size: 12pt; margin: 16px 0 6px; break-after: avoid; }
  .cfga.is-summary .cfga-sum { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 0; }
  .cfga.is-summary .cfga-sum-row { gap: 14px; padding: 4px 0; break-inside: avoid; }
  .cfga.is-summary .cfga-sum-row > span { flex: 0 0 145px; font-size: 10.5pt; }
  .cfga.is-summary .cfga-sum-row > b { font-size: 10.5pt; font-weight: 600; overflow-wrap: anywhere; }
  .cfga.is-summary .cfga-trust { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 0; margin-top: 12px; font-size: 10.5pt; line-height: 1.4; break-inside: avoid; }
  .cfga.is-summary .cfga-trust-icon { display: none; }
  .cfga-print-footer { display: block; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 16px; color: var(--ink-soft); font-size: 10.5pt; break-inside: avoid; }
  .cfga-print-footer p { margin: 0 0 5px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0c9; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 62px 0 48px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9fb0c9; text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 44px; width: auto; border-radius: 6px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a { color: #c3cfe2; }
.analytics-settings {
  margin-inline-start: 8px; border: 0; background: none; color: #c3cfe2;
  font: inherit; text-decoration: underline; cursor: pointer;
}
.analytics-notice {
  position: fixed; right: 16px; bottom: 16px; z-index: 300;
  width: min(420px, calc(100% - 32px)); padding: 16px;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.analytics-notice h2 { margin: 0 0 4px; font-size: 16px; }
.analytics-notice p { margin: 0; font-size: 14px; line-height: 1.5; }
.analytics-notice a, .privacy-notice a { color: var(--navy-700); text-decoration: underline; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media print { .analytics-notice { display: none !important; } }

/* Back to top */
#backTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--navy-900); color: #fff; font-size: 19px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s;
}
#backTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backTop:hover { background: var(--accent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .machine-detail .product-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 1120px) {
  /* A backdrop filter would confine the fixed navigation to the header's height. */
  .site-header { backdrop-filter: none; }
  .brand img { width: min(240px, calc(100vw - 112px)); height: auto; }
  .brand-name { display: none; }
  .nav-toggle { display: flex; justify-content: center; min-width: 44px; min-height: 44px; flex-shrink: 0; }
  .header-cta { display: none; }
  .nav {
    position: fixed; top: var(--mobile-nav-top, 74px); left: 0; right: 0; bottom: 0; z-index: 99;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px 22px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform .28s ease; }
  .nav a.nav-link, .nav button.nav-link { width: 100%; justify-content: space-between; padding: 15px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-split { grid-template-columns: 1fr 44px; }
  .nav .nav-split > .dropdown { grid-column: 1 / -1; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-item.open .dropdown { display: block; }
}
@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero .container { padding: 64px 24px; }
  .cta-band { padding: 40px 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .machine-detail-photo img { padding: 12px; }
}
