/* ============================================================
   ROCKFORD SYSTEMS — Main Stylesheet
   Version: 1.0
   Author: Identity Web Design
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800;0,900;1,700;1,800;1,900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand colours */
  --red:            #CC1F1F;
  --red-dark:       #A01818;
  --red-glow:       rgba(204, 31, 31, 0.08);

  /* Light theme */
  --hero-bg:        #F5F2F0;
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F8F7F5;
  --bg-tertiary:    #F0EDE9;
  --text-primary:   #0D0D0D;
  --text-secondary: #3D3D3D;
  --text-muted:     #7A7A7A;
  --border:         rgba(0, 0, 0, 0.08);
  --border-strong:  rgba(0, 0, 0, 0.15);
  --nav-bg:         rgba(245, 242, 240, 0.92);
  --card-bg:        #FFFFFF;
  --card-border:    rgba(0, 0, 0, 0.07);

  /* Typography */
  --font-display:   'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-ui:        'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-max:  1760px;
  --container-pad:  clamp(20px, 3vw, 56px);
  --section-pad:    clamp(64px, 7vw, 112px);

  /* Radius */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;

  /* Transitions */
  --transition:     0.2s ease;
  --transition-md:  0.35s ease;
}

/* ── Dark mode overrides ── */
.dark-mode {
  --hero-bg:        #0D1117;
  --bg-primary:     #0D1117;
  --bg-secondary:   #111318;
  --bg-tertiary:    #13161E;
  --text-primary:   #F0F2F5;
  --text-secondary: #C8CDD6;
  --text-muted:     #6B7280;
  --border:         rgba(255, 255, 255, 0.07);
  --border-strong:  rgba(255, 255, 255, 0.12);
  --nav-bg:         rgba(10, 12, 16, 0.92);
  --card-bg:        #13161E;
  --card-border:    rgba(255, 255, 255, 0.06);
  --red-glow:       rgba(204, 31, 31, 0.12);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;      /* let the JS handle smooth scrolling */
  scroll-padding-top: 96px;   /* header (80px) + a little breathing room */
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-pad {
  padding-block: var(--section-pad);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 16px rgba(204,31,31,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--border);
  border-color: var(--border-strong);
}

.btn-lg {
  font-size: 14px;
  padding: 13px 26px;
}

/* ============================================================
   6. CIRCUIT TRACE DECORATIONS
   ============================================================ */
.circuit-trace {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  background: var(--hero-bg);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero background gradient + texture */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 60% 50%, var(--red-glow) 0%, transparent 55%),
    linear-gradient(135deg, transparent 0%, var(--bg-tertiary) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Full-bleed hero product image */
.hero-bg-image {
  position: absolute;
  top: -5%;

  width: 68%;
  height: 110%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.22);
  transform-origin: center center;
  -webkit-mask-image:
    radial-gradient(
      ellipse 80% 75% at 56% 50%,
      black 0%,
      black 30%,
      rgba(0,0,0,0.97) 44%,
      rgba(0,0,0,0.78) 58%,
      rgba(0,0,0,0.38) 72%,
      rgba(0,0,0,0.1)  84%,
      transparent      94%
    ),
    linear-gradient(
      to right,
      transparent      0%,
      rgba(0,0,0,0.3)  8%,
      rgba(0,0,0,0.75) 18%,
      black            32%,
      black            100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(
      ellipse 80% 75% at 56% 50%,
      black 0%,
      black 30%,
      rgba(0,0,0,0.97) 44%,
      rgba(0,0,0,0.78) 58%,
      rgba(0,0,0,0.38) 72%,
      rgba(0,0,0,0.1)  84%,
      transparent      94%
    ),
    linear-gradient(
      to right,
      transparent      0%,
      rgba(0,0,0,0.3)  8%,
      rgba(0,0,0,0.75) 18%,
      black            32%,
      black            100%
    );
  mask-composite: intersect;
  filter: drop-shadow(0 8px 40px rgba(204,31,31,0.1))
          drop-shadow(0 0 80px rgba(204,31,31,0.04));
}

/* Dark mode hero image treatment */
.dark-mode .hero-bg-image img {
  filter: brightness(1.08) contrast(1.12) saturate(0.88);
}

/* Dark mode ambient glow behind product */
.dark-mode .hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 55% at 52% 52%,
    rgba(204,31,31,0.14) 0%,
    rgba(204,31,31,0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
}

/* Hero inner grid */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: calc(100vh - 68px);
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-right: 20px;
  max-width: 700px;

}

/* Right column — spacer for grid layout */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

/* Hero eyebrow badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red-glow);
  border: 1px solid rgba(204,31,31,0.2);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

.hero-eyebrow span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

/* Hero headline */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.012em;

  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

/* Hero subheading */
.hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;

  margin-bottom: 36px;
  max-width: 440px;
}

/* Hero CTA row */
.hero-actions {
  display: block;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero-stat-value span {
  font-size: 18px;
  color: var(--red);
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Mission Ready badge */
.hero-badge-standalone {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 4;
  box-shadow: 0 4px 20px rgba(204,31,31,0.25);
}

.hero-badge-standalone span {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Dark mode badge */
.dark-mode .hero-badge-standalone {
  background: rgba(204,31,31,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   8. CIRCUIT DIVIDER
   ============================================================ */
.circuit-divider {
  background: var(--bg-secondary);
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.circuit-divider svg {
  width: 100%;
  height: 48px;
}

/* ============================================================
   9. SOLUTIONS SECTION
   ============================================================ */
.solutions {
  background: var(--bg-secondary);
  padding-block: var(--section-pad);
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.0;
  letter-spacing: -0.01em;

  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.solution-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.solution-img {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.solution-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-img-placeholder svg {
  opacity: 0.15;
}

.solution-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.solution-body {
  padding: 28px 32px 32px;
}

.solution-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;

  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.solution-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.solution-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.solution-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.solution-feature::before, ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  margin-top: 21px;
  flex-shrink: 0;
  display: none;
}


/* ============================================================
   10. MARKETS SECTION
   ============================================================ */
.markets {
  background: var(--bg-primary);
  padding-block: var(--section-pad);
  overflow: hidden;
  position: relative;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 48px;
}

/* Full-bleed image card */
.market-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: default;
}

/* Background image layer */
.market-img-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.market-img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.65s ease;
}

.market-item:hover .market-img-bg img {
  transform: scale(1.07);
}

/* Dark gradient overlay */
.market-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
  transition: background 0.4s ease;
}

.market-item:hover .market-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12)  0%,
    rgba(0, 0, 0, 0.24) 40%,
    rgba(0, 0, 0, 0.80) 100%
  );
}

/* Text content pinned to bottom-left */
.market-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px 26px;
  z-index: 2;
}

/* Red accent rule above number */
.market-content::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  margin-bottom: 10px;
  opacity: 0.9;
  transition: width 0.3s ease;
}

.market-item:hover .market-content::before {
  width: 42px;
}

.market-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.market-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ============================================================
   11. NEWS SECTION
   ============================================================ */
.news {
  background: var(--bg-secondary);
  padding-block: var(--section-pad);
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.news-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.news-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-body {
  padding: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.news-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  padding: 3px 8px;
  border-radius: 100px;
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.news-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.news-link:hover { gap: 10px; }

/* ============================================================
   12. CERTIFICATIONS BAR
   ============================================================ */
.certs {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 32px;
}

.certs-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px);
  flex-wrap: wrap;
}

.cert-item {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.6;
}

/* ============================================================
   13. CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--red);
  padding-block: 64px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.cta-banner-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  max-width: 480px;
}

.btn-white {
  background: #fff;
  color: var(--red);
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p, .footer-grid address {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--border);
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;

  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text-primary); }

/* ============================================================
   15. WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ============================================================
   16. DARK MODE — SECTION OVERRIDES
   ============================================================ */
.dark-mode .solutions          { background: #0A0C10; }
.dark-mode .solution-card      { background: #13161E; border-color: rgba(255,255,255,0.06); }
.dark-mode .solution-img       { background: #0D1117; }
.dark-mode .markets            { background: #111318; }
.dark-mode .market-item        { background: #13161E; }
.dark-mode .market-item:hover  { background: #181C26; }
.dark-mode .news               { background: #0A0C10; }
.dark-mode .news-card          { background: #13161E; border-color: rgba(255,255,255,0.06); }
.dark-mode .news-img           { background: #0D1117; }
.dark-mode .certs              { background: #111318; border-color: rgba(255,255,255,0.06); }
.dark-mode .footer             { background: #111318; border-color: rgba(255,255,255,0.06); }
.dark-mode .footer-grid        { border-color: rgba(255,255,255,0.06); }
.dark-mode .footer-bottom      { border-color: rgba(255,255,255,0.06); }
.dark-mode .circuit-divider    { background: #0A0C10; }
.dark-mode .circuit-trace      { opacity: 0.3; }
.dark-mode .hero-eyebrow {
  background: rgba(204,31,31,0.12);
  border-color: rgba(204,31,31,0.25);
}
.dark-mode .hero-stats         { border-color: rgba(255,255,255,0.07); }
.dark-mode .nav {
  background: rgba(10,12,16,0.92);
  border-color: rgba(255,255,255,0.06);
}
.dark-mode #t4-header .nav-link        { color: rgba(240,242,245,0.65); }
.dark-mode #t4-header .nav-link:hover  { color: #F0F2F5; background: rgba(255,255,255,0.05); }

/* ============================================================
   17. RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   18. RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  #t4-header .t4-megamenu, #t4-header .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding: 60px 0; }
  .hero-visual { display: none; }
  .hero-bg-image { width: 100%; right: 0; top: auto; bottom: 0; height: 50%; opacity: 0.25; }
  .hero-badge-standalone { bottom: 20px; right: 20px; }

  /* Sections */
  .solutions-grid  { grid-template-columns: 1fr; }
  .markets-grid    { grid-template-columns: repeat(2, 1fr); }
  .news-grid       { grid-template-columns: 1fr; }
  .news-card:last-child { grid-column: span 1; }
  .footer-grid     { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   19. PRINT STYLES
   ============================================================ */
@media print {
  .nav, .whatsapp-float, .hero-badge-standalone { display: none; }
  .hero { min-height: auto; padding-top: 20px; }
  * { box-shadow: none !important; }
}

/* ============================================================
   19. ACCREDITATIONS SECTION
   ============================================================ */

.accreditations-section {
  background: var(--hero-bg);
}

.accred-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
}

.accred-eyebrow::before,
.accred-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 110px;
  height: 1px;
  background: var(--border-strong);
  opacity: 0.45;
}

.accred-eyebrow-text {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.accred-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.accred-logo-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  position: relative;
}

.accred-logo-item + .accred-logo-item::before {
  /*content: '';*/
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--border-strong) 30%,
    var(--border-strong) 70%,
    transparent 100%
  );
  opacity: 0.4;
}

.accred-logo-item img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.55) contrast(0.88);
  opacity: 0.72;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.accred-logo-item:hover img {
  /* filter: grayscale(100%) brightness(0.68) contrast(0.95);
  opacity: 0.9; */
  transform: scale(1.04);
}

.accred-logo-iso   img { height: 110px; }
.accred-logo-ipc   img { height: 96px;  }
.accred-logo-cyber img { height: 100px; }

.accred-bottom-rule {
  margin-top: 52px;
  height: 1px;
 /* background: linear-gradient(
    to right,
    transparent 0%,
    var(--border-strong) 20%,
    var(--border-strong) 80%,
    transparent 100%
  );*/
  opacity: 0.3;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .accred-logos-row       { flex-direction: column; gap: 32px; }
  .accred-logo-item       { padding: 0; }
  .accred-logo-item + .accred-logo-item::before { display: none; }
  .accred-logo-iso   img,
  .accred-logo-ipc   img,
  .accred-logo-cyber img  { height: 68px; }
  .accred-bottom-rule     { width: 80%; }
}

/* ============================================================
   FULL-WIDTH REFINEMENTS — Crane FS inspired layout update
   Added to make the concept feel broader, more open and less boxed-in.
   ============================================================ */
@media (min-width: 1100px) {
  .nav-inner,
  .hero .container,
  .solutions .container,
  .markets .container,
  .news .container,
  .accreditations .container,
  .cta-banner .container,
  .footer .container {
    max-width: min(1760px, 100%);
  }

  .hero-inner {

    gap: clamp(24px, 3vw, 72px);
  }

  .hero-content {

    padding-right: 0;
  }

  .hero-bg-image {
   right: -30vw;
   width: 60vw;
   max-width: 1060px;
  }

  .hero-bg-image img {
    transform: scale(1.28);
  }

  .section-header {
    display: grid;
    grid-template-columns: minmax(360px, 0.72fr) minmax(420px, 1fr);
    align-items: end;
    gap: clamp(32px, 5vw, 96px);
  }

  .section-header .section-sub {
    max-width: 720px;
    margin-left: auto;
  }

  .solutions-grid {
    gap: clamp(28px, 3vw, 48px);
  }

  .solution-img {
    aspect-ratio: 16 / 9;
  }

  .solution-body {
    padding: clamp(32px, 3vw, 48px);
  }

  .markets .container {
    max-width: none;
    padding-inline: clamp(20px, 2vw, 36px);
  }

  .markets-grid {
    gap: 8px;
  }

  .market-item {
    aspect-ratio: 4 / 3.15;
  }

  .market-content {
    padding: clamp(26px, 3vw, 42px);
  }

  .market-name {
    font-size: clamp(30px, 2.7vw, 30px);
  }

  .footer-grid {
    grid-template-columns: minmax(360px, 1.45fr) repeat(3, minmax(180px, 0.7fr));
    gap: clamp(48px, 5vw, 96px);
  }

  .footer-brand p,
  .footer-grid address {
    max-width: 420px;
  }
}

@media (min-width: 1500px) {
  .hero-title {
    font-size: 90px;
  }

  .hero-subtitle {
    max-width: 760px;
    font-size: 19px;
  }
}

/* ============================================================
   CLEAN SCHEMATIC REFINEMENT
   Replaces the heavier red dashed PCB decoration with a quieter
   wiring-schematic treatment: fine solid rules, restrained nodes,
   and low-contrast technical texture.
   ============================================================ */
.circuit-trace {
  opacity: 0.16 !important;
  mix-blend-mode: multiply;
}

.circuit-trace path,
.circuit-trace line {
  stroke: rgba(36, 42, 52, 0.34) !important;
  stroke-width: 1 !important;
  stroke-dasharray: none !important;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.circuit-trace circle {
  fill: var(--bg-primary) !important;
  stroke: rgba(36, 42, 52, 0.34) !important;
  stroke-width: 1 !important;
  r: 2.5px;
  opacity: 0.85 !important;
}

.hero .circuit-trace {
  opacity: 0.12 !important;
}

.markets .circuit-trace,
.footer .circuit-trace {
  opacity: 0.10 !important;
}

.cta-banner .circuit-trace {
  opacity: 0.14 !important;
  mix-blend-mode: screen;
}

.cta-banner .circuit-trace path,
.cta-banner .circuit-trace line {
  stroke: rgba(255, 255, 255, 0.42) !important;
}

.cta-banner .circuit-trace circle {
  fill: transparent !important;
  stroke: rgba(255, 255, 255, 0.42) !important;
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(36, 42, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 42, 52, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 1;
}

.hero-bg-pattern {
  background-image:
    radial-gradient(circle at 68% 48%, rgba(204, 31, 31, 0.045) 0%, transparent 52%),
    linear-gradient(135deg, transparent 0%, var(--bg-tertiary) 100%);
}

.dark-mode .circuit-trace {
  mix-blend-mode: screen;
  opacity: 0.18 !important;
}

.dark-mode .circuit-trace path,
.dark-mode .circuit-trace line {
  stroke: rgba(210, 218, 230, 0.28) !important;
}

.dark-mode .circuit-trace circle {
  fill: transparent !important;
  stroke: rgba(210, 218, 230, 0.34) !important;
}

.dark-mode .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(210, 218, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 218, 230, 0.035) 1px, transparent 1px);
}

/* ============================================================
   CONTRAST & DEPTH REFINEMENT
   Adds stronger separation, clearer hierarchy, and a more premium
   material feel so the light theme no longer feels washed out.
   ============================================================ */
:root {
  --hero-bg:        #F1EDEA;
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F2EFEC;
  --bg-tertiary:    #E7E1DC;
  --text-primary:   #070707;
  --text-secondary: #24272D;
  --text-muted:     #5F646C;
  --border:         rgba(10, 14, 20, 0.12);
  --border-strong:  rgba(10, 14, 20, 0.22);
  --nav-bg:         rgba(242, 238, 234, 0.94);
  --card-bg:        #FFFFFF;
  --card-border:    rgba(10, 14, 20, 0.13);
  --soft-shadow:    0 18px 48px rgba(18, 24, 32, 0.09);
  --soft-shadow-sm: 0 10px 28px rgba(18, 24, 32, 0.075);
}

body {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F6 46%, #F4F0ED 100%);
}


.hero {
  background:
    linear-gradient(135deg, #F4F0ED 0%, #ECE6E1 100%);
  border-bottom: 1px solid rgba(10, 14, 20, 0.08);
}

.hero-content {
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.hero-sub,
.section-sub,
.solution-desc,
.news-excerpt,
.footer-brand p,
.footer-grid address {
 font-style: normal;
}

.hero-stat-label,
.news-date,
.footer-copy,
.footer-legal a,
.footer-col a {
  color: var(--text-muted);
}

.hero-stats {
  border-top-color: rgba(10, 14, 20, 0.16);
}

.solutions,
.news,
.footer {
  background:
    linear-gradient(180deg, var(--bg-secondary) 0%, #ECE8E3 100%);
}

.markets {
  background: #FFFFFF;
  border-top: 1px solid rgba(10, 14, 20, 0.08);
  border-bottom: 1px solid rgba(10, 14, 20, 0.08);
}

.solution-card,
.news-card {
  border-color: var(--card-border);
  box-shadow: var(--soft-shadow-sm);
}

.solution-card:hover,
.news-card:hover {
  box-shadow: var(--soft-shadow);
  border-color: rgba(10, 14, 20, 0.20);
}

.solution-img,
.news-img {
  background:
    linear-gradient(135deg, #DDD6CF 0%, #F0ECE8 100%);
}

.solution-img img,
.news-img img {
  filter: contrast(1.04) saturate(1.03);
}

.solution-tag,
.news-tag {
  box-shadow: 0 8px 20px rgba(160, 24, 24, 0.24);
}

.solution-feature {
  color: #30343A;
}

.market-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.market-item:hover .market-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.30) 42%,
    rgba(0, 0, 0, 0.86) 100%
  );
}

.accreditations-section {
  background: #FFFFFF;
  border-top: 1px solid rgba(10, 14, 20, 0.08);
}

.accred-logo-item img {
  filter: contrast(1.06) saturate(1.02);
}

.cta-banner {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 -1px 0 rgba(10, 14, 20, 0.08);
}

.footer {
  border-top-color: rgba(10, 14, 20, 0.14);
}

.footer-grid {
  border-bottom-color: rgba(10, 14, 20, 0.14);
}

/* ============================================================
   MARKETS SECTION SOFTENING
   Lightens the market imagery and blends the section into the
   warmer, premium technical palette used across the site.
   ============================================================ */
.markets {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F5F1EE 100%);
}

.markets-grid {
  gap: clamp(10px, 1.15vw, 18px);
}

.market-item {
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.085);
  background: #EDE7E2;
  isolation: isolate;
}

.market-img-bg img {
  filter: brightness(1.12) contrast(0.94) saturate(0.88);
  transform: scale(1.01);
}

.market-item:hover .market-img-bg img {
  transform: scale(1.045);
  filter: brightness(1.14) contrast(0.96) saturate(0.92);
}

.market-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(245, 241, 238, 0.12) 0%,
      rgba(40, 44, 50, 0.10) 38%,
      rgba(12, 16, 22, 0.48) 100%
    ),
    linear-gradient(
      to right,
      rgba(244, 239, 235, 0.10) 0%,
      transparent 52%
    );
}

.market-item:hover .market-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(245, 241, 238, 0.08) 0%,
      rgba(40, 44, 50, 0.13) 38%,
      rgba(12, 16, 22, 0.56) 100%
    ),
    linear-gradient(
      to right,
      rgba(244, 239, 235, 0.08) 0%,
      transparent 52%
    );
}

.market-content {
  padding: clamp(24px, 2.3vw, 36px);
  background: linear-gradient(to top, rgba(7, 9, 12, 0.18), transparent 100%);
}

.market-content::before {
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.market-num {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 10px rgba(0,0,0,0.22);
}

.market-name {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0,0,0,0.28);
}

/* ============================================================
   MARKETS WIDTH ALIGNMENT
   Keeps "Markets We Serve" aligned to the same content width as
   the "What We Build" section instead of running wider/full-bleed.
   ============================================================ */
@media (min-width: 1100px) {
  .markets .container {
    max-width: min(1760px, 100%) !important;
    padding-inline: var(--container-pad) !important;
  }
}

/* ============================================================
   MARKETS IMAGE INTEGRATION PASS
   Further softens market photography so it supports the layout
   rather than overpowering the surrounding premium light design.
   ============================================================ */
.market-img-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 242, 238, 0.24) 0%, rgba(236, 229, 222, 0.14) 52%, rgba(28, 32, 38, 0.24) 100%),
    rgba(238, 231, 224, 0.10);
  mix-blend-mode: screen;
}

.market-img-bg img {
  filter: grayscale(0.14) sepia(0.10) brightness(1.16) contrast(0.86) saturate(0.72);
}

.market-item:hover .market-img-bg img {
  filter: grayscale(0.10) sepia(0.08) brightness(1.15) contrast(0.90) saturate(0.80);
}


.market-item:hover .market-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(246, 242, 238, 0.16) 0%,
      rgba(64, 68, 74, 0.08) 42%,
      rgba(18, 22, 28, 0.46) 100%
    ),
    linear-gradient(
      to right,
      rgba(246, 242, 238, 0.10) 0%,
      transparent 58%
    );
}

.market-item {
  box-shadow: 0 12px 30px rgba(18, 24, 32, 0.065);
  border: 1px solid rgba(10, 14, 20, 0.08);
}

.market-name {
  text-shadow: 0 2px 12px rgba(0,0,0,0.24);
}

/* ============================================================
   CENTERED CONTENT SECTION HEADERS
   Centers the "What We Build" and "Markets We Serve" header
   groups so they sit visually in the middle of their sections.
   ============================================================ */
.solutions .section-header,
.markets .section-header {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.solutions .section-sub,
.markets .section-sub {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1100px) {
  .solutions .section-header,
  .markets .section-header {
    display: block !important;
  }

  .solutions .section-header .section-sub,
  .markets .section-header .section-sub {
    max-width: 680px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ============================================================
   FINAL POLISH PASS
   Refines spacing, interaction states, cards, footer hierarchy,
   and responsive presentation for a more production-ready finish.
   ============================================================ */
.hero-content {
  padding-top: clamp(10px, 2vh, 28px);
}

.hero-eyebrow {
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.hero-title {
  max-width: 760px;
}

.hero-sub {
  max-width: 610px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.72;
  margin-bottom: 34px;
}

.hero-actions {
  gap: 14px;
  margin-bottom: 54px;
}
.hero-actions a {
    margin-bottom: 20px;
    min-width: 250px;
}

.btn {
  letter-spacing: 0.01em;
}

.btn-lg {
  padding: 15px 25px;
}

.btn-primary {
  box-shadow: 0 12px 28px rgba(160, 24, 24, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(160, 24, 24, 0.30);
}

.btn-secondary {
  background: rgba(255,255,255,0.58);
  border-color: rgba(10, 14, 20, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.86);
  border-color: rgba(10, 14, 20, 0.30);
  transform: translateY(-1px);
}

.hero-stats {
  gap: clamp(30px, 4vw, 58px);
}

.hero-stat-value {
  letter-spacing: -0.015em;
}

.solutions-grid {
  align-items: stretch;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(204,31,31,0.08));
  opacity: 0;
  transition: opacity var(--transition-md);
  z-index: 2;
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.solution-card:hover .solution-img img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(1.05);
}

.solution-title {
  font-size: clamp(25px, 2vw, 32px);
}

.solution-desc {
  font-size: 15px;
}

.solution-features {
  margin-top: auto;
}

.solution-link {
  align-self: flex-start;
}

.markets-grid {
  margin-top: 54px;
}

.market-item {
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
}

.market-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18, 24, 32, 0.10);
  border-color: rgba(10, 14, 20, 0.13);
}

.market-content::before {
  transition: width var(--transition-md), background var(--transition-md);
}

.market-item:hover .market-content::before {
  width: 54px;
  background: rgba(255,255,255,0.92);
}

.market-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
}

.market-name {
  letter-spacing: 0.015em;
}

.accreditations-section {
  padding-top: clamp(70px, 7vw, 108px);
  padding-bottom: clamp(70px, 7vw, 108px);
}

.accred-logos-row {
  filter: drop-shadow(0 10px 24px rgba(18,24,32,0.045));
}

.cta-banner-inner {
  border-radius: calc(var(--radius-lg) + 4px);
}

.footer {
  padding-top: clamp(72px, 7vw, 104px);
}

.footer-grid {
  align-items: start;
}

.footer-col-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #171A1F;
}

.footer-col a,
.footer-legal a {
  transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover,
.footer-legal a:hover {
  color: var(--red);
}

.footer-brand img {
  margin-bottom: 22px;
}

.footer-social a {
  background: rgba(255,255,255,0.35);
}

.footer-social a:hover {
  color: var(--red);
  border-color: rgba(204,31,31,0.28);
  background: rgba(204,31,31,0.06);
}

@media (max-width: 1024px) {
  .hero-title {
    max-width: 680px;
  }

  .hero-sub {
    max-width: 620px;
  }

  .market-item {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 62px);
    line-height: 1.02;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 42px;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .solution-body {
    padding: 28px 24px 30px;
  }

  .markets-grid {
    gap: 14px;
  }

  .market-content {
    padding: 24px;
  }
}




/* ============================================================
   JOOMLA/T4 EXACT STRUCTURAL ALIAS LAYER
   Minimal mapping only. Component styling remains from concept CSS.
   ============================================================ */
:root {
  --t4-primary: var(--red);
  --t4-link-hover-color: var(--red);
  --t4-body-color: var(--text-primary);
  --t4-body-bg: var(--bg-primary);
  --t4-font-family-base: var(--font-ui);
  --t4-font-family-heading: var(--font-display);
}
html {
  scroll-behavior: auto;      /* let the JS handle smooth scrolling */
  scroll-padding-top: 96px;   /* header (80px) + a little breathing room */
}
body.site-default {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-ui) !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}
.t4-wrapper, .t4-content, .t4-content-inner { overflow: clip; }
.t4-module, .module-inner, .module-ct, .custom { width: 100%; }
.custom > p:has(.circuit-trace) { margin: 0; }
.t4-section-inner.container,
.container,
.container-xxl {
  width: 100%;
  max-width: var(--container-max) !important;
  margin-inline: auto;
  padding-inline: var(--container-pad) !important;
}

/* Header: concept .nav scoped to Joomla #t4-header */
#t4-header.t4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: visible;
}
#t4-header.t4-header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
#t4-header .nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: var(--container-max) !important;
  margin-inline: auto;
  padding-inline: var(--container-pad) !important;
}
#t4-header .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
}
#t4-header .nav-logo img {
  height: 100px !important;
  width: auto !important;
  max-width: none !important;
}
#t4-header .navbar,
#t4-header .navbar-expand-lg { margin: 0; padding: 0; display: flex; align-items: center; }
#t4-header .navbar-toggler { display: none !important; }
#t4-header .t4-megamenu {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  flex-basis: auto !important;
}
#t4-header .navbar-nav.level0 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: clamp(24px, 2.2vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
#t4-header .nav-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0;
  height: 44px;
}
#t4-header .nav-link:hover,
#t4-header .nav-link.nav-active { color: var(--text-primary); background: var(--border); }
#t4-header .nav-cta { margin-left: 16px; }
#t4-header .nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  border: 0;
  background: transparent;
}
#t4-header .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ED1C24;
  border-radius: 2px;
  transition: var(--transition-md);
}
/* Joomla wrappers should behave exactly like concept sections */
#t4-section-1.home {
  min-height: 100vh;
  padding-top: 68px;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 5px solid var(--red);
}
#t4-section-1 > .t4-section-inner.container { max-width: none !important; padding: 0 !important; }
#t4-section-1 .container { position: relative; z-index: 2; }
#t4-section-1 .hero-grid-overlay { background-image: url('/images/circuit-pattern.svg') !important; }
#t4-section-1 .hero-title,
#t4-section-1 .hero-title em,
.section-title,
.solution-title,
.market-name,
.cta-banner-title { font-weight: 700 !important; }
.hero-stat-value { font-weight: 700 !important; }
.section-label,
.hero-eyebrow,
.solution-subtitle,
.solution-tag,
.btn,
.hero-stat-label,
.market-num,
#t4-footnav .module-title,
#t4-footnav .footer-col-title { font-weight: 700 !important; }

#t4-section-2.solutions { border-bottom: 5px solid var(--red); }
#t4-section-3.news { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-secondary) 0%, #ECE8E3 100%); border-bottom: 5px solid var(--red); }
#t4-section-4.news { background: var(--bg-primary); border-bottom: 5px solid var(--red); }
#t4-section-4.news .section-header { display: block !important; grid-template-columns: none !important; text-align: center; max-width: 820px; margin: 0 auto 56px; }
#t4-section-4.news .section-sub { max-width: 720px; margin-inline: auto !important; }
#t4-section-5.certs { background: #fff; border-bottom: 5px solid var(--red); }
#t4-section-5 > .t4-section-inner.container { max-width: none !important; padding-inline: 0 !important; }
#t4-section-6 { background: var(--red); color: #fff; padding-block: clamp(48px, 6vw, 80px); border-bottom: 5px solid var(--red); position: relative; overflow: hidden; }
#t4-section-6::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.14), transparent 34%); pointer-events: none; }
#t4-section-6 .t4-section-inner,
#t4-section-6 .custom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
#t4-section-6 .custom > p { margin: 0; }
#t4-section-6 .cta-banner-title { color: #fff; }
#t4-section-6 .cta-banner-sub { color: rgba(255,255,255,0.82); }

/* Footer mapped exactly to concept footer visuals */
#t4-footnav,
#t4-footer {
  background: #ffffff !important;
  color: var(--text-primary) !important;
}
#t4-footnav {
  padding: clamp(64px, 7vw, 112px) 0 32px !important;
  border-bottom: 0 !important;
}
#t4-footnav .t4-row {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin: 0 !important;
}
#t4-footnav .t4-col { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; }
#t4-footnav .footnav-1 img { height: 64px !important; width: auto; margin-bottom: 24px; }
#t4-footnav .module-title,
#t4-footnav .footer-col-title {
  font-family: var(--font-display);
  font-size: 18px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #171A1F !important;
  margin: 0 0 16px !important;
}

#t4-footnav .footnav-1 p,
#t4-footnav address,
#t4-footnav .nav-link,
#t4-footer .nav-link,
#t4-footer .footer1 {
  font-family: var(--font-ui);
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #5F646C !important;
  font-weight: 400 !important;
}
#t4-footnav .footnav-1 p,
#t4-footnav address { max-width: 360px; margin: 0 0 20px; font-style: normal; }
#t4-footnav .navbar,
#t4-footer .navbar { padding: 0; margin: 0; display: block; }
#t4-footnav .navbar-nav,
#t4-footer .navbar-nav { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
#t4-footnav .nav-link,
#t4-footer .nav-link { padding: 0 !important; background: transparent !important; text-decoration: none; }
#t4-footnav .nav-link:hover,
#t4-footer .nav-link:hover { color: var(--text-primary) !important; }
#t4-footnav .footer-social { display: flex; gap: 12px; margin-top: 24px; }
#t4-footnav .footer-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #5F646C; background: #F0EDE9; }
#t4-footnav .footer-social a:hover { background: var(--red); color: #fff; }
#t4-footer { padding: 20px 0 26px !important; }
#t4-footer .t4-row { align-items: center; margin: 0 !important; }
#t4-footer .footer-logo .navbar-nav { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
#back-to-top { display: none !important; }
.is-visible { opacity: 1 !important; transform: none !important; }

@media (max-width: 1320px) {
  #t4-header .navbar-nav.level0 { gap: 18px; }
  #t4-header .nav-link { font-size: 13px; }
  #t4-header .nav-logo img { height: 84px !important; }
}
@media (max-width: 1100px) {
  #t4-header .t4-megamenu { position: fixed; top: 68px; left: 0; right: 0; display: none !important; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 16px var(--container-pad) 24px; }
  #t4-header .t4-megamenu.is-open { display: block !important; }
  #t4-header .navbar-nav.level0 { flex-direction: column !important; align-items: stretch; gap: 0; }
  #t4-header .nav-link { display: block; padding: 12px 0; font-size: 16px; }
  #t4-header .nav-cta { display: none; }
  #t4-header .nav-hamburger { display: flex; }
  #t4-section-6 .t4-section-inner, #t4-section-6 .custom { flex-direction: column; align-items: flex-start; }
  #t4-footnav .t4-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #t4-header .nav-logo img { height: 72px !important; }
  #t4-footnav .t4-row { grid-template-columns: 1fr; gap: 34px; }
  #t4-footer .footer-logo .navbar-nav { justify-content: flex-start; }
}


/* Concept tweaks except global 320 font reset */
/* ============================================================
   TWEAKS.CSS  —  Targeted overrides only.
   Each block is labeled so you can request changes by number.
   ============================================================ */


/* ------------------------------------------------------------
   CHANGE #2 — Section bottom border (~5px brand red)
   Applied to each top-level <section> and the <footer>.
   Brand red = var(--red) = #CC1F1F
   ------------------------------------------------------------ */
.hero,
.solutions,
.markets,
.news,
.cta-banner,
.footer {
  border-bottom: 5px solid var(--red);
}


/* ------------------------------------------------------------
   CHANGE #3 — Markets We Serve: remove .market-img-bg overlay
   Removes the lightening/tinting overlay on top of market images.
   ------------------------------------------------------------ */
.market-img-bg::after {
  content: none !important;
  background: none !important;
}
.market-img-bg {
  background: none !important;
}
.market-img-bg img {
  filter: none !important;
}
.market-item:hover .market-img-bg img {
  filter: none !important;
}


/* ------------------------------------------------------------
   CHANGE #4 — LinkedIn feed section title
   Match the centered styling used by .solutions / .markets
   so it visually matches the other section headers.
   The base styles.css turns .section-header into a 2-column grid
   on desktop, so we must explicitly reset it back to block flow.
   ------------------------------------------------------------ */
.news .section-header,
.news .section-header * {
  /* nothing — placeholder so selector chain reads cleanly */
}

.news .section-header {
  display: block !important;
  grid-template-columns: none !important;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
  gap: 0 !important;
}
.news .section-header .section-sub {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ------------------------------------------------------------
   CHANGE #5 — Footer column titles font-size 18px
   ------------------------------------------------------------ */
.footer-col-title {
  font-size: 18px !important;
}


/* ------------------------------------------------------------
   CHANGE #6 — Hero (#home) background:
   Replace the square grid overlay with a circuit-board pattern.
   Keeps the same colour (var(--border)) and subtle feel.
   ------------------------------------------------------------ */
.hero-grid-overlay {
  /* Wipe the original two crossed gradients */
  background-image: url("/images/circuit-pattern.svg") !important;
  background-repeat: repeat !important;
  background-size: 480px 480px !important;
  /* currentColor inside the SVG inherits from this color */
  color: var(--border);
  opacity: 0.1; /* match original feel */
}

.dark-mode .hero-grid-overlay {
  color: var(--border);
}
.solutions, .news, .footer {
  background: #ffffff;
}

/* ============================================================
   FINAL SCREENSHOT ALIGNMENT PATCH
   Matches supplied screenshot 1 against Joomla screenshot 2.
   ============================================================ */

/* Overall width: match the 1760px design canvas exactly. */
html body.site-default {
  --container-max: 1760px;
  --container-pad: clamp(20px, 3vw, 56px);
}
html body.site-default .container,
html body.site-default .container-xxl,
html body.site-default .t4-section-inner.container,
html body.site-default #t4-header .nav-inner,
html body.site-default #t4-footnav .t4-section-inner.container,
html body.site-default #t4-footer .t4-section-inner.container {
  max-width: 1760px !important;
  padding-left: clamp(20px, 3vw, 56px) !important;
  padding-right: clamp(20px, 3vw, 56px) !important;
}

/* Header: prevent logo/menu visual drop. Concept logo overhangs upward inside a 68px bar. */
html body.site-default #t4-header.t4-header {
  height: 100px !important;
  align-items: center !important;
  overflow: visible !important;
}
html body.site-default #t4-header .nav-inner {
  height: 68px !important;
  align-items: center !important;
  transform: none !important;
}
html body.site-default #t4-header .nav-logo,
html body.site-default #t4-header .navbar,
html body.site-default #t4-header .t4-megamenu,
html body.site-default #t4-header .navbar-nav.level0 {
  height: 68px !important;
  align-items: center !important;
}
html body.site-default #t4-header .nav-logo img {
  height: 70px !important;
  transform: translateY(-1px) !important;
}
html body.site-default #t4-header .nav-link {
  line-height: 1 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
html body.site-default #t4-header .nav-cta .btn {
  min-height: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  width: 100%;
  margin-top: 5px;
}

/* Hero secondary button: design uses a filled pale-grey button, not white/outlined. */
html body.site-default .hero-actions .btn-secondary,
html body.site-default #t4-section-1 .btn-secondary {
  background: #E9E6E2 !important;
  border-color: #E9E6E2 !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}
html body.site-default .hero-actions .btn-secondary:hover,
html body.site-default #t4-section-1 .btn-secondary:hover {
  background: #DEDAD5 !important;
  border-color: #DEDAD5 !important;
  color: var(--text-primary) !important;
}

/* Footer bottom: remove erroneous red line and tighten bottom spacing. */
html body.site-default #t4-footnav {
  border-bottom: 0 !important;
  padding-bottom: 30px !important;
}
html body.site-default #t4-footer {
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  border-bottom: 0 !important;
  padding-top: 18px !important;
  padding-bottom: 22px !important;
  margin: 0 !important;
}
html body.site-default #t4-footer::before,
html body.site-default #t4-footer::after,
html body.site-default #t4-footnav::before,
html body.site-default #t4-footnav::after {
  content: none !important;
  display: none !important;
}
html body.site-default #t4-footer .t4-section-inner.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.site-default #t4-footer .t4-row {
  margin: 0 !important;
  min-height: 0 !important;
}
html body.site-default #t4-footer .footer1 {
  margin: 0 !important;
}

/* ============================================================
   LIVE SCREENSHOT CORRECTION PATCH
   Checked against fresh browser captures of:
   - https://www.identitywebdesign.com/images/concepts/rockford4/
   - https://rock.identitytest.co.uk/
   ============================================================ */

/* Joomla's hero image was rendering one header-height lower than the concept. */
html body.site-default #t4-section-1 .hero-bg-image {
  top: calc(0vh - 68px) !important;
}

/* Footer: T4 splits the concept footer-bottom into #t4-footer. Make it compact. */
html body.site-default #t4-footnav {
  padding-top: clamp(64px, 7vw, 112px) !important;
  padding-bottom: 32px !important;
  border-bottom: 0 !important;
}
html body.site-default #t4-footnav > .t4-section-inner.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.site-default #t4-footnav .t4-row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.site-default #t4-footer {
  background: #ffffff !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 0 0 37px !important;
  min-height: 0 !important;
}
html body.site-default #t4-footer > .t4-section-inner.container {
  max-width: 1760px !important;
  padding-left: clamp(20px, 3vw, 56px) !important;
  padding-right: clamp(20px, 3vw, 56px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.site-default #t4-footer .t4-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 19px !important;
  height: auto !important;
}
html body.site-default #t4-footer .t4-col,
html body.site-default #t4-footer .footer,
html body.site-default #t4-footer .footer-logo {
  width: auto !important;
  max-width: none !important;
  flex: 0 1 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
html body.site-default #t4-footer .footer {
  flex: 1 1 auto !important;
}
html body.site-default #t4-footer .footer-logo {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
html body.site-default #t4-footer .mod-footer,
html body.site-default #t4-footer .footer1,
html body.site-default #t4-footer .navbar,
html body.site-default #t4-footer .navbar-nav {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}
html body.site-default #t4-footer .footer1 {
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: #6C7078 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body.site-default #t4-footer .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
  list-style: none !important;
}
html body.site-default #t4-footer .nav-item {
  margin: 0 !important;
  padding: 0 !important;
}
html body.site-default #t4-footer .nav-link,
html body.site-default #t4-footer .nav-link span,
html body.site-default #t4-footer .menu-item-title {
  display: inline !important;
  font-family: var(--font-ui) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: #6C7078 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
html body.site-default #t4-footer .nav-link:hover,
html body.site-default #t4-footer .nav-link:hover span,
html body.site-default #t4-footer .nav-link:hover .menu-item-title {
  color: #171A1F !important;
}

/* Prevent the generic section-divider rule from affecting T4 footer columns. */
html body.site-default #t4-footer .footer,
html body.site-default #t4-footer .footer-logo,
html body.site-default #t4-footer .t4-col {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
@media (min-width: 768px) {
  .t4-main-body {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}
#t4-masthead {
    margin-top: 68px;
}
.ja-masthead .ja-masthead-detail {
    padding: 7rem 0;
}

/* ============================================================
   ROCKFORD — Subpage Product Content v2
   Append after the existing custom.css. Header/footer untouched.
   ============================================================ */

html body.site-default #t4-main-body {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 92% 8%, var(--red-glow), transparent 28rem),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

html body.site-default #t4-main-body > .t4-section-inner.container {
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
}

html body.site-default #t4-main-body .t4-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 54px);
}

html body.site-default #t4-main-body .t4-row > .t4-col.col-md {
  flex: 1 1 auto;
  min-width: 0;
}

html body.site-default #t4-main-body .t4-row > .sidebar-r {
  flex: 0 0 clamp(260px, 21vw, 330px);
  width: clamp(260px, 21vw, 330px);
  max-width: 330px;
}

html body.site-default #t4-main-body .page-header h2,
html body.site-default #t4-main-body .article-body h3 {
  max-width: 900px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

html body.site-default #t4-main-body .article-body h3 {
  margin-top: clamp(34px, 5vw, 70px);
  font-size: clamp(30px, 4vw, 54px);
}

html body.site-default #t4-main-body .article-body > p {

  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
}

html body.site-default #t4-main-body .article-body > p:empty,
html body.site-default #t4-main-body .article-body > p:has(> br:only-child) {
  display: none;
}

html body.site-default #t4-main-body .wf-columns.product {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  align-items: stretch;
  gap: 0;
  margin: clamp(22px, 3vw, 42px) 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md), opacity .55s ease;
}

html body.site-default #t4-main-body .wf-columns.product::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .65s cubic-bezier(.2,.8,.2,1);
}

html body.site-default #t4-main-body .wf-columns.product:hover,
html body.site-default #t4-main-body .wf-columns.product:focus-within {
  transform: translateY(-4px);
  border-color: var(--card-border);
  box-shadow: 0 28px 70px rgba(13, 13, 13, .12);
}

html body.site-default #t4-main-body .wf-columns.product:hover::before,
html body.site-default #t4-main-body .wf-columns.product:focus-within::before,
html body.site-default #t4-main-body .wf-columns.product.is-visible::before {
  transform: scaleY(1);
}

html body.site-default #t4-main-body.product-reveal-ready .wf-columns.product {
  opacity: 0;
  transform: translateY(28px);
}

html body.site-default #t4-main-body.product-reveal-ready .wf-columns.product.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html body.site-default #t4-main-body.product-reveal-ready .wf-columns.product.is-visible:hover,
html body.site-default #t4-main-body.product-reveal-ready .wf-columns.product.is-visible:focus-within {
  transform: translateY(-4px);
}

html body.site-default #t4-main-body .wf-columns.product .wf-column {
  min-width: 0;
  width: auto !important;
  padding: clamp(24px, 3vw, 46px);
}

html body.site-default #t4-main-body .wf-columns.product .wf-column:not(:has(img)) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html body.site-default #t4-main-body .wf-columns.product .wf-column:not(:has(img)) > div {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html body.site-default #t4-main-body .wf-columns.product .wf-column:has(img) {
  height: auto;
  min-height: clamp(320px, 27vw, 430px);
  padding: 0;
  overflow: hidden;
  background: var(--bg-tertiary);
}

html body.site-default #t4-main-body .wf-columns.product .wf-column > p:has(img) {
  width: 100%;
  height: 100%;
  margin: 0;
}

html body.site-default #t4-main-body .wf-columns.product img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease, filter .55s ease;
}

html body.site-default #t4-main-body .wf-columns.product:hover img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

html body.site-default #t4-main-body .wf-columns.product h4 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: .96;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--text-primary);
}

html body.site-default #t4-main-body .wf-columns.product p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
}

html body.site-default #t4-main-body .wf-columns.product .wf-column:not(:has(img)) p:has(.btn) {
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 42px);
}

html body.site-default #t4-main-body .wf-columns.product .wf-column:not(:has(img)) p:has(.btn) .btn {
  margin: 0;
}

html body.site-default #t4-main-body .sidebar-r {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  padding-top: 4px;
}

html body.site-default #t4-main-body .sidebar-r .module-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(204,31,31,.055), transparent 45%),
    var(--card-bg);
  box-shadow: 0 14px 42px rgba(13, 13, 13, .06);
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
}

html body.site-default #t4-main-body .sidebar-r .module-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  opacity: .85;
}

html body.site-default #t4-main-body .sidebar-r .module-inner:hover {
  transform: translateX(-3px);
  border-color: rgba(204,31,31,.18);
  box-shadow: 0 20px 56px rgba(13, 13, 13, .09);
}

html body.site-default #t4-main-body .sidebar-r .module-title {
  margin: 0;
  padding: 22px 24px 17px 26px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--text-primary);
}

html body.site-default #t4-main-body .sidebar-r .navbar,
html body.site-default #t4-main-body .sidebar-r .navbar-nav {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

html body.site-default #t4-main-body .sidebar-r .nav-link {
  position: relative;
  display: block;
  padding: 13px 24px 13px 42px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: color var(--transition), background var(--transition), padding-left var(--transition), transform var(--transition);
}

html body.site-default #t4-main-body .sidebar-r .nav-link::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

html body.site-default #t4-main-body .sidebar-r .nav-link:hover,
html body.site-default #t4-main-body .sidebar-r .nav-link.is-active,
html body.site-default #t4-main-body .sidebar-r .nav-item.active > .nav-link,
html body.site-default #t4-main-body .sidebar-r .nav-item.current > .nav-link {
  color: var(--red);
  background: rgba(204, 31, 31, .055);
  padding-left: 48px;
}

html body.site-default #t4-main-body .sidebar-r .nav-link:hover::before,
html body.site-default #t4-main-body .sidebar-r .nav-link.is-active::before,
html body.site-default #t4-main-body .sidebar-r .nav-item.active > .nav-link::before,
html body.site-default #t4-main-body .sidebar-r .nav-item.current > .nav-link::before {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(204,31,31,.1);
  transform: translateY(-50%) scale(1.12);
}

html body.site-default #t4-main-body .sidebar-r .nav-item:last-child .nav-link {
  border-bottom: 0;
}

@media (max-width: 991.98px) {
  html body.site-default #t4-main-body .t4-row {
    flex-wrap: wrap;
    gap: 28px;
  }
  html body.site-default #t4-main-body .t4-row > .sidebar-r {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }
  html body.site-default #t4-main-body .sidebar-r { position: static; }
  html body.site-default #t4-main-body .sidebar-r .module-inner:hover { transform: none; }
  html body.site-default #t4-main-body .sidebar-r .navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  html body.site-default #t4-main-body { padding-top: 1rem; }
  html body.site-default #t4-main-body .wf-columns.product {
    grid-template-columns: 1fr;
    margin-block: 22px;
  }
  html body.site-default #t4-main-body .wf-columns.product .wf-column { padding: 26px; }
  html body.site-default #t4-main-body .wf-columns.product .wf-column:has(img) {
    height: clamp(230px, 64vw, 320px);
    min-height: clamp(230px, 64vw, 320px);
    padding: 0;
    order: -1;
  }
  html body.site-default #t4-main-body .wf-columns.product img { min-height: 0; }
  html body.site-default #t4-main-body .wf-columns.product .wf-column:not(:has(img)) p:has(.btn) {
    padding-top: 22px;
  }
  html body.site-default #t4-main-body .sidebar-r .navbar-nav { grid-template-columns: 1fr; }
}
/* My Style - AI - KEEP */
.ja-masthead-title {
    font-size: 5rem;
    text-shadow: 2px 2px #333;
}
.hero-inner {
    padding: 10px 0 80px 0;
}
.market-overlay{
    display: none;
}

.solution-img .solution-img-placeholder {
    border-bottom: 1px solid #ccc;
}




/* =============================================================
   CONTACT PAGE  —  append to custom.css
   Full-width map  ->  full-width form  ->  location card grid.
   Uses existing design tokens (--red, --card-bg, --font-display,
   --radius-*, --section-pad, etc.) so it inherits light/dark theme.
   Scoped to the Joomla contact article (view-article / item-237).
   ============================================================= */

/* --- Page scope + vertical rhythm ----------------------------------- */
/* Reduce the large template gap between the page banner and content
   (t4-main-body has ~112px top padding by default). Scoped to this page. */
body.item-237 #t4-main-body.t4-main-body,
body.item-237 .t4-section.t4-main-body {
  padding-top: clamp(24px, 3vw, 40px);
}
body.item-237 .com-content-article.item-page {
  padding-top: 0;
  padding-bottom: var(--section-pad);
}
body.item-237 .article-body {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 88px);
}

/* Hide the duplicate in-content "Contact" heading (banner shows title) */
body.item-237 #userForm > h2,
body.item-237 .article-body > h2:first-of-type {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   1) FULL-WIDTH MAP
   ============================================================ */
body.item-237 .article-body p:has(> iframe) {
  margin: 0;
}
body.item-237 .article-body iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 42vw, 520px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  filter: saturate(0.9);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.07);
}

/* ============================================================
   2) FULL-WIDTH CONTACT FORM  —  bold banner-style card
   ============================================================ */
.contact-form {
  position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--red-glow) 0%, transparent 55%),
    var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 44px rgba(0,0,0,0.06);
}
/* Thin brand accent bar down the left edge */
.contact-form::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
}

#userForm { position: relative; z-index: 1; }
/* Form spans the full width of the card */
#userForm .formContainer { max-width: none; width: 100%; }

/* Injected heading + subline above the fields */
#userForm .formContainer::before {
  content: "Send Us A Message";
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}
#userForm .formContainer::after {
  content: "Tell us about your project and our engineering team will be in touch.";
  display: block;
  font-family: var(--font-ui);
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

/* Two-column layout: the template splits fields into two .col-md-6
   columns (Name/Email/Number  |  Message/Send). Make them equal width
   and fully responsive (stack to one column on narrow screens). */
#userForm .formContainer > .row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  width: 100%;
}
#userForm .formContainer > .row > [class*="col-md-"] {
  flex: 1 1 320px;      /* equal width, wraps below ~320px each */
  min-width: 0;         /* allow shrink so inputs never overflow */
  max-width: 100%;
  padding: 0;
  width: auto;
  display: flex;
  flex-direction: column;
}
/* Each field block fills its column */
#userForm .rsform-block {
  display: block;
  width: 100%;
  margin: 0 0 20px 0;
}
#userForm .rsform-block:last-child { margin-bottom: 0; }

/* Make the Message column's textarea grow to balance the two columns */
#userForm .rsform-block-message { flex: 1; display: flex; flex-direction: column; }
#userForm .rsform-block-message .formControls { flex: 1; display: flex; flex-direction: column; }

/* On narrow screens the two columns stack full width automatically
   via flex-wrap; nothing extra needed. */

/* Labels */
#userForm .formControlLabel {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 0 8px 0;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
#userForm .formControls {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
  padding: 0;
}
#userForm .formRequired { color: var(--red); margin-left: 3px; font-weight: 700; }

/* Inputs + textarea */
#userForm .formControls .rsform-input-box,
#userForm .formControls .rsform-text-box,
#userForm input.rsform-input-box,
#userForm textarea.rsform-text-box,
#userForm .rsform-input-box,
#userForm .rsform-text-box,
#userForm .form-control {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.4;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
  box-shadow: none;
  appearance: none;
}
#userForm textarea.rsform-text-box { min-height: 160px; resize: vertical; }
#userForm .form-control::placeholder { color: var(--text-muted); }
#userForm .form-control:hover { border-color: var(--text-muted); }
#userForm .form-control:focus {
  outline: none;
  background: var(--bg-primary);
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Validation messages */
#userForm .formValidation { display: block; margin-top: 6px; }
#userForm .formNoError { font-size: 12.5px; color: var(--text-muted); }
#userForm .formError,
#userForm span.formError { font-size: 12.5px; color: var(--red); }
#userForm .rsform-error .form-control { border-color: var(--red); }

/* Submit button — full width of its column, text centred */
#userForm .rsform-block-send .formControlLabel { display: none; }
#userForm .rsform-block-send .formControls { width: 100%; }
#userForm .rsform-submit-button.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 16px 24px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
#userForm .rsform-submit-button.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
#userForm .rsform-submit-button.btn-primary:active { transform: translateY(0); }

/* ============================================================
   3) LOCATIONS  —  intro heading + card grid
   ============================================================ */

/* Intro block "Our Locations" */
.our-locations { text-align: center; max-width: 760px; margin-inline: auto; }
.our-locations h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 14px 0;
}
.our-locations h4::before {
  content: "Get In Touch";
  display: block;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.our-locations p {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Card grid: wraps the three site blocks -----------------------
   We turn .rendlesham / .worksop / .salisbury into equal-height cards
   and lay them out with a flex wrap so no markup change is required. */
.rendlesham,
.worksop,
.salisbury {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  /* flex sizing: 3-up on desktop, 1-up on mobile */
  flex: 1 1 320px;
  min-width: 300px;
}
.rendlesham:hover,
.worksop:hover,
.salisbury:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
}

/* Group the three cards into one flex row.
   They are siblings, so we wrap them visually with a contents-level
   flow: place them side by side using the article-body flex + a
   negative-margin row via a shared parent is not available, so we
   use CSS grid on the article body children order instead. */
body.item-237 .article-body {
  /* switch to grid so the 3 site cards can share a row */
  display: grid;
  grid-template-columns: 1fr;
}
body.item-237 .article-body > .rendlesham,
body.item-237 .article-body > .worksop,
body.item-237 .article-body > .salisbury {
  flex: none;
}
@media (min-width: 900px) {
  body.item-237 .article-body {
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
  }
  /* full-width rows */
  body.item-237 .article-body > p:has(> iframe),
  body.item-237 .article-body > .contact-form,
  body.item-237 .article-body > .our-locations,
  body.item-237 .article-body > .supported,
  body.item-237 .article-body > .row {
    grid-column: 1 / -1;
  }
  /* three cards each span two of six columns => 3-up */
  body.item-237 .article-body > .rendlesham { grid-column: 1 / 3; }
  body.item-237 .article-body > .worksop    { grid-column: 3 / 5; }
  body.item-237 .article-body > .salisbury  { grid-column: 5 / 7; }
}

/* Card image header */
.rendlesham > div:has(> img),
.worksop > div:has(> img),
.salisbury > div:has(> img) { margin: 0; }
.rendlesham img,
.worksop img,
.salisbury img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

/* Card body padding — apply to the text elements after the image */
.rendlesham h4,
.worksop h4,
.salisbury h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 24px 28px 4px 28px;
  order: -1; /* keep title above image visually? no—keep natural */
}
/* Reset order (title sits above the image in markup already) */
.rendlesham h4, .worksop h4, .salisbury h4 { order: 0; }

.rendlesham > p,
.worksop > p,
.salisbury > p {
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 28px 14px 28px;
}
/* Address paragraph (first p after image) — tighter, emphasised */
.rendlesham > p:nth-of-type(1),
.worksop > p:nth-of-type(1),
.salisbury > p:nth-of-type(1) {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.55;
}
.rendlesham > p strong,
.worksop > p strong,
.salisbury > p strong { color: var(--text-primary); font-weight: 700; }

/* Phone line accent (the "Phone: ..." paragraph) */
.rendlesham > p:nth-of-type(2),
.worksop > p:nth-of-type(2),
.salisbury > p:nth-of-type(2) {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
/* Push the last description paragraph to give card even bottom padding */
.rendlesham > p:last-of-type,
.worksop > p:last-of-type,
.salisbury > p:last-of-type { margin-bottom: 28px; }

/* ============================================================
   "SUPPORTED BY AQ GROUP"  —  full-width closing feature banner
   ============================================================ */
.supported {
  position: relative;
  overflow: hidden;
  background: var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}
.supported h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 14px 0;
}
.supported h4::before {
  content: "Global Backing";
  display: block;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}
.supported p {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   TOP ADDRESS SUMMARY ROW (Rendlesham summary + office contacts)
   ============================================================ */
body.item-237 .article-body > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
}
body.item-237 .article-body > .row [class*="col-"] { flex: 1 1 260px; }
body.item-237 .article-body > .row img {
  width: 100%;
  border-radius: var(--radius-md);
}
body.item-237 .article-body > .row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}
body.item-237 .article-body > .row p {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}
.office-contact-details { list-style: none; padding: 0; margin: 0; }
.office-contact-details li {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--red);
  font-size: 15px;
}
.case-study .wf-columns{
    padding: clamp(24px, 3vw, 46px);
    margin: clamp(22px, 3vw, 42px) 0;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
    transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md), opacity .55s ease;
}
.case-study .wf-columns:hover{
    transform: translateY(-4px);
    border-color: var(--card-border);
    box-shadow: 0 28px 70px rgba(13, 13, 13, .12);
}
.case-study .wf-columns:hover::before{
    transform: scaleY(1);
}
.case-study .wf-columns::before{
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: 4px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}
.case-study .wf-columns h2{
        font-size: clamp(28px, 3vw, 44px);
        text-transform: uppercase;
}
.case-study #why-choose-rock h2, .case-study #the-challenge h2, .case-study #the-solution h2, .case-study #the-results h2 {
    display: flex;
    align-items: center;
    gap: 15px;
}
.case-study #why-choose-rock h2::before {
    content: "";
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    background: url('/images/icons/why-choose-rock.png') no-repeat center;
    background-size: contain;
}
.case-study #the-challenge h2::before {
    content: "";
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    background: url('/images/icons/the-challenge.png') no-repeat center;
    background-size: contain;
}
.case-study #the-solution h2::before {
    content: "";
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    background: url('/images/icons/the-solution.png') no-repeat center;
    background-size: contain;
}
.case-study #the-results h2::before {
    content: "";
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    background: url('/images/icons/the-results.png') no-repeat center;
    background-size: contain;
}
.blog-page .item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
    transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md), opacity .55s ease;
}
.blog-page .item-image {
    order: 2;
}
.blog-page .item-content {
    order: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-page .items-row .col-lg-6{
    margin-bottom: 2rem;
}
.blog-page .readmore .btn{
    color: #ffffff;
    background-color: #ED1C24;
    transition-duration: 0.2s;
}
.blog-page .readmore .btn:hover{
    opacity: 0.85 !important;
    background-color: #ED1C24;
}



















:root{
  --red:#e2231a;
  --red-dark:#b91b13;
  --ink:#141618;
  --graphite:#2a2e33;
  --muted:#5c636b;
  --line:#e6e8eb;
  --bg:#ffffff;
  --bg-soft:#f5f6f8;
  --dark:#181b1f;
  --radius:6px;
  --wrap:1180px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;color:var(--ink);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px}
h1,h2,h3,h4{font-family:'Barlow Condensed',sans-serif;line-height:1.05;letter-spacing:.5px}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* HEADER */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line);transition:box-shadow .25s}
.site-header.scrolled{box-shadow:0 6px 24px rgba(0,0,0,.08)}
.header-inner{max-width:1280px;margin:0 auto;padding:0 28px;height:74px;display:flex;align-items:center;gap:28px}
.logo{display:flex;align-items:center;gap:12px}
.logo-mark{background:var(--red);color:#fff;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:26px;line-height:1;padding:9px 10px 7px;border-radius:3px;letter-spacing:-1px}
.logo-text{font-size:12px;line-height:1.15;color:var(--ink);text-transform:uppercase;letter-spacing:1px;font-weight:500}
.logo-text strong{font-weight:700}
.main-nav{display:flex;gap:22px;margin-left:auto;flex-wrap:wrap}
.main-nav a{font-size:13.5px;font-weight:600;color:var(--graphite);padding:6px 0;position:relative;transition:color .2s}
.main-nav a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--red);transition:width .25s}
.main-nav a:hover,.main-nav a.active{color:var(--red)}
.main-nav a:hover::after,.main-nav a.active::after{width:100%}
.btn-contact{background:var(--red);color:#fff;font-weight:700;font-size:13px;letter-spacing:1px;text-transform:uppercase;padding:12px 22px;border-radius:3px;transition:background .2s,transform .2s}
.btn-contact:hover{background:var(--red-dark);transform:translateY(-1px)}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px}
.nav-toggle span{width:26px;height:2px;background:var(--ink);transition:.3s}

/* HERO */
.hero{position:relative;min-height:420px;display:flex;align-items:center;
  background:linear-gradient(120deg,#20242a 0%,#33383f 55%,#4a5058 100%);overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;
  background:
    repeating-linear-gradient(115deg,rgba(255,255,255,.03) 0 2px,transparent 2px 22px),
    radial-gradient(circle at 78% 30%,rgba(226,35,26,.28),transparent 55%);}
.hero::after{content:"";position:absolute;right:-60px;bottom:-60px;width:420px;height:420px;
  border:60px solid rgba(226,35,26,.10);border-radius:50%;}
.hero-content{position:relative;z-index:2;max-width:var(--wrap);margin:0 auto;padding:60px 28px;width:100%}
.hero-crumb{color:rgba(255,255,255,.6);font-size:13px;letter-spacing:2px;text-transform:uppercase;margin-bottom:14px}
.hero-title{font-size:88px;font-weight:700;text-transform:uppercase;letter-spacing:2px}
.hero-sub{font-size:19px;font-weight:500;margin-top:8px;max-width:640px}

/* SECTIONS */
.section{padding:88px 0}
.eyebrow{display:inline-block;color:var(--red);font-weight:700;font-size:12.5px;letter-spacing:2.5px;text-transform:uppercase;margin-bottom:14px}
.section-head{max-width:680px;margin-bottom:52px}
.section-head h2{font-size:44px;font-weight:700;margin-bottom:14px}
.section-head p{color:var(--muted);font-size:17px}
.section-head.light .eyebrow,.section-head.light h2{color:#fff}
.section-head.light p{color:rgba(255,255,255,.75)}

/* INTRO */
.intro-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px;align-items:start}
.intro-lead h2{font-size:42px;font-weight:700}
.intro-body p{color:var(--muted);font-size:16.5px;margin-bottom:18px}
.intro-body strong{color:var(--ink)}

/* STATS */
.stats{background:var(--ink);color:#fff}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:44px 28px}
.stat{text-align:center;border-right:1px solid rgba(255,255,255,.12)}
.stat:last-child{border-right:0}
.stat-num{display:block;font-family:'Barlow Condensed',sans-serif;font-size:52px;font-weight:700;color:var(--red);line-height:1}
.stat-label{color:rgba(255,255,255,.7);font-size:13px;letter-spacing:1.5px;text-transform:uppercase}

/* UNIT CARDS */
.unit-cards{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.unit-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:40px;transition:transform .25s,box-shadow .25s,border-color .25s}
.unit-card:hover{transform:translateY(-6px);box-shadow:0 24px 50px rgba(0,0,0,.09);border-color:transparent}
.unit-icon{width:64px;height:64px;background:var(--bg-soft);border-radius:8px;display:grid;place-items:center;margin-bottom:22px}
.unit-icon svg{width:38px;height:38px}
.unit-card h3{font-size:28px;font-weight:700;margin-bottom:12px}
.unit-card p{color:var(--muted);font-size:15.5px;margin-bottom:18px}
.unit-list{list-style:none;margin-bottom:22px}
.unit-list li{padding-left:24px;position:relative;color:var(--graphite);font-size:14.5px;margin-bottom:8px;font-weight:500}
.unit-list li::before{content:"";position:absolute;left:0;top:8px;width:9px;height:9px;background:var(--red);border-radius:2px}
.unit-link{color:var(--red);font-weight:700;font-size:14.5px;letter-spacing:.3px}
.unit-link:hover{color:var(--red-dark)}

/* CAPABILITY */
.capability{background:var(--dark);color:#fff}
.facility-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.facility{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);border-radius:var(--radius);padding:32px;transition:background .25s,border-color .25s}
.facility:hover{background:rgba(226,35,26,.10);border-color:rgba(226,35,26,.4)}
.facility-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--red);background:rgba(226,35,26,.14);padding:5px 10px;border-radius:3px;margin-bottom:16px}
.facility h3{font-size:30px;font-weight:700;margin-bottom:10px}
.facility p{color:rgba(255,255,255,.7);font-size:15px}

/* APPROACH */
.approach-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.approach-text h2{font-size:40px;font-weight:700;margin-bottom:16px}
.approach-text p{color:var(--muted);font-size:16px;margin-bottom:16px}
.approach-steps{display:flex;flex-direction:column;gap:2px}
.step{display:flex;gap:22px;padding:24px;background:var(--bg-soft);border-left:3px solid transparent;transition:.25s;border-radius:0 var(--radius) var(--radius) 0}
.step:hover{background:#fff;border-left-color:var(--red);box-shadow:0 12px 30px rgba(0,0,0,.06)}
.step-n{font-family:'Barlow Condensed',sans-serif;font-size:34px;font-weight:700;color:var(--red);line-height:1}
.step h4{font-size:20px;font-weight:600;margin-bottom:4px}
.step p{color:var(--muted);font-size:14.5px;margin:0}

/* MARKETS */
.markets{background:var(--bg-soft)}
.market-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.market{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:34px 28px;font-family:'Barlow Condensed',sans-serif;font-size:24px;font-weight:600;position:relative;transition:.25s;overflow:hidden}
.market::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--red);transform:scaleY(0);transform-origin:top;transition:transform .3s}
.market:hover{transform:translateX(6px);box-shadow:0 14px 34px rgba(0,0,0,.08)}
.market:hover::before{transform:scaleY(1)}

/* TIMELINE */
.timeline-section{background:var(--dark);color:#fff}
.timeline{position:relative;padding-left:34px}
.timeline::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:rgba(255,255,255,.15)}
.tl-item{position:relative;padding:0 0 30px 34px}
.tl-item::before{content:"";position:absolute;left:-34px;top:6px;width:14px;height:14px;border-radius:50%;background:var(--dark);border:3px solid var(--red);z-index:2}
.tl-item .tl-year{font-family:'Barlow Condensed',sans-serif;font-size:26px;font-weight:700;color:var(--red);display:inline-block;min-width:70px}
.tl-item p{display:inline;color:rgba(255,255,255,.82);font-size:15.5px}
.tl-item.highlight::before{background:var(--red);width:18px;height:18px;left:-36px;box-shadow:0 0 0 6px rgba(226,35,26,.2)}
.tl-item.highlight p{color:#fff}
.tl-item.highlight .tl-year{font-size:30px}

/* COMMITMENT */
.commitment{background:var(--red);color:#fff;padding:96px 0;position:relative;overflow:hidden}
.commitment::after{content:"";position:absolute;right:-80px;top:-80px;width:360px;height:360px;border:56px solid rgba(255,255,255,.08);border-radius:50%}
.commitment-inner{position:relative;z-index:2;max-width:820px;text-align:center;margin:0 auto}
.light-eb{color:rgba(255,255,255,.85)!important}
.commitment h2{font-size:42px;font-weight:700;margin-bottom:18px}
.commitment p{font-size:17px;color:rgba(255,255,255,.9);margin-bottom:30px}
.btn-contact.big{background:#fff;color:var(--red);padding:16px 34px;font-size:14px;display:inline-block}
.btn-contact.big:hover{background:var(--ink);color:#fff}

/* FOOTER */
.site-footer{background:var(--ink);color:#fff}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.1fr;gap:40px;padding:72px 28px 48px}
.footer-brand .logo-mark{margin-bottom:18px}
.footer-brand p{color:rgba(255,255,255,.6);font-size:14.5px;max-width:300px;margin-bottom:14px}
.aq-link a{color:var(--red);font-weight:600}
.footer-col h4{font-size:19px;font-weight:600;margin-bottom:18px;color:#fff}
.footer-col a{display:block;color:rgba(255,255,255,.6);font-size:14px;margin-bottom:10px;transition:color .2s}
.footer-col a:hover{color:var(--red)}
.footer-col address{color:rgba(255,255,255,.6);font-size:14px;font-style:normal;line-height:1.9}
.footer-col address a:hover{color:var(--red)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1)}
.footer-bottom-inner{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;flex-wrap:wrap;gap:12px}
.footer-bottom p{color:rgba(255,255,255,.45);font-size:13px}
.footer-legal a{color:rgba(255,255,255,.5);font-size:13px;margin-left:20px}
.footer-legal a:hover{color:var(--red)}

/* REVEAL */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* RESPONSIVE */
@media(max-width:1024px){
  .main-nav{display:none;position:absolute;top:74px;left:0;right:0;background:#fff;flex-direction:column;padding:16px 28px;border-bottom:1px solid var(--line);box-shadow:0 20px 40px rgba(0,0,0,.1)}
  .main-nav.open{display:flex}
  .nav-toggle{display:flex;margin-left:auto}
  .btn-contact{margin-left:12px}
}
@media(max-width:820px){
  .hero-title{font-size:60px}
  .intro-grid,.approach-grid{grid-template-columns:1fr;gap:36px}
  .unit-cards,.facility-cards,.market-grid,.stats-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .section{padding:64px 0}
  .section-head h2,.intro-lead h2,.approach-text h2,.commitment h2{font-size:34px}
}
@media(max-width:560px){
  .unit-cards,.facility-cards,.market-grid,.stats-grid,.footer-grid{grid-template-columns:1fr}
  .stat{border-right:0;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:18px}
  .hero-title{font-size:46px}
  .hero{min-height:340px}
}

/* Rockford hero slider — centre vertically, align image right */
.n2-ss-slider-3 .n2-ss-slide-background-image img {
    object-fit: contain !important;
    object-position: 80% 110% !important;  /* right-align + vertical centre */
}













/* =====================================================================
   PAGE-SPECIFIC OVERRIDE  —  Company (article id=88, Itemid=234)
   Scope: .item-234 .article-body  (so it NEVER leaks to other pages)
   Inherits the site's own brand tokens: --red, --font-display, --font-ui
   Drop this into: templates/t4_bs5_blank/local/css/custom.css
   ===================================================================== */

/* Local fallbacks in case the vars aren't in scope for this selector */
.item-234 .article-body{
  --aq-red:   var(--red, #CC1F1F);
  --aq-ink:   #13161E;
  --aq-muted: #5f646c;
  --aq-line:  #e9ecef;
  --aq-soft:  #f8f9fa;
  --aq-disp:  var(--font-display, 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif);
  --aq-ui:    var(--font-ui, 'Inter', system-ui, -apple-system, sans-serif);
  font-family: var(--aq-ui);
  color: var(--aq-ink);
}

/* ---- Section sub-headings rendered from our data-role blocks ---- */
.item-234 .aq-h{
  font-family: var(--aq-disp);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  line-height: 1.05;
  margin: 0 0 .75rem;
  color: var(--aq-ink);
  position: relative;
  padding-left: 1rem;
}
.item-234 .aq-h::before{
  content:"";
  position:absolute; left:0; top:.12em; bottom:.12em;
  width:5px; border-radius:4px;
  background: var(--aq-red);
}

/* ---- Hero / intro strip ---- */
.item-234 .aq-hero{
  background: linear-gradient(180deg, var(--aq-soft), #fff);
  border: 1px solid var(--aq-line);
  border-left: 5px solid var(--aq-red);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0 0 2rem;
}
.item-234 .aq-hero .aq-kicker{
  font-family: var(--aq-disp);
  text-transform: uppercase;
  letter-spacing:.12em;
  font-weight:800;
  font-size:.8rem;
  color: var(--aq-red);
  display:inline-block;
  margin-bottom:.5rem;
}
.item-234 .aq-hero h2{
  font-family: var(--aq-disp);
  font-weight:900;
  text-transform:uppercase;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem);
  line-height:1.02;
  margin:0 0 .75rem;
}
.item-234 .aq-hero p{ margin:0; color:var(--aq-muted); max-width:65ch; }

/* ---- Sticky in-page section navigation (INTERACTION) ---- */
.item-234 .aq-nav{
  position: sticky; top: 90px; z-index: 5;
  display:flex; flex-wrap:wrap; gap:.5rem;
  padding:.6rem; margin:0 0 2rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border:1px solid var(--aq-line);
  border-radius: 999px;
}
.item-234 .aq-nav a{
  font-family: var(--aq-disp);
  text-transform: uppercase;
  letter-spacing:.04em;
  font-weight:700; font-size:.82rem;
  color: var(--aq-ink);
  text-decoration:none;
  padding:.4rem .9rem;
  border-radius:999px;
  transition: background .2s ease, color .2s ease;
}
.item-234 .aq-nav a:hover,
.item-234 .aq-nav a.is-active{
  background: var(--aq-red);
  color:#fff;
}

/* ---- Generic content card ---- */
.item-234 .aq-card{
  background:#fff;
  border:1px solid var(--aq-line);
  border-radius:14px;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  margin:0 0 1.25rem;
  scroll-margin-top: 150px;

  /* reveal-on-scroll (INTERACTION) */
  opacity:0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease, border-color .25s ease;
}
.item-234 .aq-card.is-in{ opacity:1; transform:none; }
.item-234 .aq-card:hover{
  box-shadow: 0 12px 34px rgba(19,22,30,.10);
  border-color: #d7dbe0;
}
.item-234 .aq-card p:last-child{ margin-bottom:0; }
.item-234 .aq-card p{ color:var(--aq-muted); }

/* ---- Two business-unit split ---- */
.item-234 .aq-grid-2{
  display:grid; gap:1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin:0 0 1.25rem;
}
.item-234 .aq-unit{ position:relative; overflow:hidden; }
.item-234 .aq-unit::after{
  content:""; position:absolute; inset:auto 0 0 0; height:4px;
  background: var(--aq-red);
  transform: scaleX(0); transform-origin:left;
  transition: transform .35s ease;
}
.item-234 .aq-unit:hover::after{ transform: scaleX(1); }
.item-234 .aq-unit .aq-icon{
  width:46px; height:46px; border-radius:12px;
  display:grid; place-items:center; margin-bottom:.9rem;
  background: rgba(204,31,31,.10); color:var(--aq-red);
  font-size:1.3rem;
}
.item-234 .aq-unit a.aq-more{
  font-family:var(--aq-disp); font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; font-size:.85rem; color:var(--aq-red);
  text-decoration:none; display:inline-flex; align-items:center; gap:.4rem;
}
.item-234 .aq-unit a.aq-more::after{ content:"→"; transition: transform .2s ease; }
.item-234 .aq-unit a.aq-more:hover::after{ transform: translateX(4px); }

/* ---- Markets We Serve — tag grid (INTERACTION on hover) ---- */
.item-234 .aq-markets{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.6rem; }
.item-234 .aq-markets li{
  font-family:var(--aq-disp); font-weight:700; text-transform:uppercase;
  letter-spacing:.03em; font-size:.9rem;
  padding:.55rem 1rem; border:1px solid var(--aq-line); border-radius:10px;
  background: var(--aq-soft); color:var(--aq-ink);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.item-234 .aq-markets li:hover{
  transform: translateY(-3px);
  background: var(--aq-red); color:#fff; border-color:var(--aq-red);
}

/* ---- Interactive vertical timeline (the centrepiece) ---- */
.item-234 .aq-timeline{
  position:relative; margin:1rem 0 0; padding:0; list-style:none;
}
.item-234 .aq-timeline::before{
  content:""; position:absolute; left:11px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(var(--aq-red), var(--aq-line));
}
.item-234 .aq-timeline li{
  position:relative; padding:0 0 1.15rem 2.6rem;
  opacity:0; transform: translateX(-14px);
  transition: opacity .5s ease, transform .5s ease;
}
.item-234 .aq-timeline li.is-in{ opacity:1; transform:none; }
.item-234 .aq-timeline li::before{
  content:""; position:absolute; left:4px; top:.35em;
  width:16px; height:16px; border-radius:50%;
  background:#fff; border:3px solid var(--aq-red);
  transition: transform .2s ease, background .2s ease;
}
.item-234 .aq-timeline li:hover::before{ transform: scale(1.25); background:var(--aq-red); }
.item-234 .aq-timeline .aq-year{
  font-family:var(--aq-disp); font-weight:900; color:var(--aq-red);
  margin-right:.4rem;
}
.item-234 .aq-timeline .aq-2024{ font-weight:700; }
.item-234 .aq-timeline .aq-2024::after{
  content:"AQ GROUP"; margin-left:.6rem; font-family:var(--aq-disp);
  font-size:.7rem; letter-spacing:.08em; background:var(--aq-red); color:#fff;
  padding:.15rem .5rem; border-radius:6px; vertical-align:middle;
}

/* ---- Closing image ---- */
.item-234 .aq-figure{ margin:1.5rem 0 0; }
.item-234 .aq-figure img{
  width:100%; height:auto; border-radius:14px; display:block;
  border:1px solid var(--aq-line);
}

/* ---- Accessibility: respect reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  .item-234 .article-body *{ transition:none !important; }
  .item-234 .aq-card,
  .item-234 .aq-timeline li{ opacity:1 !important; transform:none !important; }
}
.jux-tl-item.selected .jux-tl-control {
    background: url(/images/plus.png) no-repeat scroll 0 0 transparent !important;
}
.jux-tl-control {
    background: url(/images/minus.png) no-repeat scroll 0 0 transparent !important;
}
.t4-main-bottom-1{
    background-color: #F3F0ED;
}
.jux-tl-item.left{
    text-align: right;
}
.jux-tl-info{
    background-color: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
    transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md), opacity .55s ease;
}
.jux-tl-item .jux-tl-desc, .jux-tl-item h2 a{
    color: #000000;
}
.jux-tl-item.left .arrow{
    border-left-color: #ED1C24;
}
.jux-tl-item.right .arrow{
    border-right-color: #ED1C24;
}
.t4-main-bottom-1 .jux-tl-item:last-of-type{
    margin-bottom: 3rem;
}
.company-page #t4-main-body .wf-columns.product p:not(:has(img)) {
    margin-bottom: 1rem !important;
}
.company-page #t4-main-body .wf-columns.product a{
    display: block;
    margin-top: auto;
}
.company-page #t4-main-body .wf-columns.product ul li::marker {
    color: #ED1C24;
}
html body.site-default #t4-footer .footer-logo{
    margin-left: 0 !important;
    margin-right: auto !important;
}
.t4-offcanvas .t4-off-canvas-header a img {
    max-height: 5rem;
    outline: none;
}
.t4-offcanvas .t4-off-canvas-body .navbar .nav-item{
    padding: 0 !important;
}
.t4-header .c-button__text span:nth-of-type(2) {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}
.t4-offcanvas .t4-off-canvas-body .navbar .nav-item.active>.nav-link{
    color: #ED1C24;
}
.t4-offcanvas .t4-off-canvas-body .navbar .nav-link:hover{
    color: #ED1C24;
}
@media(max-width: 767px){
    .jux-tl-title{
        text-align: center;
    }
    .jux-tl-desc{
        text-align: center;
    }
    .jux-tl-info .arrow{
        display: none;
    }
}
@media(max-width: 1420px){
    .t4-header .menu-item-title{
        font-size: 10px;
    }
}

#t4-section-1.home .hero-bg-image {
  top: 0 !important;
  height: 100% !important;
}

#t4-section-1.home .hero-bg-image img {
  transform: scale(0.95) !important;
}
ol, ul {
    padding-left: 0;
}
ul { list-style: none; }
/* --- Page rhythm (reuse the contact-page pattern) ----------------- */
body.item-274 #t4-main-body.t4-main-body,
body.item-274 .t4-section.t4-main-body {
  padding-top: clamp(24px, 3vw, 40px);
}

/* ============================================================
   A) CAREERS CATEGORY BLOG  (listing of jobs)
   ============================================================ */
body.item-274.view-category .com-content-category-blog.blog {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: clamp(32px, 4vw, 56px) var(--section-pad);
}

/* Page title "Careers" — reuse the display heading style */
body.item-274.view-category .com-content-category-blog.blog > h1,
body.item-274.view-category .com-content-category-blog.blog .page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 clamp(28px, 4vw, 48px);
}

/* Two-column job grid (template already outputs items-row.cols-2.row) */
body.item-274.view-category .blog-items.items-leading,
body.item-274.view-category .blog-items.masonry-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin: 0;
}
body.item-274.view-category .items-row.cols-2.row { --bs-gutter-x: 0; }

/* --- Job card (reuses the .blog-page .item look) ------------------ */
body.item-274.view-category .blog-item,
body.item-274.view-category .com-content-category-blog__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(20px, 2vw, 32px);
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
  transition: transform var(--transition-md), box-shadow var(--transition-md),
              border-color var(--transition-md);
}
body.item-274.view-category .blog-item:hover,
body.item-274.view-category .com-content-category-blog__item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(13, 13, 13, .10);
}
body.item-274.view-category .blog-item-content,
body.item-274.view-category .item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

/* Job title link */
body.item-274.view-category .blog-item .page-header,
body.item-274.view-category .blog-item .page-header h2 {
  margin: 0;
}
body.item-274.view-category .blog-item .page-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
body.item-274.view-category .blog-item .page-header h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    letter-spacing: -.025em;
}
body.item-274.view-category .blog-item .page-header h2 a:hover {
  color: var(--red);
}

/* Location / Salary / Hours meta strip (fields-container) */
body.item-274.view-category .fields-container,
body.item-274.view-category .article-aside .fields-container {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.item-274.view-category .field-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}
body.item-274.view-category .field-entry .field-label {
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .02em;
}
body.item-274.view-category .field-entry .field-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Intro text */
body.item-274.view-category .item-intro {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
body.item-274.view-category .item-intro p { margin: 0; }
body.item-274.view-category .item-intro strong { color: var(--text-primary); }

/* Read more — reuse .btn-primary */
body.item-274.view-category .readmore { margin-top: auto; padding-top: 4px; }
body.item-274.view-category .readmore .btn,
body.item-274.view-category .readmore .btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  border: none;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
body.item-274.view-category .readmore .btn:hover,
body.item-274.view-category .readmore .btn-readmore:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 31, 31, 0.3);
}

/* Responsive — single column under tablet */
@media (max-width: 767.98px) {
  body.item-274.view-category .blog-items.items-leading,
  body.item-274.view-category .blog-items.masonry-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   B) JOB ARTICLE PAGE
   ============================================================ */
body.item-274.view-article .com-content-article.item-page {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: clamp(32px, 4vw, 56px) var(--section-pad);
}


/* "Careers" breadcrumb-style h1 + job title h2 already styled globally
   via .page-header rules — just tighten spacing */
body.item-274.view-article .page-header { margin-bottom: 24px; }

/* Meta strip on the article (Location / Salary / Hours) */
body.item-274.view-article .fields-container {
  list-style: none;
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.item-274.view-article .field-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}
body.item-274.view-article .field-entry .field-label {
  font-weight: 700;
  color: var(--text-secondary);
}
body.item-274.view-article .field-entry .field-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Body copy reuses the global .article-body > p rules; keep lists tidy */
body.item-274.view-article .article-body ul,
body.item-274.view-article .article-body ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.item-274.view-article .article-body ul li,
body.item-274.view-article .article-body ol li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
}
body.item-274.view-article .article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: var(--red);
}
body.item-274.view-article .article-body ol { counter-reset: jobli; }
body.item-274.view-article .article-body ol li::before {
  content: counter(jobli) ".";
  counter-increment: jobli;
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red);
}
body.item-274.view-article .article-body p strong { color: var(--text-primary); }

/* Section sub-headings (#### in content) */
body.item-274.view-article .article-body h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);

  text-transform: uppercase;
  color: var(--text-primary);
  margin: 32px 0 14px;
}

/* ============================================================
   C) "APPLY HERE" FORM  (RSForm id="userForm", shared with contact)
   Override the contact-page injected headings so they don't show
   here, and give the application form its own clean treatment.
   The field/label/input rules below mirror the contact form's
   #userForm styling (reusing the same tokens) so it stays on-brand.
   ============================================================ */

/* Kill the contact-page pseudo headings on the careers form */
body.item-274.view-article #userForm .formContainer::before,
body.item-274.view-article #userForm .formContainer::after {
  content: none;
}

/* Form container as an on-brand card */
body.item-274.view-article #userForm {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
  position: relative;
}
body.item-274.view-article #userForm::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* The "Apply Here" h2 sits just above the form in the content */
body.item-274.view-article .article-body > h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: clamp(40px, 5vw, 64px) 0 0;
}

/* Two-column responsive field layout (same approach as contact form) */
body.item-274.view-article #userForm .formContainer {
  max-width: none;
  width: 100%;
}
body.item-274.view-article #userForm .formContainer > .row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  width: 100%;
}
body.item-274.view-article #userForm .formContainer > .row > [class*="col-md-"] {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  width: auto;
  display: flex;
  flex-direction: column;
}

/* Each field block */
body.item-274.view-article #userForm .rsform-block {
  display: block;
  width: 100%;
  margin: 0 0 18px 0;
}
body.item-274.view-article #userForm .rsform-block:last-child { margin-bottom: 0; }

/* Labels */
body.item-274.view-article #userForm .formControlLabel {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 0 8px 0;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
body.item-274.view-article #userForm .formControls {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
  padding: 0;
}
body.item-274.view-article #userForm .formRequired {
  color: var(--red);
  margin-left: 3px;
  font-weight: 700;
}

/* Inputs / selects / textarea — reuse the contact form look */
body.item-274.view-article #userForm .form-control,
body.item-274.view-article #userForm .rsform-input-box,
body.item-274.view-article #userForm .rsform-text-box,
body.item-274.view-article #userForm .rsform-select-box,
body.item-274.view-article #userForm .rsform-upload-box {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  transition: border-color var(--transition), background var(--transition),
              box-shadow var(--transition);
}
body.item-274.view-article #userForm .form-control::placeholder { color: var(--text-muted); }
body.item-274.view-article #userForm .form-control:hover { border-color: var(--text-muted); }
body.item-274.view-article #userForm .form-control:focus {
  outline: none;
  background: var(--bg-primary);
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Captcha + checkbox rows full width */
body.item-274.view-article #userForm .rsform-block-captcha,
body.item-274.view-article #userForm .rsform-block-terms,
body.item-274.view-article #userForm .rsform-block-your-cv,
body.item-274.view-article #userForm .rsform-block-submit {
  flex-basis: 100%;
}
body.item-274.view-article #userForm .form-check-label,
body.item-274.view-article #userForm .rsform-block-terms label {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
body.item-274.view-article #userForm .rsform-block-terms a { color: var(--red); }

/* Submit button — reuse .btn-primary */
body.item-274.view-article #userForm .rsform-submit-button.btn,
body.item-274.view-article #userForm .rsform-submit-button.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
body.item-274.view-article #userForm .rsform-submit-button.btn:hover,
body.item-274.view-article #userForm .rsform-submit-button.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204, 31, 31, 0.3);
}

/* Validation error text */
body.item-274.view-article #userForm .formNoError,
body.item-274.view-article #userForm .formValidation .formNoError {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive — stack form to one column on mobile */
@media (max-width: 575.98px) {
  body.item-274.view-article #userForm .formContainer > .row > [class*="col-md-"] {
    flex-basis: 100%;
  }
}
.contact-us {
  background: #ED1C24;
  color: #fff !important;
}
.contact-us:hover {
  background:  #ED1C24 !important;
  padding-left: 48px;
}
.t4-off-canvas-body .nav-item a{
    margin-right: auto;
}
.jux-tl-info{
    max-width: 450px;
    width: 100%;
    padding: 10px 20px;
}
.jux-tl-title{
    font-size: 20px;
}
.jux-tl-desc{
    font-size: 15px;
}
.jux-tl-item.left .jux-tl-info{
    float: right;
}
@media(max-width: 767px){
    .jux-tl-info{
        max-width: none;
    }
    .jux-tl-item.left .jux-tl-info{
        float: none;
    }
}
@media(max-width: 1666px){
    .place h4{
        min-height: 75px;
    }
}
@media(max-width: 900px){
    .place h4{
        min-height: fit-content;
        padding-bottom: 10px;
    }
}
.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.place {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.place img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 25px;
}

/* Mobile */
@media (max-width: 991px) {
    .places-grid {
        grid-template-columns: 1fr;
    }
}
.mmlmap{
    width: 100%;
}

/* Make the map's grid item span all columns of the .article-body grid */
.article-body > div:has(.map_canvas) {
    grid-column: 1 / -1 !important;
}

/* Let the map + its wrapper fill that full-width item */
.article-body .mmlmap,
.article-body .map_canvas {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
}

/* Keep a sensible height (adjust to taste) */
.article-body .map_canvas {
    height: 400px;
}
.solution-features {
  list-style: none;
  padding-left: 0;
}

.solution-features .solution-feature {
  position: relative;
  padding-left: 1.2em;
}

.solution-features .solution-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1.15em;
  width: 8px;
  height: 8px;
  background-color: red;
  display: block;
}
.t4-main-bottom-2{
    background-color: #CACACA;
    padding: 1rem 0;
}
.t4-main-bottom-2 .module-title{
    display: none;
}
.t4-main-bottom-2 .navbar{
    padding: 0;
}
.t4-main-bottom-2 .navbar-nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}
.t4-main-bottom-2 .menu-item-title{
    font-size: 13px;
    color: #5F646C;
}
////////////////////////

/* ==========================================================================
   ROCKFORD — SEO LANDING PAGE STYLING
   AQ Wiring Systems Rockford  |  rockford.co.uk
   --------------------------------------------------------------------------
   Joomla 6  ·  JCE Editor Pro  ·  T4 Template
   --------------------------------------------------------------------------
   HOW TO USE
   1. Load this file once (T4 > Themes > Custom CSS, or a media/ override).
   2. Wrap the whole article body in <div class="seo-styling"> ... </div>
   3. Write normal HTML (h2, h3, p, ul) — it is styled automatically.
   4. Use the optional helper classes for cards, grids, CTAs and strips.

   IMPORTANT — NO ROOT SELECTOR, NO CSS VARIABLES
   This stylesheet declares no root-level block and uses no custom properties
   at all. Every colour, font, radius and spacing value is written literally,
   so the file is fully self-contained and cannot be affected by (or conflict
   with) any token defined elsewhere on the site.

   EVERY rule is scoped under .seo-styling so it can never leak into the
   template, modules, or any other article on the site.

   BRAND VALUES USED (hard-coded throughout)
     Red             #CC1F1F        Red (dark/hover)  #A81919
     Red tint        rgba(204,31,31,.08)
     Red hairline    rgba(204,31,31,.18)
     Ink (headings)  #0D0D0D        Body text         #3D3D3D
     Muted text      #7A7A7A        Card surface      #FFFFFF
     Tinted surface  #F8F7F5        Hairline border   rgba(13,13,13,.08)
     Display font    'Barlow Condensed'
     UI font         'Inter'
     Radius          16px  /  8px (small)
     Easing          .35s cubic-bezier(.4,0,.2,1)
     Column gap      28px  (18px under 768px)
     Block rhythm    clamp(44px,6vw,84px)  (40px under 768px)

   TYPE SCALE
   Matched to the T4 template's own scale (--h2-font-size: 32px,
   --h3-font-size: 28px, body 16px) so article headings sit at the same
   weight as the rest of the site rather than shouting over it.
     h2  clamp(24px, 2.1vw, 32px)      h3  clamp(19px, 1.5vw, 23px)
     h4  clamp(17px, 1.25vw, 19px)     p   16px
     lead paragraph  clamp(17px, 1.3vw, 19px)

   IMAGES
   Wrap every image in a media block:
     <div class="seo-media seo-media-3x2">
       <img src="/images/..." alt="..." loading="lazy" decoding="async">
     </div>

   Inside a column or card the height is FIXED, not a ratio, so every image
   in every container is exactly the same size regardless of how many columns
   the row has. (A ratio takes its height from the column width, so the same
   class would render ~400px tall in a 2-col row but ~260px in a 3-col row.)
     default        clamp(170px, 14vw, 210px)
     seo-media-short  clamp(130px, 10vw, 155px)
     seo-media-tall   clamp(210px, 18vw, 265px)

   Standalone images use the ratio classes and are capped at 300px tall so a
   wide photo cannot dominate the page on a large monitor.
   Ratios: seo-media-1x1 / -4x3 / -3x2 / -16x9 / -21x9
   Extras: seo-media-contain (studio shots on white), seo-media-feature
           (full-width band), seo-media-fill (match a text column's height),
           seo-media-top / -bottom / -left / -right (shift the crop).
   As the first child of a .seo-card the image bleeds to the card edges.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. SCOPE + BASE
   -------------------------------------------------------------------------- */

.seo-styling {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #3D3D3D;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Neutralise the template's default article spacing so our rhythm wins */
.seo-styling > *:first-child { margin-top: 0; }
.seo-styling > *:last-child  { margin-bottom: 0; }
.seo-styling *,
.seo-styling *::before,
.seo-styling *::after { box-sizing: border-box; }


/* --------------------------------------------------------------------------
   2. TYPOGRAPHY — applies with zero extra classes
   -------------------------------------------------------------------------- */

.seo-styling h1,
.seo-styling h2,
.seo-styling h3,
.seo-styling h4,
.seo-styling h5,
.seo-styling h6 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  color: #0D0D0D;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0 0 .5em;
  text-wrap: balance;
}

.seo-styling h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
  margin-bottom: 20px;
}

.seo-styling h2 {
  font-size: clamp(24px, 2.1vw, 32px);
  margin-top: clamp(38px, 4.4vw, 60px);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 14px;
}

/* Red rule under every H2 — the site's signature section divider */
.seo-styling h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: #CC1F1F;
  border-radius: 2px;
}

.seo-styling h3 {
  font-size: clamp(19px, 1.5vw, 23px);
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -.015em;
}

.seo-styling h4 {
  font-size: clamp(17px, 1.25vw, 19px);
  margin-top: 22px;
  margin-bottom: 9px;
  letter-spacing: 0;
}

.seo-styling h5,
.seo-styling h6 {
  font-size: clamp(15px, 1.1vw, 17px);
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: .01em;
}

/* Headings inside a card/column must not re-introduce outer spacing */
.seo-styling .seo-card > :first-child,
.seo-styling .wf-column > :first-child { margin-top: 0; }

/* Inside a card the red rule is dropped — the card border already frames it */
.seo-styling .seo-card h2::after { display: none; }
.seo-styling .seo-card h2 { padding-bottom: 0; margin-top: 0; }

/* In a plain column the H2 keeps its red rule but loses the big top gap */
.seo-styling .wf-column > h2:first-child { margin-top: 0; }

.seo-styling p {
  font-size: 16px;
  line-height: 1.7;
  color: #3D3D3D;
  margin: 0 0 1.15em;
}

.seo-styling a:not(.btn) {
  color: #CC1F1F;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 31, 31, .18);
  transition: border-color .35s cubic-bezier(.4, 0, .2, 1),
              color .35s cubic-bezier(.4, 0, .2, 1);
}
.seo-styling a:not(.btn):hover {
  color: #A81919;
  border-bottom-color: currentColor;
}

.seo-styling strong,
.seo-styling b { color: #0D0D0D; font-weight: 600; }

.seo-styling em,
.seo-styling i { font-style: italic; }

.seo-styling hr {
  border: 0;
  height: 1px;
  background: rgba(13, 13, 13, .08);
  margin: clamp(44px, 6vw, 84px) 0;
}

/* Lead / intro paragraph */
.seo-styling .seo-lead,
.seo-styling .seo-intro-lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.65;
  color: #0D0D0D;
  font-weight: 400;
  max-width: 62ch;
}

/* Small uppercase eyebrow — mirrors the site's .section-label */
.seo-styling .seo-eyebrow,
.seo-styling .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #CC1F1F;
  margin: 0 0 18px;
}
.seo-styling .seo-eyebrow::before,
.seo-styling .section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #CC1F1F;
  flex: none;
}


/* --------------------------------------------------------------------------
   3. LISTS
   -------------------------------------------------------------------------- */

.seo-styling ul,
.seo-styling ol {
  margin: 0 0 1.3em;
  padding-left: 0;
  list-style: none;
}

.seo-styling ul > li,
.seo-styling ol > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: #3D3D3D;
}

/* Red chevron bullet — matches the site's feature marker */
.seo-styling ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 7px;
  height: 7px;
  border-right: 2px solid #CC1F1F;
  border-bottom: 2px solid #CC1F1F;
  transform: rotate(-45deg);
}

.seo-styling ol { counter-reset: seo-ol; }
.seo-styling ol > li { counter-increment: seo-ol; }
.seo-styling ol > li::before {
  content: counter(seo-ol);
  position: absolute;
  left: 0;
  top: .1em;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #CC1F1F;
}

/* Nested lists */
.seo-styling li > ul,
.seo-styling li > ol { margin: 10px 0 0; }

/* Two-column list on wide screens */
.seo-styling ul.seo-list-2col {
  columns: 2;
  column-gap: 40px;
}
.seo-styling ul.seo-list-2col > li { break-inside: avoid; }


/* --------------------------------------------------------------------------
   4. JCE EDITOR COLUMN LAYOUTS  (.wf-columns / .wf-column)
   Supports both the JCE count classes and the data-wf-columns attribute
   convention used by the existing rockford.co.uk pages.
   -------------------------------------------------------------------------- */

.seo-styling .wf-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  margin: 0 0 28px;
}

/* JCE count modifiers */
.seo-styling .wf-columns.wf-columns-count-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.seo-styling .wf-columns.wf-columns-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-styling .wf-columns.wf-columns-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-styling .wf-columns.wf-columns-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Site convention: JCE writes data-wf-columns="N" (zero-indexed presets) */
.seo-styling .wf-columns[data-wf-columns="0"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.seo-styling .wf-columns[data-wf-columns="1"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-styling .wf-columns[data-wf-columns="2"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-styling .wf-columns[data-wf-columns="3"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Explicit count classes always win over the data attribute */
.seo-styling .wf-columns.wf-columns-count-1[data-wf-columns] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.seo-styling .wf-columns.wf-columns-count-2[data-wf-columns] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-styling .wf-columns.wf-columns-count-3[data-wf-columns] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-styling .wf-columns.wf-columns-count-4[data-wf-columns] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* JCE gap modifiers */
.seo-styling .wf-columns.wf-columns-gap-0,
.seo-styling .wf-columns.wf-columns-gap-none   { gap: 0; }
.seo-styling .wf-columns.wf-columns-gap-1,
.seo-styling .wf-columns.wf-columns-gap-small  { gap: 14px; }
.seo-styling .wf-columns.wf-columns-gap-2,
.seo-styling .wf-columns.wf-columns-gap-medium { gap: 28px; }
.seo-styling .wf-columns.wf-columns-gap-3,
.seo-styling .wf-columns.wf-columns-gap-large  { gap: 44px; }

/* Asymmetric splits */
.seo-styling .wf-columns.seo-split-60-40 { grid-template-columns: 1.5fr 1fr; }
.seo-styling .wf-columns.seo-split-40-60 { grid-template-columns: 1fr 1.5fr; }
.seo-styling .wf-columns.seo-split-70-30 { grid-template-columns: 2.33fr 1fr; }
.seo-styling .wf-columns.seo-split-30-70 { grid-template-columns: 1fr 2.33fr; }

.seo-styling .wf-column { min-width: 0; }
.seo-styling .wf-column > *:last-child { margin-bottom: 0; }

/* Vertical alignment helpers */
.seo-styling .wf-columns.seo-align-center { align-items: center; }
.seo-styling .wf-columns.seo-align-start  { align-items: start; }

/* Images */
.seo-styling img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.seo-styling .wf-column img { width: 100%; }
.seo-styling img.seo-img-cover {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}


/* --------------------------------------------------------------------------
   4b. IMAGES / MEDIA
   The supplied product photography has mixed intrinsic ratios (1:1 square
   through to 16:9). A fixed-ratio wrapper is therefore used so that images
   sitting side by side in a .wf-columns grid always line up, whatever the
   source file happens to be. Crop the subject with object-position if needed.

   Markup:
     <div class="seo-media seo-media-3x2">
       <img src="..." alt="..." loading="lazy" decoding="async">
     </div>
   -------------------------------------------------------------------------- */

.seo-styling .seo-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: block;
  border-radius: 16px;
  margin: 0 0 28px;
  background: #F8F7F5;
}
.seo-styling .seo-media:last-child { margin-bottom: 0; }

.seo-styling .seo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Ratio modifiers — used when an image stands on its own */
.seo-styling .seo-media-1x1  { aspect-ratio: 1 / 1; }
.seo-styling .seo-media-4x3  { aspect-ratio: 4 / 3; }
.seo-styling .seo-media-3x2  { aspect-ratio: 3 / 2; }
.seo-styling .seo-media-16x9 { aspect-ratio: 16 / 9; }
.seo-styling .seo-media-21x9 { aspect-ratio: 21 / 9; }

/* ---- EQUAL IMAGE SIZE INSIDE COLUMNS AND CARDS ----
   A ratio alone is not enough. A ratio derives its height from the column
   width, so the same class renders ~400px tall in a 2-column row but only
   ~260px in a 3-column row, and images stop matching each other.

   So inside any column or card the height is FIXED instead. Every image in
   every container is then exactly the same size, whatever the column count,
   and the headings underneath always line up. These selectors carry more
   specificity than the ratio classes above, so they win without !important. */
.seo-styling .wf-column .seo-media,
.seo-styling .seo-card .seo-media,
.seo-styling .seo-callout .seo-media {
  aspect-ratio: auto;
  height: clamp(170px, 14vw, 210px);
}

/* Optional per-row size overrides. Put the class on the .seo-media. */
.seo-styling .wf-column .seo-media.seo-media-short,
.seo-styling .seo-card .seo-media.seo-media-short { height: clamp(130px, 10vw, 155px); }
.seo-styling .wf-column .seo-media.seo-media-tall,
.seo-styling .seo-card .seo-media.seo-media-tall  { height: clamp(210px, 18vw, 265px); }

/* Fallback for the few engines without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .seo-styling .seo-media-1x1,
  .seo-styling .seo-media-4x3,
  .seo-styling .seo-media-3x2,
  .seo-styling .seo-media-16x9,
  .seo-styling .seo-media-21x9 { height: 0; }
  .seo-styling .seo-media-1x1  { padding-top: 100%; }
  .seo-styling .seo-media-4x3  { padding-top: 75%; }
  .seo-styling .seo-media-3x2  { padding-top: 66.6667%; }
  .seo-styling .seo-media-16x9 { padding-top: 56.25%; }
  .seo-styling .seo-media-21x9 { padding-top: 42.8571%; }
  .seo-styling .seo-media img {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* Object-position helpers for awkward crops */
.seo-styling .seo-media.seo-media-top img    { object-position: center top; }
.seo-styling .seo-media.seo-media-bottom img { object-position: center bottom; }
.seo-styling .seo-media.seo-media-left img   { object-position: left center; }
.seo-styling .seo-media.seo-media-right img  { object-position: right center; }

/* Studio shots on white read better contained than cropped */
.seo-styling .seo-media.seo-media-contain img {
  object-fit: contain;
  padding: 6%;
}

/* Subtle zoom when the media sits inside a hoverable card */
.seo-styling .seo-card .seo-media img {
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.seo-styling .seo-card:hover .seo-media img { transform: scale(1.04); }

/* Media bleeding to the edges of a card. The card already has
   overflow:hidden, so the corners stay clipped to its own radius. */
.seo-styling .seo-card > .seo-media:first-child {
  margin-left: calc(clamp(24px, 2.6vw, 38px) * -1);
  margin-right: calc(clamp(24px, 2.6vw, 38px) * -1);
  margin-top: calc(clamp(24px, 2.6vw, 38px) * -1);
  margin-bottom: clamp(20px, 2.2vw, 30px);
  border-radius: 0;
}
/* Keep the card's red accent bar visible above a bled image */
.seo-styling .seo-card::before { z-index: 3; }

/* Media bleeding to the edges of a tinted band or callout */
.seo-styling .seo-band > .seo-media,
.seo-styling .seo-callout > .seo-media { margin-bottom: clamp(20px, 2.2vw, 30px); }

/* A media block that fills its grid cell height (for image beside text).
   Declared after the fixed-height block so it wins for this opt-in case. */
.seo-styling .wf-column > .seo-media.seo-media-fill,
.seo-styling .seo-card > .seo-media.seo-media-fill {
  aspect-ratio: auto;
  height: 100%;
  min-height: 210px;
}

/* Rounded-off full-width feature image between sections.
   Uses an explicit height rather than max-height: with aspect-ratio a
   max-height shrinks the WIDTH to keep the ratio, so the banner would stop
   being full width. Setting height (and clearing the ratio) keeps it edge
   to edge and simply crops it shorter — a 21:9 block would otherwise be
   ~470px tall at 1440px wide, which dominates the page. */
.seo-styling .seo-media-feature {
  margin-top: clamp(10px, 1.4vw, 18px);
  margin-bottom: clamp(30px, 4vw, 52px);
}

/* Any standalone image (not inside a column) gets a sane, full-width height */
.seo-styling > .seo-media,
.seo-styling .seo-section > .seo-media,
.seo-styling .seo-band > .seo-media,
.seo-styling .seo-intro > .seo-media {
  aspect-ratio: auto;
  width: 100%;
  height: clamp(200px, 20vw, 280px);
}


/* --------------------------------------------------------------------------
   5. CARDS — modelled on the site's solution/product card treatment
   -------------------------------------------------------------------------- */

.seo-styling .seo-card,
.seo-styling .wf-column.seo-card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(13, 13, 13, .08);
  border-radius: 16px;
  padding: clamp(24px, 2.6vw, 38px);
  box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              box-shadow .35s cubic-bezier(.4, 0, .2, 1),
              border-color .35s cubic-bezier(.4, 0, .2, 1);
  height: 100%;
}

/* Red accent bar that grows on hover — the site's signature card behaviour */
.seo-styling .seo-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #CC1F1F;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.seo-styling .seo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(13, 13, 13, .12);
  border-color: rgba(204, 31, 31, .18);
}
.seo-styling .seo-card:hover::before { transform: scaleY(1); }

/* Always-on accent variant */
.seo-styling .seo-card.seo-card-accent::before { transform: scaleY(1); }

/* Flat / quiet card (no lift, no shadow) */
.seo-styling .seo-card.seo-card-flat {
  background: #F8F7F5;
  box-shadow: none;
  border-color: transparent;
}
.seo-styling .seo-card.seo-card-flat:hover { transform: none; box-shadow: none; }

/* Dark card */
.seo-styling .seo-card.seo-card-dark {
  background: #101012;
  border-color: rgba(255, 255, 255, .1);
}
.seo-styling .seo-card.seo-card-dark h2,
.seo-styling .seo-card.seo-card-dark h3,
.seo-styling .seo-card.seo-card-dark h4 { color: #fff; }
.seo-styling .seo-card.seo-card-dark p,
.seo-styling .seo-card.seo-card-dark li { color: rgba(255, 255, 255, .72); }

/* Numbered / icon badge for a card */
.seo-styling .seo-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(204, 31, 31, .08);
  color: #CC1F1F;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}


/* --------------------------------------------------------------------------
   6. ARTICLE INTRO + CLOSING
   The page H1 is rendered by the JA Masthead module ABOVE the article,
   so the article body starts with an intro block and its first heading is H2.
   -------------------------------------------------------------------------- */

.seo-styling .seo-intro {
  position: relative;
  padding: 0 0 clamp(28px, 3.6vw, 46px);
  margin-bottom: clamp(10px, 1.5vw, 18px);
  border-bottom: 1px solid rgba(13, 13, 13, .08);
}
.seo-styling .seo-intro > *:last-child { margin-bottom: 0; }
.seo-styling .seo-intro .seo-intro-lead { max-width: none; }

/* First H2 after the intro should not double up on spacing */
.seo-styling .seo-intro + .seo-section > h2:first-child,
.seo-styling .seo-intro + .seo-band > h2:first-child,
.seo-styling .seo-intro + .wf-columns .wf-column > h2:first-child {
  margin-top: clamp(30px, 4vw, 56px);
}

/* Quiet closing block — the site-wide red CTA band renders after the article */
.seo-styling .seo-closing {
  margin-top: clamp(44px, 6vw, 84px);
  padding-top: clamp(28px, 3.6vw, 46px);
  border-top: 1px solid rgba(13, 13, 13, .08);
}
.seo-styling .seo-closing > *:last-child { margin-bottom: 0; }
.seo-styling .seo-closing h2 { padding-bottom: 18px; }
.seo-styling .seo-closing p { max-width: 68ch; }

/* Legacy hero support (kept so older pastes don't break) */
.seo-styling .seo-hero {
  position: relative;
  padding: 0 0 clamp(30px, 4vw, 52px);
  margin-bottom: clamp(44px, 6vw, 84px);
  border-bottom: 1px solid rgba(13, 13, 13, .08);
}
.seo-styling .seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}


/* --------------------------------------------------------------------------
   7. BUTTONS — reuses the site's .btn / .btn-primary / .btn-secondary names
   (re-declared inside .seo-styling only, so article content is self-sufficient)
   -------------------------------------------------------------------------- */

.seo-styling .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  border-bottom: 1px solid transparent;
}

.seo-styling .btn-primary {
  background: #CC1F1F;
  color: #fff;
  border-color: #CC1F1F;
}
.seo-styling .btn-primary:hover {
  background: #A81919;
  border-color: #A81919;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 31, 31, .28);
}

.seo-styling .btn-secondary {
  background: transparent;
  color: #0D0D0D;
  border-color: rgba(13, 13, 13, .08);
}
.seo-styling .btn-secondary:hover {
  border-color: #CC1F1F;
  color: #CC1F1F;
  transform: translateY(-2px);
}

.seo-styling .btn-white {
  background: #fff;
  color: #CC1F1F;
  border-color: #fff;
}
.seo-styling .btn-white:hover {
  background: rgba(255, 255, 255, .9);
  color: #A81919;
  transform: translateY(-2px);
}

.seo-styling .btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.seo-styling .btn-outline-white:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.seo-styling .btn-lg { padding: 19px 40px; font-size: 15px; }


/* --------------------------------------------------------------------------
   8. FEATURE / SPEC ROWS  (icon-free key:value pairs)
   -------------------------------------------------------------------------- */

.seo-styling .seo-specs {
  display: grid;
  gap: 0;
  margin: 0 0 1.3em;
  border-top: 1px solid rgba(13, 13, 13, .08);
}
.seo-styling .seo-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(13, 13, 13, .08);
}
.seo-styling .seo-spec-label {
  flex: 0 0 190px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7A7A7A;
  padding-top: 3px;
}
.seo-styling .seo-spec-value {
  flex: 1 1 260px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: #0D0D0D;
}


/* --------------------------------------------------------------------------
   9. STATS STRIP
   -------------------------------------------------------------------------- */

.seo-styling .seo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(13, 13, 13, .08);
  border: 1px solid rgba(13, 13, 13, .08);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 28px;
}
.seo-styling .seo-stat {
  background: #FFFFFF;
  padding: clamp(22px, 2.4vw, 32px) 24px;
  text-align: center;
}
.seo-styling .seo-stat-num {
  display: block;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: #CC1F1F;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.seo-styling .seo-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7A7A7A;
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   10. ACCREDITATION STRIP — reuses the site's .certs / .cert-item naming
   -------------------------------------------------------------------------- */

.seo-styling .certs,
.seo-styling .seo-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.seo-styling .certs > li,
.seo-styling .seo-certs > li { padding: 0; margin: 0; }
.seo-styling .certs > li::before,
.seo-styling .seo-certs > li::before { display: none; }

.seo-styling .cert-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: #FFFFFF;
  border: 1px solid rgba(13, 13, 13, .08);
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0D0D0D;
  transition: border-color .35s cubic-bezier(.4, 0, .2, 1),
              transform .35s cubic-bezier(.4, 0, .2, 1);
}
.seo-styling .cert-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CC1F1F;
  flex: none;
}
.seo-styling .cert-item:hover {
  border-color: rgba(204, 31, 31, .18);
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   11. MARKET / CAPABILITY CHIPS — reuses .market-item naming
   -------------------------------------------------------------------------- */

.seo-styling .seo-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.seo-styling .seo-markets > li { padding: 0; margin: 0; }
.seo-styling .seo-markets > li::before { display: none; }

.seo-styling .market-item {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  background: rgba(204, 31, 31, .08);
  border: 1px solid rgba(204, 31, 31, .18);
  border-radius: 8px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #0D0D0D;
  transition: background .35s cubic-bezier(.4, 0, .2, 1),
              color .35s cubic-bezier(.4, 0, .2, 1),
              border-color .35s cubic-bezier(.4, 0, .2, 1);
}
.seo-styling .market-item:hover {
  background: #CC1F1F;
  color: #fff;
  border-color: #CC1F1F;
}


/* --------------------------------------------------------------------------
   12. CALLOUT / NOTE BOX
   -------------------------------------------------------------------------- */

.seo-styling .seo-callout {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 2.6vw, 36px);
  padding-left: clamp(28px, 3vw, 42px);
  background: #F8F7F5;
  border-radius: 16px;
  border-left: 4px solid #CC1F1F;
  margin: 0 0 28px;
}
.seo-styling .seo-callout > *:last-child { margin-bottom: 0; }
.seo-styling .seo-callout p { color: #0D0D0D; }

.seo-styling blockquote {
  margin: 0 0 28px;
  padding: clamp(22px, 2.4vw, 32px) clamp(26px, 2.8vw, 40px);
  background: #F8F7F5;
  border-left: 4px solid #CC1F1F;
  border-radius: 16px;
}
.seo-styling blockquote p {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  color: #0D0D0D;
  text-transform: none;
  letter-spacing: -.01em;
}
.seo-styling blockquote > *:last-child { margin-bottom: 0; }


/* --------------------------------------------------------------------------
   13. CTA BANNER — reuses the site's .cta-banner naming and red band
   NOTE: the T4 template already outputs a site-wide red CTA band beneath
   every article, so only use this inside an article if you deliberately
   want a second one.
   -------------------------------------------------------------------------- */

.seo-styling .cta-banner,
.seo-styling .seo-cta {
  position: relative;
  overflow: hidden;
  margin: clamp(44px, 6vw, 84px) 0 0;
  padding: clamp(38px, 5vw, 68px) clamp(26px, 4vw, 60px);
  background: #CC1F1F;
  border-radius: 16px;
  text-align: center;
  color: #fff;
}

/* Subtle diagonal sheen, same treatment as the site's red bands */
.seo-styling .cta-banner::after,
.seo-styling .seo-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, .14), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0, 0, 0, .14), transparent 50%);
  pointer-events: none;
}

.seo-styling .cta-banner > *,
.seo-styling .seo-cta > * { position: relative; z-index: 1; }

.seo-styling .cta-banner-title,
.seo-styling .seo-cta h2,
.seo-styling .seo-cta h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 0;
}
.seo-styling .seo-cta h2::after,
.seo-styling .seo-cta h3::after { display: none; }

.seo-styling .cta-banner-sub,
.seo-styling .seo-cta p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
  max-width: 62ch;
  margin: 0 auto 1.15em;
}

.seo-styling .seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

/* Contact details inside the CTA */
.seo-styling .seo-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  list-style: none;
}
.seo-styling .seo-contact > li {
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}
.seo-styling .seo-contact > li::before { display: none; }
.seo-styling .seo-contact strong {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 5px;
}
.seo-styling .seo-contact a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .4);
}
.seo-styling .seo-contact a:hover { color: #fff; border-bottom-color: #fff; }


/* --------------------------------------------------------------------------
   14. SECTION WRAPPERS / TINTED BANDS
   -------------------------------------------------------------------------- */

.seo-styling .seo-section { margin-bottom: clamp(44px, 6vw, 84px); }
.seo-styling .seo-section > *:last-child { margin-bottom: 0; }
.seo-styling .seo-section > h2:first-child { margin-top: 0; }

.seo-styling .seo-band {
  background: #F8F7F5;
  border-radius: 16px;
  padding: clamp(28px, 3.4vw, 52px);
  margin: clamp(44px, 6vw, 84px) 0;
}
.seo-styling .seo-band > *:first-child { margin-top: 0; }
.seo-styling .seo-band > *:last-child { margin-bottom: 0; }

/* Constrain long-form reading width */
.seo-styling .seo-measure { max-width: 72ch; }


/* --------------------------------------------------------------------------
   15. TABLES
   -------------------------------------------------------------------------- */

.seo-styling table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: clamp(14px, 1.05vw, 16px);
}
.seo-styling table th {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7A7A7A;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid rgba(13, 13, 13, .08);
}
.seo-styling table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(13, 13, 13, .08);
  color: #3D3D3D;
  line-height: 1.6;
}
.seo-styling table tr:hover td { background: #F8F7F5; }


/* --------------------------------------------------------------------------
   16. UTILITIES
   -------------------------------------------------------------------------- */

.seo-styling .seo-text-center { text-align: center; }
.seo-styling .seo-text-center .seo-lead,
.seo-styling .seo-text-center p { margin-left: auto; margin-right: auto; }
.seo-styling .seo-text-center h2 { padding-bottom: 20px; }
.seo-styling .seo-text-center h2::after { left: 50%; transform: translateX(-50%); }

.seo-styling .seo-mt-0 { margin-top: 0 !important; }
.seo-styling .seo-mb-0 { margin-bottom: 0 !important; }
.seo-styling .seo-mb-sm { margin-bottom: 14px !important; }
.seo-styling .seo-mb-lg { margin-bottom: clamp(44px, 6vw, 84px) !important; }


/* --------------------------------------------------------------------------
   17. REVEAL ON SCROLL (optional — matches the site's .reveal / .is-visible)
   Add class="seo-reveal" to any block. Without JS it stays visible.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .seo-styling .seo-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
  }
  .seo-styling .seo-reveal.is-visible,
  .seo-styling .seo-reveal.in {
    opacity: 1;
    transform: none;
  }
  /* Fallback: if no JS ever runs, reveal after first paint */
  .seo-styling.no-js .seo-reveal { opacity: 1; transform: none; }
}


/* --------------------------------------------------------------------------
   18. DARK MODE — follows the site's .dark-mode body class
   Values are written out in full (no variables to re-point).
   -------------------------------------------------------------------------- */

body.dark-mode .seo-styling { color: rgba(245, 245, 246, .74); }

body.dark-mode .seo-styling h1,
body.dark-mode .seo-styling h2,
body.dark-mode .seo-styling h3,
body.dark-mode .seo-styling h4,
body.dark-mode .seo-styling h5,
body.dark-mode .seo-styling h6,
body.dark-mode .seo-styling strong,
body.dark-mode .seo-styling b,
body.dark-mode .seo-styling .seo-lead,
body.dark-mode .seo-styling .seo-intro-lead,
body.dark-mode .seo-styling .seo-spec-value,
body.dark-mode .seo-styling .cert-item,
body.dark-mode .seo-styling .market-item,
body.dark-mode .seo-styling .seo-callout p,
body.dark-mode .seo-styling blockquote p,
body.dark-mode .seo-styling .btn-secondary { color: #F5F5F6; }

body.dark-mode .seo-styling p,
body.dark-mode .seo-styling ul > li,
body.dark-mode .seo-styling ol > li,
body.dark-mode .seo-styling table td { color: rgba(245, 245, 246, .74); }

body.dark-mode .seo-styling .seo-spec-label,
body.dark-mode .seo-styling .seo-stat-label,
body.dark-mode .seo-styling table th { color: rgba(245, 245, 246, .54); }

body.dark-mode .seo-styling .seo-card,
body.dark-mode .seo-styling .wf-column.seo-card,
body.dark-mode .seo-styling .seo-stat,
body.dark-mode .seo-styling .cert-item {
  background: #16161A;
  border-color: rgba(255, 255, 255, .1);
}
body.dark-mode .seo-styling .seo-card,
body.dark-mode .seo-styling .wf-column.seo-card { box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
body.dark-mode .seo-styling .seo-card:hover,
body.dark-mode .seo-styling .wf-column.seo-card:hover { box-shadow: 0 28px 70px rgba(0, 0, 0, .55); }

body.dark-mode .seo-styling .seo-card.seo-card-flat,
body.dark-mode .seo-styling .seo-band,
body.dark-mode .seo-styling .seo-callout,
body.dark-mode .seo-styling blockquote { background: #101013; }

/* Media placeholder tint, and take the glare off studio-white shots */
body.dark-mode .seo-styling .seo-media { background: #101013; }
body.dark-mode .seo-styling .seo-media img { filter: brightness(.92); }
body.dark-mode .seo-styling .seo-card.seo-card-flat { border-color: transparent; }

body.dark-mode .seo-styling .seo-intro,
body.dark-mode .seo-styling .seo-closing,
body.dark-mode .seo-styling .seo-hero { border-color: rgba(255, 255, 255, .1); }

body.dark-mode .seo-styling hr,
body.dark-mode .seo-styling .seo-stats { background: rgba(255, 255, 255, .1); }
body.dark-mode .seo-styling .seo-stats,
body.dark-mode .seo-styling .seo-specs,
body.dark-mode .seo-styling .seo-spec,
body.dark-mode .seo-styling table th,
body.dark-mode .seo-styling table td { border-color: rgba(255, 255, 255, .1); }

body.dark-mode .seo-styling .btn-secondary { border-color: rgba(255, 255, 255, .18); }
body.dark-mode .seo-styling .market-item {
  background: rgba(204, 31, 31, .16);
  border-color: rgba(204, 31, 31, .34);
}
body.dark-mode .seo-styling .seo-card-badge { background: rgba(204, 31, 31, .16); }
body.dark-mode .seo-styling table tr:hover td { background: rgba(255, 255, 255, .04); }


/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Site convention stack breakpoints: wf-columns-stack-small|medium|large
   The attribute selector is repeated in each of these so the stack rule always
   out-ranks the data-wf-columns / wf-columns-count rules above, regardless of
   source order. */
@media (max-width: 575px) {
  .seo-styling .wf-columns.wf-columns-stack-small,
  .seo-styling .wf-columns.wf-columns-stack-small[data-wf-columns],
  .seo-styling .wf-columns.wf-columns-stack-small[class*="wf-columns-count-"] { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .seo-styling .wf-columns.wf-columns-stack-medium,
  .seo-styling .wf-columns.wf-columns-stack-medium[data-wf-columns],
  .seo-styling .wf-columns.wf-columns-stack-medium[class*="wf-columns-count-"] { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .seo-styling .wf-columns.wf-columns-stack-large,
  .seo-styling .wf-columns.wf-columns-stack-large[data-wf-columns],
  .seo-styling .wf-columns.wf-columns-stack-large[class*="wf-columns-count-"] { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .seo-styling .wf-columns.wf-columns-count-3,
  .seo-styling .wf-columns.wf-columns-count-4,
  .seo-styling .wf-columns.wf-columns-count-3[data-wf-columns],
  .seo-styling .wf-columns.wf-columns-count-4[data-wf-columns],
  .seo-styling .wf-columns[data-wf-columns="2"],
  .seo-styling .wf-columns[data-wf-columns="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seo-styling .wf-columns.seo-split-60-40,
  .seo-styling .wf-columns.seo-split-40-60,
  .seo-styling .wf-columns.seo-split-70-30,
  .seo-styling .wf-columns.seo-split-30-70 { grid-template-columns: 1fr; }
  .seo-styling .seo-spec-label { flex: 0 0 150px; }
}

@media (max-width: 767px) {
  /* Everything stacks */
  .seo-styling .wf-columns,
  .seo-styling .wf-columns.wf-columns-count-2,
  .seo-styling .wf-columns.wf-columns-count-3,
  .seo-styling .wf-columns.wf-columns-count-4,
  .seo-styling .wf-columns.wf-columns-count-2[data-wf-columns],
  .seo-styling .wf-columns.wf-columns-count-3[data-wf-columns],
  .seo-styling .wf-columns.wf-columns-count-4[data-wf-columns],
  .seo-styling .wf-columns[data-wf-columns] { grid-template-columns: 1fr; }

  /* Tighter gap + tighter block rhythm on small screens */
  .seo-styling .wf-columns { gap: 18px; margin-bottom: 18px; }
  .seo-styling .wf-columns.wf-columns-gap-3,
  .seo-styling .wf-columns.wf-columns-gap-large { gap: 24px; }

  .seo-styling h2 { margin-top: 40px; }
  .seo-styling hr { margin: 40px 0; }
  .seo-styling .seo-section { margin-bottom: 40px; }
  .seo-styling .seo-band { margin: 40px 0; }
  .seo-styling .seo-closing { margin-top: 40px; }
  .seo-styling .seo-hero { margin-bottom: 40px; }
  .seo-styling .cta-banner,
  .seo-styling .seo-cta { margin-top: 40px; }
  .seo-styling .seo-mb-lg { margin-bottom: 40px !important; }

  .seo-styling .seo-stats,
  .seo-styling .certs,
  .seo-styling .seo-certs,
  .seo-styling .seo-markets,
  .seo-styling .seo-callout,
  .seo-styling blockquote,
  .seo-styling table { margin-bottom: 18px; }

  .seo-styling ul.seo-list-2col { columns: 1; }

  /* Media: tighter rhythm, and never let a tall crop dominate the screen */
  .seo-styling .seo-media { margin-bottom: 18px; }
  .seo-styling .seo-media-feature { margin-bottom: 24px; }
  .seo-styling > .seo-media,
  .seo-styling .seo-section > .seo-media,
  .seo-styling .seo-band > .seo-media,
  .seo-styling .seo-intro > .seo-media { height: 190px; }
  .seo-styling .seo-media-1x1 { aspect-ratio: 4 / 3; }
  /* Columns are full-width now, so a fixed height still reads well */
  .seo-styling .wf-column .seo-media,
  .seo-styling .seo-card .seo-media,
  .seo-styling .seo-callout .seo-media { height: 190px; }
  .seo-styling .wf-column .seo-media.seo-media-short,
  .seo-styling .seo-card .seo-media.seo-media-short { height: 150px; }
  .seo-styling .wf-column .seo-media.seo-media-tall,
  .seo-styling .seo-card .seo-media.seo-media-tall { height: 220px; }
  .seo-styling .wf-column > .seo-media.seo-media-fill { min-height: 190px; height: 190px; }
  .seo-styling .seo-card > .seo-media:first-child { margin-bottom: 20px; }

  .seo-styling .seo-spec { display: block; }
  .seo-styling .seo-spec-label { margin-bottom: 5px; }
  .seo-styling .seo-hero-actions .btn,
  .seo-styling .seo-cta-actions .btn { width: 100%; }
  .seo-styling .seo-contact { gap: 18px; text-align: center; }
  .seo-styling .seo-contact > li { flex: 1 1 100%; }
}


/* --------------------------------------------------------------------------
   20. ACCESSIBILITY + PRINT
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .seo-styling *,
  .seo-styling *::before,
  .seo-styling *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .seo-styling .seo-reveal { opacity: 1 !important; transform: none !important; }
  .seo-styling .seo-card::before { transform: scaleY(1); }
}

.seo-styling a:focus-visible,
.seo-styling .btn:focus-visible {
  outline: 3px solid #CC1F1F;
  outline-offset: 3px;
  border-radius: 3px;
}

@media print {
  .seo-styling { color: #000; }
  .seo-styling h1, .seo-styling h2, .seo-styling h3 { color: #000; }
  .seo-styling h2 { margin-top: 24px; }
  .seo-styling hr { margin: 24px 0; }
  .seo-styling .seo-section { margin-bottom: 24px; }
  .seo-styling .seo-band { margin: 24px 0; }
  .seo-styling .seo-closing { margin-top: 24px; }
  .seo-styling .wf-columns { gap: 14px; margin-bottom: 14px; }
  .seo-styling p, .seo-styling li { color: #222; font-size: 11pt; line-height: 1.5; }
  .seo-styling h2, .seo-styling h3 { break-after: avoid; page-break-after: avoid; }
  .seo-styling .seo-card,
  .seo-styling .seo-band,
  .seo-styling .seo-callout {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .seo-styling .cta-banner,
  .seo-styling .seo-cta {
    background: #fff !important;
    border: 2px solid #CC1F1F;
    color: #000;
  }
  .seo-styling .cta-banner-title,
  .seo-styling .seo-cta h2,
  .seo-styling .seo-cta p,
  .seo-styling .seo-contact > li { color: #000 !important; }
  .seo-styling .btn { display: none; }

  /* Keep images with their heading, and cap the height so a photo
     never pushes a whole section onto the next printed page. */
  .seo-styling .seo-media {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 14px;
    max-height: 60mm;
    background: none;
  }
  .seo-styling .seo-media-feature { margin-bottom: 16px; }
  .seo-styling > .seo-media,
  .seo-styling .seo-section > .seo-media,
  .seo-styling .seo-band > .seo-media,
  .seo-styling .seo-intro > .seo-media { height: 50mm; }
  .seo-styling .wf-column .seo-media,
  .seo-styling .seo-card .seo-media,
  .seo-styling .seo-callout .seo-media { height: 42mm; }
  .seo-styling .seo-card > .seo-media:first-child {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 14px;
  }
  .seo-styling .seo-card:hover .seo-media img { transform: none; }
}
html body.site-default #t4-main-body .article-body .seo-styling h3{
        font-size: clamp(30px, 4vw, 30px);
}
.t4-header .menu-item-title{
    text-transform: uppercase;
}















/* ===================================================================
   AQ TIME24 — HERO TRAIN IMAGE FIX (SmartSlider3 override)
   Makes the SmartSlider3 "Force Full Width" background image match
   the concept exactly: right-aligned, 52% width, full height, soft
   left-edge fade into the hero background, 0.92 opacity, responsive.
   Every rule uses !important because SmartSlider3 re-applies inline
   transform/width styles via JS on load + resize.
   =================================================================== */

/* 1) Hero section must be the positioning + clipping context
      (mirrors .hero{position:relative;overflow:hidden} in the concept) */
#t4-section-1 .custom{
  position:relative !important;
  overflow:hidden !important;
}

/* 2) Outer image container — pin it to the right edge, 52% wide,
      full height, fade the left edge into the background, dim slightly */
#t4-section-1 .custom .hero-bg-image{
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  left:auto !important;
  bottom:0 !important;
  width:52% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  z-index:1 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  opacity:.92 !important;
  -webkit-mask-image:linear-gradient(to left,rgba(0,0,0,1) 30%,rgba(0,0,0,0.55) 65%,rgba(0,0,0,0) 100%) !important;
  mask-image:linear-gradient(to left,rgba(0,0,0,1) 30%,rgba(0,0,0,0.55) 65%,rgba(0,0,0,0) 100%) !important;
}

/* 3) Kill SmartSlider's "Force Full Width" stretching on every wrapper
      layer between .hero-bg-image and the actual slide — force each
      one to simply fill its parent at 100% x 100%, no transform,
      no oversized width, no drag cursor (it's decorative now) */
#t4-section-1 .custom .hero-bg-image > div,
#t4-section-1 .custom .hero-bg-image .n2_clear,
#t4-section-1 .custom .hero-bg-image ss3-force-full-width,
#t4-section-1 .custom .hero-bg-image .n2-section-smartslider,
#t4-section-1 .custom .hero-bg-image .n2-ss-align,
#t4-section-1 .custom .hero-bg-image .n2-padding,
#t4-section-1 .custom .hero-bg-image .n2-ss-slider,
#t4-section-1 .custom .hero-bg-image .n2-ss-slider-1,
#t4-section-1 .custom .hero-bg-image .n2-ss-slider-2,
#t4-section-1 .custom .hero-bg-image .n2-ss-slider-3{
  position:static !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  cursor:default !important;
  touch-action:auto !important;
  pointer-events:none !important;
}

/* 4) The actual background image layer + picture + img — fill the
      52%-wide box completely and crop with object-fit:cover so it
      never stretches or distorts (transform is intentionally left
      alone here — SmartSlider uses it to switch between slides) */
#t4-section-1 .custom .hero-bg-image .n2-ss-slide-backgrounds,
#t4-section-1 .custom .hero-bg-image .n2-ss-slide-background,
#t4-section-1 .custom .hero-bg-image .n2-ss-slide-background-image{
  position:absolute !important;
  top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
}

#t4-section-1 .custom .hero-bg-image .n2-ss-slide-background-image picture,
#t4-section-1 .custom .hero-bg-image .n2-ss-slide-background-image img{
  position:absolute !important;
  top:0 !important;left:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  filter:none !important;
}

/* 5) Hide SmartSlider's non-visual/decorative helper elements that
      have nothing to do with the image (this also fixes the stray
      "download.png" text that was visibly showing on the page) */
#t4-section-1 .custom .hero-bg-image .n2-ss-slider-4,
#t4-section-1 .custom .hero-bg-image ss3-loader,
#t4-section-1 .custom .hero-bg-image svg.n2-ss-preserve-size{
  display:none !important;
}

#t4-section-1 .custom .hero-bg-image .n2-ss-slide--focus{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* ---------- Responsive — matches the concept's breakpoints exactly ---------- */
@media (max-width:1024px){
  #t4-section-1 .custom .hero-bg-image{
    width:60% !important;
    opacity:.7 !important;
  }
}

@media (max-width:640px){
  #t4-section-1 .custom .hero-bg-image{
    width:100% !important;
    opacity:.4 !important;
  }
}
html body.site-default #t4-header .nav-cta a{
    text-align: center !important;
}
html body.site-default #t4-header .nav-cta .btn {
  justify-content: center !important;
}