/*
Theme Name: Hydmetals
Theme URI: https://hydmetals.com/
Author: Hydmetals
Description: Stainless steel sheet and coil supplier: product catalogue, processing, quality inspection, export packaging and technical articles. Blue and white mill-specification design.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: hydmetals
*/
/* Hydmetals — global stylesheet.
   Shell (header, footer, bands), type, buttons, cards, plates, tables and the shared bands.
   Page families extend this from assets/css/products.css, product-detail.css, factory.css,
   blog.css and pages.css. */

/* 1. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--hm-paper);
  color: var(--hm-ink);
  font-family: var(--hm-font-body);
  font-size: var(--hm-fs-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--hm-blue); text-decoration: none; }
a:hover { color: var(--hm-blue-dark); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4, h5 {
  font-family: var(--hm-font-display);
  color: var(--hm-navy);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--hm-h1); letter-spacing: -0.028em; }
h2 { font-size: var(--hm-h2); }
h3 { font-size: var(--hm-h3); line-height: 1.22; }
h4 { font-size: var(--hm-h4); line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--hm-navy); }
small { font-size: var(--hm-fs-sm); }
::selection { background: var(--hm-blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--hm-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

hr { border: 0; border-top: var(--hm-border); margin: var(--hm-5) 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

.hm-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--hm-navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--hm-radius) 0;
}
.hm-skip:focus { left: 0; color: #fff; }

/* 2. Layout ---------------------------------------------------------------- */
.hm-wrap {
  width: min(var(--hm-wrap), 100% - (var(--hm-gutter) * 2));
  margin-inline: auto;
}

.hm-wrap--narrow {
  width: min(var(--hm-wrap-narrow), 100% - (var(--hm-gutter) * 2));
  margin-inline: auto;
}

main { display: block; }

.hm-section { padding-block: clamp(2.8rem, 5.6vw, 5.2rem); }
.hm-section--line { border-top: var(--hm-border); }
.hm-section--tint { background: var(--hm-tint); }
.hm-section--paper { background: var(--hm-paper); }
.hm-section--tight { padding-block: clamp(2rem, 3.6vw, 3.2rem); }

.hm-section--navy {
  background: var(--hm-tex-navy);
  color: #d7e6f1;
}
.hm-section--navy h2,
.hm-section--navy h3,
.hm-section--navy h4 { color: #fff; }
.hm-section--navy a { color: #dcecf8; }
.hm-section--navy .hm-lede { color: #b9d0e1; }

.hm-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--hm-3) var(--hm-5);
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
}

.hm-section__text { max-width: 62ch; }
.hm-section__head > * { margin-bottom: 0; }

.hm-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  font-family: var(--hm-font-mono);
  font-size: var(--hm-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hm-blue);
}

.hm-eyebrow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.hm-section--navy .hm-eyebrow { color: #9ec4dd; }

.hm-lede {
  margin: 0;
  max-width: 64ch;
  color: var(--hm-muted);
  font-size: var(--hm-fs-lg);
  line-height: 1.6;
}

.hm-rule {
  height: 1px;
  border: 0;
  background: var(--hm-line);
  margin: 0;
}

.hm-grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}
.hm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

@media (max-width: 960px) {
  .hm-grid--3,
  .hm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hm-grid--2,
  .hm-grid--3,
  .hm-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* 3. Buttons and chips ----------------------------------------------------- */
.hm-btn {
  --hm-btn-bg: var(--hm-navy);
  --hm-btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  background: var(--hm-btn-bg);
  color: var(--hm-btn-fg);
  border: 1px solid var(--hm-btn-bg);
  border-radius: var(--hm-radius);
  font-family: var(--hm-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s var(--hm-ease), border-color 0.18s var(--hm-ease),
    transform 0.18s var(--hm-ease), box-shadow 0.18s var(--hm-ease);
}

.hm-btn:hover,
.hm-btn:focus-visible {
  background: var(--hm-blue);
  border-color: var(--hm-blue);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--hm-shadow);
}

.hm-btn--primary { --hm-btn-bg: var(--hm-blue); }
.hm-btn--ghost {
  --hm-btn-bg: transparent;
  --hm-btn-fg: var(--hm-navy);
  border-color: var(--hm-line-2);
}
.hm-btn--ghost:hover,
.hm-btn--ghost:focus-visible {
  background: var(--hm-navy);
  border-color: var(--hm-navy);
  color: #fff;
}
.hm-btn--light {
  --hm-btn-bg: #fff;
  --hm-btn-fg: var(--hm-navy);
  border-color: #fff;
}
.hm-btn--light:hover,
.hm-btn--light:focus-visible {
  background: var(--hm-blue-soft);
  border-color: var(--hm-blue-soft);
  color: var(--hm-navy);
}
.hm-btn--sm { padding: 0.55rem 0.95rem; font-size: 0.84rem; }

.hm-btn--quiet {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  color: var(--hm-blue);
  font-weight: 600;
}
.hm-btn--quiet::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.18s var(--hm-ease);
}
.hm-btn--quiet:hover {
  background: none;
  color: var(--hm-blue-dark);
  text-decoration: underline;
  box-shadow: none;
  transform: none;
}
.hm-btn--quiet:hover::after { transform: translateX(3px); }

.hm-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.hm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-chip-row li { margin: 0; }

.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.62rem;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hm-ink);
  font-size: 0.79rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
a.hm-chip:hover {
  border-color: var(--hm-blue);
  color: var(--hm-blue);
  text-decoration: none;
}
.hm-chip--on {
  border-color: var(--hm-blue);
  background: var(--hm-blue-soft);
  color: var(--hm-blue-dark);
}
.hm-chip--label {
  border-color: transparent;
  background: none;
  padding-left: 0;
  color: var(--hm-muted);
  font-family: var(--hm-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 4. Cards, media and steel plates ---------------------------------------- */
.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--hm-border);
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--hm-ease), box-shadow 0.2s var(--hm-ease),
    transform 0.2s var(--hm-ease);
}
.hm-card:hover {
  border-color: var(--hm-line-2);
  box-shadow: var(--hm-shadow);
  transform: translateY(-2px);
}

.hm-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hm-tex-2b);
  overflow: hidden;
}
.hm-card__media img,
.hm-card__media .hm-plate {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--hm-ease);
}
.hm-card:hover .hm-card__media img { transform: scale(1.035); }

.hm-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 1.1rem 1.2rem 1.3rem;
}

.hm-card__title {
  margin: 0;
  font-size: var(--hm-h4);
  line-height: 1.3;
}
.hm-card__title a { color: var(--hm-navy); }
.hm-card__title a:hover { color: var(--hm-blue); text-decoration: none; }

.hm-card__text {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hm-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: var(--hm-border);
  font-size: 0.78rem;
  color: var(--hm-muted);
}

.hm-card__link {
  font-family: var(--hm-font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hm-blue);
  margin-left: auto;
}
.hm-card__link::after { content: " →"; font-weight: 400; }

.hm-plate {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0.7rem;
  background: var(--hm-tex-2b);
}
.hm-plate--ba { background: var(--hm-tex-ba); }
.hm-plate--no1 { background: var(--hm-tex-no1); }
.hm-plate--no4 { background: var(--hm-tex-no4); }
.hm-plate--hl { background: var(--hm-tex-hl); }
.hm-plate--8k { background: var(--hm-tex-8k); }
.hm-plate--checker { background: var(--hm-tex-checker); background-size: 16px 16px; }
.hm-plate--navy { background: var(--hm-tex-navy); }

.hm-plate__label {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.78);
  color: #33506a;
  font-family: var(--hm-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hm-plate--navy .hm-plate__label { background: rgba(255, 255, 255, 0.14); color: #eaf4fb; }

/* 5. Header ---------------------------------------------------------------- */
.hm-topbar {
  background: var(--hm-navy-deep);
  color: #c3d9e9;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}
.hm-topbar .hm-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  min-height: 2.35rem;
}
.hm-topbar a { color: #d8e9f5; }
.hm-topbar a:hover { color: #fff; text-decoration: none; }
.hm-topbar__items { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.hm-topbar__items > * + * { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 1.1rem; }

.hm-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: var(--hm-border);
}
.hm-header.is-stuck { box-shadow: 0 10px 24px -20px rgba(11, 44, 74, 0.6); }

.hm-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  min-height: 4.4rem;
}

.hm-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hm-navy);
  text-decoration: none;
  flex-shrink: 0;
}
.hm-brand:hover { text-decoration: none; color: var(--hm-navy); }
.hm-brand__mark { width: 2.3rem; height: 2.3rem; object-fit: contain; }
.hm-brand__name {
  display: block;
  font-family: var(--hm-font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.hm-brand__tag {
  display: block;
  margin-top: 0.15rem;
  color: var(--hm-muted);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hm-nav { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; }
.hm-nav > a,
.hm-nav__parent {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.5rem 0.68rem;
  border: 0;
  border-radius: var(--hm-radius);
  background: none;
  color: var(--hm-ink);
  font-family: var(--hm-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.hm-nav > a:hover,
.hm-nav__parent:hover { background: var(--hm-tint); color: var(--hm-navy); text-decoration: none; }
.hm-nav > a[aria-current="page"],
.hm-nav__parent[aria-current="true"] { color: var(--hm-blue); }
.hm-nav__parent::after {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.65;
}

.hm-nav__group { position: relative; }
.hm-nav__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 80;
  min-width: 15rem;
  padding: 0.35rem;
  background: #fff;
  border: var(--hm-border);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
}
.hm-nav__panel a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 3px;
  color: var(--hm-ink);
  font-size: 0.87rem;
}
.hm-nav__panel a:hover,
.hm-nav__panel a[aria-current="page"] {
  background: var(--hm-blue-soft);
  color: var(--hm-blue-dark);
  text-decoration: none;
}

.hm-nav__cta { flex-shrink: 0; }

.hm-nav-toggle { display: none; margin-left: auto; }
.hm-nav-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: var(--hm-border);
  border-radius: var(--hm-radius);
  background: #fff;
  color: var(--hm-navy);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.hm-nav-toggle button::before {
  content: "";
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.hm-nav-toggle [data-panel] { position: absolute; left: 0; right: 0; }
.hm-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.9rem var(--hm-gutter) 1.4rem;
  background: #fff;
  border-bottom: var(--hm-border);
  box-shadow: var(--hm-shadow);
}
.hm-mobile-nav > a {
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--hm-line);
  color: var(--hm-navy);
  font-weight: 500;
}
.hm-mobile-nav > a[aria-current="page"] { color: var(--hm-blue); }
.hm-mobile-nav__child { padding-left: 1rem !important; font-size: 0.9rem; color: var(--hm-muted) !important; }
.hm-mobile-nav__cta { margin-top: 0.9rem; justify-content: center; }

@media (max-width: 1080px) {
  .hm-nav,
  .hm-nav__cta { display: none; }
  .hm-nav-toggle { display: block; }
  .hm-header__inner { position: relative; }
}
@media (max-width: 720px) {
  .hm-topbar .hm-wrap { justify-content: center; text-align: center; }
  .hm-topbar__items > *:not(.hm-topbar__wa) { display: none; }
}

/* 6. Page openers, crumbs and in-page navigation --------------------------- */
.hm-page-head { padding-block: clamp(1.4rem, 2.6vw, 2.6rem) clamp(1.6rem, 3vw, 2.8rem); }
.hm-page-head h1 { margin-bottom: 0.5rem; max-width: 30ch; }
.hm-page-head .hm-lede { max-width: 58ch; }

.hm-crumbs { font-size: 0.78rem; color: var(--hm-muted); padding-block: 0.9rem 0; }
.hm-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-crumbs li { margin: 0; display: flex; align-items: center; gap: 0.35rem; }
.hm-crumbs li + li::before { content: "/"; color: var(--hm-line-2); }
.hm-crumbs a { color: var(--hm-muted); }
.hm-crumbs a:hover { color: var(--hm-blue); }
.hm-crumbs [aria-current="page"] { color: var(--hm-ink); }

.hm-subnav {
  position: sticky;
  top: 4.4rem;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-block: var(--hm-border);
}
.hm-subnav ul,
.hm-subnav nav {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.hm-subnav ul::-webkit-scrollbar { display: none; }
.hm-subnav li { margin: 0; }
.hm-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.75rem;
  border-bottom: 2px solid transparent;
  color: var(--hm-muted);
  font-family: var(--hm-font-display);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.hm-subnav a:hover { color: var(--hm-navy); text-decoration: none; }
.hm-subnav a[aria-current="location"],
.hm-subnav a[aria-current="true"] { color: var(--hm-blue); border-bottom-color: var(--hm-blue); }

/* 7. Tables, notes and prose ---------------------------------------------- */
.hm-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.hm-spec th,
.hm-spec td { text-align: left; padding: 0.72rem 0; border-bottom: var(--hm-border); vertical-align: top; }
.hm-spec th {
  width: 36%;
  padding-right: 1rem;
  color: var(--hm-muted);
  font-family: var(--hm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hm-spec td { color: var(--hm-ink); }
.hm-spec tr:last-child th,
.hm-spec tr:last-child td { border-bottom: 0; }
.hm-spec__box { border: var(--hm-border); border-radius: var(--hm-radius); background: #fff; padding: 0.2rem 1.1rem; }

.hm-note {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--hm-blue);
  border-radius: 0 var(--hm-radius) var(--hm-radius) 0;
  background: var(--hm-blue-soft);
  color: #2b4a63;
  font-size: 0.88rem;
}
.hm-note p { margin: 0; }
.hm-note--quiet { border-left-color: var(--hm-line-2); background: var(--hm-tint); color: var(--hm-muted); }

.hm-prose { max-width: var(--hm-wrap-narrow); }
.hm-prose h2 { font-size: var(--hm-h3); margin-top: 2.1em; }
.hm-prose h3 { font-size: var(--hm-h4); margin-top: 1.8em; }
.hm-prose > *:first-child { margin-top: 0; }
.hm-prose ul,
.hm-prose ol { padding-left: 1.15rem; }
.hm-prose li { margin-bottom: 0.5rem; }
.hm-prose img { border-radius: var(--hm-radius); margin-block: 1.6rem; }
.hm-prose blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--hm-line-2);
  color: var(--hm-muted);
  font-style: italic;
}
.hm-prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-block: 1.6rem; }
.hm-prose th,
.hm-prose td { border-bottom: var(--hm-border); padding: 0.6rem 0.7rem 0.6rem 0; text-align: left; }

/* 8. Contact band ---------------------------------------------------------- */
.hm-cta {
  background: var(--hm-tex-navy);
  color: #d5e6f2;
  padding-block: clamp(2.6rem, 5vw, 4.2rem);
}
.hm-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}
.hm-cta h2 { color: #fff; margin-bottom: 0.5rem; max-width: 24ch; }
.hm-cta p { color: #b9d1e2; margin: 0; max-width: 46ch; }
.hm-cta .hm-btn-row { margin-top: 0; justify-content: flex-end; }
.hm-cta__note {
  display: block;
  margin-top: 0.9rem;
  color: #9dbcd3;
  font-family: var(--hm-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .hm-cta__inner { grid-template-columns: minmax(0, 1fr); }
  .hm-cta .hm-btn-row { justify-content: flex-start; }
}

/* 9. Footer --------------------------------------------------------------- */
.hm-footer {
  background: var(--hm-navy-deep);
  color: #b6cddd;
  font-size: 0.88rem;
  padding-block: clamp(2.4rem, 4vw, 3.6rem) 1.4rem;
}
.hm-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hm-footer__brand img { width: 3rem; height: 3rem; object-fit: contain; margin-bottom: 0.9rem; }
.hm-footer__brand p { color: #9fbcd0; max-width: 34ch; }
.hm-footer h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--hm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hm-footer ul { list-style: none; margin: 0; padding: 0; }
.hm-footer li { margin-bottom: 0.5rem; }
.hm-footer a { color: #c6dceb; }
.hm-footer a:hover { color: #fff; text-decoration: none; }
.hm-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.1rem;
  color: #8fadc2;
  font-size: 0.78rem;
}
.hm-footer__bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.hm-footer__cookies {
  border: 0;
  background: none;
  padding: 0;
  color: #c6dceb;
  font: inherit;
  cursor: pointer;
}
.hm-footer__cookies:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .hm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hm-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 10. Forms --------------------------------------------------------------- */
.hm-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.hm-field > label,
.hm-field label {
  font-family: var(--hm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-muted);
}
.hm-field input,
.hm-field textarea,
.hm-field select,
.hm-form input,
.hm-form textarea,
.hm-form select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hm-line-2);
  border-radius: var(--hm-radius);
  background: #fff;
  color: var(--hm-ink);
  font-family: var(--hm-font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}
.hm-field input:focus,
.hm-field textarea:focus,
.hm-form input:focus,
.hm-form textarea:focus {
  outline: 2px solid var(--hm-blue);
  outline-offset: 1px;
  border-color: var(--hm-blue);
}
.hm-field textarea,
.hm-form textarea { min-height: 7.5rem; resize: vertical; }
.hm-field [aria-describedby] { font-size: 0.78rem; color: var(--hm-muted); }
.hm-form__status { margin-top: 0.9rem; font-size: 0.88rem; color: var(--hm-muted); }
.hm-form [type="submit"] { cursor: pointer; }

/* 11. Consent notice and the floating WhatsApp button --------------------- */
.hm-consent {
  position: fixed;
  left: var(--hm-gutter);
  right: var(--hm-gutter);
  bottom: 1.1rem;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.4rem;
  max-width: 54rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--hm-radius-lg);
  background: var(--hm-navy-deep);
  color: #cfe2ef;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
}
.hm-consent__text { margin: 0; max-width: 46ch; }
.hm-consent__text a { color: #fff; text-decoration: underline; }
.hm-consent__actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.hm-consent__btn {
  padding: 0.55rem 0.9rem;
  border: 1px solid #fff;
  border-radius: var(--hm-radius);
  background: #fff;
  color: var(--hm-navy);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.hm-consent__btn--off { background: transparent; color: #cfe2ef; border-color: rgba(255, 255, 255, 0.4); }

.hm-wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: #0f7a52;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(6, 40, 28, 0.8);
}
.hm-wa-fab:hover { background: #0c6845; color: #fff; text-decoration: none; transform: translateY(-1px); }
.hm-wa-fab__icon { width: 1.25rem; height: 1.25rem; }
@media (max-width: 600px) {
  .hm-wa-fab__text { display: none; }
  .hm-wa-fab { padding: 0.75rem; }
}

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

/* 12. Home hero and capability lists -------------------------------------- */
.hm-hero {
  background: var(--hm-tint);
  border-bottom: var(--hm-border);
}
.hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(1.4rem, 3.6vw, 3.4rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4.2vw, 3.8rem);
}
.hm-hero h1 { font-size: var(--hm-h0); margin-bottom: 0.55rem; max-width: 24ch; }
.hm-hero .hm-lede { font-size: var(--hm-fs-lg); max-width: 48ch; }
.hm-hero__media {
  position: relative;
  aspect-ratio: 5 / 4;
  border: var(--hm-border);
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  background: var(--hm-tex-2b);
  box-shadow: var(--hm-shadow);
}
.hm-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hm-hero__media .hm-plate { padding: 1rem; }

.hm-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
  margin: 1.7rem 0 0;
  padding: 1.1rem 0 0;
  border-top: var(--hm-border);
}
.hm-hero__specs div {
  flex: 1 1 7.5rem;
  padding-right: 1.1rem;
  border-right: 1px solid var(--hm-line);
}
.hm-hero__specs div:last-child { border-right: 0; padding-right: 0; }
.hm-hero__specs dt {
  margin-bottom: 0.15rem;
  color: var(--hm-muted);
  font-family: var(--hm-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hm-hero__specs dd {
  margin: 0;
  color: var(--hm-navy);
  font-family: var(--hm-font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .hm-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-hero__media { aspect-ratio: 16 / 9; order: -1; }
}

/* A numbered capability row used on the home page and the processing page. */
.hm-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--hm-border);
}
.hm-cap {
  padding: 1.25rem 1.4rem 1.35rem 0;
  border-bottom: var(--hm-border);
  border-right: 0;
}
.hm-cap:nth-child(3n + 2) { padding-left: 1.4rem; border-left: var(--hm-border); }
.hm-cap:nth-child(3n) { padding-left: 1.4rem; border-left: var(--hm-border); }
.hm-cap__num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--hm-blue);
  font-family: var(--hm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.hm-cap h3 { margin: 0 0 0.3rem; font-size: var(--hm-h4); }
.hm-cap a { color: var(--hm-navy); }
.hm-cap p { margin: 0; color: var(--hm-muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .hm-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-cap,
  .hm-cap:nth-child(3n + 2),
  .hm-cap:nth-child(3n) { padding-left: 0; border-left: 0; }
  .hm-cap:nth-child(2n) { padding-left: 1.2rem; border-left: var(--hm-border); }
}
@media (max-width: 560px) {
  .hm-caps { grid-template-columns: minmax(0, 1fr); }
  .hm-cap:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* 13. Small layout utilities used by more than one page -------------------- */
.hm-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}
.hm-two-col--center { align-items: center; }
@media (max-width: 860px) {
  .hm-two-col { grid-template-columns: minmax(0, 1fr); }
}

.hm-h3 { font-size: var(--hm-h3); }
.hm-lede--body { font-size: var(--hm-fs-base); }

.hm-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.hm-list > li { margin: 0; padding: 0.7rem 0; border-bottom: var(--hm-border); }
.hm-list__title {
  font-family: var(--hm-font-display);
  font-weight: 600;
  color: var(--hm-navy);
}
.hm-list__note { color: var(--hm-muted); font-size: 0.9rem; }

.hm-chip-row--mt { margin: 1.4rem 0 1.2rem; }

.hm-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hm-quick > li { margin: 0; }
.hm-quick__item { display: block; height: 100%; padding: 1rem; }
.hm-quick__arrow {
  display: block;
  color: var(--hm-blue);
  font-family: var(--hm-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.hm-quick__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--hm-navy);
  font-family: var(--hm-font-display);
  font-size: 0.95rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .hm-quick { grid-template-columns: minmax(0, 1fr); }
}

/* 14. Fix-ups shared by page templates ------------------------------------ */
/* A media frame is sized by aspect-ratio; a link wrapping the photo or the plate must fill it. */
.hm-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
}
.hm-card__media > a .hm-plate { height: 100%; }

/* Anchor jumps land below the sticky header and the in-page nav. */
[id] { scroll-margin-top: 7.5rem; }
