/* ==========================================================================
   Raykem design system — v1.0 (homepage)
   Structure: 1 fonts · 2 tokens · 3 base · 4 layout · 5 components · 6 sections
   Rule: one class per component, no !important, no element overrides of
   component styles. Section spacing lives only on .section.
   ========================================================================== */

/* 1. Fonts (self-hosted, OFL) ------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Arabic (OFL) — used only on the Arabic pages */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  /* Brand (from logo artwork + brand guide) */
  --rk-teal: #0097a8;          /* brand teal: accents, large graphics   */
  --rk-teal-strong: #007885;   /* AA-contrast teal: buttons, links      */
  --rk-teal-deep: #0b4f58;     /* conversion band                        */
  --rk-green: #52b848;         /* logo green: small accents only        */
  --rk-ink: #16292e;           /* dark sections (teal-slate)            */
  --rk-text: #232323;          /* brand dark grey: body copy            */
  --rk-muted: #56666b;
  --rk-line: #dbe3e5;
  --rk-mist: #f2f6f6;
  --rk-white: #ffffff;

  --rk-font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --rk-font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --rk-font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;

  /* Type scale (1.25) */
  --rk-fs-sm: 0.875rem;
  --rk-fs-base: 1rem;
  --rk-fs-md: 1.125rem;
  --rk-fs-lg: 1.375rem;
  --rk-fs-xl: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  --rk-fs-hero: clamp(2rem, 1.4rem + 2.4vw, 3.125rem);

  /* Spacing (8px base) */
  --rk-s1: 0.5rem;
  --rk-s2: 1rem;
  --rk-s3: 1.5rem;
  --rk-s4: 2rem;
  --rk-s5: 2.5rem;
  --rk-s6: clamp(2.5rem, 1.75rem + 2vw, 3.75rem);

  --rk-radius: 4px;
  --rk-container: 1200px;
  --rk-header-h: 84px;
  --rk-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rk-header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--rk-font-body);
  font-size: var(--rk-fs-base);
  line-height: 1.65;
  color: var(--rk-text);
  background: var(--rk-white);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--rk-font-head);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rk-teal-strong); }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

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

.rk-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--rk-ink);
  color: var(--rk-white);
  text-decoration: none;
}
.rk-skip:focus { top: 1rem; }

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

/* 4. Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--rk-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: var(--rk-s6); }
.section--mist { background: var(--rk-mist); }
.section--ink { background: var(--rk-ink); color: #e6eeef; }

.section-head {
  max-width: 60rem;
  margin-bottom: var(--rk-s4);
}
.section-head__title {
  font-size: var(--rk-fs-xl);
  font-weight: 700;
  color: var(--rk-ink);
}
.section-head__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--rk-green), var(--rk-teal));
}
.section-head__lead {
  margin-top: 0.75rem;
  font-size: var(--rk-fs-md);
  color: var(--rk-muted);
}
.section--ink .section-head__title { color: var(--rk-white); }
.section--ink .section-head__lead { color: #b9c9cc; }

/* 5. Components -------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--rk-radius);
  font-family: var(--rk-font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--rk-teal-strong); color: var(--rk-white); }
.btn--primary:hover { background: var(--rk-teal-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--rk-white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--rk-white); }
.btn--light { background: var(--rk-white); color: var(--rk-teal-deep); }
.btn--light:hover { background: #e3f1f2; }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--rk-fs-sm); }

/* Text link with underline animation */
.link {
  font-family: var(--rk-font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--rk-teal-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }
.section--ink .link { color: #7fd3dc; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rk-white);
  border-bottom: 1px solid var(--rk-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rk-s3);
  height: var(--rk-header-h);
}
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { width: 210px; height: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
  color: var(--rk-ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 0;
  background: none;
  font-family: var(--rk-font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rk-text);
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--rk-teal-strong); }
.nav__link svg { width: 12px; height: 12px; transition: transform 0.2s var(--rk-ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__item--sub { position: relative; }
.nav__sub {
  position: absolute;
  top: calc(100% + 0.25rem);
  inset-inline-start: 0;
  min-width: 240px;
  padding: 0.5rem 0;
  background: var(--rk-white);
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  box-shadow: 0 12px 28px rgba(22, 41, 46, 0.12);
}
.nav__sub[hidden] { display: none; }
.nav__sub a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--rk-text);
  text-decoration: none;
}
.nav__sub a:hover { background: var(--rk-mist); color: var(--rk-teal-strong); }

.nav__lang {
  font-family: var(--rk-font-ar);
  font-size: 1rem;
  font-weight: 600;
}
.nav__cta { margin-inline-start: 0.5rem; }

/* Hero ----------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 60vh, 540px);
  overflow: hidden;
  color: var(--rk-white);
  background: var(--rk-ink);
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 65% 50%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 41, 46, 0.94) 0%, rgba(22, 41, 46, 0.82) 38%, rgba(22, 41, 46, 0.25) 72%, rgba(22, 41, 46, 0.1) 100%);
}
.hero__content {
  max-width: 40rem;
  padding-block: var(--rk-s5);
}
.hero__title {
  font-size: var(--rk-fs-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__lead {
  margin-top: var(--rk-s2);
  max-width: 34rem;
  font-size: var(--rk-fs-md);
  line-height: 1.6;
  color: #dbe7e9;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rk-s2);
  margin-top: var(--rk-s3);
}

/* Facts strip ------------------------------------------------------------------ */
.facts { background: var(--rk-white); border-bottom: 1px solid var(--rk-line); }
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts__item {
  padding: 1.25rem var(--rk-s3);
  border-inline-start: 1px solid var(--rk-line);
}
.facts__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts__term {
  font-family: var(--rk-font-head);
  font-size: var(--rk-fs-base);
  font-weight: 700;
  color: var(--rk-ink);
}
.facts__desc {
  margin: 0.25rem 0 0;
  font-size: var(--rk-fs-sm);
  line-height: 1.5;
  color: var(--rk-muted);
}

/* Product portfolio --------------------------------------------------------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.product-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--rk-radius);
  background: var(--rk-mist);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--rk-ease);
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__title {
  margin-top: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rk-line);
  font-size: var(--rk-fs-lg);
  font-weight: 700;
  color: var(--rk-ink);
  transition: border-color 0.3s var(--rk-ease);
}
.product-card:hover .product-card__title { border-color: var(--rk-teal); }
.product-card__text {
  margin-top: 0.6rem;
  color: var(--rk-text);
}
.product-card__use {
  margin-top: 0.35rem;
  font-size: var(--rk-fs-sm);
  color: var(--rk-muted);
}

/* Capabilities ----------------------------------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--rk-s5);
  align-items: start;
}
.capabilities .section-head { margin-bottom: var(--rk-s3); }
.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}
.capability__icon {
  width: 36px;
  height: 36px;
  color: var(--rk-teal);
}
.capability__title {
  margin-top: 0.75rem;
  font-size: var(--rk-fs-md);
  font-weight: 700;
  color: var(--rk-ink);
}
.capability__text {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--rk-muted);
}

/* Regional supply -------------------------------------------------------------- */
.regional {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--rk-s5);
  align-items: start;
}
.regional__text p + p { margin-top: var(--rk-s2); }
.regional__text { color: #c9d7d9; font-size: var(--rk-fs-md); }
.regional__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem var(--rk-s4);
  margin-top: var(--rk-s3);
}
.office-list { display: grid; gap: 1.25rem; }
.office-note { font-size: 0.9375rem; color: #b9c9cc; }
.office {
  padding: 1.25rem 1.5rem;
  border-inline-start: 3px solid var(--rk-teal);
  background: rgba(255, 255, 255, 0.05);
}
.office__city {
  font-size: var(--rk-fs-lg);
  font-weight: 700;
  color: var(--rk-white);
}
.office__entity {
  margin-top: 0.25rem;
  font-family: var(--rk-font-head);
  font-weight: 600;
  color: #7fd3dc;
}
.office__address {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: #b9c9cc;
}

/* Insights --------------------------------------------------------------------- */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rk-s4);
}
.insight {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--rk-line);
  border-top: 3px solid var(--rk-teal);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
}
.insight__topic {
  font-size: var(--rk-fs-sm);
  font-weight: 600;
  color: var(--rk-teal-strong);
}
.insight__title {
  margin-top: 0.5rem;
  font-size: var(--rk-fs-md);
  font-weight: 700;
  color: var(--rk-ink);
}
.insight__text {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--rk-muted);
}
.insight .link { margin-top: auto; }
.insights-more { margin-top: var(--rk-s3); }

/* Quote / conversion band ------------------------------------------------------- */
.quote-band {
  position: relative;
  isolation: isolate;
  background-color: var(--rk-teal-deep);          /* fallback + letterbox colour */
  background-image: url("../img/cta-plant-1440.webp");
  background-image: image-set(
    url("../img/cta-plant-1440.avif") type("image/avif"),
    url("../img/cta-plant-1440.webp") type("image/webp"));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--rk-white);
}

/* Tint: darkest on the left, where the heading sits; the right stays open so the
   tanks, pipework, drums and IBCs read through. */
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(8, 48, 55, 0.94) 0%,
      rgba(8, 48, 55, 0.88) 32%,
      rgba(9, 54, 62, 0.66) 62%,
      rgba(9, 54, 62, 0.56) 100%),
    linear-gradient(rgba(6, 40, 46, 0.22), rgba(6, 40, 46, 0.22));
}
.quote-band > * { position: relative; }
.quote-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--rk-s5);
  align-items: center;
}
.quote-band__title {
  font-size: var(--rk-fs-xl);
  font-weight: 700;
}
.quote-band__text {
  margin-top: var(--rk-s2);
  max-width: 36rem;
  font-size: var(--rk-fs-md);
  color: #d6e9eb;
}
.quote-band__action { display: grid; gap: var(--rk-s3); justify-items: start; }
.quote-band__contacts { display: grid; gap: 0.5rem; }
.quote-band__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rk-white);
  text-decoration: none;
}
.quote-band__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.quote-band__contacts svg { width: 18px; height: 18px; color: #7fd3dc; flex-shrink: 0; }

/* Footer (white, colour logo) --------------------------------------------- */
.site-footer {
  background: var(--rk-white);
  border-top: 1px solid var(--rk-line);
  color: var(--rk-muted);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 3.4fr) repeat(2, minmax(0, 1.8fr)) minmax(0, 5fr);
  gap: var(--rk-s4);
  padding-block: 2.5rem 2rem;
}
.site-footer__logo { width: 190px; }
.site-footer__about { margin-top: var(--rk-s2); max-width: 22rem; }
.site-footer__heading {
  margin-bottom: 0.75rem;
  font-size: var(--rk-fs-base);
  font-weight: 700;
  color: var(--rk-ink);
}
.site-footer__list { display: grid; gap: 0.3rem; }
.site-footer a { color: var(--rk-text); text-decoration: none; }
.site-footer a:hover { color: var(--rk-teal-strong); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.site-footer__office strong { display: block; color: var(--rk-ink); font-weight: 600; }
.site-footer__contact { display: grid; gap: 0.3rem; margin-top: var(--rk-s2); }
.site-footer__contact a { color: var(--rk-teal-strong); font-weight: 600; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--rk-s2);
  padding-block: 1.25rem;
  border-top: 1px solid var(--rk-line);
  font-size: var(--rk-fs-sm);
}
.site-footer__legal { display: flex; gap: var(--rk-s3); }

/* Motion ---------------------------------------------------------------------
   Transform/opacity only (GPU-cheap, no layout shift). All motion is
   disabled under prefers-reduced-motion (see end of file).            */

/* Header gains a shadow once the page scrolls */
.site-header { transition: box-shadow 0.3s var(--rk-ease); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(22, 41, 46, 0.08); }

/* Hero: image settles from a slight zoom; copy rises in sequence */
@keyframes rk-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__media { will-change: transform; }
.hero__media img { animation: rk-settle 1.8s var(--rk-ease) both; }
.hero__title { animation: rk-rise 0.8s var(--rk-ease) 0.1s both; }
.hero__lead { animation: rk-rise 0.8s var(--rk-ease) 0.25s both; }
.hero__actions { animation: rk-rise 0.8s var(--rk-ease) 0.4s both; }

/* Scroll reveal (only when JS has added .js to <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--rk-ease), transform 0.7s var(--rk-ease);
  transition-delay: var(--rk-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Stagger siblings in a row */
.portfolio > :nth-child(3n + 2),
.capability-list > :nth-child(2n),
.insights > :nth-child(2),
.office-list > :nth-child(2),
.facts__item:nth-child(2) { --rk-delay: 0.1s; }
.portfolio > :nth-child(3n + 3),
.insights > :nth-child(3),
.facts__item:nth-child(3) { --rk-delay: 0.2s; }
.facts__item:nth-child(4) { --rk-delay: 0.3s; }

/* Heading rule draws in */
.js .reveal .section-head__title::after,
.js .section-head.reveal .section-head__title::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--rk-ease) 0.25s;
}
.js .reveal.is-visible .section-head__title::after { transform: scaleX(1); }

/* Capability icons draw their outline */
.js .capability__icon * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--rk-ease) calc(var(--rk-delay, 0s) + 0.15s);
}
.js .capability.is-visible .capability__icon * { stroke-dashoffset: 0; }

/* Micro-interactions */
.btn { transition: background-color 0.2s var(--rk-ease), color 0.2s var(--rk-ease), border-color 0.2s var(--rk-ease), transform 0.2s var(--rk-ease), box-shadow 0.2s var(--rk-ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11, 79, 88, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.insight { transition: transform 0.3s var(--rk-ease), box-shadow 0.3s var(--rk-ease), opacity 0.7s var(--rk-ease); }
.insight:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22, 41, 46, 0.1); }
.office { transition: background-color 0.3s var(--rk-ease), opacity 0.7s var(--rk-ease), transform 0.7s var(--rk-ease); }
.office:hover { background: rgba(255, 255, 255, 0.09); }

/* 6. Responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav__link { padding-inline: 0.5rem; font-size: 0.875rem; }
  .site-header__logo img { width: 180px; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--rk-header-h) 0 0 0;
    overflow-y: auto;
    padding: var(--rk-s2) clamp(1.25rem, 4vw, 2rem) var(--rk-s5);
    background: var(--rk-white);
    border-top: 1px solid var(--rk-line);
  }
  .nav[data-open="false"] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--rk-line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 0.9rem 0; font-size: 1rem; }
  .nav__sub { position: static; min-width: 0; padding: 0 0 0.75rem; border: 0; box-shadow: none; }
  .nav__sub a { padding: 0.55rem 0 0.55rem 1rem; }
  .nav__cta { margin: var(--rk-s3) 0 0; border-bottom: 0; }
  .nav__cta .btn { width: 100%; }

  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .capabilities,
  .regional,
  .quote-band__inner { grid-template-columns: 1fr; }
  .insights { grid-template-columns: 1fr 1fr; }
  .insights > :last-child { grid-column: 1 / -1; }
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts__item:nth-child(n + 3) { border-top: 1px solid var(--rk-line); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(22, 41, 46, 0.72) 0%, rgba(22, 41, 46, 0.9) 100%); }
  .hero__content { padding-block: var(--rk-s5); }
  .hero__actions .btn { flex: 1 1 100%; }
  .portfolio,
  .capability-list,
  .insights { grid-template-columns: 1fr; }
  .insights > :last-child { grid-column: auto; }
  .facts__list { grid-template-columns: 1fr; }
  .facts__item,
  .facts__item:nth-child(3) { padding: var(--rk-s3) 0; border-inline-start: 0; }
  .facts__item + .facts__item { border-top: 1px solid var(--rk-line); }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (min-width: 1600px) {
  :root { --rk-container: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .hero__title,
  .hero__lead,
  .hero__actions { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal .section-head__title::after,
  .js .section-head.reveal .section-head__title::after { transform: none; transition: none; }
  .js .capability__icon * { stroke-dashoffset: 0; transition: none; }
  .btn:hover,
  .insight:hover,
  .product-card:hover .product-card__media img { transform: none; }
}

/* ==========================================================================
   Inner-page components (About, Services, and later pages)
   ========================================================================== */

/* Page hero: shorter version of the homepage hero */
.page-hero { min-height: clamp(300px, 42vh, 400px); }
.page-hero .hero__content { padding-block: var(--rk-s5); }
.page-hero .hero__title { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }

.breadcrumb {
  display: flex;
  margin: 0 0 var(--rk-s2);
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--rk-fs-sm);
  color: #b9c9cc;
  animation: rk-rise 0.8s var(--rk-ease) both;
}
.breadcrumb li + li::before { content: "/"; margin-inline-end: 0.4rem; color: #7f9599; }
.breadcrumb a { color: #dbe7e9; text-decoration: none; }
.breadcrumb a:hover { color: var(--rk-white); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--rk-white); }

/* Two-column text + aside */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--rk-s5);
  align-items: start;
}
.prose { max-width: 42rem; font-size: var(--rk-fs-md); }
.prose p + p { margin-top: var(--rk-s2); }

.aside-card {
  padding: 1.5rem;
  border: 1px solid var(--rk-line);
  border-top: 3px solid var(--rk-teal);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
}
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card__title {
  font-size: var(--rk-fs-base);
  font-weight: 700;
  color: var(--rk-ink);
}
.aside-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.aside-card__list li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--rk-mist);
  font-size: var(--rk-fs-sm);
  color: var(--rk-ink);
}
.aside-card__text { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--rk-muted); }

/* Office cards with image */
.office-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.office-card {
  overflow: hidden;
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
}
.office-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rk-mist); }
.office-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--rk-ease);
}
.office-card:hover .office-card__media img { transform: scale(1.04); }
.office-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.office-card__city { font-size: var(--rk-fs-lg); font-weight: 700; color: var(--rk-ink); }
.office-card__entity {
  margin-top: 0.2rem;
  font-family: var(--rk-font-head);
  font-weight: 600;
  color: var(--rk-teal-strong);
}
.office-card__role { margin-top: 0.5rem; }
.office-card__address { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--rk-muted); }
.office-cards--compact { margin-top: 1.25rem; }
.office-card--compact { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; }
.office-card--compact .office-card__media { aspect-ratio: auto; height: 100%; min-height: 130px; }
.office-card--compact .office-card__body { padding: 1rem 1.25rem; }
.office-card--compact .office-card__city { font-size: var(--rk-fs-md); }
.office-card--compact .office-card__role,
.office-card--compact .office-card__address { margin-top: 0.3rem; font-size: 0.875rem; }
.office-cards-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem var(--rk-s4);
  margin-top: var(--rk-s3);
}

/* Mission / vision statements */
.statements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.statement {
  padding: 1.75rem;
  border-inline-start: 3px solid var(--rk-teal);
  background: rgba(255, 255, 255, 0.05);
}
.statements > :nth-child(2) { --rk-delay: 0.1s; }
.statement__title { font-size: var(--rk-fs-lg); font-weight: 700; color: var(--rk-white); }
.statement__text { margin-top: 0.75rem; font-size: var(--rk-fs-md); color: #c9d7d9; }

/* Values grid */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}
.value { padding-top: 1rem; border-top: 2px solid var(--rk-line); transition: border-color 0.3s var(--rk-ease); }
.value:hover { border-color: var(--rk-teal); }
.value__title { font-size: var(--rk-fs-md); font-weight: 700; color: var(--rk-ink); }
.value__text { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--rk-muted); }
.values > :nth-child(3n + 2) { --rk-delay: 0.1s; }
.values > :nth-child(3n + 3) { --rk-delay: 0.2s; }

/* Service groups */
.service-group + .service-group { margin-top: var(--rk-s5); }
.service-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--rk-s2);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rk-line);
}
.service-group__title { font-size: var(--rk-fs-lg); font-weight: 700; color: var(--rk-ink); }
.service-group__intro { font-size: 0.9375rem; color: var(--rk-muted); }
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service {
  padding: 1.25rem;
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
  transition: transform 0.3s var(--rk-ease), box-shadow 0.3s var(--rk-ease), border-color 0.3s var(--rk-ease);
}
.service:hover { transform: translateY(-3px); border-color: var(--rk-teal); box-shadow: 0 12px 26px rgba(22, 41, 46, 0.08); }
.service .capability__icon { width: 32px; height: 32px; }
.service__title { margin-top: 0.75rem; font-size: var(--rk-fs-base); font-weight: 700; color: var(--rk-ink); }
.service__text { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--rk-muted); }
.service-list > :nth-child(2) { --rk-delay: 0.08s; }
.service-list > :nth-child(3) { --rk-delay: 0.16s; }
.service-list > :nth-child(4) { --rk-delay: 0.24s; }
.js .service.is-visible .capability__icon * { stroke-dashoffset: 0; }

/* Product chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--rk-line);
  border-radius: 999px;
  background: var(--rk-white);
  font-family: var(--rk-font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--rk-ink);
  text-decoration: none;
  transition: border-color 0.2s var(--rk-ease), color 0.2s var(--rk-ease), transform 0.2s var(--rk-ease);
}
.chip:hover { border-color: var(--rk-teal); color: var(--rk-teal-strong); transform: translateY(-2px); }

@media (max-width: 1023px) {
  .split,
  .statements { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .office-cards,
  .values,
  .service-list { grid-template-columns: 1fr; }
  .service-group__head { flex-direction: column; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .breadcrumb { animation: none; }
  .service:hover,
  .chip:hover,
  .office-card:hover .office-card__media img { transform: none; }
}

/* ==========================================================================
   Utility-page header band, forms, Contact and Request a Quote
   ========================================================================== */

/* Compact header band (no image: forms load instantly) */
.page-band {
  position: relative;
  overflow: hidden;
  padding-block: 2.25rem 2.5rem;
  background: var(--rk-ink);
  color: var(--rk-white);
}
.page-band::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -40px;
  width: 320px;
  height: 320px;
  background: url("../img/raykem-mark.svg") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}
.page-band__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; animation: rk-rise 0.8s var(--rk-ease) 0.1s both; }
.page-band__lead { margin-top: 0.75rem; max-width: 44rem; font-size: var(--rk-fs-md); color: #dbe7e9; animation: rk-rise 0.8s var(--rk-ease) 0.25s both; }

/* Form layout: form + sidebar */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--rk-s5);
  align-items: start;
}
.form-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
  box-shadow: 0 10px 30px rgba(22, 41, 46, 0.06);
}
.form-card__title { font-size: var(--rk-fs-lg); font-weight: 700; color: var(--rk-ink); }
.form-card__intro { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--rk-muted); }

.fieldset { margin: 1.5rem 0 0; padding: 0; border: 0; }
.fieldset .form-grid { margin-top: 0; }
.fieldset__legend {
  width: 100%;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rk-line);
  font-family: var(--rk-font-head);
  font-size: var(--rk-fs-base);
  font-weight: 700;
  color: var(--rk-ink);
}
.form-grid { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field--full { grid-column: 1 / -1; }
.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--rk-font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rk-text);
}
.field__req { color: #b42318; }
.field__input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c4d0d2;
  border-radius: var(--rk-radius);
  background: var(--rk-white);
  font: inherit;
  font-size: 1rem;
  color: var(--rk-text);
  transition: border-color 0.2s var(--rk-ease), box-shadow 0.2s var(--rk-ease);
}
.field__input::placeholder { color: #8a989b; }
.field__input:hover { border-color: #9fb1b4; }
.field__input:focus { outline: none; border-color: var(--rk-teal-strong); box-shadow: 0 0 0 3px rgba(0, 151, 168, 0.18); }
.field__input[aria-invalid="true"] { border-color: #b42318; }
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2356666b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}
.field__error { display: block; margin-top: 0.3rem; font-size: 0.8125rem; color: #b42318; }
.field__error[hidden] { display: none; }
.field__hint { display: block; margin-top: 0.3rem; font-size: 0.8125rem; color: var(--rk-muted); text-align: end; }
.hp { position: absolute; inset-inline-start: -9999px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-note { font-size: 0.8125rem; color: var(--rk-muted); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.btn__spinner {
  width: 16px;
  height: 16px;
  margin-inline-end: 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--rk-white);
  border-radius: 50%;
  animation: rk-spin 0.8s linear infinite;
}
.btn__spinner[hidden] { display: none; }
@keyframes rk-spin { to { transform: rotate(360deg); } }

.form-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid #b42318;
  background: #fdf1f0;
  font-size: 0.9375rem;
  color: #7a1c14;
}
.form-alert[hidden] { display: none; }

.form-success { text-align: start; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 48px; height: 48px; color: var(--rk-green); }
.form-success__title { margin-top: 1rem; font-size: var(--rk-fs-xl); font-weight: 700; color: var(--rk-ink); }
.form-success__text { margin-top: 0.5rem; color: var(--rk-muted); }
.form-success__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.btn--outline { border-color: var(--rk-teal-strong); color: var(--rk-teal-strong); background: var(--rk-white); }
.btn--outline:hover { background: var(--rk-mist); }

/* Sidebar */
.side-block + .side-block { margin-top: 1.5rem; }
.side-block {
  padding: 1.5rem;
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
}
.side-block--ink { border: 0; background: var(--rk-ink); color: #c9d7d9; }
.side-block__title { font-size: var(--rk-fs-base); font-weight: 700; color: var(--rk-ink); }
.side-block--ink .side-block__title { color: var(--rk-white); }
.side-block__text { margin-top: 0.5rem; font-size: 0.9375rem; }
.side-block .btn { margin-top: 1rem; }

.contact-methods { display: grid; gap: 0.9rem; margin-top: 0.9rem; }
.contact-method { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-method svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--rk-teal); }
.contact-method__label { display: block; font-size: 0.8125rem; color: var(--rk-muted); }
.contact-method a { font-family: var(--rk-font-head); font-weight: 600; color: var(--rk-ink); text-decoration: none; }
.contact-method a:hover { color: var(--rk-teal-strong); text-decoration: underline; text-underline-offset: 3px; }

.office-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 0.9rem; font-size: 0.875rem; color: var(--rk-muted); }
.office-mini strong { display: block; color: var(--rk-ink); font-family: var(--rk-font-head); font-weight: 600; }

.side-links { display: grid; gap: 0.5rem; margin-top: 0.75rem; }

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; margin-top: 0.9rem; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 2.4rem; font-size: 0.9375rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--rk-mist);
  font-family: var(--rk-font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rk-teal-strong);
}
.steps strong { display: block; color: var(--rk-ink); font-family: var(--rk-font-head); font-weight: 600; }
.doc-list { display: grid; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.9375rem; }
.doc-list li { position: relative; padding-inline-start: 1.4rem; }
.doc-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-inline-start: 2px solid var(--rk-teal);
  border-bottom: 2px solid var(--rk-teal);
  transform: rotate(-45deg);
}

@media (max-width: 1023px) {
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-band__title,
  .page-band__lead { animation: none; }
  .btn__spinner { animation-duration: 2s; }
}

/* ==========================================================================
   Category pages: jump nav, product catalogue, applications, FAQ, guides
   ========================================================================== */

/* Masonry via CSS columns: groups of different lengths pack without gaps */
.catalogue { columns: 3; column-gap: 1.5rem; }
.catalogue > .cat-group { break-inside: avoid; margin-bottom: 1.5rem; }
.cat-group {
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--rk-line);
  border-top: 3px solid var(--rk-teal);
  border-radius: var(--rk-radius);
  background: var(--rk-white);
  scroll-margin-top: calc(var(--rk-header-h) + 1rem);
}
.cat-group__title { font-size: var(--rk-fs-md); font-weight: 700; color: var(--rk-ink); }
.cat-group__list { display: grid; gap: 0.1rem; margin-top: 0.6rem; min-width: 0; }
.cat-item {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--rk-line);
  font-size: 0.9375rem;
}
.cat-item:last-child { border-bottom: 0; }
.cat-item a { font-weight: 600; color: var(--rk-teal-strong); text-decoration: none; }
.cat-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cat-item__meta { font-size: 0.8125rem; color: var(--rk-muted); overflow-wrap: break-word; }
.cat-item__subs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; width: 100%; font-size: 0.875rem; }
.cat-group__more { margin-top: 0.6rem; font-size: 0.875rem; }

.feature-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--rk-radius);
  background: var(--rk-ink);
  color: #c9d7d9;
}
.feature-link__title { font-size: var(--rk-fs-md); font-weight: 700; color: var(--rk-white); }
.feature-link__text { margin-top: 0.2rem; font-size: 0.9375rem; }

.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.guides .insight { padding: 1.25rem; }

@media (max-width: 1023px) {
  .catalogue { columns: 2; }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .catalogue { columns: 1; }
  .guides { grid-template-columns: 1fr; }
}
.guides .insight__title { margin-bottom: 1rem; }
.related-title { margin: 2.5rem 0 1rem; font-size: var(--rk-fs-lg); font-weight: 700; color: var(--rk-ink); }
.split .prose { max-width: none; }

/* ==========================================================================
   Product pages
   ========================================================================== */
.prod-band .breadcrumb { color: #b9c9cc; }
.prod-band__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.prod-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rk-white);
}
.prod-chip--teal { background: var(--rk-teal-strong); }
.prod-band__cas { margin-top: 0.6rem; font-family: var(--rk-font-head); font-weight: 600; color: #7fd3dc; }
.prod-band__lead { margin-top: 0.75rem; max-width: 52rem; color: #dbe7e9; }
.prod-band__actions { margin-top: 1.25rem; }

.prod-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--rk-s5);
  align-items: start;
}
.prod-content { min-width: 0; font-size: 0.9875rem; overflow-wrap: break-word; }
.prod-content table { min-width: 480px; }
.prod-content h2 {
  margin: 2rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rk-line);
  font-size: var(--rk-fs-lg);
  font-weight: 700;
  color: var(--rk-ink);
}
.prod-content > h2:first-child { margin-top: 0; }
.prod-content h3 { margin: 1.5rem 0 0.5rem; font-size: var(--rk-fs-md); font-weight: 700; color: var(--rk-ink); }
.prod-content h4 { margin: 1.25rem 0 0.4rem; font-family: var(--rk-font-head); font-size: var(--rk-fs-base); font-weight: 700; color: var(--rk-ink); }
.prod-content p { margin: 0.6rem 0; }
.prod-content ul,
.prod-content ol { margin: 0.6rem 0; padding-inline-start: 1.25rem; }
.prod-content ul { list-style: disc; }
.prod-content ol { list-style: decimal; }
.prod-content li { margin: 0.3rem 0; }
.prod-content li::marker { color: var(--rk-teal); }
.table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border: 1px solid var(--rk-line); border-radius: var(--rk-radius); }
.prod-content table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prod-content th {
  padding: 0.65rem 0.9rem;
  background: var(--rk-ink);
  font-family: var(--rk-font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: start;
  color: var(--rk-white);
}
.prod-content td { padding: 0.6rem 0.9rem; border-top: 1px solid var(--rk-line); vertical-align: top; }
.prod-content tbody tr:nth-child(even) td { background: var(--rk-mist); }
.prod-content td:first-child { font-weight: 600; color: var(--rk-ink); }

.prod-aside { min-width: 0; position: sticky; top: calc(var(--rk-header-h) + 1rem); }
.side-links--products a { font-size: 0.9375rem; }

@media (max-width: 1023px) {
  .prod-layout { grid-template-columns: minmax(0, 1fr); }
  .prod-aside { position: static; }
}

/* ==========================================================================
   System pages (e.g. Epoxy System): centred heads, step cards, families, product cards
   ========================================================================== */
.center-head { max-width: 50rem; margin: 0 auto var(--rk-s4); text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 151, 168, 0.1);
  font-family: var(--rk-font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rk-teal-strong);
}
.center-head__title { margin-top: 0.75rem; font-size: var(--rk-fs-xl); font-weight: 700; color: var(--rk-ink); }
.center-head__sub { margin-top: 0.6rem; color: var(--rk-muted); }

.card-grid { display: grid; gap: 1.25rem; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cell { min-width: 0; }
/* a cell that only wraps another grid (or a heading + grid) must span the full row */
.card-grid > .grid-cell:only-child,
.grid-cell:has(> .card-grid) { grid-column: 1 / -1; }

.step, .p-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--rk-line);
  border-radius: 10px;
  background: var(--rk-white);
  transition: transform 0.3s var(--rk-ease), box-shadow 0.3s var(--rk-ease), border-color 0.3s var(--rk-ease);
}
.step:hover, .p-card:hover { transform: translateY(-3px); border-color: var(--rk-teal); box-shadow: 0 12px 26px rgba(22, 41, 46, 0.08); }
.step__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--rk-teal-strong);
  font-family: var(--rk-font-head);
  font-weight: 700;
  color: var(--rk-white);
}
.step__title { margin-top: 1rem; font-size: var(--rk-fs-md); font-weight: 700; }
.step__title a, .p-card__title a { color: var(--rk-ink); text-decoration: none; }
.step__title a:hover, .p-card__title a:hover { color: var(--rk-teal-strong); }
.step p, .p-card p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--rk-muted); }

.family + .family { margin-top: var(--rk-s5); }
.family__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rk-teal);
}
.family__badge {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--rk-teal-strong);
  font-family: var(--rk-font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rk-white);
}
.family__title { font-size: var(--rk-fs-lg); font-weight: 700; color: var(--rk-ink); }
.family > p { margin: 1rem 0 1.25rem; color: var(--rk-muted); }

.p-card__title { font-size: var(--rk-fs-md); font-weight: 700; }
.p-card .p-card__meta { margin-top: 0.3rem; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.8125rem; color: var(--rk-muted); }
.p-card__text { margin-top: 0.85rem; font-size: 0.9rem; line-height: 1.6; color: var(--rk-muted); }
.p-card__link { margin-top: auto; padding-top: 0.9rem; font-family: var(--rk-font-head); font-weight: 600; font-size: 0.9375rem; color: var(--rk-teal-strong); text-decoration: none; }
.p-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
table.mini { width: 100%; margin-top: 0.9rem; border-collapse: collapse; font-size: 0.9rem; }
table.mini td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rk-line); vertical-align: top; }
table.mini td:first-child { width: 42%; background: var(--rk-mist); font-weight: 600; color: var(--rk-ink); }
/* A wide comparison table needs its min-width; a small spec table inside a card must not have one */
.grid-cell .data-table, .p-card .data-table { min-width: 0; }
.grid-cell .table-wrap, .p-card .table-wrap { overflow-x: visible; }
.grid-cell .data-table td, .p-card .data-table td { padding: 0.55rem 0.75rem; font-size: 0.875rem; }
.grid-cell .data-table td:first-child, .p-card .data-table td:first-child { width: 42%; background: var(--rk-mist); }
.grid-cell .data-table tbody tr:nth-child(even) td:last-child { background: transparent; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.9375rem; background: var(--rk-white); }
.data-table th { padding: 0.85rem 1rem; background: var(--rk-ink); font-family: var(--rk-font-head); font-size: 0.8125rem; text-align: start; color: var(--rk-white); }
.data-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--rk-line); }
.data-table tbody tr:nth-child(even) td { background: var(--rk-mist); }
.data-table td:first-child { font-weight: 600; color: var(--rk-ink); }
.grid-cell h3, .grid-cell h4 { font-size: var(--rk-fs-md); font-weight: 700; color: var(--rk-ink); }
.grid-cell p, .grid-cell li { color: var(--rk-muted); font-size: 0.9375rem; }
.grid-cell ul { margin-top: 0.5rem; padding-inline-start: 1.1rem; list-style: disc; }

@media (max-width: 1023px) {
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .card-grid--2, .card-grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .step:hover, .p-card:hover { transform: none; }
}

/* Category intro: two text columns on wide screens so the row is filled */
.prose--wide { max-width: none; }
@media (min-width: 1024px) {
  .prose--wide { columns: 2; column-gap: var(--rk-s5); }
  .prose--wide p { margin: 0 0 var(--rk-s2); break-inside: avoid; }
}

/* ==========================================================================
   Blog — listing and article
   ========================================================================== */

/* Listing ------------------------------------------------------------------ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--rk-s3);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--rk-white);
  border: 1px solid var(--rk-line);
  border-radius: var(--rk-radius);
  overflow: hidden;
  transition: transform 0.25s var(--rk-ease), box-shadow 0.25s var(--rk-ease);
}
.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 79, 88, 0.12);
}
.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--rk-mist);
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--rk-s3);
  flex: 1;
}
.post-card__cat {
  font-family: var(--rk-font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rk-teal-strong);
}
.post-card__title {
  font-size: var(--rk-fs-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--rk-ink);
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card { position: relative; }
.post-card__excerpt {
  font-size: var(--rk-fs-sm);
  color: var(--rk-muted);
  line-height: 1.6;
}
.post-card__meta {
  margin-top: auto;
  padding-top: var(--rk-s2);
  font-size: 0.8125rem;
  color: var(--rk-muted);
}

/* Category filter ---------------------------------------------------------- */
.post-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--rk-s4);
}
.post-filter__btn {
  font-family: var(--rk-font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rk-line);
  border-radius: 999px;
  background: var(--rk-white);
  color: var(--rk-muted);
  cursor: pointer;
  transition: background 0.2s var(--rk-ease), color 0.2s var(--rk-ease), border-color 0.2s var(--rk-ease);
}
.post-filter__btn:hover { border-color: var(--rk-teal); color: var(--rk-teal-strong); }
.post-filter__btn[aria-pressed="true"] {
  background: var(--rk-teal-deep);
  border-color: var(--rk-teal-deep);
  color: var(--rk-white);
}

/* Article ------------------------------------------------------------------ */
.post-band__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  font-size: var(--rk-fs-sm);
  color: #b9c9cc;
}
.post-band__cat {
  font-family: var(--rk-font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rk-white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.post-band__lead {
  max-width: 48rem;
  margin-top: 0.9rem;
  font-size: var(--rk-fs-md);
  line-height: 1.65;
  color: #d3e0e2;
}

.post-hero {
  margin: 0 auto;
  max-width: 62rem;
}
.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--rk-radius);
}
.post-hero { margin-bottom: var(--rk-s5); }

.post-body {
  max-width: 44rem;
  margin-inline: auto;
}
.post-body > * + * { margin-top: var(--rk-s2); }
/* effective-date line on the legal pages */
.post-body__meta { color: var(--rk-muted); font-size: 0.9375rem; }
.post-body p,
.post-body li { font-size: var(--rk-fs-base); line-height: 1.75; }
.post-body h2 {
  margin-top: var(--rk-s5);
  font-size: var(--rk-fs-lg);
  font-weight: 700;
  color: var(--rk-ink);
  scroll-margin-top: calc(var(--rk-header-h) + 1rem);
}
.post-body h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--rk-green), var(--rk-teal));
}
.post-body h3 {
  margin-top: var(--rk-s4);
  font-size: var(--rk-fs-md);
  font-weight: 700;
  color: var(--rk-ink);
}
.post-body ul,
.post-body ol { padding-inline-start: 1.25rem; }
.post-body li + li { margin-top: 0.4rem; }
.post-body ul li::marker { color: var(--rk-teal); }
.post-body a { color: var(--rk-teal-strong); }

.post-note {
  border-inline-start: 3px solid var(--rk-teal);
  background: var(--rk-mist);
  border-radius: 0 var(--rk-radius) var(--rk-radius) 0;
  padding: var(--rk-s2) var(--rk-s3);
}
.post-note p { margin: 0; font-size: var(--rk-fs-sm); }
.post-note p + p { margin-top: 0.6rem; }

.post-body .table-wrap { overflow-x: auto; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rk-fs-sm);
}
.post-body th,
.post-body td {
  border: 1px solid var(--rk-line);
  padding: 0.6rem 0.75rem;
  text-align: start;
  vertical-align: top;
}
.post-body thead th {
  background: var(--rk-ink);
  color: var(--rk-white);
  font-family: var(--rk-font-head);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-body tbody tr:nth-child(even) { background: var(--rk-mist); }

/* Related articles --------------------------------------------------------- */
.post-related {
  max-width: 44rem;
  margin: var(--rk-s6) auto 0;
  padding-top: var(--rk-s4);
  border-top: 1px solid var(--rk-line);
}
.post-related__title {
  font-size: var(--rk-fs-md);
  font-weight: 700;
  color: var(--rk-ink);
  margin-bottom: var(--rk-s2);
}
.post-related__list {
  display: grid;
  gap: 0.75rem;
}
.post-related__list a {
  color: var(--rk-teal-strong);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post-related__list a:hover { border-bottom-color: currentColor; }

@media (min-width: 60rem) {
  .post-body { max-width: 46rem; }
}

/* CTA band background: art direction ---------------------------------------- */
@media (min-width: 1441px) {
  .quote-band {
    background-image: url("../img/cta-plant-1920.webp");
    background-image: image-set(
      url("../img/cta-plant-1920.avif") type("image/avif"),
      url("../img/cta-plant-1920.webp") type("image/webp"));
  }
}
@media (min-width: 1921px) {
  .quote-band {
    background-image: url("../img/cta-plant-2158.webp");
    background-image: image-set(
      url("../img/cta-plant-2158.avif") type("image/avif"),
      url("../img/cta-plant-2158.webp") type("image/webp"));
  }
}

/* Tablet: the frame narrows, so bias the crop right to hold on to the tanks. */
@media (max-width: 1024px) {
  .quote-band { background-position: 72% center; }
  .quote-band::before {
    background:
      linear-gradient(90deg,
        rgba(8, 48, 55, 0.95) 0%,
        rgba(8, 48, 55, 0.88) 46%,
        rgba(9, 54, 62, 0.66) 100%),
      linear-gradient(rgba(6, 40, 46, 0.24), rgba(6, 40, 46, 0.24));
  }
}

/* Mobile: the wide crop would be meaningless, so switch to the tank-farm crop
   and darken from the top, where the heading now sits above the contacts. */
@media (max-width: 767px) {
  .quote-band {
    background-image: url("../img/cta-plant-mobile-900.webp");
    background-image: image-set(
      url("../img/cta-plant-mobile-900.avif") type("image/avif"),
      url("../img/cta-plant-mobile-900.webp") type("image/webp"));
    background-position: 62% 32%;
  }
  .quote-band::before {
    background:
      linear-gradient(180deg,
        rgba(8, 48, 55, 0.92) 0%,
        rgba(8, 48, 55, 0.84) 48%,
        rgba(9, 54, 62, 0.50) 100%),
      linear-gradient(rgba(6, 40, 46, 0.16), rgba(6, 40, 46, 0.16));
  }
}
@media (max-width: 479px) {
  .quote-band {
    background-image: url("../img/cta-plant-mobile-640.webp");
    background-image: image-set(
      url("../img/cta-plant-mobile-640.avif") type("image/avif"),
      url("../img/cta-plant-mobile-640.webp") type("image/webp"));
  }
}

/* ==========================================================================
   Right-to-left (Arabic)
   The stylesheet uses logical properties throughout, so layout mirrors on its
   own. Only the things CSS cannot infer are set here.
   ========================================================================== */
[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .btn, [dir="rtl"] .nav__link {
  font-family: var(--rk-font-ar);
}
[dir="rtl"] .breadcrumb li + li::before { content: "\\"; }
/* Latin runs — product names, CAS numbers, units, formulae — stay left-to-right
   inside Arabic sentences. */
[dir="rtl"] .ltr,
[dir="rtl"] code,
[dir="rtl"] .p-card__meta,
[dir="rtl"] .cat-item__meta,
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .field__hint,
[dir="rtl"] address { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] { display: inline-flex; }
/* the character counter is a Latin fraction, so it stays LTR but sits on the start side */
[dir="rtl"] .field__hint { text-align: start; }
[dir="rtl"] table { text-align: start; }
/* The logo mark and directional icons are not mirrored: a logo is not a glyph. */
[dir="rtl"] .site-header__logo img,
[dir="rtl"] .site-footer__logo img { transform: none; }
/* Numerals stay Western (ASCII) so CAS numbers and specifications read the same
   in both languages. */
[dir="rtl"] { font-variant-numeric: lining-nums; }

/* The hero scrim is a horizontal gradient anchored to the side the copy sits on,
   so it has to mirror with the text direction or the Arabic lead falls on the
   bright part of the photograph. */
[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(22, 41, 46, 0.94) 0%, rgba(22, 41, 46, 0.82) 38%, rgba(22, 41, 46, 0.25) 72%, rgba(22, 41, 46, 0.1) 100%);
}
[dir="rtl"] .hero__media img { object-position: 65% 50%; }
/* Arabic script needs more leading than the Latin setting. */
[dir="rtl"] .hero__title,
[dir="rtl"] .page-band__title,
[dir="rtl"] .section-head__title,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; letter-spacing: 0; }
[dir="rtl"] body { line-height: 1.85; }
