/* Hussain Abdullah Chemicals — site styles
   Palette taken from the HAC logo navy, the Gulf sky in the facility photos,
   and the amber of warehouse forklifts (used only for primary actions). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #27247b;        /* logo */
  --night: #15143f;       /* text, footer */
  --sky-top: #6a89c2;
  --sky-low: #90a9d2;
  --steel: #555c70;       /* secondary text */
  --rule: #d6dbe6;
  --paper: #f4f6fa;
  --white: #ffffff;
  --amber: #f2a71b;       /* primary action */
  --amber-deep: #d98f05;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--night);
  background: var(--white);
  font-variant-numeric: lining-nums;
}

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

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--night); color: var(--white); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.1; color: var(--night); font-weight: 700; }
h1 { font-stretch: 125%; font-size: clamp(2.25rem, 5.2vw, 4.25rem); letter-spacing: -0.015em; line-height: 1.04; }
h2 { font-stretch: 115%; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-stretch: 105%; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.small { font-size: 0.9375rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 650; font-stretch: 105%; font-size: 1rem; line-height: 1;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--night); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost { border-color: currentColor; color: var(--white); background: rgba(21,20,63,0.38); }
.btn-ghost:hover { background: rgba(21,20,63,0.6); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Draft preview banner (preview build only) */
.preview-bar { background: var(--amber); color: var(--night); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 0.4rem 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5.5rem; max-width: calc(1360px + 2 * var(--gutter)); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--night); margin-right: auto; }
.brand img { width: 54px; height: 54px; }
.brand-name { display: block; white-space: nowrap; font-stretch: 118%; font-weight: 750; font-size: 1.15rem; line-height: 1.1; color: var(--navy); }
.brand-sub { display: block; font-size: 0.875rem; color: var(--steel); line-height: 1.3; margin-top: 2px; }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  display: block; white-space: nowrap; padding: 0.55rem 0.75rem; color: var(--night); text-decoration: none;
  font-size: 1.06rem; font-weight: 520; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); font-weight: 650; }
.site-nav .btn { white-space: nowrap; margin-left: 0.75rem; min-height: 3rem; padding: 0.7rem 1.25rem; font-size: 1.06rem; border-bottom: 2px solid transparent; }
.site-nav .btn:hover { border-bottom-color: transparent; color: var(--night); }

@media (max-width: 1400px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
    font: inherit; font-weight: 600; color: var(--navy); background: none; border: 2px solid var(--navy); border-radius: 3px; cursor: pointer;
  }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(21,20,63,0.08); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem; gap: 0; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--amber); padding-left: 0.9rem; }
  .site-nav .btn { margin: 1rem 0 0; }
}
@media (max-width: 420px) { .site-header .wrap { gap: 0.75rem; } .brand-sub { display: none; } .brand { gap: 0.5rem; } .brand img { width: 40px; height: 40px; } .brand-name { font-size: 0.86rem; font-stretch: 100%; } .nav-toggle { padding: 0.45rem 0.65rem; font-size: 0.95rem; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  background: linear-gradient(180deg, var(--night), var(--navy));
  color: var(--white);
  display: flex; align-items: center;
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero picture { left: calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 30rem); width: auto; }
.hero picture img { object-fit: cover; object-position: 75% 55%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero::before { content: none; }
.hero .wrap { padding-block: clamp(3rem, 8vh, 5.5rem); }
.hero-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 3.1vw, 2.9rem); max-width: 30rem; text-shadow: 0 1px 24px rgba(21,20,63,0.35); }
.hero-side { max-width: 29rem; }
.hero p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255,255,255,0.96); text-shadow: 0 1px 12px rgba(21,20,63,0.45); }
.hero-side > p { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
/* Hero motion: slow zoom on the photo, text fades up on load */
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero picture img { transform-origin: 70% 60%; animation: hero-zoom 22s ease-out both; will-change: transform; }
.hero h1 { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.1s both; }
.hero-side > p { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.3s both; }
.hero-actions { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.5s both; }
@media (prefers-reduced-motion: reduce) {
  .hero picture img, .hero h1, .hero-side > p, .hero-actions { animation: none; }
}
.hero-credit { position: absolute; right: calc(var(--gutter) + 10rem); bottom: 0.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.6); margin: 0; }
@media (max-width: 860px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero picture { top: auto; left: 0; height: 42%; }
  .hero picture img { object-position: 58% 60%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero h1 { max-width: none; }
  .hero-side { max-width: 40rem; }
  .hero .wrap { padding-bottom: clamp(14rem, 60vw, 22rem); }
  .hero-credit { left: var(--gutter); right: auto; }
}

/* ---------- Spec sheet ---------- */
.spec { border-bottom: 1px solid var(--rule); background: var(--white); }
.spec dl {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--rule);
}
.spec dl > div { padding: 1.5rem 1.5rem 1.6rem; border-right: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.spec dl > div:nth-child(-n+4) { border-top: 4px solid var(--navy); }
.spec dt { font-size: 0.875rem; color: var(--steel); margin-bottom: 0.3rem; }
.spec dd { margin: 0; font-stretch: 108%; font-weight: 650; font-size: 1.125rem; line-height: 1.35; }
@media (max-width: 860px) {
  .spec dl { grid-template-columns: 1fr 1fr; }
  .spec dl > div:nth-child(3), .spec dl > div:nth-child(4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .spec dl { grid-template-columns: 1fr; }
  .spec dl > div:nth-child(2) { border-top: 1px solid var(--rule); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
.section-head { display: grid; grid-template-columns: 5fr 6fr; gap: 1rem 4rem; align-items: end; margin-bottom: 2.75rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--steel); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* portrait photo kept to a sensible height */
.tall-photo img { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 50%; width: 100%; }

/* register rows: categories list on home and industries */
.register { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); }
.register > li { display: grid; grid-template-columns: 4fr 7fr 7rem; gap: 0.5rem 2.5rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.register h3 { margin: 0; }
.register h3 a { color: var(--navy); text-decoration: none; }
.register h3 a:hover { text-decoration: underline; }
.register p { margin: 0; color: var(--steel); }
.register .count { text-align: right; font-size: 0.95rem; color: var(--steel); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .register > li { grid-template-columns: 1fr; } .register .count { text-align: left; } }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-7-5 { grid-template-columns: 7fr 5fr; }
.split-5-7 { grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .split, .split-7-5, .split-5-7 { grid-template-columns: 1fr; } }
.split figure { margin: 0; }
.split figcaption, figure figcaption { font-size: 0.875rem; color: var(--steel); margin-top: 0.6rem; }

/* customers list */
.namelist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); columns: 2; column-gap: 2.5rem; }
.namelist li { break-inside: avoid; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-stretch: 108%; font-weight: 620; font-size: 1.05rem; line-height: 1.3; }
.namelist li span { display: block; font-stretch: 100%; font-weight: 400; font-size: 0.875rem; color: var(--steel); margin-top: 0.15rem; }
@media (max-width: 560px) { .namelist { columns: 1; } }

.markets { margin-top: 1.5rem; font-size: 0.95rem; color: var(--steel); }

/* locations strip */
.places { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--night); }
.places > div { padding: 1.25rem 1.5rem 1.5rem 0; }
.places > div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.places h3 { margin-bottom: 0.25rem; }
.places p { margin: 0; color: var(--steel); font-size: 0.95rem; }
@media (max-width: 860px) {
  .places { grid-template-columns: 1fr 1fr; }
  .places > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .places > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .places { grid-template-columns: 1fr; }
  .places > div, .places > div + div { padding-left: 0; border-left: 0; }
  .places > div + div { border-top: 1px solid var(--rule); }
}

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.86); }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.crumbs { font-size: 0.875rem; color: var(--steel); margin-bottom: 1.25rem; }
.crumbs a { color: var(--steel); }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); }
.timeline li { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.timeline .when { font-stretch: 120%; font-weight: 750; font-size: 1.25rem; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }

/* entity / location blocks */
.entities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; border-top: 2px solid var(--night); }
.entity { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
.entity h3 { margin-bottom: 0.2rem; }
.entity .legal { color: var(--steel); font-size: 0.95rem; margin-bottom: 0.75rem; }
.entity address { font-style: normal; font-size: 0.975rem; line-height: 1.55; margin-bottom: 0.75rem; }
.entity dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; font-size: 0.975rem; }
.entity dt { color: var(--steel); }
.entity dd { margin: 0; }
@media (max-width: 760px) { .entities { grid-template-columns: 1fr; } }

/* ---------- Products register ---------- */
.filters { position: sticky; top: 4.75rem; z-index: 10; background: var(--white); border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.filters .wrap { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 0.75rem 1.5rem; align-items: center; }
.search { position: relative; }
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.9rem; font: inherit; font-size: 1rem;
  border: 1.5px solid #9aa2b8; border-radius: 3px; background: var(--white); color: var(--night);
}
.search input:focus { border-color: var(--navy); outline: 3px solid var(--amber); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit; font-size: 0.875rem; font-weight: 550; padding: 0.45rem 0.8rem; min-height: 2.25rem;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--white); color: var(--night); cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (max-width: 860px) {
  .filters { position: static; }
  .filters .wrap { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
  .chip { flex: 0 0 auto; }
}

.register-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; margin-top: 1.75rem; }
.result-count { font-size: 0.95rem; color: var(--steel); margin: 0; }
.pick-hint { font-size: 0.95rem; color: var(--navy); font-weight: 550; margin: 0; }

/* Quote request bar (products page) */
.enquiry-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--navy); color: var(--white); box-shadow: 0 -8px 24px rgba(21,20,63,0.18); }
.enquiry-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; min-height: 4.5rem; padding-block: 0.75rem; }
.eq-summary { margin: 0; min-width: 0; color: rgba(255,255,255,0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-summary strong { color: var(--white); font-stretch: 108%; margin-right: 0.6rem; }
.eq-actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.eq-clear { font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--white); background: none; border: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; padding: 0.5rem; }
body.has-enquiry .wa-float { bottom: 5.75rem; }
body.has-enquiry .site-footer { padding-bottom: 6.5rem; }
@media (max-width: 600px) {
  #eq-names { display: none; }
  .eq-summary { overflow: visible; }
  .eq-actions { gap: 0.25rem; }
  .enquiry-bar .btn { padding-inline: 0.85rem; font-size: 0.95rem; }
}
.cat { padding-top: 2.5rem; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 0.75rem; }
.cat-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; }
.cat-head p { margin: 0; color: var(--steel); font-size: 0.95rem; }

table.stock { width: 100%; border-collapse: collapse; font-stretch: 92%; font-variant-numeric: tabular-nums; }
table.stock thead th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--steel); padding: 0.6rem 1rem 0.6rem 0; border-bottom: 2px solid var(--night); }
table.stock td { padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.stock td.name { font-stretch: 105%; font-weight: 650; width: 26%; }
table.stock td.form { color: var(--steel); width: 20%; }
table.stock .pick { width: 2.75rem; padding-right: 0.5rem; }
table.stock td.pick { vertical-align: top; }
table.stock td.pick input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--navy); cursor: pointer; }
table.stock tbody tr:has(input:checked) td { background: #eef0fa; }
table.stock tbody tr:hover td { background: var(--paper); }
@media (max-width: 760px) {
  table.stock thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stock, table.stock tbody, table.stock tr, table.stock td { display: block; width: 100% !important; }
  table.stock tbody { border-top: 2px solid var(--night); }
  table.stock tr { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  table.stock td { border: 0; padding: 0.1rem 0; text-align: left !important; }
  table.stock td.form::before { content: "Forms: "; }
  table.stock tr { position: relative; padding-right: 3rem; }
  table.stock td.pick { position: absolute; right: 0; top: 1rem; width: auto !important; padding: 0; }
  table.stock td.pick input { width: 1.5rem; height: 1.5rem; }
  table.stock tbody tr:has(input:checked) { background: #eef0fa; }
  table.stock tbody tr:hover td { background: none; }
}
.empty { display: none; padding: 3rem 0; border-top: 2px solid var(--night); margin-top: 2rem; }
.empty.is-visible { display: block; }
[hidden] { display: none !important; }

.note { border-left: 4px solid var(--amber); background: var(--paper); padding: 1.1rem 1.4rem; margin-top: 3rem; }
.note p { margin: 0; }

/* register product name links */
table.stock td.name a { color: var(--night); text-decoration: none; }
table.stock td.name a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-h { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 0; }
.pd-grid .facts { margin-bottom: 2.75rem; }
.pd-grid .facts li { font-size: 1.05rem; }
.docs { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--night); }
.docs li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.docs span { color: var(--steel); text-align: right; }
.pd-aside { position: sticky; top: 6.5rem; border-top: 4px solid var(--navy); background: var(--paper); }
@media (max-width: 860px) { .pd-aside { position: static; order: -1; } }
.pd-spec { margin: 0; padding: 0.5rem 1.5rem; }
.pd-spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.pd-spec dt { color: var(--steel); font-size: 0.925rem; }
.pd-spec dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-cta { padding: 1.25rem 1.5rem 1.6rem; display: grid; gap: 0.75rem; justify-items: start; }
.pd-cta p { margin: 0; color: var(--steel); font-size: 0.975rem; }
.pd-cta .btn { white-space: normal; text-align: left; }
@media (max-width: 520px) { .pd-spec > div { grid-template-columns: 6.5rem 1fr; } .pd-spec, .pd-cta { padding-inline: 1.1rem; } }
.wa-link { font-weight: 600; }
.related { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--night); display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.related li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.related a { font-weight: 650; font-stretch: 105%; }
.related span { display: block; color: var(--steel); font-size: 0.925rem; }
@media (max-width: 640px) { .related { grid-template-columns: 1fr; } }

/* WhatsApp floating button (shown only when a number is configured) */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.6rem 1.1rem 0.6rem 0.9rem;
  background: #1f7a45; color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 650;
  box-shadow: 0 6px 18px rgba(21,20,63,0.25);
}
.wa-float:hover { background: #17633a; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0.75rem; } }
@media print { .wa-float { display: none !important; } }

/* ---------- Industries ---------- */
.industry { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem 4rem; padding-block: 2.5rem; border-bottom: 1px solid var(--rule); }
.industry:first-child { border-top: 2px solid var(--night); }
.industry h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0.4rem; }
.industry .for { color: var(--steel); margin: 0; }
.industry ul.products { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.industry ul.products li { font-size: 0.9rem; padding: 0.3rem 0.65rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; }
@media (max-width: 860px) { .industry { grid-template-columns: 1fr; } }

/* ---------- Equipment table ---------- */
table.fleet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.fleet caption { text-align: left; font-weight: 700; font-stretch: 110%; font-size: 1.2rem; margin-bottom: 0.75rem; }
table.fleet th, table.fleet td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.fleet thead th { font-size: 0.85rem; font-weight: 600; color: var(--steel); border-bottom: 2px solid var(--night); }
table.fleet td.qty { text-align: right; font-weight: 700; font-stretch: 110%; padding-right: 0; width: 4rem; }
table.fleet th.qty { text-align: right; padding-right: 0; }
table.fleet tbody th { font-weight: 600; width: 38%; }

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }

.photo-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-top: 3rem; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.photo-row.even { grid-template-columns: 1fr 1fr; }
.photo-row.even img { height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; } }

/* ---------- HSE ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; border-top: 2px solid var(--night); }
.pillars > div { padding: 1.5rem 0; }
.pillars h3 { margin-bottom: 0.4rem; }
.pillars p { color: var(--steel); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillars > div + div { border-top: 1px solid var(--rule); } }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
form.rfq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
form.rfq .full { grid-column: 1 / -1; }
@media (max-width: 600px) { form.rfq { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; color: var(--steel); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem; font: inherit; font-size: 1rem; color: var(--night);
  background: var(--white); border: 1.5px solid #9aa2b8; border-radius: 3px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--amber); outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: 0.875rem; margin-top: 0.3rem; display: block; }
.req { color: #b3261e; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-status { margin: 0; font-weight: 550; }
.form-status.ok { color: #1f6f3a; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

.direct { border-top: 2px solid var(--night); }
.direct > div { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.direct h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.direct p { margin: 0; }
.direct a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,0.82); padding-block: 3.5rem 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 2rem 3rem; }
.footer-brand img { width: 52px; height: 52px; margin-bottom: 1rem; }
.footer-brand strong { display: block; color: var(--white); font-stretch: 115%; font-size: 1.05rem; margin-bottom: 0.4rem; }
.site-footer h2 { color: var(--white); font-size: 0.95rem; font-stretch: 105%; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { padding-block: clamp(5rem, 14vw, 9rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .filters, .nav-toggle { display: none !important; }
  .hero { min-height: 0; color: var(--night); background: none; }
  .hero picture, .hero::before { display: none; }
  .hero h1, .hero p { color: var(--night); text-shadow: none; }
}

/* ===================== Phase 1 additions ===================== */
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--navy); text-decoration: underline; }

/* Core products strip (home) */
.core-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--night); border-left: 1px solid var(--rule); }
.core-grid li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.core-grid a { display: block; height: 100%; padding: 1.25rem 1.4rem 1.4rem; text-decoration: none; color: var(--night); }
.core-grid a:hover { background: var(--paper); }
.core-grid strong { display: block; font-stretch: 112%; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.25rem; }
.core-grid span { color: var(--steel); font-size: 0.95rem; }
@media (max-width: 860px) { .core-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .core-grid { grid-template-columns: 1fr; } }

/* Why HAC (home) */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; border-top: 2px solid var(--night); }
.why-grid li { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.why-grid h3 { margin-bottom: 0.35rem; color: var(--navy); }
.why-grid p { margin: 0; color: var(--steel); font-size: 0.975rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* FAQ (details/summary) */
.faq { border-top: 2px solid var(--night); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 2.25rem 1rem 0; position: relative; font-weight: 650; font-stretch: 104%; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.35rem; line-height: 1; color: var(--navy); font-weight: 500; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.1rem; color: var(--steel); max-width: 70ch; }

/* Industry pages */
.side-panel { background: var(--paper); border-top: 4px solid var(--navy); padding: 1.5rem; }
.side-panel .facts { margin-top: 0.5rem; }
table.stock.simple td.name { width: 38%; }
.related.one { grid-template-columns: 1fr; }
.related.one li span { max-width: 80ch; }

/* Articles */
.article-title { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 24ch; }
.article-meta { margin: 1rem 0 0; font-size: 0.9rem; color: var(--steel); }
.article-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
.prose { font-size: 1.075rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2.25rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
table.data { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: 0.975rem; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--steel); padding: 0.55rem 1rem 0.55rem 0; border-bottom: 2px solid var(--night); }
table.data td { padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
@media (max-width: 600px) { table.data { display: block; overflow-x: auto; } }
.disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--steel); }
.aside-h { font-size: 1.05rem; margin: 0.75rem 0 0.5rem; }
.aside-list { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.aside-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; }

/* Product page extras */
.pd-cta .add-to-list { white-space: normal; }
.add-to-list[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.add-to-list[aria-pressed="true"]::before { content: "✓ "; }
.pd-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-weight: 600; font-size: 0.95rem; }

/* Contact: request type */
.req-type { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.req-type legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; padding: 0; }
.req-type label { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.85rem; border: 1.5px solid var(--rule); border-radius: 3px; cursor: pointer; font-size: 0.95rem; font-weight: 520; }
.req-type label:has(input:checked) { border-color: var(--navy); background: #eef0fa; }
.field .req-type input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: 0; padding: 0; margin: 0; border: 0; flex: 0 0 auto; accent-color: var(--navy); }

/* Engineering tools */
.tool-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.tool { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 1.5rem; display: grid; gap: 1rem; }
.section-paper .tool { background: var(--white); }
.unit-input { display: flex; }
.unit-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1 1 auto; min-width: 0; }
.unit-input select { width: auto; flex: 0 0 auto; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; background: var(--paper); }
.tool-out { border-top: 2px solid var(--night); padding-top: 0.25rem; }
.results { margin: 0; }
.results > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.results > div:first-child dd { font-size: 1.4rem; color: var(--navy); }
.results dt { color: var(--steel); }
.results dd { margin: 0; font-weight: 700; font-stretch: 108%; font-variant-numeric: tabular-nums; text-align: right; }
.tool-err { color: #b3261e; font-weight: 550; margin: 0.75rem 0 0; }

/* Nav with 7 items: tighten spacing on mid-size desktops */
@media (min-width: 1241px) and (max-width: 1500px) {
  .site-nav a { padding-inline: 0.5rem; font-size: 0.93rem; }
  .brand-sub { display: none; }
}

/* Certifications list (HSE page) */
.certs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--night); border-left: 1px solid var(--rule); }
.certs li { padding: 1.25rem 1.4rem 1.4rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.certs strong { display: block; font-stretch: 115%; font-size: 1.5rem; color: var(--navy); margin-bottom: 0.2rem; }
.certs span { color: var(--steel); }
@media (max-width: 760px) { .certs { grid-template-columns: 1fr; } }

/* Home stock register: category + full product range, no counts */
.register.two-col > li { grid-template-columns: 4fr 8fr; }
@media (max-width: 760px) { .register.two-col > li { grid-template-columns: 1fr; } }
.register.two-col p { max-width: none; }

/* ---------- Site blocks with photos (infrastructure, HSE) ---------- */
.kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.35rem; }
.site-block { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; margin-top: 3.5rem; }
.site-block-flip { grid-template-columns: 7fr 5fr; }
.site-block figure, .photo-strip figure, .site-wide, .hse-photo figure { margin: 0; }
.site-lead img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; }
.site-block img, .site-wide img { width: 100%; height: auto; }
.site-wide { margin-top: 1.25rem; }
.site-wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.photo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-top: 1.25rem; }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.hse-photo { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; margin-top: 4rem; }
.hse-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) {
  .site-block, .site-block-flip, .hse-photo { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-block-flip > div:first-child { order: 0; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip figure:last-child { grid-column: span 2; }
  .photo-strip figure:last-child img { aspect-ratio: 16 / 10; }
  .site-wide img { aspect-ratio: 16 / 10; }
}
