/*!
Theme Name: KMWD Shop SF6
Author: Keiran Martin
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kmwdshopsf6
*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
@font-face{font-family:'Tenby';font-style:normal;font-weight:400 800;font-display:swap;
  src:url('./fonts/TenbyFive.woff2') format('woff2'),
      url('./fonts/TenbyFive.woff')  format('woff')
}


:root {
  /* ----------------------------------------------------------
     COLOR â€” Brand
     The Rapidox mark is a deep, slightly warm red. The new site
     uses a single brand red with a darker shade for hover/press
     and a tinted background wash for hero panels.
     ---------------------------------------------------------- */
  --rapidox-red:        #8C0F0F;   /* primary brand red â€” buttons, links, accents (sampled deep) */
  --rapidox-red-deep:   #6E0A0A;   /* hover / pressed */
  --rapidox-red-dark:   #4A0606;   /* maximum-contrast accent, footer keylines */
  --rapidox-red-bright: #B61616;   /* the lighter Rapidox-logo red â€” reserved for the wordmark itself & icons */
  --rapidox-red-tint:   #F4E3E3;   /* ~8% red tint â€” panel backgrounds, alerts */
  --rapidox-red-wash:   #FAEFEF;   /* ~3% red tint â€” very subtle section wash */

  /* Secondary brand â€” graphite. Quiet partner to the red. Used
     for alternate CTAs, the utility row in the header, footers. */
  --graphite-900:       #14181C;
  --graphite-800:       #20262D;
  --graphite-700:       #2B333C;   /* secondary button face */
  --graphite-600:       #3E4751;   /* secondary button hover */

  /* ----------------------------------------------------------
     COLOR â€” Industrial neutrals
     Cool, slightly blue-shifted greys. Avoid pure black â€” the
     industrial-photography hero imagery has warm tones that
     read best against cool neutrals.
     ---------------------------------------------------------- */
  --ink-900:            #11161C;   /* primary text, footer background */
  --ink-800:            #1C242E;
  --ink-700:            #2E3942;   /* secondary heading */
  --ink-600:            #4A5563;   /* body text on light */
  --ink-500:            #6B7480;   /* muted text, metadata */
  --ink-400:            #98A0AB;   /* placeholder, disabled */
  --ink-300:            #C6CCD3;   /* hairline borders */
  --ink-200:            #E2E6EB;   /* card borders, dividers */
  --ink-100:            #F1F3F6;   /* page section alt */
  --ink-50:             #F8F9FB;   /* off-white surface */
  --paper:              #FFFFFF;   /* card surface */

  /* ----------------------------------------------------------
     COLOR â€” Semantic / status
     Used sparingly. The product itself is a measurement
     instrument, so status colours appear in spec tables and
     reading dashboards.
     ---------------------------------------------------------- */
  --signal-ok:          #2C8A4A;   /* in-spec reading, success */
  --signal-warn:        #C58A1A;   /* near-limit reading */
  --signal-alert:       #B61616;   /* shares brand red on purpose */
  --signal-info:        #1E5FAA;   /* informational link, calibration */

  /* ----------------------------------------------------------
     COLOR â€” Application coding
     The site has two top-level applications: Electrical and
     Medical. Each gets a quiet accent for tagging only.
     ---------------------------------------------------------- */
  --app-electrical:     #B85A1F;   /* warm copper â€” electrical / HV */
  --app-medical:        #1E5FAA;   /* clinical blue â€” medical / ophthalmic */

  /* ----------------------------------------------------------
     SEMANTIC TOKENS
     Use these â€” not raw palette â€” in component styles.
     ---------------------------------------------------------- */
  --fg-1:               var(--ink-900);
  --fg-2:               var(--ink-700);
  --fg-3:               var(--ink-500);
  --fg-muted:           var(--ink-400);
  --fg-on-red:          #FFFFFF;
  --fg-link:            var(--rapidox-red);
  --fg-link-hover:      var(--rapidox-red-deep);

  --bg-page:            var(--paper);
  --bg-surface:         var(--paper);
  --bg-sunken:          var(--ink-50);
  --bg-alt:             var(--ink-100);
  --bg-inverse:         var(--ink-900);
  --bg-brand:           var(--rapidox-red);
  --bg-brand-deep:      var(--rapidox-red-deep);
  --bg-brand-tint:      var(--rapidox-red-tint);

  --line-1:             var(--ink-200);
  --line-2:             var(--ink-300);
  --line-strong:        var(--ink-700);

  /* ----------------------------------------------------------
     TYPOGRAPHY â€” Families
     Space Grotesk : display & headings â€” confident, modern,
       technical without being cold.
     IBM Plex Sans : body â€” broad UI workhorse with strong
       lower-case rhythm; pairs well with technical content.
     IBM Plex Mono : measurement values, spec sheets, code.
     ---------------------------------------------------------- */
  --font-display:       'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:          'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:          'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-headline:  'Tenby', 'Eurostile', 'Poppins', system-ui, sans-serif;


  /* ----------------------------------------------------------
     TYPOGRAPHY â€” Scale (modular, 1.25 ratio at root)
     ---------------------------------------------------------- */
  --fs-12:              0.75rem;     /* 12px â€” micro labels, captions */
  --fs-14:              0.875rem;    /* 14px â€” small UI, metadata */
  --fs-16:              1rem;        /* 16px â€” body */
  --fs-18:              1.125rem;    /* 18px â€” lead paragraph */
  --fs-20:              1.25rem;     /* 20px â€” h5 / large body */
  --fs-24:              1.5rem;      /* 24px â€” h4 */
  --fs-30:              1.875rem;    /* 30px â€” h3 */
  --fs-36:              2.25rem;     /* 36px â€” h2 */
  --fs-48:              3rem;        /* 48px â€” h1 */
  --fs-64:              4rem;        /* 64px â€” hero display */

  /* Line-heights */
  --lh-tight:           1.1;
  --lh-snug:            1.25;
  --lh-normal:          1.5;
  --lh-relaxed:         1.65;

  /* Tracking */
  --ls-tight:           -0.02em;
  --ls-snug:            -0.01em;
  --ls-normal:          0;
  --ls-wide:            0.04em;
  --ls-wider:           0.08em;    /* eyebrow / overline */

  /* ----------------------------------------------------------
     SPACING â€” 4px base, with named t-shirt sizes
     ---------------------------------------------------------- */
  --s-0:                0;
  --s-1:                0.25rem;    /* 4px */
  --s-2:                0.5rem;     /* 8px */
  --s-3:                0.75rem;    /* 12px */
  --s-4:                1rem;       /* 16px */
  --s-5:                1.5rem;     /* 24px */
  --s-6:                2rem;       /* 32px */
  --s-7:                3rem;       /* 48px */
  --s-8:                4rem;       /* 64px */
  --s-9:                6rem;       /* 96px */
  --s-10:               8rem;       /* 128px */

  --gutter:             clamp(1rem, 3vw, 2rem);
  --container:          1240px;
  --container-narrow:   880px;

  /* ----------------------------------------------------------
     RADII
     Technical / industrial â€” restrained. Cards have soft but
     not pillowy corners; pills only for tags and badges.
     ---------------------------------------------------------- */
  --r-0:                0;
  --r-sm:               2px;
  --r-md:               4px;       /* default â€” buttons, inputs */
  --r-lg:               6px;       /* cards */
  --r-xl:               10px;      /* feature panels */
  --r-pill:             999px;     /* tags, badges */

  /* ----------------------------------------------------------
     SHADOWS â€” single light source, low-saturation
     ---------------------------------------------------------- */
  --shadow-1:           0 1px 0 rgba(17, 22, 28, 0.04), 0 1px 2px rgba(17, 22, 28, 0.06);
  --shadow-2:           0 2px 4px rgba(17, 22, 28, 0.04), 0 4px 12px rgba(17, 22, 28, 0.06);
  --shadow-3:           0 4px 8px rgba(17, 22, 28, 0.05), 0 12px 32px rgba(17, 22, 28, 0.10);
  --shadow-overlay:     0 24px 64px rgba(17, 22, 28, 0.20);
  --shadow-inset:       inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* ----------------------------------------------------------
     MOTION
     Industrial brand â†’ restrained motion. No bounces.
     ---------------------------------------------------------- */
  --ease-out:           cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:           120ms;
  --dur-base:           200ms;
  --dur-slow:           320ms;

  /* ----------------------------------------------------------
     LAYERING
     ---------------------------------------------------------- */
  --z-base:             0;
  --z-raised:           10;
  --z-sticky:           50;
  --z-overlay:          100;
  --z-modal:            200;
}

/* ============================================================
   SEMANTIC TYPE STYLES â€” apply directly to elements
   Use these instead of raw font-size to keep rhythm consistent.
   ============================================================ */

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}

/* Display â€” hero only, sparing */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--fs-64));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 600;
  color: var(--fg-1);
}

/* Headings */
h1, .t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--fs-48));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 var(--s-4);
}

h2, .t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 var(--s-3);
}

h3, .t-h3 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 var(--s-3);
}

h4, .t-h4 {
  font-family: var(--font-body);
  font-size: var(--fs-20);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 var(--s-2);
}

h5, .t-h5 {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 var(--s-2);
}

/* Eyebrow â€” small ALL-CAPS lockup, used above section titles */
.t-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--rapidox-red);
}

/* Body */
p, .t-body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

.t-lead {
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.t-small {
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}

.t-meta {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wide);
  color: var(--fg-3);
  text-transform: uppercase;
  font-weight: 500;
}

/* Monospace â€” for measurement values & spec sheets */
.t-mono, code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

.t-reading {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: 500;
  color: var(--fg-1);
}

/* Links */
a {
  color: var(--fg-link);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover {
  color: var(--fg-link-hover);
  text-decoration: underline;
}

/* Selection */
::selection {
  background: var(--rapidox-red);
  color: var(--fg-on-red);
}







/* =======================================================
Styles
=======================================================*/

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-page);
  color: var(--fg-2);
  min-height: 100vh;
}

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

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { filter: brightness(0.94); }

.btn--primary {
  background: var(--rapidox-red);
  color: var(--fg-on-red);
  border-color: var(--rapidox-red);
}
.btn--primary:hover { background: var(--rapidox-red-deep); border-color: var(--rapidox-red-deep); color: var(--fg-on-red); }

.btn--secondary {
  background: var(--paper);
  color: var(--graphite-900);
  border-color: var(--graphite-700);
}
.btn--secondary:hover { background: var(--graphite-700); color: var(--fg-on-red); border-color: var(--graphite-700); }

.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: transparent;
  padding: 0 var(--s-3);
}
.btn--ghost:hover { color: var(--rapidox-red); }

.btn--sm {
  height: 36px;
  padding: 0 var(--s-4);
  font-size: var(--fs-12);
}

.btn--lg {
  height: 52px;
  padding: 0 var(--s-6);
  font-size: var(--fs-14);
}

/* ============================================================
   HEADER â€” sticky single-bar mega-nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  height: 76px;
}

.site-header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.site-header__logo img { height: 68px; width: auto; }
.site-header__lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
  border-left: 1px solid var(--line-1);
  padding-left: var(--s-3);
  margin-left: var(--s-1);
}
.site-header__lockup small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}
.site-header__lockup span {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: var(--ls-snug);
  margin-top: 3px;
}

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1 1 auto;
}
.nav__item {
  /* No positioning context here: the mega panel is anchored to the sticky
     .site-header so it spans the full header width, not just this button. */
  position: static;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 28px var(--s-3);
  color: var(--fg-1);
  font-size: var(--fs-14);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 0;
  height: 2px;
  background: var(--rapidox-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover { color: var(--rapidox-red); }
.nav__link:hover::after,
.nav__item--open .nav__link::after { transform: scaleX(1); }
.nav__caret {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__item--open .nav__caret { transform: rotate(180deg); }

/* Right cluster */
.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 0;
  background: transparent;
  color: var(--fg-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--rapidox-red); }

/* Utility "more" dropdown */
.utility-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: var(--s-4);
  display: grid;
  gap: var(--s-3);
}
.utility-menu__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-14);
  color: var(--fg-2);
  text-decoration: none;
  padding: var(--s-2);
  border-radius: var(--r-md);
}
.utility-menu__row:hover { background: var(--bg-sunken); color: var(--fg-1); }
.utility-menu__row svg { color: var(--rapidox-red); flex: 0 0 auto; }
.utility-menu__hr { border: 0; border-top: 1px solid var(--line-1); margin: 0; }
.utility-menu__social {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2);
}

/* MEGA PANEL */
.megapanel-backdrop {
  position: fixed;
  inset: 76px 0 0 0;
  background: rgba(17, 22, 28, 0.40);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.megapanel-backdrop--open { opacity: 1; pointer-events: auto; }

.megapanel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  box-shadow: var(--shadow-3);
  padding: var(--s-7) 0 var(--s-7);
}
.megapanel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: var(--s-7);
}
.megapanel__col h6 {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--s-4);
}
.megapanel__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.megapanel__list a {
  color: var(--fg-1);
  text-decoration: none;
  font-size: var(--fs-16);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out);
}
.megapanel__list a:hover { color: var(--rapidox-red); }
.megapanel__list a small {
  font-size: var(--fs-12);
  font-weight: 400;
  color: var(--fg-3);
}
.megapanel__placeholder {
  color: #b8bdc4;
  text-decoration: none;
  font-size: var(--fs-16);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  cursor: default;
}
.megapanel__placeholder small { font-size: var(--fs-12); font-weight: 400; color: #c8ccd2; }
.megapanel__feature {
  background: var(--bg-sunken);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.megapanel__feature img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.megapanel__feature-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.megapanel__feature-body h5 { margin: 0; font-size: var(--fs-16); }
.megapanel__feature-body p { margin: 0; font-size: var(--fs-14); color: var(--fg-3); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--graphite-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--bleed {
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Readability scrim removed per client request â€” the homepage hero text now
     sits directly on the photo (a new, darker hero image will be supplied).
     Interior --banner heroes keep their own scrim via the override below. */
  background: none;
  z-index: -1;
}
.hero__inner {
  padding: var(--s-9) 0;
  max-width: 920px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  padding: 6px var(--s-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rapidox-red-bright);
  box-shadow: 0 0 0 4px rgba(182, 22, 22, 0.25);
}
.hero h1 {
  /* font-family: var(--font-display); */
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.hero p {
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 var(--s-6);
  max-width: 560px;
}
.hero__cta-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero__stats {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--s-7) + 10px);
  display: flex;
  gap: var(--s-6);
  padding: var(--s-5);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  z-index: 1;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero__stat-label {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-12);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
}

/* Bleed hero: text shadow removed per client request â€” no shadow behind the
   white hero text. Legibility now relies on the (forthcoming) hero image. */
.hero--bleed p { color: rgba(255, 255, 255, 0.92); }
.hero--bleed .hero__cta-row .btn--secondary {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Split hero variant */
.hero--split { background: var(--paper); color: var(--fg-1); }
.hero--split .hero__inner { max-width: none; padding: var(--s-9) 0; }
.hero--split .hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero--split h1 { color: var(--fg-1); }
.hero--split p { color: var(--fg-2); }
.hero--split .hero__eyebrow {
  color: var(--rapidox-red);
  background: var(--rapidox-red-tint);
  border-color: transparent;
}
.hero--split .hero__media-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--bg-sunken);
}
.hero--split .hero__media-card img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Minimal hero variant */
.hero--minimal {
  background: var(--paper);
  color: var(--fg-1);
  border-bottom: 1px solid var(--line-1);
}
.hero--minimal .hero__inner { padding: var(--s-9) 0 var(--s-7); max-width: 880px; }
.hero--minimal h1 { color: var(--fg-1); font-size: clamp(2.8rem, 6vw, 5rem); }
.hero--minimal p { color: var(--fg-2); }
.hero--minimal .hero__eyebrow {
  color: var(--rapidox-red);
  background: transparent;
  border-color: var(--rapidox-red-tint);
  padding-left: 0; padding-right: 0; border: 0;
}
.hero--minimal .hero__eyebrow::before { background: var(--rapidox-red); }

/* Banner hero variant â€” interior-page image header (shorter than the homepage
   bleed). Reuses .hero__media (absolute photo + gradient overlay); white text
   gets a soft shadow so it stays legible, and extra bottom padding leaves room
   for the filter card to float over the lower edge. */
.hero--banner { background: var(--graphite-900); }
.hero--banner .hero__inner {
  max-width: 820px;
  padding: 64px 0 56px;
}
.hero--banner h1 { color: #fff; }
.hero--banner p { color: rgba(255, 255, 255, 0.92); }
.hero--banner .hero__media img { opacity: 0.45; }
.hero--banner .hero__media::after {
  background: linear-gradient(100deg, rgba(12,16,20,0.97) 22%, rgba(12,16,20,0.80) 55%, rgba(12,16,20,0.50) 100%);
}
.hero--banner .hero__eyebrow,
.hero--banner h1,
.hero--banner p { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75); }

/* ============================================================
   GAS FILTER â€” quick-find dropdown
   ============================================================ */
.gasfilter {
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  margin-top: calc(var(--s-7) * -1);
  position: relative;
  z-index: 2;
}
.gasfilter__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gasfilter__label strong {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  color: var(--fg-1);
  font-weight: 600;
}
.gasfilter__label span {
  font-size: var(--fs-12);
  color: var(--fg-3);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: 500;
}
.gasfilter__select-wrap {
  position: relative;
}
.gasfilter__select {
  appearance: none;
  width: 100%;
  height: 48px;
  background: var(--bg-sunken);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 0 var(--s-6) 0 var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--fg-1);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.gasfilter__select:focus {
  outline: 0;
  border-color: var(--rapidox-red);
  box-shadow: 0 0 0 3px var(--rapidox-red-tint);
}
.gasfilter__caret {
  position: absolute;
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fg-3);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--s-9) 0; }
.section--sunken { background: var(--bg-sunken); }
.section--inverse { background: var(--graphite-900); color: rgba(255,255,255,0.86); }
.section--inverse h2, .section--inverse h3 { color: #fff; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}
.section__head-text { max-width: 640px; }
.section__head-text p { margin: var(--s-3) 0 0; color: var(--fg-3); font-size: var(--fs-18); }
.section__head-text .t-eyebrow { display: block; margin-bottom: var(--s-3); }
.t-eyebrow {
    font-family: var(--font-body) !important;
    font-size: var(--fs-12) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: var(--ls-wider) !important;
    text-transform: uppercase !important;
    color: var(--rapidox-red) !important;
}
/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.product-card__media {
  background: var(--bg-sunken);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  position: relative;
}
.product-card__media svg.product-illus {
  width: 100%;
  height: 100%;
  max-width: 220px;
  color: var(--graphite-700);
}
.product-card__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--rapidox-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 4px var(--s-2);
  border-radius: var(--r-sm);
}
.product-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.product-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--s-1);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-sunken);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.tag--electrical { color: var(--app-electrical); background: rgba(184, 90, 31, 0.10); }
.tag--medical { color: var(--app-medical); background: rgba(30, 95, 170, 0.10); }
.product-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--fg-1);
  line-height: var(--lh-snug);
  margin: 0;
}
.product-card__meta {
  font-size: var(--fs-14);
  color: var(--fg-3);
  margin: 0;
}
.product-card__cta {
  margin-top: auto;
  padding-top: var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-1);
}
.product-card__cta span {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--rapidox-red);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.product-card__cta svg {
  color: var(--rapidox-red);
  transition: transform var(--dur-fast) var(--ease-out);
}
.product-card:hover .product-card__cta svg { transform: translateX(4px); }

/* ============================================================
   APPLICATION CHOOSER
   ============================================================ */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 16/10;
  background: var(--graphite-900);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-6);
  isolation: isolate;
  border: 1px solid var(--line-1);
}
.app-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.app-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.app-card:hover .app-card__img img { transform: scale(1.03); }
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 22, 28, 0.10) 0%, rgba(17, 22, 28, 0.85) 100%);
  z-index: -1;
}
.app-card__chip {
  align-self: flex-start;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 6px var(--s-3);
  border-radius: var(--r-pill);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.app-card__chip--electrical::before, .app-card__chip--medical::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.app-card__chip--electrical::before { background: var(--app-electrical); box-shadow: 0 0 0 3px rgba(184,90,31,0.30); }
.app-card__chip--medical::before { background: #69A8F0; box-shadow: 0 0 0 3px rgba(105,168,240,0.30); }
.app-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.02em;
}
.app-card p {
  font-size: var(--fs-16);
  color: rgba(255,255,255,0.82);
  margin: 0 0 var(--s-4);
  max-width: 460px;
}
.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.app-card__link svg { transition: transform var(--dur-fast) var(--ease-out); }
.app-card:hover .app-card__link svg { transform: translateX(4px); }

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.clients {
  padding: var(--s-7) 0;
  background: var(--paper);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.clients__label {
  text-align: center;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s-5);
}
.clients__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-7);
  align-items: center;
  justify-items: center;
}
@media (max-width: 760px) { .clients__row { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.client-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-3);
  font-size: var(--fs-18);
  text-align: center;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.client-logo:hover { opacity: 1; color: var(--fg-1); }
.client-logo svg { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ============================================================
   RESOURCE CARDS
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resource-grid { grid-template-columns: 1fr; } }

.resource-card {
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.resource-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.resource-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--rapidox-red-tint);
  color: var(--rapidox-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  position: relative;
}
.resource-card__icon::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: linear-gradient(225deg, transparent 50%, var(--rapidox-red-wash) 50%);
}
.resource-card__body { flex: 1; min-width: 0; }
.resource-card__meta {
  display: flex;
  gap: var(--s-2);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.resource-card__title {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 var(--s-1);
  line-height: var(--lh-snug);
}
.resource-card__title { overflow: hidden; text-overflow: ellipsis; }
.resource-card__action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  color: var(--rapidox-red);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* Resource Hub â€” dual-filter bar (Product + Type) reusing the gasfilter look */
.resource-filter {
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: var(--s-5);
  align-items: center;
  margin-top: calc(var(--s-6) * -1);
  position: relative;
  z-index: 2;
}
.resource-filter__count {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--fg-3);
  white-space: nowrap;
  text-align: right;
}
.resource-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-9) var(--s-5);
  text-align: center;
  color: var(--fg-3);
  background: var(--bg-sunken);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.resource-empty p { margin: 0; font-size: var(--fs-16); max-width: 420px; }
@media (max-width: 760px) {
  .resource-filter {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    margin-top: var(--s-5);
  }
  .resource-filter__count { text-align: left; }
}

/* ============================================================
   SUPPORT â€” hub/troubleshooting cards, process steps, FAQ accordion
   ============================================================ */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .support-cards { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .support-cards--6 { grid-template-columns: repeat(3, 1fr); } }

.support-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.support-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.support-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--rapidox-red-tint);
  color: var(--rapidox-red);
  display: flex; align-items: center; justify-content: center;
}
.support-card h3 { font-size: var(--fs-20); margin: 0; color: var(--fg-1); }
.support-card p { margin: 0; color: var(--fg-3); font-size: var(--fs-16); flex: 1; }
.support-card__action {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--rapidox-red); font-weight: 600; font-size: var(--fs-12);
  text-transform: uppercase; letter-spacing: var(--ls-wide);
}
.support-card__action a{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rapidox-red);
    font-weight: 600;
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    margin-top: 10px;
}
.support-card__icon{
    margin-bottom: 20px;
}
.support-card h3{
    margin: 10px 0;
}
.support-cards-custom > div{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}
@media(max-width: 991px){
   .support-cards-custom > div{
        grid-template-columns: repeat(1, 1fr);
    } 
}
.accordion-header button{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-18);
    font-weight: 600;
    color: var(--fg-1);
    text-align: left;
}
.accordion-item{
    margin: 10px 0;
    border: 1px solid var(--line-1) !important;
    border-radius: var(--r-md) !important;
    background: var(--paper) !important;
}
.accordion-button:not(.collapsed) {
    color: #000;
    background-color: #fff;
    box-shadow: none !important;
}
.accordion-header{
    border: none !important;
}
/* Numbered process steps */
.steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
    align-items: stretch !important;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
}
.step__num {
  font-family: var(--font-display) !important;
  font-size: var(--fs-30) !important;
  font-weight: 600 !important;
  color: var(--rapidox-red) !important;
  line-height: 1 !important;
  margin-bottom: var(--s-3)!important;
}
.step h4 { margin: 0 0 var(--s-2); font-size: var(--fs-18); color: var(--fg-1); }
.step p { margin: 0; color: var(--fg-3); font-size: var(--fs-16); line-height: var(--lh-relaxed); }

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq__group-title {
  margin: var(--s-6) 0 var(--s-1);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--rapidox-red);
  font-weight: 600;
}
.faq__group-title:first-child { margin-top: 0; }
.faq__item {
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-18); font-weight: 600; color: var(--fg-1);
  text-align: left;
}
.faq__q svg { flex: 0 0 auto; color: var(--fg-3); transition: transform var(--dur-fast) var(--ease-out); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--fg-2);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
}

/* Servicing â€” "It's as easy as 1,2,3" steps beside the repair form */
.servicing-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: start;
}
.servicing-intro .steps { grid-template-columns: 1fr; }   /* stack steps in the narrow column */
.servicing-intro .enquiry { min-width: 0; }
.enquiry.enquiry--form-only { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .servicing-intro { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ============================================================
   ENQUIRY FORM
   ============================================================ */
.enquiry {
  background: var(--graphite-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-8);
}
@media (max-width: 860px) { .enquiry { grid-template-columns: 1fr; padding: var(--s-6); gap: var(--s-6); } }
.enquiry__intro h2 { color: #fff; font-size: var(--fs-36); margin: 0 0 var(--s-3); }
.enquiry__intro p { color: rgba(255,255,255,0.76); margin: 0 0 var(--s-5); }
.enquiry__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.enquiry__contact-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: rgba(255,255,255,0.86);
  font-size: var(--fs-14);
}
.enquiry__contact-row svg { color: var(--rapidox-red-bright); flex: 0 0 auto; }
.enquiry__contact-row strong { display: block; font-size: 11px; letter-spacing: var(--ls-wider); text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; margin-bottom: 2px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  padding: 12px var(--s-3);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field select option {
    color: #000 !important;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.40); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--rapidox-red-bright);
  background: rgba(255,255,255,0.10);
}
.radio-row { display: flex; gap: var(--s-3); flex-wrap: nowrap; padding-top: 6px; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: rgba(255,255,255,0.86);
  font-size: var(--fs-14);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
/* These radios sit inside .field, so .field input forces them to 100% width
   with field padding/border â€” undo that so the dot is its natural size,
   sits flush with the column's left edge, and hugs its label text. */
.radio-row input[type="radio"] {
  accent-color: var(--rapidox-red-bright);
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.enquiry__submit-row {
  margin-top: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.enquiry__legal { font-size: var(--fs-12); color: rgba(255,255,255,0.55); }
.enquiry__legal a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--graphite-900);
  color: rgba(255,255,255,0.78);
  padding: var(--s-9) 0 var(--s-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand img { width: 140px; background: #fff; padding: 8px 14px; border-radius: 4px; }
.footer__brand p { font-size: var(--fs-14); color: rgba(255,255,255,0.55); margin-top: var(--s-4); max-width: 280px; }
.footer__brand .footer__socials { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.footer__socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.82);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.footer__socials a:hover { background: var(--rapidox-red); color: #fff; }

.footer__col h6 {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--s-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer__col a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: var(--fs-14);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.50);
}
.footer__bottom-links { display: flex; gap: var(--s-4); }
.footer__bottom-links a { color: rgba(255,255,255,0.62); font-size: var(--fs-12); }

/* ============================================================
   FONT PAIR VARIANTS (driven by data-fontpair on <html>)
   ============================================================ */
html[data-fontpair="inter"] {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
html[data-fontpair="plex"] {
  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}
html[data-fontpair="serif-display"] {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}


/* ============================================================
   BLOG ROW â€” embedded latest posts on the homepage
   ============================================================ */
.blog-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .blog-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-row { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.blog-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); transform: translateY(-2px); }
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    var(--graphite-900);
}
.blog-card--medical .blog-card__media {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 14px),
    #5a4a5e;
}
.blog-card__chip {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: rgba(255,255,255,0.92);
  color: var(--fg-1);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.blog-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.blog-card__meta {
  display: flex;
  gap: var(--s-2);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-3);
}
.blog-card__title {
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--fg-1);
  margin: 0;
  line-height: var(--lh-snug);
  text-wrap: pretty;
}
.blog-card__excerpt {
  font-size: var(--fs-14);
  color: var(--fg-2);
  margin: 0;
  line-height: var(--lh-normal);
  flex: 1;
}
.blog-card__action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  color: var(--rapidox-red);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-top: var(--s-2);
}

/* ============================================================
   ABOUT â€” Cambridge Sensotec long-form paragraph block
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: var(--s-5); }
}
.about__head h2 {
  text-wrap: balance;
  margin: var(--s-2) 0 0;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 64ch;
}
.about__body p {
  font-size: var(--fs-18);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.about__body p:first-child::first-line {
  color: var(--fg-1);
  font-weight: 500;
}

/* ============================================================
   MOBILE NAVIGATION â€” hamburger + slide-down drawer
   ============================================================ */
.nav-toggle {
  display: none;            /* shown only below the nav breakpoint */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--fg-1);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: var(--bg-sunken); }

.mobile-nav {
  position: fixed;
  top: 76px;                /* sit just under the sticky header bar */
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-overlay);
  background: var(--paper);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-4) var(--gutter) var(--s-8);
  display: flex;
  flex-direction: column;
}
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-1);
  text-align: left;
  cursor: pointer;
}
.mobile-nav__row svg { color: var(--fg-3); flex: 0 0 auto; transition: transform var(--dur-fast) var(--ease-out); }
.mobile-nav__row.is-open svg { transform: rotate(180deg); }
.mobile-nav__sub { display: grid; gap: var(--s-4); padding: var(--s-3) 0 var(--s-4); }
.mobile-nav__subcol h6 {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--s-2);
}
.mobile-nav__subcol a {
  display: block;
  padding: 8px 0;
  color: var(--fg-2);
  font-size: var(--fs-16);
  text-decoration: none;
}
.mobile-nav__subcol a:hover { color: var(--rapidox-red); }
.mobile-nav__placeholder {
  display: block;
  padding: 8px 0;
  color: #b8bdc4;
  font-size: var(--fs-16);
  text-decoration: none;
  cursor: default;
}
.mobile-nav__footer { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.mobile-nav__footer .btn { width: 100%; justify-content: center; }
.mobile-nav__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--fg-2);
  text-decoration: none;
  font-size: var(--fs-14);
}
.mobile-nav__contact svg { color: var(--rapidox-red); }

/* Collapse the desktop nav into the hamburger on tablet/phone widths */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__right { margin-left: auto; }
  /* "Where to buy" and the utility "more" menu move into the drawer */
  .site-header__right .btn,
  .icon-btn--util { display: none; }
}

/* Phone: the brand lockup text + wide gap pushed the hamburger off the right
   edge (causing horizontal scroll). Drop the lockup and tighten the gap so the
   bar holds just the logo and the menu toggle. */
@media (max-width: 600px) {
  .site-header__inner { gap: var(--s-3); }
  .site-header__lockup { display: none; }
}

/* ============================================================
   RESPONSIVE â€” hero, gas filter & spacing on tablet / phone
   ============================================================ */
@media (max-width: 760px) {
  /* Bleed hero: stack the layout and drop the stats panel in-flow BELOW the
     copy so it no longer overlaps the CTA buttons. */
  .hero--bleed { display: block; min-height: 0; }
  .hero--bleed .hero__inner { padding: var(--s-7) 0 var(--s-6); }
  .hero__stats {
    position: static;
    right: auto; bottom: auto;
    margin: 0 var(--gutter) var(--s-7);
    padding: var(--s-4);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
  }
  .hero__stat-num { font-size: var(--fs-24); }

  /* Stack hero CTAs full-width instead of letting them wrap awkwardly */
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn { width: 100%; }

  /* Split hero: image drops below the copy */
  .hero--split .hero__grid { grid-template-columns: 1fr; }

  /* Quick-find dropdown: stack its three columns, full-width button, and
     remove the desktop negative overlap so it clears the hero stats. */
  .gasfilter {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    margin-top: var(--s-5);
  }
  .gasfilter .btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  /* Tighten the generous desktop vertical rhythm on small screens */
  .section { padding: var(--s-7) 0; }
  .enquiry { padding: var(--s-6); }
  .enquiry__intro h2 { font-size: var(--fs-30); }
  .app-card h3 { font-size: var(--fs-30); }

  /* "Application area" radios: 2 per row (2Ã—2) instead of one cramped line.
     Allow the longer labels to wrap within their cell. */
  .radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
  .radio-row label { white-space: normal; align-items: flex-start; }

  /* Client logo strip: 3 nowrap columns overflow on phones â€” go 2-up,
     smaller, and let long names wrap. */
  .clients__row { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .client-logo { font-size: var(--fs-14); white-space: normal; }
}

.products-grid-new ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}


.products-grid-new ul.products::before{
    display: none !important;
}

@media(max-width: 980px){
    .products-grid-new ul.products {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media(max-width: 620px){
    .products-grid-new ul.products {
        grid-template-columns: 1fr !important;
    }
}

.photo-left {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-7);
    align-items: start;
    margin-bottom: var(--s-8);
}
.photo-left img,
.photo-right img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--r-lg);
    background: var(--bg-sunken);
}
.photo-left p,
.photo-right p {
    color: var(--fg-2);
    font-size: var(--fs-18);
    line-height: var(--lh-relaxed);
    margin-top: var(--s-4);
}
.photo-right {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-7);
    align-items: start;
    margin-bottom: var(--s-8);
}

@media(max-width: 991px) {
    .photo-left {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    .photo-right {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
}
#enquiryModal input, #enquiryModal select{
    width: 100%;
    font-size: 15px;
    border: 1.5px solid #C9CDD2;
    padding: 11px 13px;
    background: #fff;
    color: #000 !important;
}
#enquiryModal input::placeholder{
    color: #000;
}
#enquiryModal .field {
    margin-bottom: 14px;
}
#enquiryModal .reassure{
    font-size: 12px;
}
#enquiryModal .btn{
    margin-bottom: 10px;
    width: 100%;
    text-align: center !important;
    justify-content: center;
}
main:not(:has(> section)) {
    width: 100%;
    max-width: var(--container);
    margin: 40px auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}