/* IMAGINARIUM — hardware.css
   Shared styles for the Hardware pages (Colibrium Additive, UltiMaker).
   Extends tokens.css / components.css / page.css patterns. */

/* ---------- hero ---------- */
.hw-hero .hero-body {
  padding: clamp(20px, 2.6vw, 40px) 0 clamp(40px, 5vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 80px); align-items: start; position: relative;
}
@media (max-width: 980px) { .hw-hero .hero-body { grid-template-columns: 1fr; } .hw-hero .hero-art { display: none; } }
.hw-brand-logo { height: clamp(64px, 7.4vw, 106px); width: auto; margin-bottom: clamp(18px, 2.4vw, 30px); }
body[data-page="ultimaker"] .hw-brand-logo { height: clamp(26px, 3vw, 42px); }
.hw-hero .t-title { font-size: clamp(40px, 5.6vw, 92px); }
.hw-hero .t-tag { font-size: clamp(26px, 3vw, 44px); margin: 12px 0 22px; line-height: 1.1; }
.hw-hero .t-body { max-width: 56ch; font-size: 16.5px; opacity: .85; }
.hw-avail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-deep);
}
.hw-avail::before { content: ""; width: 9px; height: 9px; background: var(--blue); flex-shrink: 0; }
.hw-cta-row { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 38px); }
.hw-mailnote { font-size: 13.5px; opacity: .72; max-width: 46ch; }
.hw-mailnote a { color: var(--blue-deep); text-decoration-color: rgba(10,111,176,.4); }
.hw-mailnote a:hover { color: var(--blue); }

/* ---------- machine illustrations (monoline) ---------- */
.hw-art svg, .machine-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hw-art .ln, .machine-art .ln {
  stroke: var(--blue); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hw-art .dash, .machine-art .dash { stroke-dasharray: 4 6; stroke-width: 1.4; opacity: .8; }
.hw-art .grn, .machine-art .grn { stroke: var(--pill-green, #2A7A4B); stroke-width: 3; }
.hw-art text, .machine-art text {
  fill: var(--ink); font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; opacity: .6;
}

/* ---------- catalog ---------- */
.hw-group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: clamp(36px, 4.6vw, 60px) 0 18px; }
.hw-group-head:first-child { margin-top: 0; }
.hw-group-head .g-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.01em; }
.hw-group-head .marker { font-size: clamp(19px, 2vw, 26px); }
.hw-cat { display: flex; flex-direction: column; gap: 18px; }
.machine-card {
  border: 1px solid var(--hairline); background: var(--white);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}
.machine-art {
  border-right: 1px solid var(--hairline);
  padding: clamp(22px, 2.8vw, 44px);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.machine-art svg { max-width: 400px; }
.machine-body { padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; }
.machine-body .m-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 10px; }
.machine-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; font-size: clamp(22px, 2.5vw, 36px); line-height: 1; }
.machine-line { font-family: var(--font-marker); font-weight: 600; font-size: clamp(18px, 1.9vw, 23px); color: var(--blue); margin: 8px 0 4px; }
.hw-spec { width: 100%; border-collapse: collapse; margin-top: 16px; }
.hw-spec th, .hw-spec td { padding: 9px 0; border-top: 1px solid var(--hairline); vertical-align: top; text-align: left; }
.hw-spec th {
  font-family: var(--font-mono); font-weight: 400; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; opacity: .6;
  width: 34%; padding-right: 18px; white-space: nowrap;
}
.hw-spec td { font-size: 14px; line-height: 1.5; }
.machine-body .hw-spec { margin-bottom: 22px; }
.m-enquire {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 13px 20px; min-height: 44px;
  border: 1.5px solid var(--hairline);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-deep); text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.m-enquire:hover, .m-enquire:focus-visible {
  border-color: var(--blue); background: var(--sky); color: var(--blue); transform: translateY(-2px);
}
/* funky flip on hover (same move as the header CTA) */
.m-enquire .me-flip { display: grid; overflow: hidden; }
.m-enquire .me-flip > span {
  grid-area: 1 / 1; display: block; white-space: nowrap;
  transition: transform .38s cubic-bezier(.7, 0, .2, 1), opacity .25s ease;
}
.m-enquire .me-b {
  font-family: var(--font-marker); font-weight: 700; font-size: 19px;
  letter-spacing: 0; text-transform: none; color: var(--blue);
  transform: translateY(130%) rotate(2deg); opacity: 0;
}
.m-enquire:hover .me-a, .m-enquire:focus-visible .me-a { transform: translateY(-130%) rotate(-2deg); opacity: 0; }
.m-enquire:hover .me-b, .m-enquire:focus-visible .me-b { transform: translateY(0) rotate(-2deg); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .m-enquire .me-flip > span { transition: none; } }
@media (max-width: 900px) {
  .machine-card { grid-template-columns: 1fr; }
  .machine-art { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .machine-art svg { max-width: 320px; }
  .hw-spec th { white-space: normal; width: 40%; }
}

/* ---------- materials (Colibrium) ---------- */
.hw-mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(28px, 3.6vw, 46px); }
@media (max-width: 1100px) { .hw-mats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .hw-mats { grid-template-columns: 1fr; } }
.mat-card { border: 1px solid var(--hairline-d); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 8px; }
.mat-card .mat-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.05; }
.mat-card .mat-alloys { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); line-height: 1.7; }
.mat-card p { font-size: 14px; opacity: .72; }
.mat-card .mat-dl {
  margin-top: auto; padding-top: 14px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-bright); text-decoration: none;
}
.mat-card .mat-dl:hover, .mat-card .mat-dl:focus-visible { color: var(--white); }
.hw-mats-foot { font-size: 13px; opacity: .55; margin-top: 22px; max-width: 68ch; }

/* ---------- applications ---------- */
.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(28px, 3.6vw, 46px); }
@media (max-width: 960px) { .app-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .app-tiles { grid-template-columns: 1fr; } }
.app-tile {
  border: 1px solid var(--hairline); background: var(--white);
  padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px;
  transition: background .3s, transform .3s;
}
.app-tile:hover { background: var(--sky); transform: translateY(-3px); }
.app-tile .a-num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; color: var(--blue-deep); }
.app-tile .a-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.06; }
.app-tile p { font-size: 13.5px; opacity: .72; }

/* ---------- how buying works ---------- */
.hw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 3.6vw, 46px); }
@media (max-width: 860px) { .hw-steps { grid-template-columns: 1fr; } }
.hw-step { border-top: 2px solid var(--blue); padding-top: 20px; }
.hw-step .s-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.2vw, 46px); color: var(--blue); line-height: 1; }
.hw-step .s-head { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(17px, 1.8vw, 23px); margin: 12px 0 8px; line-height: 1.05; }
.hw-step p { font-size: 14.5px; opacity: .8; max-width: 38ch; }

/* 4-up why grid (2x2) */
.why-grid.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .why-grid.four { grid-template-columns: 1fr; } }

/* ink section headings (materials) */
.hw-ink-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hw-ink-head .display { font-size: clamp(26px, 3.4vw, 50px); }
.hw-ink-sub { margin-top: 14px; font-size: 15.5px; opacity: .75; max-width: 64ch; }

/* links default (user-added links inherit palette) */
main a { color: inherit; }
main a:hover { color: var(--blue); }
/* buttons keep their own ink text on hover (generic link hover must not tint them) */
main a.btn:hover, main a.btn:focus-visible { color: var(--ink); }
main a.btn-ink:hover, main a.btn-ink:focus-visible { color: var(--ink); }
