/* ============================================================
   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(2, 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, 48px);
  }

  .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: 220px;
}

.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: #cacaca !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: linear-gradient(180deg, var(--bg-secondary) 0%, #ECE8E3 100%);
  background: #cacaca;
}

/* ============================================================
   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: 68px !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: 100px !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;
}

/* 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: #cacaca !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;
}
