/**
 * Motionwell Automation - Main Stylesheet
 * Design tokens plus Gemini format
 */

/* === Design Tokens === */
:root {
  /* Colors - Motionwell Brand */
  --primary-color: #8B0000;
  --primary-dark: #600000;
  --accent-color: #333333;
  --text-color: #555555;
  /* #777777 gives 4.48:1 on white and 4.14:1 on #f4f6f9, so it fails AA on
     both. Measured with axe-core: #777777 = 94 violations, #767676 still 28
     (.cs-tag fails on the light grey ground), #6e6e6e = 0 (5.10 on white,
     4.71 on light grey, with headroom on both). */
  --text-light: #6e6e6e;
  --bg-light: #f4f6f9;
  --white: #ffffff;
  --border-color: rgba(0, 0, 0, 0.1);

  /* Spacing Scale (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography Scale */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Touch Targets */
  --touch-min: 44px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius: var(--radius-md);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Transition */
  --transition-base: 200ms ease;
  --transition-fast: 100ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Hidden visually, readable by screen readers and search engines. Used to give
   generic anchor text such as "Read More" the context it is missing. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--accent-color);
}

h3 {
  color: #222222;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-20) 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* === Header === */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-weight: 500;
  color: var(--accent-color);
  font-size: var(--text-base);
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* CTA Button */
.btn-cta {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 25px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 2px solid var(--primary-color);
}

.btn-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-cta-white {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.btn-cta-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-color);
  margin: 6px 0;
  transition: var(--transition-base);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 101;
  padding: var(--space-6);
  /* When closed the panel has to leave the focusable tree for real. With only
     right:-100%, the 7 links on the panel stay in the tab order and a keyboard
     user tabs to things off screen (WCAG 2.4.7). visibility goes into the
     transition with a 0.3s delay on the closing side, so it flips only after
     the slide-out animation has finished and the animation survives. */
  transition: right 0.3s ease, visibility 0s linear 0.3s;
  visibility: hidden;
}

.mobile-nav.active {
  right: 0;
  visibility: visible;
  transition: right 0.3s ease, visibility 0s linear 0s;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.close-menu {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  color: var(--text-light);
}

.mobile-nav-menu {
  margin-top: 60px;
}

.mobile-nav-menu a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--accent-color);
  border-bottom: 1px solid var(--border-color);
}

/* === Hero Section === */

.btn-cta-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-cta-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* === Section Header === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-3xl);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: var(--space-3) auto 0;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-light);
}

/* === What We Do / Why Motionwell Cards === */
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (min-width: 769px) {
  .wwd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wwd-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

/* The card title is a small uppercase red label. As a link it keeps the label
   look and takes an underline only on hover and focus. */
.wwd-card-title a {
  color: inherit;
  text-decoration: none;
}

.wwd-card-title a:hover,
.wwd-card-title a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wwd-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--primary-color);
}

.wwd-card p {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.7;
  margin: 0;
}

.wwd-summary {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.wwd-summary a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wwd-summary a:hover,
.wwd-summary a:focus-visible {
  color: var(--primary-dark);
}

.wwd-summary p {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .wwd-grid {
    grid-template-columns: 1fr;
  }
}

/* === Milestones Grid === */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.milestone-item {
  background: var(--white);
  padding: var(--space-6);
  border-left: 5px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.milestone-item:hover {
  box-shadow: var(--shadow);
}

.milestone-item .year {
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: var(--space-2);
}

.milestone-item .milestone-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
}

/* === Solutions Grid === */
.solutions-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.solutions-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

a.solution-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.solution-card h3 {
  color: var(--text-dark);
}

a.solution-card:hover h3 {
  color: var(--primary-color);
}

.solution-card-large .card-img {
  height: 220px;
}

.solution-card-small .card-img {
  height: 160px;
}

.solution-card-small .card-body {
  padding: var(--space-4);
}

.solution-card-small .card-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.solution-card-small .card-body p {
  font-size: 13px;
  margin-bottom: 0;
}

.card-tags {
  margin-top: var(--space-3);
}

/* === Industry Grid (Legacy) === */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 200px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: var(--space-6);
}

.card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--accent-color);
}

.card-body p {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: var(--space-4);
}

.tag {
  display: inline-block;
  background: rgba(139, 0, 0, 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--primary-color);
}

/* === Product Section === */
.product-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.product-item:nth-child(even) {
  flex-direction: row-reverse;
}

.product-item:last-child {
  margin-bottom: 0;
}

.product-img-box {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-img-box img {
  width: 100%;
  height: auto;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  color: var(--primary-color);
}

.product-info > p {
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
  line-height: 1.8;
  color: var(--text-color);
}

.feature-list {
  padding-left: 0;
}

.feature-list li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-color);
}

.feature-list li::before {
  content: '\2713';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* === Partners Section === */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  min-height: 80px;
}

.logo-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.logo-box img {
  width: 100%;
  max-width: 160px;
  height: 46px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .logo-box {
    padding: var(--space-3);
    min-height: 60px;
  }

  .logo-box img {
    height: 34px;
  }

  .logo-box img {
    max-height: 40px;
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Footer === */
.footer {
  background: linear-gradient(180deg, #6a0000 0%, #520000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-12) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-5);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.footer h3 {
  color: var(--white);
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
}

.footer-contact li {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

/* The phone number and email address are links, and they used to look exactly
   like the plain text beside them, so nothing showed they were clickable.
   The hover rule is not decoration: the global a:hover turns them #8B0000,
   which would vanish against the red footer. Specificity (0,2,1) here
   beats the global (0,1,1), and that is the actual fix. */
.footer-contact a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--white);
  text-decoration-thickness: 3px;
}

.footer-links a {
  display: block;
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav,
  .nav-backdrop {
    display: block;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }

  .product-item {
    flex-direction: column !important;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
  }

  .product-info h3 {
    font-size: var(--text-2xl);
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .solutions-primary {
    grid-template-columns: 1fr;
  }

  .solutions-secondary {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-card-large .card-img {
    height: 180px;
  }

  .solution-card-small .card-img {
    height: 140px;
  }

  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .milestone-item .year {
    font-size: var(--text-xl);
  }

  .btn-cta.header-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* === Page Content (Inner Pages) === */

/* Page Hero Section */
.page-hero {
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  min-height: calc(350px + var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* The hero image runs at full opacity. It used to sit at opacity .3 over a
   brand-red gradient, which washed out about seventy per cent of the machine
   and tinted the whole block red. Now the image shows in full under a neutral
   dark scrim, and the scrim is heavy only on the text side and falls away
   quickly to the right, so the metal reads through. */
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

/* A hero with a photo starts on a neutral grey, so the logo-red base does not
   flash before the photo paints (red flash on refresh, 2026-11-26). */
.page-hero:has(.page-hero-bg) {
  background: #8a8584;
}

/* Readability scrim for the text: heavy on the left, light on the right, in a
   light black: photo scrims use light black or light blue, never light red (2026-11-26). */
.page-hero:has(.page-hero-bg)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(18, 12, 12, 0.88) 0%, rgba(18, 12, 12, 0.70) 38%,
                    rgba(18, 12, 12, 0.34) 68%, rgba(18, 12, 12, 0.14) 100%),
    linear-gradient(to top, rgba(18, 12, 12, 0.45), transparent 42%);
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  background: linear-gradient(to top, var(--white), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.page-hero .pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-hero h1 {
  font-size: var(--text-4xl);
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  margin-bottom: var(--space-4);
  font-weight: 700;
  line-height: 1.2;
}

/* Primary CTA in a blog post hero. The hero carries a background image, so the
   button needs a shadow to hold its own against it. */
.page-hero-content .btn-cta {
  margin-top: var(--space-5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-hero .hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  max-width: 600px;
}

/* Page Content Section */
.page-content {
  padding: var(--space-16) 0;
  background: var(--white);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
}

.content-main {
  min-width: 0;
}

/* Sidebar Styles */
.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: fit-content;
}

.sidebar-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.share-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-light);
  color: var(--text-color);
  border-radius: 4px;
  font-size: 13px;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.share-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.sidebar-box h2, .sidebar-box h4 {
  font-size: var(--text-lg);
  color: var(--accent-color);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary-color);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.sidebar-value {
  color: var(--text-light);
  font-size: 14px;
}

.sidebar-contact {
  background: var(--primary-color);
  color: var(--white);
}

.sidebar-contact h2,
.sidebar-contact h3,
.sidebar-contact h4 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.sidebar-contact p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: var(--space-4);
}

.btn-sidebar {
  display: block;
  background: var(--white);
  color: var(--primary-color);
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-sidebar:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Content Typography */
/* Make editorial links recognisable without changing navigation or CTA buttons. */
.content-main :is(p, li, td, figcaption) a:not([class]),
.ind-page-content :is(p, li, td, figcaption) a:not([class]) {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.content-main :is(p, li, td, figcaption) a:not([class]):hover,
.ind-page-content :is(p, li, td, figcaption) a:not([class]):hover {
  color: var(--primary-dark);
}

.content-main h2 {
  font-size: var(--text-2xl);
  color: var(--primary-color);
  margin: var(--space-10) 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--bg-light);
  position: relative;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.content-main h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin: var(--space-8) 0 var(--space-4);
}

.content-main h4 {
  font-size: var(--text-lg);
  color: var(--accent-color);
  margin: var(--space-6) 0 var(--space-3);
}

.content-main p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
  color: var(--text-color);
}

.content-main ul,
.content-main ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.content-main li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
  color: var(--text-color);
}

.content-main ul li {
  list-style: none;
  position: relative;
  padding-left: var(--space-5);
}

.content-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

.content-main ol li {
  list-style: decimal;
  padding-left: var(--space-2);
}

/* Content Images */
.content-main img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: var(--space-6) 0;
}

/* Content Tables */
.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Table headers are a single light treatment. thead used to be a #8B0000 deep
   red ground while .content-main th layered rgba(139,0,0,.06) under #333 text
   on top of it, measuring 1.26 contrast where WCAG AA asks for 4.5, which is
   effectively invisible. */
.content-main thead {
  background: transparent;
}

.content-main th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-main td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-color);
}

.content-main tbody tr:last-child td {
  border-bottom: none;
}

.content-main tbody tr:hover {
  background: var(--bg-light);
}

/* Content Code Blocks */
.content-main pre,
.content-main code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.content-main code {
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--primary-color);
}

.content-main pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.content-main pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.6;
}

/* Content Blockquote */
.content-main blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--bg-light);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.content-main blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-color);
}

/* Content Strong/Bold */
.content-main strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Page CTA Section */
.page-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: var(--space-16) 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.page-cta .btn-cta {
  background: var(--white);
  color: var(--primary-color);
  padding: 14px 40px;
  font-size: var(--text-lg);
}

.page-cta .btn-cta:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Inner Pages */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
  }

  .sidebar-box {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 280px;
  }

  .page-hero h1 {
    font-size: var(--text-2xl);
  }

  .page-content {
    padding: var(--space-10) 0;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .content-main h2 {
    font-size: var(--text-xl);
  }

  .content-main table {
    display: block;
    overflow-x: auto;
  }

  .page-cta {
    padding: var(--space-12) 0;
  }

  .cta-content h2 {
    font-size: var(--text-2xl);
  }
}

/* Legacy Support */
.page-header {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-8);
  background: var(--bg-light);
}

.page-header h1 {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.page-header .lead {
  font-size: var(--text-lg);
  color: var(--text-light);
  max-width: 700px;
}

.content-wrapper {
  padding: var(--space-12) 0;
}

.content h2 {
  font-size: var(--text-2xl);
  color: var(--accent-color);
  margin: var(--space-8) 0 var(--space-4);
}

.content h3 {
  font-size: var(--text-xl);
  margin: var(--space-6) 0 var(--space-3);
}

.content p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.content ul,
.content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content li {
  margin-bottom: var(--space-2);
  list-style: disc;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* === Enhanced Solution Page Typography === */

/* Lead paragraph - first paragraph after h2 */
.content-main > p:first-of-type,
.content-main h2 + p {
  font-size: var(--text-lg);
  color: var(--text-color);
  line-height: 1.9;
}

/* Feature highlight boxes removed 2026-11-25: the selectors also matched any paragraph with one
   bold phrase, which cut sentences into a separate box on 38 pages. */

/* Nested lists styling */
.content-main ul ul,
.content-main ol ul {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  padding-left: var(--space-5);
}

.content-main ul ul li::before {
  width: 4px;
  height: 4px;
  background: var(--text-light);
  top: 12px;
}

/* Definition-style list items with em dash */
.content-main li strong {
  color: var(--primary-color);
}

/* Image captions */
.content-main img + em,
.content-main p:has(img) + p > em:only-child {
  display: block;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-6);
}

/* Better spacing for image sections */
.content-main h3 + p:has(img),
.content-main h2 + p:has(img) {
  margin-top: var(--space-4);
}

/* FAQ styling */
.content-main h3:has(+ p) {
  margin-bottom: var(--space-3);
}

/* Horizontal rule styling */
.content-main hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  margin: var(--space-10) 0;
}

/* Enhanced blockquote for callouts */
.content-main blockquote {
  position: relative;
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(200, 16, 46, 0.03) 100%);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.content-main blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.content-main blockquote p {
  font-size: var(--text-lg);
  font-style: normal;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Table enhancements */
.content-main table {
  font-size: 15px;
}

.content-main table caption {
  caption-side: bottom;
  padding: var(--space-3);
  font-size: 13px;
  color: var(--text-light);
  text-align: left;
}

/* First column emphasis in tables */
.content-main td:first-child {
  font-weight: 500;
  color: var(--accent-color);
}

/* Alternating row colors for better readability */
.content-main tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.content-main tbody tr:nth-child(even):hover {
  background: rgba(200, 16, 46, 0.05);
}

.content-main tbody tr:nth-child(odd):hover {
  background: var(--bg-light);
}

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

/* Blog listing page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-8);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: 13px;
  color: var(--text-light);
}

.blog-card-meta .category {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.blog-card h3 a {
  color: inherit;
  transition: color var(--transition-fast);
}

.blog-card h3 a:hover {
  color: var(--primary-color);
}

.blog-card p {
  color: var(--text-color);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}

.blog-card .read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-card .read-more:hover {
  gap: 10px;
}

/* Blog single post */
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.4;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-light);
}

.blog-post-meta .author {
  display: inline;
}
.blog-post-meta .author a {
  display: inline-block;
  padding: 2px 0;
}

.blog-post-meta .updated { color: #333; font-weight: 600; }
.blog-post-meta .category {
  line-height: 1.4;
  background: rgba(200, 16, 46, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

/* Featured post on blog listing */
.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
}

.blog-featured .blog-card-img {
  aspect-ratio: auto;
  min-height: 300px;
}

.blog-featured .blog-card-body {
  padding: var(--space-8);
  justify-content: center;
}

.blog-featured h3 {
  font-size: var(--text-2xl);
}

/* Blog sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.blog-sidebar-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.blog-sidebar-box h4 {
  font-size: var(--text-lg);
  color: var(--accent-color);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary-color);
}

.blog-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-categories li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-categories li:last-child {
  border-bottom: none;
}

.blog-categories a {
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  transition: color var(--transition-fast);
}

.blog-categories a:hover {
  color: var(--primary-color);
}

.blog-categories .count {
  color: var(--text-light);
  font-size: 13px;
}

/* Recent posts widget */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts a {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
  display: block;
  transition: color var(--transition-fast);
}

.recent-posts a:hover {
  color: var(--primary-color);
}

.recent-posts .date {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* === List Page Styles === */

.list-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
}

.list-hero h1 {
  color: var(--white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.list-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.list-content {
  padding: var(--space-16) 0;
  background: var(--bg-light);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.list-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  display: block;
}

.list-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.list-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-light);
}

.list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.list-card:hover .list-card-img img {
  transform: scale(1.05);
}

.list-card-body {
  padding: var(--space-6);
}

.list-card .pill {
  display: inline-block;
  background: rgba(200, 16, 46, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.list-card h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.list-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.list-card .learn-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.list-card:hover .learn-more {
  gap: 10px;
}

/* Contact page specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-info h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-bottom: var(--space-4);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item-content h4 {
  font-size: var(--text-lg);
  color: var(--accent-color);
  margin-bottom: var(--space-2);
}

.contact-item-content p {
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

.contact-item-content a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Contact form */
.contact-form {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--space-2);
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.btn-submit {
  background: var(--primary-color);
  color: var(--white);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .list-hero h1 {
    font-size: var(--text-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   List Card Placeholder Styles
   ======================================== */

.list-card-placeholder {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-pattern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.placeholder-letter {
  font-size: 72px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  z-index: 2;
  line-height: 1;
}

.placeholder-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.placeholder-decoration::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.placeholder-decoration::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

/* Geometric pattern overlay */
.list-card-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  fill: rgba(255, 255, 255, 0.3);
  z-index: 2;
}

/* Hover effect for placeholder cards */
.list-card:hover .list-card-placeholder {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #4a0000 100%);
}

.list-card:hover .placeholder-letter {
  color: rgba(255, 255, 255, 0.25);
}

/* Blog card placeholder */
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-placeholder .placeholder-letter {
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  z-index: 2;
}

.blog-card-placeholder .placeholder-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.blog-card:hover .blog-card-placeholder {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #4a0000 100%);
}

.blog-card:hover .blog-card-placeholder .placeholder-letter {
  color: rgba(255, 255, 255, 0.25);
}

/* === Industries Page === */

/* Hero */

.btn-cta-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-cta-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

.ind-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

.ind-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
}

.ind-stat-title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.ind-stat-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Sticky Jump Nav */
.ind-jump-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-3) 0;
}

.ind-chiprow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ind-chiprow::-webkit-scrollbar {
  display: none;
}

.ind-chip-label {
  font-size: var(--text-sm);
  color: var(--text-light);
  white-space: nowrap;
  font-weight: 600;
}

.ind-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-color);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-base);
}

.ind-chip:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Section Title */
.ind-section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.ind-section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: var(--space-12);
  font-size: var(--text-lg);
}

/* Industry Card Grid */
.ind-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.ind-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition-base);
  overflow: hidden;
}

.ind-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ind-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ind-card:hover .ind-card-img img {
  transform: scale(1.05);
}

.ind-card-body {
  padding: var(--space-6);
}

.ind-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.ind-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.ind-card-top h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}

.ind-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(139, 0, 0, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
}

.ind-minihead {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.ind-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--text-color);
}

.ind-card-desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.6;
  margin-top: var(--space-2);
}

/* Industry Details */
.ind-details {
  padding-bottom: var(--space-16);
}

.ind-detail {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: calc(var(--header-height) + 56px);
}

.ind-detail:last-of-type {
  border-bottom: none;
}

.ind-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.ind-detail-head h4 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--accent-color);
}

.ind-overview {
  font-size: var(--text-base);
  color: var(--text-color);
  line-height: 1.8;
  max-width: 700px;
}

.ind-detail-head .btn-cta {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: var(--space-2);
}

.ind-detail-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.ind-detail-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.ind-box-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  margin-bottom: var(--space-4);
}

.ind-detail-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ind-detail-box li {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.6;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ind-detail-box li:last-child {
  border-bottom: none;
}

.ind-next {
  font-size: var(--text-sm);
  color: var(--text-light);
  padding: var(--space-4);
  background: rgba(139, 0, 0, 0.03);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Industries Bottom CTA */
.ind-cta {
  text-align: center;
  padding: var(--space-16) 0 var(--space-10);
}

.ind-cta h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.ind-cta p {
  color: var(--text-light);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.ind-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.ind-cta-buttons .btn-cta-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.ind-cta-buttons .btn-cta-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Industries Responsive */
@media (max-width: 768px) {

  .ind-stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .ind-section-title {
    font-size: var(--text-2xl);
  }

  .ind-card-grid {
    grid-template-columns: 1fr;
  }

  .ind-card-top h3 {
    font-size: var(--text-lg);
  }

  .ind-detail-head {
    flex-direction: column;
  }

  .ind-detail-head h4 {
    font-size: var(--text-xl);
  }

  .ind-detail-cols {
    grid-template-columns: 1fr;
  }

  .ind-cta h3 {
    font-size: var(--text-xl);
  }

  .ind-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ind-cta-buttons .btn-cta {
    width: 100%;
    max-width: 280px;
  }
}

/* === Case Studies Page === */

/* Hero */
/* ================================================
   Case Studies Page
   ================================================ */

/* Hero */

/* Filters */
.cs-filters {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-4) 0;
}

.cs-filter-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.cs-select {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--accent-color);
  background: var(--white);
  cursor: pointer;
  min-width: 180px;
  transition: var(--transition-base);
}

.cs-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
}

.cs-reset {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition-base);
}

.cs-reset:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Section */
.cs-section {
  padding: var(--space-16) 0;
  background: var(--bg-light);
}

/* Card - horizontal layout */
.cs-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-rows: auto auto;
  margin-bottom: var(--space-8);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cs-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.cs-card.hidden {
  display: none;
}

/* Card Visual */
.cs-card-visual {
  position: relative;
  overflow: hidden;
  grid-row: 1 / 2;
  min-height: 300px;
}

.cs-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cs-card:hover .cs-card-visual img {
  transform: scale(1.03);
}

.cs-card-number {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

/* Card Content */
.cs-card-content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  grid-row: 1 / 2;
}

.cs-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.cs-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--primary-color);
  color: var(--white);
}

.cs-badge-outline {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
}

.cs-card-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cs-card-desc {
  font-size: var(--text-base);
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-5);
}

.cs-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-light);
  color: var(--text-light);
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition-base);
}

/* Toggle Button */
.cs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--accent-color);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  align-self: flex-start;
}

.cs-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cs-toggle[aria-expanded="true"] {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.cs-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cs-toggle[aria-expanded="true"] .cs-toggle-icon {
  transform: rotate(180deg);
}

/* Card Detail - collapsed by default */
.cs-card-detail {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 0 solid transparent;
}

.cs-card-detail.open {
  max-height: 600px;
  border-top: 1px solid var(--border-color);
}

.cs-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-8);
  background: linear-gradient(135deg, #fafbfc, #f4f6f9);
}

.cs-detail-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.cs-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.cs-detail-box p {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.75;
  margin: 0;
}

/* No Results */
.cs-no-results {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--text-light);
  font-size: var(--text-lg);
}

.cs-no-results a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Bottom CTA */
.cs-bottom-cta {
  text-align: center;
  padding: var(--space-20) 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.cs-bottom-cta h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--accent-color);
}

.cs-bottom-cta p {
  color: var(--text-light);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.cs-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.cs-cta-buttons .btn-cta-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.cs-cta-buttons .btn-cta-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Case Studies Responsive */
@media (max-width: 900px) {
  .cs-card {
    grid-template-columns: 1fr;
  }

  .cs-card-visual {
    min-height: 220px;
    max-height: 280px;
  }

  .cs-detail-grid {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {

  .cs-filters {
    position: static;
  }

  .cs-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-select {
    min-width: unset;
    width: 100%;
  }

  .cs-section {
    padding: var(--space-10) 0;
  }

  .cs-card-content {
    padding: var(--space-6);
  }

  .cs-card-content h2 {
    font-size: var(--text-xl);
  }

  .cs-bottom-cta h3 {
    font-size: var(--text-2xl);
  }

  .cs-bottom-cta {
    padding: var(--space-12) 0;
  }

  .cs-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cs-cta-buttons .btn-cta {
    width: 100%;
    max-width: 280px;
  }
}

/* ================================================
   Industry Single Page
   ================================================ */

/* Hero - smaller variant of .ind-hero */
.ind-page-hero {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-12);
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.85) 50%, rgba(15, 52, 96, 0.82) 100%),
              url('/images/cases/qa-lab-automation-concept-1200.webp') center / cover no-repeat;
  color: var(--white);
  text-align: center;
  position: relative;
}

.ind-page-hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  color: var(--white);
}

.ind-page-lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.ind-page-hero .btn-cta {
  margin-top: var(--space-2);
}

/* Breadcrumb */
.ind-breadcrumb {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-6);
}

.ind-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ind-breadcrumb a:hover {
  color: var(--white);
}

.ind-breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Image */
.ind-page-hero-img-section {
  padding: var(--space-10) 0 0;
}

.ind-page-hero-img-section .container {
  max-width: 900px;
}

.ind-page-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Content area */
.ind-page-content {
  padding: var(--space-12) 0 var(--space-16);
}

.ind-page-content .container {
  max-width: 780px;
}

.ind-page-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-color);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.ind-page-content h2:first-child {
  margin-top: 0;
}

.ind-page-content p {
  font-size: var(--text-base);
  color: var(--text-color);
  line-height: 1.85;
  margin-bottom: var(--space-6);
}

/* Three-column detail boxes */
.ind-page-content .ind-detail-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: var(--space-10) calc(-1 * var(--space-8));
  padding: 0 var(--space-8);
  max-width: none;
}

.ind-page-content .ind-detail-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
}

.ind-page-content .ind-box-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--primary-color);
}

.ind-page-content .ind-detail-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ind-page-content .ind-detail-box li {
  font-size: 0.82rem;
  color: var(--text-color);
  line-height: 1.65;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ind-page-content .ind-detail-box li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Standalone headings and lists in page content (not inside detail boxes) */
.ind-page-content h2 {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.ind-page-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.ind-page-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent-color);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.ind-page-content .container > ul,
.ind-page-content .container > ol {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}

.ind-page-content .container > ol {
  list-style: decimal;
  padding-left: var(--space-10);
}

.ind-page-content .container > ul > li,
.ind-page-content .container > ol > li {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.7;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ind-page-content .container > ul > li:last-child,
.ind-page-content .container > ol > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ind-page-content .container > ul > li:first-child,
.ind-page-content .container > ol > li:first-child {
  padding-top: 0;
}

/* Blog and case study content styles */
.content-main h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent-color);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.content-main h2:first-child {
  border-top: none;
  padding-top: 0;
}

.content-main h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-color);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.content-main p {
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.content-main ul,
.content-main ol {
  padding: 0;
  margin-bottom: var(--space-6);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  list-style: none;
}

.content-main ol {
  list-style: decimal;
  padding-left: var(--space-10);
}

.content-main li {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.7;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.content-main li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.content-main li:first-child {
  padding-top: 0;
}

.content-main figure {
  margin: var(--space-8) 0;
}

.content-main figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-main figcaption {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.5;
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-main th {
  background: rgba(139, 0, 0, 0.06);
  font-weight: 700;
  color: #1f1f1f;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.content-main td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-color);
  line-height: 1.6;
}

.content-main tr:last-child td {
  border-bottom: none;
}

.ind-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ind-page-content th {
  background: rgba(139, 0, 0, 0.06);
  font-weight: 600;
  color: var(--accent-color);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.ind-page-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-color);
  line-height: 1.6;
}

.ind-page-content tr:last-child td {
  border-bottom: none;
}

/* Share buttons row */
.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* CTA callout at bottom of content */
.ind-page-content .ind-next {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.7;
  padding: var(--space-5) var(--space-6);
  background: rgba(139, 0, 0, 0.04);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: var(--space-10);
}

/* Content figures */
.ind-page-content figure {
  margin: var(--space-10) 0;
}

.ind-page-content figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ind-page-content figcaption {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* Featured Project */
.ind-featured-project {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin: var(--space-12) 0 var(--space-8);
  border-left: 4px solid var(--primary-color);
}

.ind-featured-project h2, .ind-featured-project h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: var(--space-3);
}

.ind-featured-project p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: var(--space-4);
}

.ind-featured-project ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-6);
}

.ind-featured-project li {
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  color: var(--text-color);
  line-height: 1.5;
}

.ind-featured-project li strong {
  color: var(--accent-color);
}

/* Related Industries */
.ind-page-related {
  padding: var(--space-16) 0;
  background: var(--bg-light);
}

.ind-page-related h2 {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-10);
  color: var(--accent-color);
}

.ind-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  max-width: 960px;
  margin: 0 auto;
}

.ind-related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition-base);
  text-align: center;
}

.ind-related-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.ind-related-card h2, .ind-related-card h3, .ind-related-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
}

/* 404 Page */
.page-404 {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-404 h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: var(--space-4);
}

.page-404-desc {
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: var(--space-8);
}

.page-404-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}

.page-404-links .btn-cta-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-404-links .btn-cta-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.page-404-nav p {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.page-404-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--space-6);
  justify-content: center;
}

.page-404-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.page-404-nav a:hover {
  text-decoration: underline;
}

/* Bottom CTA */
.ind-page-cta {
  text-align: center;
  padding: var(--space-16) 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.ind-page-cta h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--accent-color);
}

.ind-page-cta p {
  color: var(--text-light);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.ind-page-cta .ind-cta-buttons .btn-cta-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.ind-page-cta .ind-cta-buttons .btn-cta-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Industry Single Page Responsive */
@media (max-width: 768px) {
  .ind-page-hero {
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-8);
  }

  .ind-page-hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .ind-page-lead {
    font-size: var(--text-base);
  }

  .ind-page-hero-img-section {
    padding: var(--space-6) 0 0;
  }

  .ind-page-content {
    padding: var(--space-8) 0 var(--space-10);
  }

  .ind-page-content .ind-detail-cols {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .ind-featured-project ul {
    grid-template-columns: 1fr;
  }

  .ind-page-related {
    padding: var(--space-10) 0;
  }

  .ind-page-related h2 {
    font-size: var(--text-2xl);
  }

  .ind-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ind-page-cta {
    padding: var(--space-10) 0;
  }

  .ind-page-cta .ind-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ind-page-cta .ind-cta-buttons .btn-cta {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== Contact Page ===== */
.contact-hero {
  background: radial-gradient(900px 500px at 85% 0%, #a8121a 0%, var(--primary-color) 55%, #6a0000 100%);
  color: #fff;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-12);
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
  color: var(--white);
}

.contact-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto;
}

.contact-content {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  color: var(--accent-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

.form-group .required {
  color: var(--primary-color);
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 13px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-top: var(--space-2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.info-card {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary-color);
}

.info-card-icon {
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.info-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
  color: var(--primary-color);
}

.info-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 14px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-list .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 600;
}

.info-list li a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.info-list li a:hover {
  color: var(--primary-color);
}

.info-list .info-value {
  font-size: 14px;
  color: var(--text-color);
}

.info-card p {
  color: var(--text-color);
  font-size: 14px;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-8);
  }

  .contact-content {
    padding: var(--space-10) 0 var(--space-12);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-form-card {
    padding: var(--space-6);
  }

  .contact-form-card h2 {
    font-size: var(--text-xl);
  }

  .btn-submit {
    width: 100%;
    text-align: center;
  }
}

/* === Capabilities Responsive (tablet) === */
@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .cap-detail-cols {
    grid-template-columns: 1fr;
  }

  .cap-related-grid {
    grid-template-columns: 1fr;
  }

  .cap-list-grid {
    grid-template-columns: 1fr;
  }

  .cap-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

}

/* === Homepage Capabilities Grid === */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.capability-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: block;
}

.capability-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.capability-icon {
  color: var(--primary-color);
  margin-bottom: var(--space-4);
}

.capability-card h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-bottom: var(--space-3);
}

.capability-card p {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

/* === Capabilities Pages === */

.cap-breadcrumb {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  opacity: 0.7;
}

.cap-breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.cap-breadcrumb a:hover {
  text-decoration: underline;
}

.cap-page-lead {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.cap-page-content {
  padding: var(--space-12) 0;
}

.cap-page-content .container {
  max-width: 780px;
}

.cap-page-content h2 {
  font-size: var(--text-2xl);
  color: var(--primary-color);
  margin: var(--space-10) 0 var(--space-4);
}

.cap-page-content h3 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin: var(--space-8) 0 var(--space-3);
}

.cap-page-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-color);
  margin-bottom: var(--space-4);
}

.cap-page-content ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.cap-page-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: var(--space-2);
}

.cap-page-content strong {
  color: var(--accent-color);
}

.cap-detail-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-8) 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cap-detail-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.cap-box-title {
  font-weight: 700;
  color: var(--primary-color);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.cap-detail-box ul {
  padding-left: var(--space-5);
  margin: 0;
}

.cap-detail-box li {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.cap-cta {
  background: var(--bg-light);
  padding: var(--space-12) 0;
  text-align: center;
}

.cap-cta h2 {
  font-size: var(--text-2xl);
  color: var(--accent-color);
  margin-bottom: var(--space-3);
}

.cap-cta p {
  color: var(--text-color);
  margin-bottom: var(--space-6);
}

.cap-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.cap-related {
  padding: var(--space-12) 0;
}

.cap-related h2 {
  text-align: center;
  font-size: var(--text-2xl);
  color: var(--primary-color);
  margin-bottom: var(--space-8);
}

.cap-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.cap-related-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.cap-related-card:hover {
  box-shadow: var(--shadow-md);
}

.cap-related-card h4 {
  font-size: var(--text-base);
  color: var(--accent-color);
  margin-bottom: var(--space-2);
}

.cap-related-card p {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin: 0;
}

/* Capabilities list page */

.cap-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.cap-list-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cap-list-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.cap-list-card h2 {
  font-size: var(--text-xl);
  color: var(--accent-color);
  margin-bottom: var(--space-3);
}

.cap-list-card p {
  font-size: var(--text-sm);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

/* === Global Mobile Refinements (narrow screens) === */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .logo-img {
    height: 36px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .ind-page-hero h1 {
    font-size: 1.4rem;
  }

  .ind-related-grid {
    grid-template-columns: 1fr;
  }

  .cs-card-visual {
    min-height: 180px;
    max-height: 220px;
  }

  .contact-hero h1 {
    font-size: 1.6rem;
  }

  .btn-cta {
    padding: 10px 20px;
    font-size: var(--text-sm);
  }
}

/* ================================================
   About Page
   ================================================ */

.about-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: var(--space-4);
  letter-spacing: 0.03em;
}

/* Intro section */
.about-intro {
  padding: var(--space-16) 0;
}

.about-intro .container {
  max-width: 780px;
}

.about-intro-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-color);
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--bg-light);
  position: relative;
}

.about-intro-content h2:first-child {
  margin-top: 0;
}

.about-intro-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.about-intro-content.content-main > p > strong:only-child,
.about-intro-content.content-main > p:has(> strong:first-child:last-child),
.about-intro-content.content-main > p:has(> strong:first-child) {
  display: inline;
  background: none !important;
  padding: 0 !important;
  border-left: none !important;
  border-radius: 0 !important;
  margin: 0;
}

/* Stats section */
.about-stats {
  padding: var(--space-12) 0;
  background: var(--bg-light);
}

.about-stats .container {
  max-width: 900px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.about-stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.about-stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.about-stat-label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Milestones section */
.about-milestones {
  padding: var(--space-16) 0;
}

.about-milestones .container {
  max-width: 700px;
}

.about-section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: var(--space-12);
}

.about-timeline {
  position: relative;
  padding-left: 40px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.about-timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.about-timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.about-timeline-year {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--primary-color);
  margin-bottom: 4px;
}

.about-timeline-text {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* Clients section */
.about-clients {
  padding: var(--space-16) 0;
  background: var(--bg-light);
}

.about-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
}

.about-client-category {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--primary-color);
}

.about-client-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-client-list li {
  padding: 8px 0;
  color: var(--text-color);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.about-client-list li:last-child {
  border-bottom: none;
}

/* Certifications section */
.about-certs {
  padding: var(--space-16) 0;
}

.about-certs .container {
  max-width: 700px;
}

.about-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.about-cert-list li:last-child {
  border-bottom: none;
}

.about-cert-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.about-cert-list span {
  font-weight: 500;
}

/* Facilities section */
.about-facilities {
  padding: var(--space-16) 0;
  background: var(--bg-light);
}

.about-facilities .container {
  max-width: 700px;
}

.about-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.about-facility-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.about-facility-card h3, .about-facility-card h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: var(--space-2);
}

.about-facility-card p {
  margin: 0;
  color: var(--text-light);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* CTA buttons row */
.ind-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.ind-page-cta .btn-cta-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.ind-page-cta .btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* About responsive */
@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stat-number {
    font-size: var(--text-3xl);
  }

  .about-clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .about-section-title {
    font-size: var(--text-2xl);
  }

  .about-intro {
    padding: var(--space-12) 0;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .about-clients-grid {
    grid-template-columns: 1fr;
  }
}

/* Standards status block: a live section driven by data/standards.yaml.
   Redesigned 2026-11-25 as a card list: the three-column table squeezed name and edition
   into five-line columns. Left: edition, status, name. Right: what it means, date checked. */
.standards-watch { margin: 64px 0 24px; }
.standards-watch h2 { margin-top: 0; }
.standards-watch > p { color: #555; }
.sw-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.sw-list > li.sw-card { list-style: none; margin: 0; padding: 24px 26px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px;
  background: #fff; border: 1px solid #ececec; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.sw-list > li.sw-card::before { display: none; }
.sw-edition { display: block; font-size: 19px; line-height: 1.3; font-weight: 700; color: #161616; }
.sw-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; background: #eaf5ee; color: #1f6b3a; }
.sw-badge-change { background: #fff3e0; color: #8a4b00; }
.sw-badge-old { background: #f1f1f1; color: #666; }
.standards-watch .sw-name, .sw-name { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #555; }
.sw-name a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.standards-watch .sw-note, .sw-note { margin: 0; font-size: 16px; line-height: 1.65; color: #333; }
.standards-source { display: block; margin-top: 12px; font-size: 13px; font-style: normal; color: var(--text-light); }
@media (max-width: 720px) { .sw-list > li.sw-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; } }
.standards-watch-meta {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: 0;
}

/* Editorial update block: the freshness section driven by frontmatter updates. */
.update-notes { margin: var(--space-10) 0 0; }
.update-notes h2 { margin-bottom: var(--space-4); }
.update-notes-list { list-style: none; padding: 0; margin: 0; }
.update-notes-list li {
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  border-left: 3px solid var(--primary-color);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.update-notes-list li:last-child { border-bottom: none; }
.update-notes-list time {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: var(--space-2);
}
.update-notes-list p { margin: 0; }

/* Capability card with an image: picture on top, title below, and the image
   runs edge to edge across the top of the card with no padding. */
.ind-related-card.has-img {
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.ind-related-card.has-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-light);
}
.ind-related-card.has-img h2 {
  padding: var(--space-4) var(--space-5) var(--space-5);
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.4;
}
.ind-related-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* --- Responsive hero background image ---------------------------------
   The LCP element is the hero block's CSS background image, not an <img>, so
   srcset does nothing and the only way to swap the file is a media query.
   Full size used to serve 2736x1536 at 287KB, so a 390px phone downloaded an
   image seven times wider than it needed: measured LCP of 3.8-4.4s on Slow 4G.
   The default step is 1200w, which covers a phone at DPR 3, and larger screens
   step up from there. */
@media (min-width: 900px) {

  .ind-page-hero {
    background-image: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.85) 50%, rgba(15, 52, 96, 0.82) 100%),
                      url('/images/cases/qa-lab-automation-concept.webp'); }

}
@media (min-width: 1600px) {

  .ind-page-hero {
    background-image: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.85) 50%, rgba(15, 52, 96, 0.82) 100%),
                      url('/images/cases/qa-lab-automation-concept.webp'); }

}

/* --- Horizontal overflow guard ----------------------------------------
   Measured at a 390px viewport: 43 of 85 pages overflowed sideways, caused by
   wide tables and the hard-coded three-column grid on case study pages.
   Tables now scroll inside their own container, and the three-column grid
   stacks on narrow screens. The page body should never scroll sideways. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: var(--space-4) 0;
}
.table-scroll > table { margin: 0; min-width: 100%; }
.table-scroll:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Case study Challenge / Solution / Outcome: an inline three-column grid in the
   template. It has to stack on narrow screens, or the third column runs off
   screen, and that is the column where a buyer reads the result. */
@media (max-width: 720px) {
  .cs-cso-grid { grid-template-columns: 1fr !important; }
}

/* Backstop: no media or code block that is still too wide may break the page. */
img, video, svg, iframe { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; }

/* Capabilities hub: task entrances, proof, then a complete text directory.
   Scoped here so detail pages and other collection templates remain unchanged. */
.cap-hub { --cap-line: #dedbd7; --cap-muted: #5e5c59; }
.cap-hub [id] { scroll-margin-top: 100px; }
.cap-hub [hidden] { display: none !important; }
.cap-hub a:focus-visible, .cap-hub button:focus-visible, .cap-hub summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
.cap-hub .container { max-width: var(--max-width); }
.cap-hub h2 { font-size: clamp(1.65rem, 2.8vw, 2.15rem); letter-spacing: -.025em; margin: 0; }
.cap-hub h3 { font-size: 1.2rem; line-height: 1.35; }
.cap-hero { padding: calc(var(--header-height) + 32px) 0 52px; border-bottom: 1px solid var(--cap-line); }
.cap-hub .cap-breadcrumb { color: var(--cap-muted); font-size: .875rem; margin-bottom: 24px; opacity: 1; }
.cap-hub .cap-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cap-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cap-hero h1 { font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 1.08; letter-spacing: -.04em; max-width: 560px; margin: 0 0 24px; }
.cap-hero-copy > p { font-size: 1.2rem; line-height: 1.65; color: var(--cap-muted); max-width: 490px; }
.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.cap-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary-color); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.cap-hero-figure { margin: 0; min-width: 0; }
.cap-hero-figure img { width: 100%; height: auto; }
.cap-hero-figure figcaption { margin-top: 16px; color: var(--cap-muted); font-size: .8rem; line-height: 1.5; }
.cap-hero-figure figcaption a { display: block; padding: 8px 0; }
.cap-start, .cap-proof, .cap-index { padding: 56px 0; }
.cap-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 28px; }
.cap-section-heading > a { flex-shrink: 0; font-size: .9rem; }
.cap-section-heading p { margin: 12px 0 0; color: var(--cap-muted); }
.cap-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.cap-route { padding: 24px 0 0; border-top: 2px solid var(--primary-color); }
.cap-route h3 { margin: 0 0 12px; }
.cap-route h3 a { display: flex; justify-content: space-between; gap: 16px; }
.cap-route h3 span { color: var(--primary-color); }
.cap-route p { margin: 0 0 12px; color: var(--cap-muted); font-size: .95rem; line-height: 1.6; }
.cap-route ul { padding: 0; margin: 0; }
.cap-route li a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0; color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.cap-proof { background: #f6f5f3; }
.cap-section-heading .cap-eyebrow { margin: 0 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-color); font-weight: 700; }
.cap-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cap-project-image { display: block; aspect-ratio: 16/9; background: white; overflow: hidden; }
.cap-project-image img { width: 100%; height: 100%; object-fit: contain; }
.cap-project h3 { margin: 20px 0 10px; font-size: 1.1rem; }
.cap-project h3 span { color: var(--primary-color); }
.cap-project p { margin: 0; font-size: .925rem; color: var(--cap-muted); line-height: 1.6; }
.cap-tools { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: end; gap: 12px 16px; background: #f6f5f3; padding: 20px 24px; margin-bottom: 8px; }
.cap-tools label { min-width: 0; }
.cap-tools label > span { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; }
.cap-tools input, .cap-tools select { display: block; width: 100%; min-width: 0; height: 46px; padding: 10px 12px; font: inherit; font-size: .95rem; background: white; color: var(--text-color); border: 1px solid #aaa5a0; border-radius: 3px; }
.cap-tools input:focus-visible, .cap-tools select:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.cap-reset { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cap-tools .cap-count { grid-column: 1/-1; margin: 0; font-size: .8rem; color: var(--cap-muted); }
.cap-group { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--cap-line); }
.cap-group-heading h3 { margin: 0 0 8px; font-size: 1.1rem; }
.cap-group-heading p { margin: 0; font-size: .85rem; line-height: 1.6; color: var(--cap-muted); }
.cap-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; }
.cap-hub .cap-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 48px; padding: 10px 0; color: #302e2b; font-size: .925rem; line-height: 1.4; text-decoration: none; }
.cap-card > span:first-child { text-decoration: underline; text-decoration-color: #c4bdb7; text-underline-offset: 4px; }
.cap-hub .cap-card:hover { color: var(--primary-color); }
.cap-kind { flex-shrink: 0; font-size: .7rem; padding: 3px 5px; background: #f2eeeb; color: #615149; line-height: 1.2; }
.cap-link-arrow { color: var(--primary-color); }
.cap-empty { padding: 24px 0; color: var(--cap-muted); }
.cap-empty .cap-reset { padding: 8px 2px; }
.cap-hub .cap-delivery { padding: 48px 0; background: #faf9f7; }
.cap-delivery .container { max-width: 860px; }
.cap-delivery h2 { margin: 32px 0 16px; font-size: 1.6rem; }
.cap-delivery h2:first-child { margin-top: 0; }
.cap-delivery p { color: var(--cap-muted); font-size: .975rem; line-height: 1.75; }
.cap-faq { margin-top: 40px; }
.cap-faq details { border-bottom: 1px solid var(--cap-line); }
.cap-faq summary { padding: 18px 0; cursor: pointer; font-weight: 600; }
.cap-faq details p { margin: 0 0 20px; }
.cap-enquiry { padding: 40px 0; border-top: 1px solid var(--cap-line); }
.cap-enquiry .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cap-enquiry h2 { font-size: 1.7rem; }
.cap-enquiry p { margin-top: 10px; max-width: 640px; color: var(--cap-muted); }
.cap-enquiry .btn-cta { flex-shrink: 0; }
@media (max-width: 1000px) {
  .cap-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .cap-section-heading { align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 760px) {
  .cap-hero { padding-bottom: 32px; }
  .cap-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cap-hero h1 { max-width: 540px; }
  .cap-hero-figure { max-width: 580px; }
  .cap-start, .cap-proof, .cap-index { padding: 40px 0; }
  .cap-group { grid-template-columns: 1fr; gap: 16px; }
  .cap-group-heading p { max-width: 560px; }
  .cap-tools { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .cap-search { grid-column: 1/-1; }
  .cap-enquiry .container { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  .cap-routes, .cap-projects, .cap-links { grid-template-columns: 1fr; }
  .cap-projects { gap: 32px; }
  .cap-hub .cap-card { min-height: 48px; }
  .cap-route li a { min-height: 44px; }
}

/* Lightweight recent-content entry: five visible, twenty expandable, no image payload. */
.home-guides-featured,.home-guides-list{list-style:none;padding:0;margin:0;display:grid;gap:1rem}
.home-guides-featured{grid-template-columns:repeat(5,minmax(0,1fr))}
.home-guides-featured li{border-top:3px solid var(--primary-color,#a30c03);padding:1rem 0}
.home-guides-featured a{display:block;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.home-guides-date{display:block;font-size:.8rem;color:#666;margin-bottom:.4rem}
.home-guides-more{margin-top:1rem;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 0}
.home-guides-more summary{cursor:pointer;font-weight:600;padding:.25rem 0}
.home-guides-list{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:1.25rem;gap:.8rem 1.5rem}
.home-guides-list a{line-height:1.5;overflow-wrap:anywhere}
.home-guides-route{margin-top:1.5rem;line-height:1.7}
.image-caption{font-size:.85rem;color:#666;line-height:1.5}
@media(max-width:1000px){.home-guides-featured{grid-template-columns:repeat(3,minmax(0,1fr))}.home-guides-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.home-guides-featured,.home-guides-list{grid-template-columns:1fr}.home-guides-featured{gap:.4rem}.home-guides-featured li{padding:.8rem 0}}
.content-main > .image-caption{font-size:.8rem;line-height:1.5;margin-bottom:1rem;color:#666}
/* Keep the semantic table inside its scroll region; legacy mobile display:block clips columns. */
.engineering-guide .content-main .table-scroll > table{display:table;width:100%;min-width:560px;overflow:visible}
.engineering-guide .content-main .table-scroll > table:has(th:nth-child(4)){min-width:720px}
.engineering-guide .content-main .table-scroll > table:not(:has(th:nth-child(3))){min-width:100%;table-layout:fixed}
@media(max-width:600px){.engineering-guide .table-scroll:has(th:nth-child(3))::before{content:"Scroll horizontally to compare all columns";display:block;font-size:.75rem;color:#666;padding:.5rem 0}}

/* === Quote action: brand red like every other primary button (green retired 2026-11-26) === */
.btn-quote,
.btn-submit.btn-quote {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--white);
}

.btn-quote:hover,
.btn-submit.btn-quote:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.header-phone {
  display: none;
  color: var(--accent-color);
  font-weight: 600;
  white-space: nowrap;
  margin-right: var(--space-4);
  min-height: var(--touch-min);
  align-items: center;
}

@media (min-width: 1200px) {
  .header-phone {
    display: inline-flex;
  }

  .nav-menu {
    margin: 0 auto;
  }
}

.proof-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  margin: var(--space-6) 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
}

.proof-strip li::before {
  content: "\2713";
  margin-right: var(--space-2);
}

.enquiry {
  padding: var(--space-16) 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  scroll-margin-top: var(--header-height);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.enquiry-copy h2 {
  font-size: var(--text-3xl);
  color: var(--accent-color);
  margin-bottom: var(--space-4);
}

.enquiry-copy p,
.enquiry-list {
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.enquiry-list {
  list-style: disc;
  padding-left: var(--space-5);
}

.enquiry-direct a {
  color: var(--primary-color);
  font-weight: 600;
}

.enquiry .contact-form {
  padding: 0;
  box-shadow: none;
}

.mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  .enquiry-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .enquiry .contact-form-card {
    padding: var(--space-6);
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.4fr 2fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--border-color);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    font-weight: 600;
    color: var(--accent-color);
    border-right: 1px solid var(--border-color);
  }

  .footer {
    padding-bottom: 72px;
  }
}

/* === Team page === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-8);
}

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-4);
}

.team-role {
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

/* Portrait body photo: keep it below one screen height */
figure img.fig-portrait{display:block;width:100%;max-width:480px;height:auto;margin:0 auto}
figure:has(img.fig-portrait) figcaption{text-align:center}
/* Hero image note: the blog hero image is a background, so its caption sits on the image */
.page-hero .hero-image-note{position:absolute;right:16px;bottom:10px;margin:0;font-size:.75rem;line-height:1.3;color:rgba(255,255,255,.8);z-index:2}
@media (max-width: 768px){.page-hero:has(.hero-image-note){padding-bottom:30px}.page-hero .hero-image-note{bottom:8px;font-size:.7rem}}

/* Blog article typography, matched to the rapiddirect.com blog benchmark (2026-11-25):
   one body size for paragraphs, lists and tables, larger H2/H3, plain bullets, bold without colour. */
article.single-page .content-main p,
article.single-page .content-main > p:first-of-type,
article.single-page .content-main h2 + p,
article.single-page .content-main li,
article.single-page .content-main td,
article.single-page .content-main th {
  font-size: 17px;
  line-height: 1.65;
  color: #333;
}
article.single-page .content-main p { margin: 0 0 20px; }
article.single-page .content-main h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: #161616;
  margin: 48px 0 16px;
  padding-top: 0;
  border-top: 0;
}
article.single-page .content-main h2::after { display: none; }
article.single-page .content-main h3 {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 700;
  color: #161616;
  margin: 32px 0 12px;
}
article.single-page .content-main strong { color: inherit; font-weight: 700; }
article.single-page .content-main li strong { color: inherit; }
article.single-page .content-main ul,
article.single-page .content-main ol {
  background: none;
  border: 0;
  padding: 0 0 0 24px;
  margin: 0 0 20px;
}
article.single-page .content-main ul li,
article.single-page .content-main ol li {
  border: 0;
  padding: 0 0 0 4px;
  margin: 0 0 10px;
}
article.single-page .content-main ul li { list-style: disc; }
article.single-page .content-main ul li::before { display: none; }
article.single-page .content-main ol li { list-style: decimal; }
article.single-page .content-main li::marker { color: var(--primary-color); font-weight: 700; }
article.single-page .content-main figcaption { font-size: 15px; color: #555; text-align: center; }

/* Blog layout, modelled on the benchmark blog (2026-11-25): wide reading column, a narrow sticky
   quote card on the right, a sticky table of contents on the left on wide screens,
   and related posts as cards below the article. */
.page-content .container:has(.blog-grid) { max-width: 1200px; }
.blog-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
.blog-toc { display: none; }
@media (min-width: 1400px) {
  .page-content .container:has(.blog-grid) { max-width: 1440px; }
  .blog-grid { grid-template-columns: 200px minmax(0, 1fr) 260px; }
  .blog-toc { display: block; position: sticky; top: calc(var(--header-height) + 24px); align-self: start;
    max-height: calc(100vh - var(--header-height) - 48px); overflow-y: auto; }
}
.blog-toc-title { font-size: 15px; font-weight: 700; color: #161616; margin: 0 0 12px; }
.blog-toc ol { list-style: none; margin: 0; padding: 0; }
.blog-toc li { margin: 0 0 10px; }
.blog-toc a { font-size: 14px; line-height: 1.4; color: #555; text-decoration: none; }
.blog-toc a:hover { color: var(--primary-color); }

.blog-quote { align-self: start; }
.quote-card { background: #fff; border-radius: 14px; border-top: 4px solid var(--primary-color);
  box-shadow: 0 8px 28px rgba(0,0,0,.10); padding: 22px 20px 18px; }
.quote-card-logo { width: 150px; height: auto; display: block; margin: 0 0 6px; }
.quote-card-kicker { font-size: 12px; line-height: 1.4; color: var(--primary-color); font-weight: 600; margin: 0 0 16px; }
.quote-card-title { font-size: 19px; line-height: 1.3; font-weight: 700; color: #161616; margin: 0 0 6px; }
.quote-card-sub { font-size: 13px; line-height: 1.5; color: #555; margin: 0 0 16px; }
.quote-card-stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #eee; border-radius: 10px; }
.quote-card-stats li { text-align: center; padding: 10px 4px; margin: 0; }
.quote-card-stats li + li { border-left: 1px solid #eee; }
.quote-card-stats li::before { display: none; }
.quote-card-stats b { display: block; font-size: 18px; color: var(--primary-color); line-height: 1.2; }
.quote-card-stats span { display: block; font-size: 11px; line-height: 1.3; color: var(--text-light); margin-top: 4px; }
.quote-card-btn { display: flex; justify-content: center; gap: 10px; background: var(--primary-color); color: #fff;
  font-weight: 600; font-size: 16px; padding: 13px 16px; border-radius: 8px; text-decoration: none; }
.quote-card-btn:hover { background: var(--primary-dark); color: #fff; }
.quote-card-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-light); margin: 12px 0 0; }
.quote-card-trust span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2e9b57; margin-right: 6px; vertical-align: middle; }

.blog-related { padding: 56px 0 64px; border-top: 1px solid #eee; }
.blog-related h2 { font-size: 28px; color: #161616; margin: 0 0 24px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.blog-related-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.blog-related-card img { width: 100%; height: auto !important; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin: 0 0 12px; box-shadow: none; }
.blog-related-title { font-size: 16px; line-height: 1.4; font-weight: 600; color: #161616; }
.blog-related-card:hover .blog-related-title { color: var(--primary-color); }
.blog-related-date { font-size: 13px; color: var(--text-light); margin-top: 6px; }
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-quote { display: none; }
  .blog-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .blog-related-grid { grid-template-columns: 1fr; } }

/* Service layout for capability pages (layout: service), modelled on the benchmark service page,
   2026-11-25. White and light-grey sections, one red accent, no black surfaces. */
.svc-hero { background: linear-gradient(180deg, #fff 0%, #fbf3f3 100%); padding: calc(var(--header-height) + 24px) 0 64px; }
.svc-breadcrumb { font-size: 14px; color: var(--text-light); margin: 0 0 32px; }
.svc-breadcrumb a { color: var(--text-light); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--primary-color); text-decoration: underline; }
.svc-breadcrumb .sep { margin: 0 8px; color: #aaa; }
.svc-breadcrumb [aria-current] { color: #161616; font-weight: 600; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.svc-hero .ind-breadcrumb { color: var(--text-light); font-size: 13px; margin-bottom: 18px; }
.svc-hero .ind-breadcrumb a { color: var(--text-light); }
.svc-hero h1 { font-size: 40px; line-height: 1.15; font-weight: 700; color: #161616; margin: 0 0 18px; letter-spacing: -0.5px; }
.svc-hero-lead { font-size: 18px; line-height: 1.6; color: #444; margin: 0 0 22px; }
.svc-hero-points { list-style: none; margin: 0 0 28px; padding: 0; }
.svc-hero-points li { position: relative; padding-left: 30px; margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: #333; }
.svc-hero-points li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 5px;
  background: rgba(163,18,26,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23A3121A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.svc-hero-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.12); display: block; }
.svc-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-color); color: #fff; font-weight: 600;
  font-size: 16px; padding: 14px 26px; border-radius: 6px; text-decoration: none; }
.svc-btn:hover { background: var(--primary-dark); color: #fff; }
.svc-btn-light { background: #fff; color: var(--primary-color); }
.svc-btn-light:hover { background: #fbeeee; color: var(--primary-color); }

.svc-body { padding: 24px 0 40px; }
/* One column width for everything in the body: text, figures, tables, cards, stats, CTA and FAQ
   share the same left and right edges (960 content + 2 x 20 padding). */
.svc-hero .container, .svc-body .container, .svc-faq .container { max-width: 1000px; }
.svc-body h2 { font-size: 32px; line-height: 1.25; font-weight: 700; color: #161616; margin-top: 64px; margin-bottom: 16px; padding: 0; border: 0; }
.svc-body h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary-color); margin-top: 14px; }
.svc-body h3 { font-size: 22px; line-height: 1.35; font-weight: 700; color: #161616; margin-top: 28px; margin-bottom: 10px; }
.svc-body p, .svc-body li, .svc-body td, .svc-body th { font-size: 17px; line-height: 1.65; color: #333; }
.svc-body p { margin-bottom: 18px; }
.svc-body strong { color: inherit; font-weight: 700; }
.svc-body ul, .svc-body ol { padding-left: 24px; margin-bottom: 20px; }
.svc-body ul li { list-style: disc; padding-left: 4px; margin-bottom: 10px; }
.svc-body ul li::before { display: none; }
.svc-body ol li { list-style: decimal; padding-left: 4px; margin-bottom: 10px; }
.svc-body li::marker { color: var(--primary-color); font-weight: 700; }
.svc-body figure { margin-top: 28px; margin-bottom: 28px; }
.svc-body figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.svc-body figcaption { font-size: 15px; color: #555; text-align: center; margin-top: 10px; }

.svc-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 16px; }
.svc-reason { background: #fff; border-radius: 12px; border-top: 3px solid var(--primary-color); box-shadow: 0 4px 18px rgba(0,0,0,.07); padding: 26px 24px 22px; }
.svc-reason-num { display: inline-flex; width: 36px; height: 36px; border-radius: 8px; background: var(--primary-color); color: #fff;
  font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }
.svc-body .svc-reason h3 { margin: 0 0 10px; font-size: 20px; }
.svc-body .svc-reason p { margin: 0; font-size: 16px; }

.svc-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0; padding: 28px 0;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.svc-body .svc-stats li { list-style: none; padding: 0 24px; margin: 0; border-left: 1px solid #eee; }
.svc-body .svc-stats li:first-child { border-left: 0; }
.svc-stats b { display: block; font-size: 40px; line-height: 1.1; color: var(--primary-color); font-weight: 700; overflow-wrap: anywhere; }
.svc-body .svc-stats span { display: block; font-size: 15px; color: #555; margin-top: 6px; line-height: 1.4; }

.svc-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 16px; }
.svc-spec { background: #f6f6f6; border: 1px solid #ececec; border-radius: 12px; padding: 20px 20px 18px; display: flex; flex-direction: column; }
.svc-spec-label { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-light); }
.svc-spec-value { font-size: 21px; font-weight: 700; color: #161616; margin: 6px 0 8px; line-height: 1.25; }
.svc-body .svc-spec-note, .svc-spec-note { font-size: 15px; line-height: 1.5; color: #555; }
.svc-spec-note p { margin: 0; font-size: 15px; }
.svc-spec-link { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 600; color: var(--primary-color); text-decoration: none; }

.svc-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin: 56px 0 16px; padding: 44px 48px;
  border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, #b3141d 0%, var(--primary-color) 45%, #730000 100%); color: #fff; }
article.single-page .content-main .svc-cta-kicker, .svc-body .svc-cta-kicker, .svc-cta-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffd6d6; margin: 0 0 10px; }
article.single-page .content-main .svc-cta-title, .svc-body .svc-cta-title, .svc-cta-title { font-size: 32px; line-height: 1.2; font-weight: 700; color: #fff; margin: 0; }
article.single-page .content-main .svc-cta-side p, .svc-cta-side p { color: rgba(255,255,255,.92); font-size: 16px; margin: 0 0 20px; }

.svc-faq { background: #f6f6f6; padding: 64px 0; }
.svc-faq-grid { display: block; }
.svc-faq h2 { margin-bottom: 28px !important; }
.svc-faq h2 { font-size: 32px; color: #161616; margin: 0; }
.svc-faq h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary-color); margin-top: 14px; }
.svc-faq details { background: #fff; border-radius: 10px; margin: 0 0 12px; padding: 0 22px; border: 1px solid #ececec; }
.svc-faq summary { cursor: pointer; font-size: 17px; font-weight: 600; color: #161616; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--primary-color); }
.svc-faq details[open] summary::after { content: '\2212'; }
.svc-faq details p { font-size: 16px; line-height: 1.65; color: #444; margin: 0 0 18px; }

@media (max-width: 1000px) {
  .svc-hero-grid, .svc-cta, .svc-faq-grid { grid-template-columns: 1fr; }
  .svc-reasons, .svc-specs { grid-template-columns: 1fr; }
  .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .svc-body .svc-stats li:nth-child(3) { border-left: 0; }
  .svc-hero h1 { font-size: 34px; }
  .svc-cta { padding: 32px 24px; }
}
@media (max-width: 600px) {
  /* two stat columns of about 160px: a 40px value like IQ/OQ/PQ or bizSAFE 3 does not fit */
  .svc-body .svc-stats li { padding: 0 12px; }
  .svc-stats b { font-size: 26px; }
}

/* Service layout tables: .svc-body is outside .content-main, so tables need their own rules. */
.svc-body table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.svc-body th { background: #fbf3f3; color: #161616; font-size: 15px; font-weight: 700; text-align: left; padding: 14px 20px; border-bottom: 2px solid var(--primary-color); }
.svc-body td { font-size: 16px; padding: 14px 20px; border-bottom: 1px solid #eee; vertical-align: top; }
.svc-body tbody tr:last-child td { border-bottom: 0; }
.svc-body td + td, .svc-body th + th { border-left: 1px solid #eee; }
@media (max-width: 640px) { .svc-body th, .svc-body td { padding: 12px 14px; font-size: 15px; } }

/* Front-end audit 2026-11-26: touch targets on phones and tablets reach 24px tall */
@media (max-width: 1024px) {
  .footer-legal a,
  .ind-breadcrumb a,
  .cap-breadcrumb a,
  .svc-breadcrumb a,
  .mw-breadcrumb a {
    display: inline-block;
    padding: 4px 0;
  }
}

/* Front-end audit 2026-11-26: small standalone links get an invisible 24px+ hit area.
   The pseudo-element adds click area only; layout and look do not change. */
.mw-col-all, .mw-foot-main, .footer-legal a, .home-industries .home-industry-footer a,
.ind-next a, .team-card > a, h3 > a { position: relative; }
.mw-col-all::after, .mw-foot-main::after, .footer-legal a::after, .home-industries .home-industry-footer a::after,
.ind-next a::after, .team-card > a::after, h3 > a::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }

/* Front-end audit 2026-11-26: running-text links in the service layout inherited #333 with no
   underline (global a reset), so they did not read as links. Same look as blog body links. */
.svc-body p a, .svc-body li a, .svc-body td a, .svc-body blockquote a, .svc-body figcaption a {
  color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px;
}
.svc-body p a:hover, .svc-body li a:hover, .svc-body td a:hover, .svc-body blockquote a:hover, .svc-body figcaption a:hover {
  color: var(--primary-dark);
}
.au-profile p a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
/* Site header with mega-menu panels (2026-11-24, modelled on the Cloudflare header).
   Markup: layouts/partials/header.html. Content: data/nav.yaml. Loaded on every page
   after main.css, so the rules here override the older .header / .nav-menu block. */

@media (min-width: 1101px) {
  :root { --header-height: 68px; }
}

.mw-hdr {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  --hdr-ink: #1d1d1b;
  --hdr-muted: #6b6a66;
  --hdr-line: #e7e6e2;
  --hdr-soft: #f5f5f3;
  box-shadow: none !important;
  border-bottom: 1px solid var(--hdr-line);
}

.mw-hdr-bar {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
}

.mw-hdr .logo { flex: none; }
.mw-hdr .logo-img { height: 38px; width: auto; }

/* --- Top-level menu --- */
.mw-nav { margin: 0; }

.mw-nav-list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mw-nav-item--narrow { position: relative; }

.mw-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hdr-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.mw-nav-btn:hover,
.mw-nav-item.is-open > .mw-nav-btn { background: var(--hdr-soft); }

.mw-nav-btn:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.mw-chev { color: var(--hdr-muted); transition: transform 150ms ease; }
.mw-nav-item.is-open .mw-chev { transform: rotate(180deg); }

/* --- Panels --- */
.mw-panel {
  position: absolute;
  top: calc(100% - 4px);
  z-index: 1001;
  background: #fff;
  border: 1px solid var(--hdr-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 20, 18, 0.10);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

.mw-nav-item.is-open > .mw-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s;
}

.mw-panel--wide { left: 24px; right: 24px; }
.mw-panel--medium { left: calc(50% - 390px); width: 780px; }
.mw-panel--narrow { left: -12px; width: 340px; }

.mw-panel-cols { display: flex; }

.mw-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px 20px 18px;
}

.mw-col + .mw-col { border-left: 1px solid var(--hdr-line); }

.mw-col-title {
  margin: 0 0 10px;
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hdr-muted);
  letter-spacing: 0.01em;
}

.mw-items { list-style: none; margin: 0; padding: 0; }
.mw-items li { margin: 0; }

.mw-item {
  display: block;
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--hdr-ink);
  text-decoration: none;
}

.mw-item:hover,
.mw-item:focus-visible { background: var(--hdr-soft); }

.mw-item-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.mw-item-desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--hdr-muted);
}

.mw-col-all {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
}

.mw-col-all:hover { text-decoration: underline; }

.mw-latest {
  display: block;
  margin: 0 -8px 4px;
  padding: 8px;
  border-radius: 6px;
  color: var(--hdr-ink);
  text-decoration: none;
}

.mw-latest:hover { background: var(--hdr-soft); }

.mw-latest-date {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hdr-muted);
}

.mw-latest-title {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.mw-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #f7f7f5;
  border-top: 1px solid var(--hdr-line);
}

.mw-foot-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
}

.mw-foot-main:hover { text-decoration: underline; }

.mw-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

.mw-foot-links a {
  font-size: 13.5px;
  color: var(--hdr-ink);
  text-decoration: none;
}

.mw-foot-links a:hover { color: var(--primary-color); }

/* --- Right side --- */
.mw-hdr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.mw-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--hdr-ink);
  font-size: 14.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
}

.mw-phone svg { color: var(--hdr-muted); }
.mw-phone:hover { background: var(--hdr-soft); }

.mw-hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  margin-left: 6px;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.mw-hdr-cta:hover { background: var(--primary-dark); color: #fff; }
.mw-hdr-cta:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* --- Mobile drawer --- */
.mw-mnav { width: min(380px, 100vw); overflow-y: auto; }
.mw-mnav .mobile-nav-menu { margin-top: 48px; }

.mw-mgroup { border-bottom: 1px solid var(--hdr-line); }

.mw-mgroup summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 17px;
  font-weight: 600;
  color: var(--hdr-ink);
  cursor: pointer;
}

.mw-mgroup summary::-webkit-details-marker { display: none; }
.mw-mgroup summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--hdr-muted); }
.mw-mgroup[open] summary::after { content: "\2212"; }

.mw-mnav .mw-col-title { margin: 12px 0 4px; }

.mw-mnav .mobile-nav-menu .mw-mgroup a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 0;
  color: var(--hdr-ink);
}

.mw-mnav .mobile-nav-menu .mw-mgroup a.mw-mall {
  margin: 4px 0 12px;
  color: var(--primary-color);
  font-weight: 500;
}

.mw-mcta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.mw-mnav .mobile-nav-menu .mw-mcta a { border-bottom: 0; padding: 12px 0; text-align: center; }
.mw-mnav .mobile-nav-menu .mw-mcta a.mw-hdr-cta { color: #fff; min-height: 46px; margin: 0; }

/* --- Breakpoints --- */
@media (max-width: 1240px) {
  .mw-nav-btn { padding: 8px 10px; }
  .mw-item-desc { font-size: 12.5px; }
}

@media (max-width: 1100px) {
  .mw-nav { display: none; }
  .mw-hdr .menu-toggle { display: block; }
  .mw-hdr .mobile-nav,
  .mw-hdr .nav-backdrop { display: block; }
  .mw-hdr-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .mw-hdr-bar { padding: 0 16px; gap: 12px; }
  .mw-hdr .logo-img { height: 36px; }
  .mw-hdr .mw-hdr-cta,
  .mw-hdr .mw-phone { display: none; }
  .mw-mnav .mw-hdr-cta { display: flex !important; }
}

/* Phone: compact quote button stays in the bar; bottom action bar in brand colours. */
@media (max-width: 560px) {
  .mw-hdr .logo-img { height: 32px; }
}
@media (max-width: 768px) {
  .mobile-bar { grid-template-columns: 1fr 1.8fr; background: #fff; border-top: 1px solid #e7e6e2; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .mobile-bar a { font-size: 15px; font-weight: 500; color: #1d1d1b; border-right: 1px solid #efeeea; }
  .mobile-bar .mobile-bar-quote { background: var(--primary-color); color: #fff; font-weight: 600; border-right: 0; }
}
/* Enquiry block and form (2026-11-24 redesign). Markup: partials/enquiry-section.html
   and partials/enquiry-form.html. Loaded on every page after main.css. */

.enquiry {
  padding: 96px 0;
  background: radial-gradient(900px 520px at 85% 10%, #a8121a 0%, var(--primary-color) 55%, #730000 100%);
  border-top: 0;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.enquiry .enquiry-grid {
  max-width: 1280px;
  padding: 0 24px;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.enquiry-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd2d2;
}

.enquiry .enquiry-copy h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.enquiry .enquiry-copy > p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.enquiry .enquiry-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.enquiry .enquiry-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.enquiry .enquiry-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

.enquiry .enquiry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.enquiry-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.enquiry-contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  color: #fff;
}

.ec-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.enquiry-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.enquiry-contact a:hover { color: #ffd2d2; }

/* Form card */
.enquiry .contact-form-card {
  padding: 36px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: #1d1d1b;
}

.contact-form { gap: 18px; }

.contact-form .form-group { gap: 7px; }

.contact-form .form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1d1d1b;
}

.contact-form .form-group .optional { font-size: 12.5px; font-weight: 400; color: #6e6e6e; }

.contact-form .form-group input,
.contact-form .form-group textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9d8d3;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #1d1d1b;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder { color: #a3a29d; }

.contact-form .form-group input:hover,
.contact-form .form-group textarea:hover { border-color: #b9b8b2; }

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

.contact-form .form-group textarea { min-height: 112px; }

/* File input as a dashed drop area with a styled browse button. */
.contact-form input[type="file"] {
  min-height: 64px;
  padding: 14px;
  border: 1.5px dashed #cfcec8;
  background: #fafaf8;
  color: #6b6a66;
  font-size: 14px;
  cursor: pointer;
}

.contact-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid #d9d8d3;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form input[type="file"]:hover { border-color: var(--primary-color); background: #fff; }

.form-hint { margin: 2px 0 0; font-size: 12.5px; color: #6e6e6e; }

.contact-form .btn-submit,
.contact-form .btn-submit.btn-quote {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 6px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #a1060f 0%, var(--primary-color) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px rgba(139, 0, 0, 0.22);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.contact-form .btn-submit::after { content: "\2192"; font-weight: 500; transition: transform 150ms ease; }
.contact-form .btn-submit:hover { background: linear-gradient(180deg, #8b0000 0%, var(--primary-dark) 100%); color: #fff; }
.contact-form .btn-submit:hover::after { transform: translateX(3px); }

@media (max-width: 900px) {
  .enquiry { padding: 56px 0 64px; }
  .enquiry .enquiry-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .enquiry .enquiry-copy h2 { font-size: 28px; }
  .enquiry .enquiry-copy > p { font-size: 15.5px; }
  .enquiry .enquiry-list li { font-size: 14.5px; }
  .enquiry .contact-form-card { padding: 22px 18px; border-radius: 16px; }
}

@media (max-width: 480px) {
  .enquiry-contact { grid-template-columns: 1fr; }
}

/* The form sits inside a card everywhere; it never draws a second card of its own. */
.contact-form-card .contact-form { padding: 0; background: none; box-shadow: none; border: 0; }
