/* ==========================================================================
   Maxim Machines — global styles
   Design tokens, base typography, layout, header/footer and shared components.
   Page-specific styles live in home.css, collection.css, product.css,
   about.css and contact.css.
   ========================================================================== */

/* ---------- Design tokens (palette built from the logo's blue and red) ---------- */
:root {
  /* Brand */
  --blue: #016bb7;          /* logo blue */
  --blue-600: #015b9c;
  --blue-50: #eaf3fb;
  --red: #ed1d26;           /* logo red — accents, rules, small marks */
  --red-600: #d91a22;       /* CTA background (AA contrast with white text) */
  --red-700: #b8141b;

  /* Neutrals */
  --navy-950: #061530;
  --navy-900: #081d3f;
  --navy-800: #0b2652;
  --navy-700: #123a73;
  --ink: #0e2548;           /* headings */
  --text: #3b4a5c;          /* body copy */
  --muted: #5f6e80;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --bg-tint: #eaf1f9;
  --line: #dde4ed;
  --line-strong: #c6d1de;

  /* "Pending confirmation" flags — temporary, remove before launch */
  --pending-bg: #fff5db;
  --pending-text: #744b00;
  --pending-line: #e9b949;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);

  /* Shape & depth */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 29, 63, .06);
  --shadow: 0 14px 32px -14px rgba(8, 29, 63, .25);
  --shadow-lg: 0 28px 56px -24px rgba(8, 29, 63, .4);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(1, 107, 183, .55); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(1, 107, 183, .18); }
section[id], .anchor, .quote-form { scroll-margin-top: calc(var(--header-h) + 16px); }

.icon { width: 20px; height: 20px; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head__copy { max-width: 720px; }
.section-title { font-size: var(--fs-h2); margin-top: 8px; }
.section-intro { margin-top: 12px; color: var(--muted); max-width: 64ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1.2 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.eyebrow--red { color: var(--red-600); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.link-arrow .icon { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.link-arrow:hover .icon { translate: 3px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.btn:hover .icon { translate: 3px 0; }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(217, 26, 34, .7); }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue-50); color: var(--blue-600); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .02); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--whatsapp { background: #fff; border-color: #9fd9b5; color: #0f7a3d; }
.btn--whatsapp:hover { background: #effaf3; color: #0b6331; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Pending-confirmation flag (search the codebase for data-pending) ---------- */
.pending {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 2px 9px; border: 1px dashed var(--pending-line); border-radius: 999px;
  background: var(--pending-bg); color: var(--pending-text);
  font: 600 .72rem/1.5 var(--font-body); letter-spacing: .01em; white-space: nowrap;
}
.pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d99a00; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar__meta { display: flex; align-items: center; gap: 28px; }
.topbar__meta li, .topbar__meta a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar__meta a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: #fff; }

/* ---------- Header (sticky; compresses with transforms only) ---------- */
.site-header {
  position: sticky; top: -12px; z-index: 50;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: translate .3s var(--ease); }
.site-header.is-compact { box-shadow: 0 10px 24px -18px rgba(8, 29, 63, .45); }
.site-header.is-compact .site-header__inner { translate: 0 6px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; transform-origin: left center; transition: transform .3s var(--ease); }
.site-header.is-compact .brand img { transform: scale(.86); }

.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.primary-nav__link {
  position: relative; display: block; padding-block: 8px;
  font: 500 .9rem/1.2 var(--font-body); color: var(--ink); white-space: nowrap;
}
.primary-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav__link:hover { color: var(--blue); }
.primary-nav__link:hover::after, .primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__link[aria-current="page"] { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
@media (min-width: 1181px) {
  /* Only cancel the auto margin while .primary-nav is actually visible (it centers itself via
     margin-inline: auto). Below 1181px .primary-nav is display:none but still present in the DOM,
     so without this guard the selector below would keep matching and pin the phone/menu icons
     next to the logo instead of the right edge. */
  .primary-nav + .header-actions { margin-left: 0; }
}
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone .icon { color: var(--blue); }
.header-phone:hover { color: var(--blue); }
.header-cta { min-height: 46px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1320px) {
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
}
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .site-header { top: 0; }
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .site-header.is-compact .site-header__inner { translate: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .header-actions { gap: 10px; }
}

/* ---------- Mobile navigation ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 100; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(6, 21, 48, .55); opacity: 0; transition: opacity .3s var(--ease); }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mobile-nav__title { font: 600 .8rem/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.mobile-nav__close { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: var(--bg-soft); border-radius: 50%; cursor: pointer; color: var(--ink); }
.mobile-nav__list { padding: 8px 12px; }
.mobile-nav__link { display: block; padding: 14px 12px; border-radius: var(--radius); font: 500 1.02rem/1.3 var(--font-body); color: var(--ink); }
.mobile-nav__link:hover { background: var(--bg-soft); color: var(--blue); }
.mobile-nav__link[aria-current="page"] { color: var(--blue); background: var(--blue-50); box-shadow: inset 3px 0 0 var(--red); }
.mobile-nav__actions { margin-top: auto; display: grid; gap: 10px; padding: 20px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.mobile-nav__contact { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 600; color: var(--ink); }
.mobile-nav__contact .icon { color: var(--blue); }
html.nav-open { overflow: hidden; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .875rem; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 10px; color: var(--line-strong); }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }
.page-hero .breadcrumb li, .page-hero .breadcrumb a, .page-hero .breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, .88); }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, .5); }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ---------- Dark page hero (collection, about, contact) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #fff; }
.page-hero__media { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 0%, rgba(8, 29, 63, .82) 28%, rgba(8, 29, 63, .25) 100%);
}
.page-hero__inner { padding-block: clamp(36px, 5.5vw, 72px); }
.page-hero__title { margin-top: 18px; max-width: 18ch; font-size: var(--fs-h1); color: #fff; }
.page-hero__lead { margin-top: 14px; max-width: 46ch; font: 500 var(--fs-lead)/1.45 var(--font-body); color: #fff; }
.page-hero__text { margin-top: 12px; max-width: 58ch; color: rgba(255, 255, 255, .85); }
.page-hero .btn { margin-top: 28px; }
@media (max-width: 760px) {
  .page-hero__media { inset: 0; }
  .page-hero__media::after { background: linear-gradient(180deg, rgba(8, 29, 63, .95), rgba(8, 29, 63, .88)); }
}

/* ---------- Cards: whole-card click target via stretched link ---------- */
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.machine-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .machine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .machine-grid { grid-template-columns: 1fr; } }

.machine-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .6s var(--ease) var(--d, 0s), translate .6s var(--ease) var(--d, 0s);
}
.machine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.machine-card:focus-within { border-color: var(--blue); }
.machine-card__media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.machine-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.machine-card:hover .machine-card__media img { transform: scale(1.03); }
.machine-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.machine-card__title { font-size: 1.02rem; line-height: 1.35; min-height: 2.7em; }
.machine-card__title a { color: var(--ink); }
.machine-card__title a:focus-visible { outline: none; }
.machine-card__title a:focus-visible::after { outline: 3px solid rgba(1, 107, 183, .55); outline-offset: -3px; border-radius: var(--radius-lg); }
.machine-card:hover .machine-card__title a { color: var(--blue); }
.machine-card__text {
  font-size: .9rem; line-height: 1.55; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em;
}
.machine-card__specs { display: grid; gap: 6px; font-size: .86rem; color: var(--ink); }
.machine-card__specs li { display: flex; align-items: flex-start; gap: 8px; }
.machine-card__specs .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--blue); }
.machine-card__pending { margin-top: 2px; }
.machine-card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px;
  font-weight: 600; font-size: .92rem; color: var(--blue);
}
.machine-card__more .icon { width: 18px; height: 18px; transition: translate .25s var(--ease); }
@media (hover: hover) {
  .machine-card__more { opacity: .0; translate: -8px 0; transition: opacity .25s var(--ease), translate .25s var(--ease); }
  .machine-card:hover .machine-card__more, .machine-card:focus-within .machine-card__more { opacity: 1; translate: 0 0; }
  .machine-card::before {
    content: ""; position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016bb7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
    transition: background-color .25s;
  }
  .machine-card:hover::before { background-color: #d5e7f6; }
}

.sector-card {
  position: relative; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; min-height: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .6s var(--ease) var(--d, 0s), translate .6s var(--ease) var(--d, 0s);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.sector-card__media { background: var(--navy-800); overflow: hidden; }
.sector-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.sector-card:hover .sector-card__media img { transform: scale(1.04); }
.sector-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; }
.sector-card__title { font-size: 1.15rem; }
.sector-card__title a { color: var(--ink); }
.sector-card__title a:focus-visible { outline: none; }
.sector-card__title a:focus-visible::after { outline: 3px solid rgba(1, 107, 183, .55); outline-offset: -3px; border-radius: var(--radius-lg); }
.sector-card__text { font-size: .9rem; color: var(--muted); }
.sector-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--blue); }
.sector-card__more .icon { width: 18px; height: 18px; transition: translate .25s var(--ease); }
.sector-card:hover .sector-card__more .icon { translate: 4px 0; }
.sector-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sector-grid { grid-template-columns: 1fr; } .sector-card { grid-template-columns: 34% 1fr; } }
@media (max-width: 480px) { .sector-card { grid-template-columns: 1fr; } .sector-card__media { aspect-ratio: 16 / 9; } }

/* ---------- Icon feature list (value props, trust strips) ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: flex; gap: 16px; padding: 4px 24px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; }
.feature__icon { flex: none; color: var(--blue); }
.feature__icon .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.feature__title { font: 600 1rem/1.35 var(--font-head); color: var(--ink); }
.feature__text { margin-top: 4px; font-size: .9rem; color: var(--muted); }
@media (max-width: 1024px) {
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .feature:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .feature-row { grid-template-columns: 1fr; gap: 22px; }
  .feature, .feature + .feature { padding: 0; border-left: 0; }
}

/* ---------- Numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; display: flex; gap: 16px; }
.step__num {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font: 700 1.1rem/1 var(--font-head);
}
.step__title { font: 600 .98rem/1.35 var(--font-head); color: var(--ink); }
.step__text { margin-top: 4px; font-size: .9rem; color: var(--muted); }
@media (min-width: 1025px) {
  .steps--flow .step:not(:last-child)::after {
    content: ""; position: absolute; right: -14px; top: 17px; width: 10px; height: 10px;
    border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg);
  }
}
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .86rem; color: var(--ink); }
.req { color: var(--red-600); }
.optional { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2548' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.input::placeholder, .textarea::placeholder { color: #8a97a6; }
.input:hover, .select:hover, .textarea:hover { border-color: #9fb0c3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 107, 183, .18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #c0262d; box-shadow: 0 0 0 3px rgba(192, 38, 45, .12); }
.field-error { font-size: .8rem; color: #b3261e; }
.field.is-emphasized .textarea { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 107, 183, .18); }
.quote-form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: .9rem; line-height: 1.5; }
.form-status--success { background: #e9f7ef; border: 1px solid #9fd5b3; color: #14532d; }
.form-status--error { background: #fdeeee; border: 1px solid #f0b7b4; color: #8a1c1c; }
.form-status--notice { background: var(--pending-bg); border: 1px dashed var(--pending-line); color: var(--pending-text); }
.form-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.form-note { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.form-note a { font-weight: 600; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Dark form panel variant */
.form-panel--dark { background: var(--navy-800); color: rgba(255, 255, 255, .86); }
.form-panel--dark h2, .form-panel--dark .field label { color: #fff; }
.form-panel--dark .optional { color: rgba(255, 255, 255, .65); }
.form-panel--dark .req { color: #ff8a8f; }
.form-panel--dark .field-error { color: #ffb4b0; }
.form-panel--dark .form-note { color: rgba(255, 255, 255, .72); }
.form-panel--dark .form-note a { color: #fff; }
.form-panel--dark .input, .form-panel--dark .select, .form-panel--dark .textarea { border-color: transparent; }

/* ---------- Map embed ---------- */
.map-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy-800) 62%, var(--navy-700) 100%); color: #fff; }
.cta-band::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -6%; width: 34%;
  background: linear-gradient(100deg, var(--red) 0%, var(--red-700) 100%); transform: skewX(-24deg); opacity: .95;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 24%; width: 3%;
  background: var(--blue); transform: skewX(-24deg); opacity: .7;
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-block: 40px; }
.cta-band__copy { flex: 1 1 420px; padding-left: 20px; border-left: 3px solid var(--red); }
.cta-band__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); color: #fff; }
.cta-band__text { margin-top: 6px; color: rgba(255, 255, 255, .82); }
.cta-band .btn--primary { background: #fff; color: var(--red-600); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--bg-tint); color: var(--red-700); }
.cta-band__phone { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 600 1.05rem/1.25 var(--font-body); }
.cta-band__phone:hover { color: #fff; }
.cta-band__phone small { display: block; font: 500 .8rem/1.2 var(--font-body); color: rgba(255, 255, 255, .8); }
.cta-band__phone .icon { width: 36px; height: 36px; stroke-width: 1.5; }
@media (max-width: 900px) {
  .cta-band::after { width: 40%; right: -22%; opacity: .9; }
  .cta-band::before { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .74); font-size: .9rem; }
.site-footer__grid {
  display: grid; gap: 36px 32px; padding-block: 56px 44px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1fr);
}
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.brand--footer img { height: 58px; }
.footer-title { margin-bottom: 16px; font: 600 1rem/1.3 var(--font-head); color: #fff; }
.footer-col ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #fff; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.footer-map { display: flex; flex-direction: column; align-self: start; overflow: hidden; border-radius: var(--radius-lg); background: #fff; }
.footer-map__art {
  position: relative; display: block; height: 118px;
  background:
    linear-gradient(28deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 100% 100%,
    linear-gradient(-62deg, transparent 48.5%, #f6d98b 48.5%, #f6d98b 51.5%, transparent 51.5%) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, transparent 0 34px, #fff 34px 37px),
    repeating-linear-gradient(0deg, transparent 0 28px, #fff 28px 30px),
    #e6ebf1;
}
.footer-map__pin { position: absolute; left: 44%; top: 30%; color: var(--red); }
.footer-map__pin .icon { width: 30px; height: 30px; fill: var(--red); stroke: #fff; stroke-width: 1.2; }
.footer-map__label { position: absolute; left: calc(44% + 30px); top: 36%; padding: 1px 6px; border-radius: 3px; background: rgba(255, 255, 255, .9); font: 600 .72rem/1.4 var(--font-body); color: var(--ink); }
.footer-map__link { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; font-size: .86rem; color: var(--blue); }
.site-footer .footer-map__link { color: var(--blue); }
.footer-map__link .icon { width: 16px; height: 16px; transition: translate .2s; }
.footer-map:hover .footer-map__link .icon { translate: 3px 0; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem;
}
.made-in { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.flag { border-radius: 2px; }
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact, .footer-map { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (only when JS is running; content stays visible without JS) ---------- */
/* :where() keeps specificity at zero so component transitions (card hover lift) still apply. */
:where(.js) :where([data-reveal]) { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease) var(--d, 0s), translate .6s var(--ease) var(--d, 0s); }
:where(.js) :where([data-reveal]).is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}

/* ---------- Page hero actions ---------- */
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.page-hero .page-hero__actions .btn { margin-top: 0; }
@media (max-width: 560px) { .page-hero__actions .btn { width: 100%; } }

/* ---------- Machine tile (compact card: homepage featured, related machines) ---------- */
.machine-tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .6s var(--ease) var(--d, 0s), translate .6s var(--ease) var(--d, 0s);
}
.machine-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.machine-tile:focus-within { border-color: var(--blue); }
.machine-tile__media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.machine-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.machine-tile:hover .machine-tile__media img { transform: scale(1.04); }
.machine-tile__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.machine-tile__title { font-size: .95rem; line-height: 1.35; }
.machine-tile__title a { color: var(--ink); }
.machine-tile:hover .machine-tile__title a { color: var(--blue); }
.machine-tile__title a:focus-visible { outline: none; }
.machine-tile__title a:focus-visible::after { outline: 3px solid rgba(1, 107, 183, .55); outline-offset: -3px; border-radius: var(--radius-lg); }
.machine-tile__text {
  font-size: .84rem; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.machine-tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 600; font-size: .86rem; color: var(--blue); }
.machine-tile__more .icon { width: 16px; height: 16px; transition: translate .25s var(--ease); }
.machine-tile:hover .machine-tile__more .icon { translate: 4px 0; }

/* ---------- Form card ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.form-card__title { margin-top: 6px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.form-card__intro { margin: 6px 0 22px; font-size: .92rem; color: var(--muted); }

/* ---------- Person card ("Your Point of Contact" — contact page and homepage quote section) ---------- */
.person-card {
  display: flex; align-items: flex-start; gap: 18px; margin-top: 32px; padding: 20px;
  border: 1px solid #d6e4f1; border-radius: var(--radius-lg); background: var(--bg-tint);
}
.person-card__avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
}
.person-card__eyebrow { font: 600 .75rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.person-card__name { margin-top: 6px; font: 700 1.2rem/1.25 var(--font-head); color: var(--ink); }
.person-card__title { font-size: .9rem; color: var(--muted); }
.person-card__text { margin-top: 8px; font-size: .88rem; color: var(--text); }
.person-card__text a { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .person-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; }
.contact-list__icon .icon { width: 20px; height: 20px; }
.contact-list__label { font: 600 .95rem/1.3 var(--font-head); color: var(--ink); }
.contact-list__value { margin-top: 2px; color: var(--text); overflow-wrap: anywhere; }
.contact-list__value a { color: var(--text); font-weight: 500; }
.contact-list__value a:hover { color: var(--blue); }
.contact-list__note { margin-top: 2px; font-size: .84rem; color: var(--muted); }
