/* ============================================================
   GSD Chem, Inc. - template stylesheet (gsdchem 1.9)

   One uncompressed file, hand-edited. No SCSS, no build step.
   - Every value in a rule is a var(--token); literals live in :root.
   - Media queries redefine tokens, they do not override properties
     (structural display/position switches are the only exception).
   - Client one-off overrides go in css/local.css (never shipped).
   Values come from the original Gantry custom.scss, the page
   screenshots, and the compiled Gantry/Hydrogen CSS.

   Contents
     1. Fonts            7. Components (Module Class opt-ins)
     2. Tokens           8. Footer
     3. Base             9. System pages
     4. Header          10. Responsive
     5. Hero            11. Print
     6. Layout          12. Motion
   ============================================================ */


/* ============================================================
   1. FONTS  (self-hosted Roboto + Roboto Condensed, Apache 2.0)
   @font-face descriptors cannot read custom properties, so the
   weight ranges stay literal. Roboto Light is declared for 200-300
   because the original used weight 200, which resolved to Light.
   ============================================================ */
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Light.ttf") format("truetype"); font-weight: 200 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Italic.ttf") format("truetype"); font-weight: 200 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-BoldItalic.ttf") format("truetype"); font-weight: 600 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Light.ttf") format("truetype"); font-weight: 100 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/RobotoCondensed-Bold.ttf") format("truetype"); font-weight: 600 900; font-style: normal; font-display: swap; }


/* ============================================================
   2. TOKENS
   ============================================================ */
:root {
  /* colour - brand palette from custom.scss (logo blue sampled from the logo PNG: #214292) */
  --color-brand: #214292;
  --color-accent: #923820;
  --color-bg-dark: #04041C;
  --color-bg-mid: #616A8D;
  --color-bg-light: #B9C4EE;
  --color-bg-pale: #E1EBF6;
  --color-bg-faint: #D9D9D9;
  --color-bg-page: #ffffff;
  --color-button: #0C0A49;
  --color-button-alt: #439a86;
  --color-text: #666666;
  --color-text-menu: #393939;
  --color-text-grey: #888888;
  --color-heading: #000000;
  --color-strong: #4d4d4d;
  --color-on-dark: #ffffff;
  --color-overlay-hero: rgb(0 0 0 / 0.6);
  --color-banner-box: rgb(4 4 28 / 0.6);
  --color-scrim: rgb(0 0 0 / 0.5);
  --color-divider-dark: rgb(255 255 255 / 0.15);
  --color-field-border: #ced4da;

  /* fonts */
  --ff-body: "Roboto", Helvetica, Arial, sans-serif;
  --ff-head: "Roboto Condensed", "Roboto", Helvetica, Arial, sans-serif;

  /* weights */
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* type sizes - named by role. Phone values are redefined in section 10 */
  --fs-root: 100%;
  --fs-body: 1.2rem;
  --lh-body: 1.6rem;
  --fs-small: 1rem;
  --lh-small: 1rem;
  --fs-button: 1rem;
  --fs-menu: 1.6rem;
  --lh-menu: 1.6rem;
  --fs-tagline: 1.4rem;
  --fs-h1: 2.25rem;
  --fs-h2: 2.5rem;
  --fs-h3: 2rem;
  --fs-h4: 1.5rem;
  --fs-title-block: 2rem;
  --lh-title-block: 2.25rem;
  --lh-title-spot: 2rem;
  --fs-hero-title: 2.75rem;
  --fs-hero-text: 1.6rem;
  --lh-hero-text: 1.8rem;
  --fs-hero-banner: 3.5rem;
  --fs-hero-banner-sm: 3rem;
  --fs-intro-text: 1.2rem;
  --lh-intro-text: 1.8rem;
  --fs-feat-title: 1.4rem;
  --fs-feat-text: 1rem;
  --fs-list-title: 1.6rem;
  --fs-news-title: 2.5rem;
  --fs-news-sub: 1.15rem;
  --fs-news-feat-title: 2.2rem;
  --fs-news-card-title: 1.4rem;
  --fs-news-meta: 0.85rem;
  --fs-news-text: 1.05rem;
  --fs-news-card-text: 1rem;
  --fs-news-more: 0.95rem;
  --lh-news-title: 1.15;
  --lh-news-text: 1.6;
  --lh-news-tight: 1.2;
  --ls-news-meta: 0.06em;
  --fs-info-title: 2.6rem;
  --fs-info-text: 1.4rem;
  --fs-about-title: 2.25rem;
  --lh-flat: 1;
  --ls-normal: normal;

  /* radii */
  --br-cta: 8px;
  --br-card: 8px;
  --br-button: 0.25rem;
  --br-none: 0;

  /* spacing scale + role spacing */
  --sp-0: 0;
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-nav-item: 10px;
  --sp-feat-row: 0.75rem;
  --sp-feat-text: 0.75rem;
  --sp-item-gap: 3.3rem;
  --sp-gutter: 1.6rem;
  --sp-btn-y: 0.375rem;
  --sp-btn-x: 0.75rem;
  --sp-border: 1px;
  --sp-drawer-link: 0.938rem;
  --sp-burger: 0.7rem;
  --sp-clip: -1px;
  --sp-scroll: 9rem;

  /* layout */
  --w-container: 75rem;
  --w-product: 60rem;
  --w-page-narrow: 90vw;
  --w-full: 100%;
  --inset-wide: 15vw;
  --inset-narrow: 20vw;
  --inset-article: 15vw;
  --gutter-content: 2.3rem;
  --hero-min-h: 36rem;
  --hero-banner-pad-top: 20rem;
  --drawer-w: 17rem;
  --z-header: 100;
  --z-drawer: 200;
  --z-scrim: 150;
  --transition: 0.25s ease;
  --opacity-full: 1;

  /* header: full and compact (scrolled) states */
  --logo-max-full: clamp(12.5rem, 24vw, 20rem);
  --logo-max-compact: 11.9rem;
  --cta-fs-full: 0.95rem;
  --cta-fs-compact: 0.85rem;
  --cta-pad-y-full: 0.6rem;
  --cta-pad-y-compact: 0.4rem;
  --cta-pad-x-full: 1.3rem;
  --cta-pad-x-compact: 1rem;
  --header-max: 87.5rem;
  --header-pad-x: 1.5rem;
  --header-pad-y-full: 0.7rem;
  --header-pad-y-compact: 0.35rem;
  --fs-header-menu: clamp(0.85rem, 1.2vw, 1.05rem);
  --fs-topbar: 0.95rem;
  --fs-header-tagline: clamp(0.8rem, 1.1vw, 1rem);
  --sp-navbar-x: clamp(0.7rem, 1.8vw, 1.6rem);
  --sp-navbar-y-full: 0.85rem;
  --sp-navbar-y-compact: 0.55rem;
  --color-tagline: #6b6b6b;
  --color-tagline-rule: #cfd4e6;
  --color-navbar-hover: rgb(255 255 255 / 0.12);
  --tagline-max: 22rem;
  --lh-tagline: 1.3;
  --hero-box-offset: 1.5rem;
  --sp-hero-box-y: 1rem;
  --sp-hero-box-x: 1.5rem;
  --feat-gap: 1rem;
  --sp-mfp-intro: 0.125rem;
  --sp-card-pad: 0.625rem;
  --color-card-border: rgb(0 0 0 / 0.15);
  --shadow-card: 0 0 13px 0 rgb(0 0 0 / 0.1);
  --sp-mfp-arrow: 0.35em;
  --mfp-arrow-nudge: 0.2em;
  --mfp-arrow: "\2192";

  /* news page (Page Class news-blog): featured card + card grid */
  --color-on-dark-soft: #e6e9f5;
  --shadow-card-hover: 0 6px 20px 0 rgb(0 0 0 / 0.18);
  --news-cols: 3;
  --news-feat-cols: 1fr 1fr;
  --news-thumb-ratio: 16 / 10;
  --news-img-max-h: 400px;
  --news-lift: -2px;
  --news-placeholder-w: 60%;
  --opacity-news-placeholder: 0.35;
  --sp-news-page-top: 2.5rem;
  --sp-news-title-gap: 0.4rem;
  --sp-news-feat-body: 2.5rem;
  --sp-news-thumb-pad: 0.8rem;
  --sp-news-card-body: 1.3rem;
  --sp-news-card-title-top: 0.4rem;
  --sp-news-text-gap: 0.6rem;
  --sp-news-btn-y: 0.45rem;
  --sp-news-btn-x: 0.9rem;
  --sp-news-pager-gap: 0.4rem;
  --sp-news-pager-y: 0.5rem;
  --sp-news-pager-x: 0.7rem;
  --w-news-pager-btn: 2.4rem;
  --news-text-lines: 4;
  /* news article page (Page Class news-blog): full-article image floated left, text wraps around it */
  --news-article-float: left;
  --news-article-img-w: fit-content;
  --news-article-img-max: 28rem;
  --news-article-img-max-h: 600px;
  --sp-news-article-img-gap: var(--sp-3);
}


/* ============================================================
   3. BASE
   Joomla's bundled Bootstrap is loaded before this file (forms,
   pagination, alerts); the rules below override it.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: var(--sp-0); padding: var(--sp-0); }

html { font-size: var(--fs-root); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sp-scroll); }

body {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  margin: var(--sp-1) var(--sp-0) var(--sp-3);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-flat); margin: var(--fs-h2) var(--sp-0) var(--sp-0); }
h3 { font-size: var(--fs-h3); margin: var(--fs-h3) var(--sp-0) var(--sp-0); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-flat); margin: var(--fs-h4) var(--sp-0) var(--sp-0); }

strong { font-weight: var(--fw-bold); color: var(--color-strong); }
p { margin: var(--sp-3) var(--sp-0); }
ul { margin: var(--sp-3) var(--sp-0); margin-left: var(--sp-3); padding: var(--sp-0); }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; border: var(--sp-0); }
a { color: inherit; font-weight: var(--fw-semibold); text-decoration: underline; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: var(--sp-clip); padding: var(--sp-0);
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: var(--sp-0);
}
.skip-link {
  position: absolute; left: var(--sp-2); top: var(--sp-1); z-index: var(--z-drawer);
  background: var(--color-bg-page); color: var(--color-heading); padding: var(--sp-1) var(--sp-2); transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* buttons: footer / contact (teal) and header call to action (navy) */
.t-btn {
  display: inline-block; font-family: var(--ff-body); font-size: var(--fs-button); font-weight: var(--fw-regular);
  line-height: var(--lh-body); text-decoration: none; cursor: pointer;
  padding: var(--sp-btn-y) var(--sp-btn-x); border: var(--sp-0); border-radius: var(--br-button);
  background: var(--color-button-alt); color: var(--color-on-dark);
}
.t-btn--cta {
  font-size: var(--cta-fs); padding: var(--cta-pad-y) var(--cta-pad-x); white-space: nowrap;
  border-radius: var(--br-cta); background: var(--color-button);
  transition: padding var(--transition), font-size var(--transition), background var(--transition);
}
.t-btn--cta:hover { background: var(--color-accent); }


/* ============================================================
   4. HEADER  (sticky; compact state via .is-scrolled)
   Logo, tagline and button come from template style parameters.
   Menus come from the `menu` and `topbar` positions; on narrow
   screens both are shown in the slide-in drawer.
   ============================================================ */
.t-header {
  position: sticky; top: var(--sp-0); z-index: var(--z-header); background: var(--color-bg-page);
  --logo-max: var(--logo-max-full);
  --cta-fs: var(--cta-fs-full);
  --cta-pad-y: var(--cta-pad-y-full);
  --cta-pad-x: var(--cta-pad-x-full);
  --header-pad-y: var(--header-pad-y-full);
  --sp-navbar-y: var(--sp-navbar-y-full);
}
.t-header.is-scrolled {
  --logo-max: var(--logo-max-compact);
  --cta-fs: var(--cta-fs-compact);
  --cta-pad-y: var(--cta-pad-y-compact);
  --cta-pad-x: var(--cta-pad-x-compact);
  --header-pad-y: var(--header-pad-y-compact);
  --sp-navbar-y: var(--sp-navbar-y-compact);
}
/* Two-tier header: row 1 = brand (logo + tagline) | top menu | button; row 2 = full-width navy main menu bar */
.t-header__inner {
  position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: var(--sp-3);
  max-width: var(--header-max); margin-inline: auto; padding: var(--header-pad-y) var(--header-pad-x);
}

.t-brand { grid-column: 1 / 2; grid-row: 1 / 2; display: flex; align-items: center; gap: var(--sp-3); min-width: var(--sp-0); }
.t-logo { display: block; flex: none; width: var(--logo-max); transition: width var(--transition); }
.t-logo img { display: block; width: var(--w-full); height: auto; }

.t-tagline {
  margin: var(--sp-0); color: var(--color-tagline); font-size: var(--fs-header-tagline); line-height: var(--lh-tagline);
  font-weight: var(--fw-semibold); font-style: italic; max-width: var(--tagline-max);
  border-left: 2px solid var(--color-tagline-rule); padding-left: var(--sp-3);
}
.is-scrolled .t-tagline { display: none; }

.t-topbar { grid-column: 2 / 3; grid-row: 1 / 2; }
.t-cta { grid-column: 3 / 4; grid-row: 1 / 2; display: flex; align-items: center; }

.t-menu ul, .t-topbar ul { display: flex; list-style: none; margin: var(--sp-0); padding: var(--sp-0); }
.t-topbar ul { gap: var(--sp-3); }
.t-topbar a { color: var(--color-text-menu); font-size: var(--fs-topbar); font-weight: var(--fw-semibold); text-decoration: none; }
.t-topbar a:hover { color: var(--color-accent); }
.t-topbar a[aria-current="page"] { text-decoration: underline; }

/* main menu: full-bleed navy bar (the shadow/clip pair extends the colour past the centred header width) */
.t-menu {
  grid-column: 1 / -1; grid-row: 2 / 3; margin: var(--sp-1) calc(var(--header-pad-x) * -1) calc(var(--header-pad-y) * -1);
  background: var(--color-brand); box-shadow: 0 0 0 100vmax var(--color-brand); clip-path: inset(0 -100vmax);
}
.t-menu ul { justify-content: center; flex-wrap: nowrap; }
.t-menu a {
  display: block; color: var(--color-on-dark); font-size: var(--fs-header-menu); font-weight: var(--fw-semibold); text-decoration: none;
  white-space: nowrap; padding: var(--sp-navbar-y) var(--sp-navbar-x); border-bottom: 3px solid transparent;
}
.t-menu a:hover { background: var(--color-navbar-hover); border-bottom-color: var(--color-on-dark); }
.t-menu a[aria-current="page"] { border-bottom-color: var(--color-on-dark); }
.t-drawer { display: contents; }

.t-burger {
  display: none; position: absolute; top: var(--sp-burger); left: var(--sp-burger); z-index: var(--z-header);
  background: none; border: var(--sp-0); color: var(--color-heading); cursor: pointer; line-height: var(--lh-flat);
}
.t-burger svg { display: block; width: var(--fs-menu); height: var(--fs-menu); }
.t-scrim { display: none; }
html.drawer-open { overflow: hidden; }


/* ============================================================
   5. HERO  (Hero Display module output)
   .hero, .hero__box, .hero__title, .hero__text. The module sets
   --hero-img, --hero-box-w and --hero-box-bg as inline custom
   properties; the fallbacks below are the original site's look.
   ============================================================ */
.hero {
  background-color: var(--color-bg-mid);
  background-image: var(--hero-img);
  background-size: cover;
  background-repeat: no-repeat;
}
.hero--home { min-height: var(--hero-min-h); display: flex; align-items: flex-end; }
.hero__box {
  background: var(--hero-box-bg, var(--color-overlay-hero)); width: var(--hero-box-w, fit-content);
  padding: var(--sp-hero-box-y) var(--sp-hero-box-x);
  margin: var(--sp-0) var(--sp-0) var(--hero-box-offset) var(--hero-box-offset);
  max-width: calc(var(--w-full) - var(--hero-box-offset) * 2);
}
.hero__title { color: var(--color-on-dark); font-size: var(--fs-hero-title); line-height: var(--lh-flat); margin: var(--sp-0); font-family: var(--ff-head); }
.hero__text {
  color: var(--color-on-dark); font-size: var(--fs-hero-text); line-height: var(--lh-hero-text);
  margin: var(--sp-1) var(--sp-0) var(--sp-0); font-family: var(--ff-head); font-weight: var(--fw-light);
}

/* title-only, full-width banner (solution pages, About page).
   The translucency is on the box background only; the text is always
   full-opacity white (contrast fix agreed for 1.0). */
.hero--banner { padding: var(--hero-banner-pad-top) var(--sp-0) var(--sp-4); background-position: center left; }
.hero--banner .hero__title {
  display: block; color: var(--color-on-dark); background: var(--hero-box-bg, var(--color-banner-box)); opacity: var(--opacity-full);
  font-size: var(--hero-banner-size, var(--fs-hero-banner)); font-weight: var(--fw-medium); line-height: var(--lh-flat);
  padding: var(--sp-4) var(--sp-6); margin: var(--sp-1) var(--sp-0) var(--sp-3);
}
.hero--banner-sm { --hero-banner-size: var(--fs-hero-banner-sm); }


/* ============================================================
   6. LAYOUT  (content widths per layout / page class)
   ============================================================ */
.t-main { display: block; }
.t-content { width: var(--w-container); max-width: var(--w-full); margin-inline: auto; padding-inline: var(--gutter-content); }
.layout-solutions .t-content, .page-inset .t-content { width: auto; max-width: none; margin-inline: var(--inset-article); padding-inline: var(--sp-0); }
.product_list_page .t-content { width: auto; max-width: none; margin: var(--sp-4) var(--inset-wide); padding-inline: var(--sp-0); }


/* ============================================================
   7. COMPONENTS
   Everything here is opt-in: a module wears a class from its Module
   Class field. Nothing is keyed to a position name.
   ============================================================ */

/* intro band (dark, centred) - Module Class: sec-intro */
.sec-intro { background: var(--color-bg-dark); padding: var(--sp-4) var(--inset-wide); }
.sec-intro h3 { color: var(--color-on-dark); text-align: center; font-size: var(--fs-title-block); line-height: var(--lh-title-block); margin-bottom: var(--sp-3); }
.sec-intro p { color: var(--color-on-dark); text-align: center; font-size: var(--fs-intro-text); line-height: var(--lh-intro-text); font-weight: var(--fw-extralight); margin: var(--sp-0); }

/* Feature Display module output (jpc_feature_display): .feat */
.feat { display: grid; grid-template-columns: 3fr 4fr; column-gap: var(--feat-gap); width: var(--w-container); max-width: var(--w-full); margin-inline: auto; padding: var(--sp-4) var(--sp-gutter); }
/* the image fills its column and is exactly as tall as the row list (rows carry the same top/bottom margin) */
.feat__image { position: relative; margin: var(--sp-feat-row) var(--sp-0); }
.feat__image picture { display: block; }
.feat__image img { position: absolute; top: var(--sp-0); left: var(--sp-0); width: var(--w-full); height: var(--w-full); object-fit: cover; }
.feat__list { list-style: none; margin: var(--sp-0); padding: var(--sp-0); }
.feat__row {
  display: grid; grid-template-columns: 1fr 3fr; background: var(--color-bg-mid); margin: var(--sp-feat-row) var(--sp-0);
  color: var(--color-on-dark); text-decoration: none; font-weight: var(--fw-regular);
}
.feat__thumb { width: var(--w-full); height: var(--w-full); object-fit: cover; display: block; }
.feat__text { padding: var(--sp-feat-text); }
.feat__title { color: var(--color-on-dark); margin: var(--sp-0); font-size: var(--fs-feat-title); line-height: var(--lh-flat); }
.feat__tagline { color: var(--color-on-dark); margin: var(--sp-0); font-size: var(--fs-feat-text); line-height: var(--lh-flat); font-weight: var(--fw-light); }

/* feature_imagetext module output (.jpc-fit). The module ships its own tile, rule and spacing styles;
   the tokens below switch them off inside the spotlight and award bands. */
.sec-spotlight .jpc-fit, .sec-award .jpc-fit {
  --jpc-fit-row: var(--sp-0);
  --jpc-fit-rule: none;
  --jpc-fit-gap-y: var(--sp-2);
  --jpc-fit-gap-x: var(--sp-0);
  --jpc-fit-tile-min: var(--sp-0);
  --jpc-fit-tile-pad: var(--sp-0);
  --jpc-fit-tile-radius: var(--sp-0);
  --jpc-fit-tile-border: none;
  --jpc-fit-tile-bg: transparent;
  --jpc-fit-tile-shadow: none;
  --jpc-fit-img-radius: var(--sp-0);
}
.jpc-fit__media { text-align: center; }
.jpc-fit__content { display: flex; flex-direction: column; justify-content: center; }
.jpc-fit__text p { margin: var(--sp-0); }

/* spotlight band - Module Class: sec-spotlight */
.sec-spotlight { background: var(--color-bg-mid); padding: var(--sp-4) var(--inset-wide); color: var(--color-on-dark); }
.sec-spotlight h3 { color: var(--color-on-dark); font-size: var(--fs-title-block); line-height: var(--lh-title-spot); margin: var(--sp-0); }
.sec-spotlight .jpc-fit__text p { margin-top: var(--sp-1); }

/* award band - Module Class: sec-award */
.sec-award { background: var(--color-bg-faint); padding: var(--sp-4) var(--inset-narrow); }
.sec-award .jpc-fit__content { padding: var(--sp-2); }
.sec-award p { color: var(--color-heading); }

/* info bar (dark, centred, light type) - Module Class: sec-info-bar */
.sec-info-bar { background: var(--color-bg-dark); }
.sec-info-bar h2 { color: var(--color-on-dark); font-size: var(--fs-info-title); line-height: var(--lh-flat); font-weight: var(--fw-light); text-align: center; }
.sec-info-bar p { color: var(--color-on-dark); text-align: center; font-size: var(--fs-info-text); font-weight: var(--fw-light); }

/* about-logo band - Module Class: sec-about-logo (content wrapped in .about-logo-container) */
.sec-about-logo { background: var(--color-bg-light); padding: var(--sp-0) var(--inset-narrow); }
.about-logo-container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-0) var(--sp-2); }
.about-logo-container h2 { font-size: var(--fs-about-title); line-height: var(--lh-flat); margin: var(--sp-0); grid-row: 1 / 2; grid-column: 1 / 2; text-align: right; }
.about-logo-container .image { grid-row: 2 / 3; grid-column: 1 / 2; text-align: right; }
.about-logo-container .description { grid-row: 2 / 3; grid-column: 2 / 3; }

/* inset block (15vw side margins) - Module Class: sec-inset */
.sec-inset { margin-inline: var(--inset-wide); }

/* solution article (solutions layout): body left, custom-field list right.
   Turn the article title off in the article's Options: the hero shows it. */
.layout-solutions .com-content-article { display: grid; grid-template-columns: 1fr 1fr; }
.layout-solutions .com-content-article .page-header { grid-column: 1 / -1; }
.layout-solutions .com-content-article__body { grid-column: 1 / 2; }
.layout-solutions .com-content-article__body p { margin: var(--sp-2) var(--sp-0) var(--sp-0); }
.layout-solutions .com-content-article__body ul { margin-top: var(--sp-0); margin-bottom: var(--sp-0); }
.layout-solutions .fields-container { grid-column: 2 / 3; list-style: none; margin: var(--sp-0) var(--sp-0) var(--sp-0) var(--sp-6); padding: var(--sp-0); }
.layout-solutions .fields-container .field-entry { display: block; }
.layout-solutions .fields-container .field-label { font-weight: var(--fw-bold); }
.layout-solutions .fields-container .field-value a { color: var(--color-accent); text-decoration: none; font-weight: var(--fw-bold); }
.layout-solutions .fields-container .mfp-grid { display: block; }
.layout-solutions .fields-container .mfp_default_item { display: list-item; list-style: disc; margin-left: var(--sp-5); margin-bottom: var(--sp-0); max-width: var(--w-full); }
.layout-solutions .fields-container .mfp_default_item_inner { padding: var(--sp-0); border: var(--sp-0); box-shadow: none; }
.layout-solutions .fields-container .mfp_default_title { margin: var(--sp-0); }

/* Minifrontpage Pro lists (body-right "Specific products include" and the bottom product grid): the module's own
   rules are three classes deep, so these repeat its prefix to win. Tight title/intro spacing, and an arrow after
   each title in the featured-products list so it reads as a link (the bottom grid cards have none). */
.layout-solutions [class*="mfp_default_skin_"] .mfp_default_item .mfp_default_title { margin: var(--sp-0); line-height: var(--lh-flat); }
.layout-solutions [class*="mfp_default_skin_"] .mfp_default_item .mfp_introtext { margin: var(--sp-mfp-intro) var(--sp-0) var(--sp-0); }
.layout-solutions [class*="mfp_default_skin_"] .mfp_default_title a { color: var(--color-accent); text-decoration: none; }
.layout-solutions .fields-container [class*="mfp_default_skin_"] .mfp_default_title a::after { content: var(--mfp-arrow); display: inline-block; margin-left: var(--sp-mfp-arrow); transition: transform var(--transition); }
.layout-solutions [class*="mfp_default_skin_"] .mfp_default_title a:hover { text-decoration: underline; }
.layout-solutions .fields-container [class*="mfp_default_skin_"] .mfp_default_title a:hover::after { transform: translateX(var(--mfp-arrow-nudge)); }

/* product list box, two columns, no thumbnails - Module Class: sec-product-list
   (Minifrontpage Pro output; switch its image and date off in the module options) */
.sec-product-list { margin-inline: var(--inset-wide); background: var(--color-bg-pale); padding: var(--sp-3) var(--sp-3) var(--sp-5); }
/* the category heading is either the module title or an h3 inside the module content: no space above, none below */
.sec-product-list .t-module-title, .sec-product-list > h3 { margin: var(--sp-0); padding: var(--sp-0); }
.sec-product-list .t-module-title { font-size: var(--fs-h2); line-height: var(--lh-flat); }
.sec-product-list .mfp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-5); }
.sec-product-list .mfp_default_item { width: auto; max-width: none; margin: var(--sp-0); padding: var(--sp-0); float: none; }
/* product cards: border, shadow and padding as in the module's card skin; the prefix is repeated so any skin gives the same result */
.sec-product-list [class*="mfp_default_skin_"] .mfp_default_item .mfp_default_item_inner { padding: var(--sp-card-pad); border: var(--sp-border) solid var(--color-card-border); box-shadow: var(--shadow-card); background: none; }
.sec-product-list [class*="mfp_default_skin_"] .mfp_default_item .mfp_default_title { font-size: var(--fs-list-title); line-height: var(--lh-flat); font-weight: var(--fw-bold); margin: var(--sp-0); }
.sec-product-list [class*="mfp_default_skin_"] .mfp_default_item .mfp_introtext { color: var(--color-text); font-size: var(--fs-body); }

/* category blog, product pages - Page Class: product_list_page
   Same look as the solution-page product grid (.sec-product-list): pale box, two columns of bordered cards.
   Intro images are not output on these pages (see html/layouts/joomla/content/intro_image.php); the
   :has(.item-image) rules below are for when a menu item opts in with the Page Class "show-intro-image". */
.product_list_page .com-content-category-blog {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-5);
  background: var(--color-bg-pale); padding: var(--sp-3) var(--sp-3) var(--sp-5);
}
.product_list_page .com-content-category-blog > * { grid-column: 1 / -1; }
.product_list_page .com-content-category-blog > .blog-items { display: contents; }
.product_list_page .com-content-category-blog > .page-header { margin: var(--sp-0); padding: var(--sp-0); border: var(--sp-0); }
.product_list_page .com-content-category-blog > .page-header h1 { margin: var(--sp-0); }
.product_list_page .com-content-category-blog__item {
  grid-column: auto; margin: var(--sp-0); padding: var(--sp-card-pad);
  border: var(--sp-border) solid var(--color-card-border); box-shadow: var(--shadow-card);
}
.product_list_page .com-content-category-blog__item:has(.item-image) { display: grid; grid-template-columns: 1fr 3fr; gap: var(--sp-2); }
.product_list_page .item-image { margin: var(--sp-0); }
.product_list_page .item-content .page-header { margin: var(--sp-0); padding: var(--sp-0); border: var(--sp-0); }
.product_list_page .item-content .page-header h2 { margin: var(--sp-0); font-size: var(--fs-list-title); line-height: var(--lh-flat); font-weight: var(--fw-bold); }
.product_list_page .item-content .page-header h2 a { text-decoration: none; color: var(--color-accent); }
.product_list_page .item-content .page-header h2 a:hover { text-decoration: underline; }
.product_list_page .item-content p { margin: var(--sp-mfp-intro) var(--sp-0) var(--sp-0); color: var(--color-text); }
.product_list_page .item-content p.readmore a { background: var(--color-button); border-color: var(--color-button); color: var(--color-on-dark); text-decoration: none; font-weight: var(--fw-regular); }

/* news blog - Page Class: news-blog
   A featured card (the leading article, first page only) then a card grid (the intro articles).
   Markup comes from html/com_content/category/blog.php + blog_newsitem.php, which only switch to it on
   this Page Class; other category blogs keep core's markup. Menu item: 1 leading article, the rest intro. */
.news-blog .t-content { padding-block: var(--sp-news-page-top) var(--sp-6); }
.news-blog .com-content-category-blog > .page-header { margin: var(--sp-0); padding: var(--sp-0); border: var(--sp-0); }
.news-blog .com-content-category-blog > .page-header h1 {
  margin: var(--sp-0) var(--sp-0) var(--sp-news-title-gap); font-family: var(--ff-head); font-size: var(--fs-news-title);
  font-weight: var(--fw-bold); color: var(--color-brand);
}
.news-blog .category-desc p { margin: var(--sp-0); font-size: var(--fs-news-sub); }
.news-featured { margin-top: var(--sp-4); }
.news-grid { display: grid; grid-template-columns: repeat(var(--news-cols), minmax(0, 1fr)); gap: var(--sp-3); }
.news-grid { margin-top: var(--sp-4); }
.news-featured + .news-grid { margin-top: var(--sp-0); }

/* shared card parts */
.news-meta {
  margin: var(--sp-0); font-size: var(--fs-news-meta); font-weight: var(--fw-medium); line-height: var(--lh-news-tight);
  letter-spacing: var(--ls-news-meta); text-transform: uppercase; color: var(--color-bg-mid);
}
.news-title { margin: var(--sp-0); font-family: var(--ff-head); font-size: var(--fs-news-card-title); font-weight: var(--fw-bold); line-height: var(--lh-news-title); color: var(--color-accent); }
.news-title a { color: inherit; font-weight: var(--fw-bold); text-decoration: none; }
.news-title a:hover { text-decoration: underline; }
.news-text { margin-top: var(--sp-news-text-gap); font-size: var(--fs-news-text); line-height: var(--lh-news-text); }
.news-text p { margin: var(--sp-0); }
.news-text p + p { margin-top: var(--sp-news-text-gap); }
.news-blog .article-info { margin: var(--sp-1) var(--sp-0) var(--sp-0); font-size: var(--fs-news-meta); line-height: var(--lh-news-tight); }
.news-placeholder { display: block; width: var(--news-placeholder-w); max-width: var(--w-full); height: auto; opacity: var(--opacity-news-placeholder); }

/* featured card: dark panel, image on a light-blue panel left, text right */
.news-feat {
  display: grid; grid-template-columns: var(--news-feat-cols); margin-bottom: var(--sp-4); overflow: hidden;
  background: var(--color-bg-dark); color: var(--color-on-dark); border-radius: var(--br-card);
  --bs-secondary-color: var(--color-bg-light); /* Bootstrap's .text-muted (info block) stays readable on the dark panel */
}
.news-feat__pic { display: flex; align-items: center; justify-content: center; padding: var(--sp-3); background: var(--color-bg-light); }
.news-feat__pic .item-image { margin: var(--sp-0); float: none; max-width: var(--w-full); }
.news-feat__pic img { display: block; width: auto; height: auto; max-width: var(--w-full); max-height: var(--news-img-max-h); object-fit: contain; }
.news-feat__body { padding: var(--sp-news-feat-body); }
.news-feat .news-meta { color: var(--color-bg-light); }
.news-feat .news-title { font-size: var(--fs-news-feat-title); color: var(--color-on-dark); }
.news-feat .news-text { color: var(--color-on-dark-soft); }
.news-feat__more {
  display: inline-block; margin-top: var(--sp-2); padding: var(--sp-news-btn-y) var(--sp-news-btn-x); border-radius: var(--br-button);
  background: var(--color-on-dark); color: var(--color-button); font-size: var(--fs-news-more); font-weight: var(--fw-regular);
  line-height: var(--lh-news-tight); text-decoration: none; transition: background var(--transition);
}
.news-feat__more:hover { background: var(--color-bg-light); }

/* grid card: 16/10 image area, then meta, title, clamped excerpt, "Read more" pinned to the bottom */
.news-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--color-bg-page);
  border: var(--sp-border) solid var(--color-card-border); border-radius: var(--br-card); box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(var(--news-lift)); }
.news-card__thumb {
  display: flex; align-items: center; justify-content: center; width: var(--w-full); aspect-ratio: var(--news-thumb-ratio); overflow: hidden;
  padding: var(--sp-news-thumb-pad); background: var(--color-bg-pale); border-bottom: var(--sp-border) solid var(--color-card-border);
}
.news-card__thumb .item-image { width: var(--w-full); height: var(--w-full); margin: var(--sp-0); float: none; }
.news-card__thumb .item-image a { display: block; height: var(--w-full); }
.news-card__thumb img { display: block; width: var(--w-full); height: var(--w-full); object-fit: contain; }
.news-card__thumb .news-placeholder { width: var(--news-placeholder-w); height: auto; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-news-card-body); }
.news-card .news-title { margin-top: var(--sp-news-card-title-top); }
.news-card .news-text {
  font-size: var(--fs-news-card-text); display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--news-text-lines); line-clamp: var(--news-text-lines); overflow: hidden;
}
.news-card__more { align-self: flex-start; margin-top: auto; padding-top: var(--sp-2); font-weight: var(--fw-medium); color: var(--color-brand); text-decoration: none; }
.news-card__more:hover { color: var(--color-accent); }

/* pagination (Bootstrap's markup, restyled): square bordered buttons, current page in brand blue */
.news-blog .com-content-category-blog__navigation { margin-top: var(--sp-news-page-top); }
.news-blog ul.pagination { width: var(--w-full); justify-content: center; gap: var(--sp-news-pager-gap); }
.news-blog .pagination .page-item .page-link {
  min-width: var(--w-news-pager-btn); margin-left: var(--sp-0); padding: var(--sp-news-pager-y) var(--sp-news-pager-x); text-align: center;
  background: none; border: var(--sp-border) solid var(--color-card-border); border-radius: var(--br-button);
  color: var(--color-brand); font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: var(--lh-news-tight); text-decoration: none;
}
.news-blog .pagination .page-item .page-link:hover { background: none; color: var(--color-accent); }
.news-blog .pagination .page-item.active .page-link { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-dark); }
.news-blog .pagination .page-item.disabled .page-link { color: var(--color-text-grey); }

/* news article page - body classes view-article + Page Class news-blog (or the fallback news-article).
   Core order is: title, info, then <figure class="item-image"> (the Full Article Image), then
   .com-content-article__body, all siblings. Floating the figure puts the text at the image's top edge and
   lets it flow underneath once it passes the image bottom. Below 600px the tokens switch the float off. */
.view-article.news-blog .com-content-article, .view-article.news-article .com-content-article { display: flow-root; }
.view-article.news-blog .com-content-article > .item-image, .view-article.news-article .com-content-article > .item-image {
  float: var(--news-article-float); width: var(--news-article-img-w); max-width: min(var(--news-article-img-max), var(--w-full));
  margin: var(--sp-0) var(--sp-news-article-img-gap) var(--sp-news-article-img-gap) var(--sp-0);
}
.view-article.news-blog .com-content-article > .item-image img, .view-article.news-article .com-content-article > .item-image img { display: block; width: auto; max-width: var(--w-full); height: auto; max-height: var(--news-article-img-max-h); object-fit: contain; }
.view-article.news-blog .com-content-article__body > :first-child, .view-article.news-article .com-content-article__body > :first-child { margin-top: var(--sp-0); }

/* contact page (RSForm Pro) - Page Class: contact_us */
.contact_us .formContainer .col-form-label { width: var(--w-full); }
.contact_us .formContainer .formRequired { font-size: var(--fs-small); vertical-align: super; }
.contact_us .formContainer p.required_notice { font-size: var(--fs-small); font-style: italic; }


/* ============================================================
   8. FOOTER
   ============================================================ */
.t-footer { background: var(--color-bg-dark); color: var(--color-on-dark); padding: var(--sp-4) var(--inset-narrow); }
.t-footer h3, .t-footer .t-footer-title { color: var(--color-on-dark); font-size: var(--fs-title-block); margin: var(--fs-h3) var(--sp-0) var(--sp-1); }
.t-footer__cols { display: block; }
.t-footer a { color: var(--color-on-dark); }
.t-footer ul { list-style: none; margin: var(--sp-0); display: grid; padding: var(--sp-0); }
.t-footer li { padding: var(--sp-0); line-height: var(--lh-menu); margin-top: var(--sp-nav-item); }
.t-footer li a { font-weight: var(--fw-extralight); font-size: var(--fs-menu); text-decoration: none; }
.t-footer li a[aria-current="page"] { text-decoration: underline; }
.t-footer .t-btn { color: var(--color-on-dark); font-weight: var(--fw-regular); text-decoration: none; }
.t-footer-module p { color: var(--color-on-dark); }
.t-footer-module .email a { font-weight: var(--fw-bold); }
.t-footer__bar { margin-top: var(--sp-5); font-style: italic; font-size: var(--fs-small); line-height: var(--lh-small); }
.t-footer__bar p { margin: var(--sp-0); }


/* ============================================================
   9. SYSTEM PAGES  (error.php, offline.php, component.php)
   ============================================================ */
.t-error .t-header, .t-offline .t-header { position: static; }
.t-error-main { padding: var(--sp-6) var(--inset-narrow); text-align: center; }
.t-error-code { font-family: var(--ff-head); font-size: var(--fs-hero-banner); color: var(--color-accent); margin: var(--sp-0); }
.t-error-msg { margin: var(--sp-2) var(--sp-0); }
.t-error-footer { text-align: center; }
.t-error-footer .t-footer-logo { margin-bottom: var(--sp-2); }
.t-component { padding: var(--sp-2); }
.t-offline-box { max-width: var(--w-product); margin: var(--sp-6) auto; padding: var(--sp-0) var(--sp-2); text-align: center; }
.t-offline-form input { padding: var(--sp-btn-y) var(--sp-btn-x); border: var(--sp-border) solid var(--color-field-border); border-radius: var(--br-button); font: inherit; }


/* ============================================================
   10. RESPONSIVE  (widest to narrowest; tokens are redefined)
   ============================================================ */
@media (width <= 1199.98px) { :root { --w-container: 60rem; } }
@media (width <= 991.98px)  { :root { --w-product: 90vw; --gutter-content: 0.938rem; } }
@media (width <= 959.98px)  { :root { --w-container: 48rem; } }
@media (width <= 900px)     { :root { --news-cols: 2; --news-feat-cols: 1fr; } }
@media (width <= 767.98px)  { :root { --w-container: 30rem; } }
@media (width <= 600px)     { :root { --news-cols: 1; --news-article-float: none; --news-article-img-w: 100%; --news-article-img-max: 100%; --news-article-img-max-h: 400px; } }
@media (width <= 479.98px)  { :root { --w-container: 100%; } }

@media (width >= 768px) {
  /* spotlight: the module title sits directly above the text, the pair centred beside the image.
     The module wrappers dissolve so the title, text and image are laid out by the band itself. */
  .sec-spotlight { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr auto auto 1fr; }
  .sec-spotlight .jpc-fit, .sec-spotlight .jpc-fit__row { display: contents; }
  .sec-spotlight .t-module-title { grid-column: 1 / 2; grid-row: 2 / 3; align-self: end; }
  .sec-spotlight .jpc-fit__content { grid-column: 1 / 2; grid-row: 3 / 4; align-self: start; justify-content: flex-start; }
  .sec-spotlight .jpc-fit__media { grid-column: 2 / 3; grid-row: 1 / 5; align-self: center; }
  .sec-award .jpc-fit__row { display: grid; grid-template-columns: 2fr 5fr; align-items: center; }
}

@media (width >= 960px) {
  .t-footer__cols { display: grid; grid-template-columns: 3fr 2fr 2fr; gap: var(--sp-nav-item); }
}

/* below 1000px the main menu no longer fits on one line: both menus move into the slide-in drawer */
@media (width < 1000px) {
  :root { --logo-max-full: 13rem; --header-pad-x: var(--sp-2); }
  .t-header__inner { grid-template-columns: 1fr auto; }
  .t-burger { display: block; }
  .t-brand { margin-left: var(--sp-5); }
  .t-tagline { display: none; }
  .t-cta { grid-column: 2 / 3; }
  .t-drawer {
    display: block; position: fixed; top: var(--sp-0); bottom: var(--sp-0); left: var(--sp-0); width: var(--drawer-w);
    z-index: var(--z-drawer); background: var(--color-bg-dark); overflow-y: auto;
    transform: translateX(-100%); visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
  }
  .t-header.is-open .t-drawer { transform: none; visibility: visible; }
  .t-drawer .t-menu, .t-drawer .t-topbar { margin: var(--sp-0); background: none; box-shadow: none; clip-path: none; }
  .t-drawer ul { display: block; margin: var(--sp-0); }
  .t-drawer a {
    display: block; color: var(--color-on-dark); padding: var(--sp-drawer-link) var(--sp-2);
    border-bottom: var(--sp-border) solid var(--color-divider-dark); font-size: var(--fs-menu); font-weight: var(--fw-regular);
  }
  .t-drawer .t-menu a:hover, .t-drawer .t-menu a[aria-current="page"] { background: none; border-bottom-color: var(--color-divider-dark); }
  .t-drawer a[aria-current="page"] { text-decoration: none; font-weight: var(--fw-bold); }
  .t-drawer a:hover { color: var(--color-bg-light); }
  .t-scrim {
    display: block; position: fixed; top: var(--sp-0); right: var(--sp-0); bottom: var(--sp-0); left: var(--sp-0);
    z-index: var(--z-scrim); background: var(--color-scrim); opacity: 0; visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .t-header.is-open .t-scrim { opacity: 1; visibility: visible; }
}
@media (width < 500px) { .t-cta { display: none; } }

@media (width < 768px) {
  .feat { grid-template-columns: 1fr; }
  .feat__image { display: none; }
  .layout-solutions .com-content-article { grid-template-columns: 1fr; }
  .layout-solutions .fields-container { grid-column: 1 / 2; margin: var(--sp-4) var(--sp-0); }
  .t-footer h3 { margin-top: var(--sp-5); }
  .hero--banner .hero__title { padding-inline: var(--sp-4); }
  .about-logo-container h2 { grid-column: 1 / 3; text-align: center; }
}

@media (width <= 640px) {
  .sec-product-list .mfp-grid { grid-template-columns: 1fr; }
  .product_list_page .com-content-category-blog { grid-template-columns: 1fr; }
  .about-logo-container .image { grid-column: 1 / 3; text-align: center; }
  .about-logo-container .description { grid-row: 3 / 4; grid-column: 1 / 3; text-align: center; }
}

@media (width <= 431px) {
  .product_list_page .com-content-category-blog__item:has(.item-image) { grid-template-columns: 1fr; }
}

@media (width < 430px) {
  :root {
    --fs-body: 1rem;
    --lh-body: 1.4rem;
    --fs-small: 0.9rem;
    --lh-small: 0.9rem;
    --fs-menu: 1.2rem;
    --lh-menu: 1.2rem;
    --fs-tagline: 1.1rem;
    --fs-h2: 2rem;
    --fs-h3: 1.7rem;
    --fs-title-block: 1.4rem;
    --lh-title-block: 1.8rem;
    --lh-title-spot: 1.7rem;
    --fs-hero-text: 1.2rem;
    --lh-hero-text: 1.3rem;
    --fs-hero-banner: 3rem;
    --fs-hero-banner-sm: 2.5rem;
    --fs-intro-text: 1rem;
    --lh-intro-text: 1.3rem;
    --fs-feat-title: 1.1rem;
    --fs-feat-text: 0.9rem;
    --fs-list-title: 1.2rem;
    --fs-info-text: 1.1rem;
    --fs-about-title: 1.8rem;
    --cta-fs-compact: 1rem;
    --inset-article: 0;
  }
}


/* ============================================================
   11. PRINT
   ============================================================ */
@media print {
  .t-header { position: static; }
  .t-burger, .t-cta, .t-scrim { display: none; }
}


/* ============================================================
   12. MOTION  (always last)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0s; --news-lift: 0px; }
}
