/* ==========================================================================
   Cenacore OT/ICS Cybersecurity — Bootstrap 5 brand theme
   Palette inherited from cenacore.com:
     Red #ED2939 · Dark Red #B90E0A · Charcoal #36454F
   Loads AFTER bootstrap.min.css and only overrides / adds brand styling.
   ========================================================================== */

/* ---------- Tokens + Bootstrap variable overrides ---------- */
:root {
  --cc-red: #ed2939;
  --cc-red-dark: #b90e0a;
  /* Slightly deeper red for solid fills with white text, so buttons meet WCAG AA
     (white on #ed2939 is 4.21:1; white on #d81f2a is ~5.0:1). Decorative brand
     accents keep the exact #ed2939. */
  --cc-red-cta: #d81f2a;
  --cc-red-soft: rgba(237, 41, 57, 0.12);
  --cc-red-line: rgba(237, 41, 57, 0.35);

  --cc-charcoal: #36454f;
  --cc-ink: #0d1319;
  --cc-ink-2: #131c23;
  --cc-slate: #1b262e;

  --cc-white: #ffffff;
  --cc-mist: #f4f6f8;
  --cc-line: #dde3e7;
  --cc-line-dark: rgba(255, 255, 255, 0.1);

  --cc-text: #16202a;
  --cc-text-2: #4b5b68;
  --cc-text-inv: #eef2f5;
  --cc-text-inv-2: #a6b4c0;

  --cc-radius: 14px;
  --cc-radius-sm: 9px;
  --cc-radius-lg: 22px;

  --cc-shadow: 0 10px 30px -12px rgba(13, 19, 25, 0.22);
  --cc-shadow-sm: 0 1px 2px rgba(13, 19, 25, 0.06), 0 2px 8px rgba(13, 19, 25, 0.05);

  --cc-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cc-font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Map Bootstrap theme variables to the brand */
  --bs-primary: #ed2939;
  --bs-primary-rgb: 237, 41, 57;
  --bs-link-color: #ed2939;
  --bs-link-color-rgb: 237, 41, 57;
  --bs-link-hover-color: #b90e0a;
  --bs-link-hover-color-rgb: 185, 14, 10;
  --bs-body-font-family: var(--cc-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-color: var(--cc-text);
  --bs-body-bg: #ffffff;
  --bs-border-color: var(--cc-line);
  --bs-focus-ring-color: rgba(237, 41, 57, 0.25);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cc-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
}

::selection { background: var(--cc-red); color: #fff; }
a { text-decoration: none; }

/* ---------- Typography helpers ---------- */
.cc-display { font-size: clamp(2.5rem, 5.4vw, 4rem); }
.cc-h-xl { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.cc-h-lg { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.cc-h-md { font-size: 1.3rem; }

.cc-lead { font-size: 1.14rem; color: var(--cc-text-2); }
.cc-section--dark .cc-lead,
.cc-section--slate .cc-lead { color: var(--cc-text-inv-2); }

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cc-font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cc-red);
  margin-bottom: 18px;
}
.cc-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cc-red);
  display: block;
}
.cc-section--dark .cc-eyebrow,
.cc-section--slate .cc-eyebrow,
.cc-hero .cc-eyebrow,
.cc-page-hero .cc-eyebrow { color: #ff6b76; }
.cc-section--dark .cc-eyebrow::before,
.cc-section--slate .cc-eyebrow::before,
.cc-hero .cc-eyebrow::before,
.cc-page-hero .cc-eyebrow::before { background: #ff6b76; }

.cc-accent { color: var(--cc-red); }
.cc-section--dark .cc-accent { color: #ff5b66; }

/* ---------- Buttons (extend Bootstrap .btn) ---------- */
.btn {
  --bs-btn-font-family: var(--cc-font-head);
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 0.95rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-border-width: 1.5px;
  --bs-btn-border-radius: 999px;
}
.btn svg { width: 16px; height: 16px; }

.cc-btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--cc-red-cta);
  --bs-btn-border-color: var(--cc-red-cta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cc-red-dark);
  --bs-btn-hover-border-color: var(--cc-red-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--cc-red-dark);
  --bs-btn-active-border-color: var(--cc-red-dark);
  --bs-btn-disabled-bg: var(--cc-red-cta);
  --bs-btn-disabled-border-color: var(--cc-red-cta);
}

.cc-btn-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.35);
  --bs-btn-hover-color: var(--cc-ink);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--cc-ink);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
}

.cc-btn-ghost {
  --bs-btn-color: var(--cc-ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--cc-line);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cc-ink);
  --bs-btn-hover-border-color: var(--cc-ink);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--cc-ink);
  --bs-btn-active-border-color: var(--cc-ink);
}

.cc-btn-sm {
  --bs-btn-padding-y: 0.55rem;
  --bs-btn-padding-x: 1.15rem;
  --bs-btn-font-size: 0.875rem;
}

.cc-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cc-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cc-red);
}
.cc-link-arrow svg { width: 16px; height: 16px; transition: transform 0.22s var(--cc-ease); }
.cc-link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Navbar ---------- */
.cc-navbar {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--cc-ease), box-shadow 0.3s var(--cc-ease), border-color 0.3s var(--cc-ease);
}
.cc-navbar.is-stuck,
.cc-navbar:has(.navbar-collapse.show) {
  background: rgba(13, 19, 25, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}

.cc-brand {
  font-family: var(--cc-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff !important;
  padding: 0;
  line-height: 1;
}
.cc-brand__dot { color: var(--cc-red); }

.cc-navbar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  position: relative;
  transition: color 0.18s var(--cc-ease);
}
.cc-navbar .nav-link:hover,
.cc-navbar .nav-link:focus { color: #fff; }
.cc-navbar .nav-link.active { color: #fff; }
.cc-navbar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cc-red);
}
.cc-navbar .navbar-toggler { border-color: rgba(255, 255, 255, 0.25); }
.cc-navbar .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2); }

@media (max-width: 991.98px) {
  .cc-navbar .navbar-collapse {
    margin-top: 0.9rem;
    padding: 0.75rem 1rem 1.1rem;
    background: rgba(13, 19, 25, 0.98);
    border: 1px solid var(--cc-line-dark);
    border-radius: var(--cc-radius);
  }
  .cc-navbar .nav-link { padding: 0.75rem 0.25rem; }
  .cc-navbar .nav-link.active::before { left: 0.25rem; right: auto; width: 22px; bottom: 0.4rem; }
}

/* ---------- Hero ---------- */
.cc-hero {
  position: relative;
  padding: 11.5rem 0 6rem;
  background-color: var(--cc-ink);
  --cc-hero-img: url("../img/hero-industrial.jpg");
  background-image:
    linear-gradient(95deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0.82) 36%, rgba(11, 17, 23, 0.5) 68%, rgba(11, 17, 23, 0.26) 100%),
    var(--cc-hero-img);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: var(--cc-text-inv);
  overflow: hidden;
}
.cc-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--cc-ink));
  pointer-events: none;
}
.cc-hero .container { position: relative; z-index: 2; }
.cc-hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
.cc-hero__title em { font-style: normal; color: var(--cc-red); }
.cc-hero__lead { color: #c3ced7; font-size: 1.2rem; max-width: 62ch; }
.cc-hero__note {
  margin-top: 1.6rem;
  color: var(--cc-text-inv-2);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-hero__note svg { width: 16px; height: 16px; color: var(--cc-red); flex: none; }

.cc-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--cc-line-dark);
  border: 1px solid var(--cc-line-dark);
  border-radius: var(--cc-radius);
  overflow: hidden;
}
.cc-hero__stat { background: rgba(19, 28, 35, 0.78); padding: 1.5rem 1.4rem; }
.cc-hero__stat b {
  display: block;
  font-family: var(--cc-font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cc-hero__stat b span { color: var(--cc-red); }
.cc-hero__stat small {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--cc-text-inv-2);
  line-height: 1.45;
}

/* ---------- Standards strip ---------- */
.cc-standards {
  padding: 1.9rem 0;
  background: var(--cc-ink-2);
  border-top: 1px solid var(--cc-line-dark);
  border-bottom: 1px solid var(--cc-line-dark);
}
.cc-standards__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem 2.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cc-standards__label {
  font-family: var(--cc-font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d8d9a;
}
.cc-standards__item {
  font-family: var(--cc-font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: #b9c6d1;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.cc-standards__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cc-red);
}

/* ---------- Sections ---------- */
.cc-section { padding: 6.5rem 0; position: relative; }
.cc-section--tight { padding: 4.5rem 0; }
.cc-section--mist { background: var(--cc-mist); }
.cc-section--dark { background: var(--cc-ink); color: var(--cc-text-inv); }
.cc-section--dark h1,
.cc-section--dark h2,
.cc-section--dark h3,
.cc-section--dark h4,
.cc-section--dark h5 { color: #fff; }
.cc-section--slate { background: var(--cc-slate); color: var(--cc-text-inv); }
.cc-section--slate h2,
.cc-section--slate h3 { color: #fff; }

.cc-section-head { max-width: 760px; margin-bottom: 3.5rem; }
.cc-section-head.cc-center { margin-inline: auto; text-align: center; }
.cc-section-head.cc-center .cc-eyebrow { justify-content: center; }

/* ---------- Cards ---------- */
.cc-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 2.1rem 1.9rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--cc-ease), box-shadow 0.28s var(--cc-ease), border-color 0.28s var(--cc-ease);
}
.cc-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cc-red), var(--cc-red-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--cc-ease);
}
.cc-card:hover { transform: translateY(-5px); box-shadow: var(--cc-shadow); border-color: transparent; }
.cc-card:hover::after { transform: scaleX(1); }

.cc-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--cc-red-soft);
  color: var(--cc-red);
  margin-bottom: 1.4rem;
}
.cc-card__icon svg { width: 25px; height: 25px; }
.cc-card h3 { font-size: 1.22rem; margin-bottom: 0.75rem; }
.cc-card p { color: var(--cc-text-2); font-size: 0.97rem; margin-bottom: 0; }

.cc-card--dark { background: var(--cc-slate); border-color: var(--cc-line-dark); color: var(--cc-text-inv); }
.cc-card--dark h3 { color: #fff; }
.cc-card--dark p { color: var(--cc-text-inv-2); }
.cc-card--dark .cc-card__icon { background: rgba(237, 41, 57, 0.16); }

.cc-card__num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--cc-font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: #e9edf0;
  letter-spacing: -0.04em;
  line-height: 1;
}
.cc-card--dark .cc-card__num { color: rgba(255, 255, 255, 0.07); }

/* tick lists */
.cc-ticks { margin-top: 1.25rem; display: grid; gap: 0.6rem; list-style: none; padding: 0; }
.cc-ticks li { position: relative; padding-left: 1.7rem; font-size: 0.92rem; color: var(--cc-text-2); }
.cc-card--dark .cc-ticks li { color: var(--cc-text-inv-2); }
.cc-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--cc-red);
  border-bottom: 2px solid var(--cc-red);
  transform: rotate(-45deg);
}

/* ---------- Panel (dark feature box) ---------- */
.cc-panel {
  background: var(--cc-ink);
  border-radius: var(--cc-radius-lg);
  padding: 2.5rem;
  color: var(--cc-text-inv);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.cc-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -200px;
  right: -160px;
  background: radial-gradient(circle, rgba(237, 41, 57, 0.3), transparent 65%);
}
.cc-panel h3 { color: #fff; position: relative; }
.cc-panel__rows {
  position: relative;
  margin-top: 1.6rem;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--cc-radius-sm);
  overflow: hidden;
}
.cc-panel__row {
  background: rgba(19, 28, 35, 0.8);
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cc-panel__row svg { width: 19px; height: 19px; color: var(--cc-red); flex: none; margin-top: 3px; }
.cc-panel__row b { color: #fff; display: block; font-family: var(--cc-font-head); font-size: 0.95rem; font-weight: 600; }
.cc-panel__row span { font-size: 0.875rem; color: var(--cc-text-inv-2); }

/* ---------- Process steps ---------- */
.cc-steps { display: grid; }
.cc-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.75rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--cc-line);
}
.cc-step:last-child { border-bottom: 1px solid var(--cc-line); }
.cc-section--dark .cc-step,
.cc-section--slate .cc-step { border-color: var(--cc-line-dark); }
.cc-step__no {
  font-family: var(--cc-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cc-red);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.cc-step h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.cc-step p { color: var(--cc-text-2); max-width: 78ch; margin-bottom: 0; }
.cc-section--dark .cc-step p,
.cc-section--slate .cc-step p { color: var(--cc-text-inv-2); }

/* ---------- Industry tiles ---------- */
.cc-industry {
  position: relative;
  border-radius: var(--cc-radius);
  overflow: hidden;
  background: var(--cc-slate);
  border: 1px solid var(--cc-line-dark);
  padding: 2rem 1.75rem;
  min-height: 250px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.28s var(--cc-ease), border-color 0.28s var(--cc-ease);
}
a.cc-industry { color: inherit; }
.cc-industry:hover { transform: translateY(-5px); border-color: var(--cc-red-line); }
.cc-industry__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(237, 41, 57, 0.16);
  color: #ff6b76;
  margin-bottom: auto;
}
.cc-industry__icon svg { width: 23px; height: 23px; }
.cc-industry h3 { color: #fff; font-size: 1.22rem; margin: 1.6rem 0 0.6rem; }
.cc-industry p { color: var(--cc-text-inv-2); font-size: 0.9rem; margin-bottom: 0; }
.cc-industry__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.cc-industry__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfdae2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* ---------- Stats ---------- */
.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.cc-stat b {
  display: block;
  font-family: var(--cc-font-head);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.cc-stat b span { color: var(--cc-red); }
.cc-stat p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--cc-text-inv-2);
  border-top: 1px solid var(--cc-line-dark);
  padding-top: 0.75rem;
  margin-bottom: 0;
}

/* ---------- Quotes ---------- */
.cc-quote {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 1.9rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}
.cc-quote__mark {
  font-family: var(--cc-font-head);
  font-size: 3rem;
  line-height: 0.7;
  color: var(--cc-red);
  opacity: 0.35;
  margin-bottom: 0.9rem;
}
.cc-quote p { font-size: 0.97rem; color: var(--cc-text-2); flex: 1; }
.cc-quote footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--cc-line);
  font-family: var(--cc-font-head);
  font-weight: 600;
  font-size: 0.9rem;
}
.cc-quote footer span { display: block; font-family: var(--cc-font-body); font-weight: 400; font-size: 0.82rem; color: var(--cc-text-2); }

/* ---------- CTA ---------- */
.cc-cta {
  position: relative;
  background: var(--cc-ink);
  border-radius: var(--cc-radius-lg);
  padding: 4rem 3.5rem;
  overflow: hidden;
}
.cc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(115deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 70%);
}
.cc-cta::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(237, 41, 57, 0.28), transparent 65%);
}
.cc-cta > * { position: relative; z-index: 2; }
.cc-cta h2 { color: #fff; margin-bottom: 1rem; }
.cc-cta p { color: var(--cc-text-inv-2); margin-bottom: 0; }

/* ---------- Forms (Bootstrap) ---------- */
.form-label {
  font-family: var(--cc-font-head);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cc-ink);
}
.form-control,
.form-select {
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--cc-line);
  border-radius: var(--cc-radius-sm);
  font-size: 0.95rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--cc-red);
  box-shadow: 0 0 0 0.25rem var(--cc-red-soft);
}
.form-control::placeholder { color: #93a2ad; }
.cc-form-note { font-size: 0.82rem; color: var(--cc-text-2); }
.cc-form-success {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--cc-radius-sm);
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.3);
  color: #1c7a44;
  font-size: 0.92rem;
}
.cc-form-success.is-visible { display: block; }

/* ---------- Form feedback and anti-spam ---------- */
.cc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cc-field-error { color: var(--cc-red-dark); font-size: 0.82rem; margin-top: 0.35rem; }
.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--cc-red-dark); }
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: var(--cc-red-dark);
  box-shadow: 0 0 0 0.25rem var(--cc-red-soft);
}
.cc-form-error {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--cc-radius-sm);
  background: rgba(237, 41, 57, 0.08);
  border: 1px solid rgba(237, 41, 57, 0.3);
  color: #a10c08;
  font-size: 0.92rem;
}
.cc-form-error.is-visible { display: block; }
.btn.is-sending { opacity: 0.65; }

/* ---------- Booking callout ---------- */
.cc-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.6rem 1.9rem;
  border: 1px solid var(--cc-line);
  border-left: 4px solid var(--cc-red);
  border-radius: var(--cc-radius);
  background: var(--cc-white);
  box-shadow: var(--cc-shadow-sm);
  margin-bottom: 1.75rem;
}
.cc-book h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.cc-book p { margin-bottom: 0; color: var(--cc-text-2); font-size: 0.93rem; max-width: 48ch; }
.cc-book .btn { flex: none; }
.cc-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.6rem;
  color: var(--cc-text-2);
  font-family: var(--cc-font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cc-or::before,
.cc-or::after { content: ""; height: 1px; background: var(--cc-line); flex: 1; }

.cc-aside {
  background: var(--cc-slate);
  border-radius: var(--cc-radius-lg);
  padding: 2.5rem;
  color: var(--cc-text-inv);
  height: 100%;
}
.cc-aside h3 { color: #fff; margin-bottom: 0.6rem; }
.cc-aside p { color: var(--cc-text-inv-2); font-size: 0.95rem; }

/* ---------- Page hero (interior) ---------- */
.cc-page-hero {
  position: relative;
  background-color: var(--cc-ink);
  --cc-hero-img: url("../img/hero-industrial.jpg");
  padding: 11rem 0 5rem;
  color: var(--cc-text-inv);
  overflow: hidden;
  background-image:
    linear-gradient(95deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0.84) 40%, rgba(11, 17, 23, 0.55) 72%, rgba(11, 17, 23, 0.3) 100%),
    var(--cc-hero-img);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
/* Per-industry header photography */
.cc-page-hero--agriculture { --cc-hero-img: url("../img/hero-agriculture.jpg"); }
.cc-page-hero--chemical    { --cc-hero-img: url("../img/hero-chemical.jpg"); }
.cc-page-hero--mining      { --cc-hero-img: url("../img/hero-mining.jpg"); }
.cc-page-hero--oil-and-gas { --cc-hero-img: url("../img/hero-oil-and-gas.jpg"); }
.cc-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--cc-ink));
  pointer-events: none;
}
.cc-page-hero .container { position: relative; z-index: 2; }
.cc-page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 22ch; }
.cc-page-hero p { color: #bcc9d3; font-size: 1.12rem; max-width: 62ch; margin-top: 1.25rem; margin-bottom: 0; }
.cc-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.84rem;
  color: #8b9aa6;
  margin-bottom: 1.1rem;
}
.cc-breadcrumb a { color: #8b9aa6; }
.cc-breadcrumb a:hover { color: #fff; }
.cc-breadcrumb span { color: var(--cc-red); }

/* ---------- Pills, callout ---------- */
.cc-pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cc-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--cc-mist);
  border: 1px solid var(--cc-line);
  color: var(--cc-text-2);
}
.cc-section--dark .cc-pill,
.cc-section--slate .cc-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cc-line-dark);
  color: #c3ced7;
}

.cc-callout {
  border-left: 3px solid var(--cc-red);
  padding: 4px 0 4px 22px;
  margin-top: 1.6rem;
  color: var(--cc-text-2);
  font-size: 0.97rem;
}

/* ---------- Footer ---------- */
.cc-footer {
  background: var(--cc-ink);
  color: var(--cc-text-inv-2);
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--cc-line-dark);
}
.cc-footer .cc-brand { font-size: 1.4rem; }
.cc-footer h3 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.cc-footer__list { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin: 0; }
.cc-footer__list a { color: var(--cc-text-inv-2); font-size: 0.9rem; transition: color 0.18s var(--cc-ease); }
.cc-footer__list a:hover { color: var(--cc-red); }
.cc-footer__contact { display: grid; gap: 0.85rem; font-size: 0.9rem; }
.cc-footer__contact a { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--cc-text-inv-2); }
.cc-footer__contact a:hover { color: #fff; }
.cc-footer__contact svg { width: 16px; height: 16px; color: var(--cc-red); flex: none; margin-top: 3px; }
.cc-footer__bottom {
  border-top: 1px solid var(--cc-line-dark);
  padding: 1.5rem 0;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cc-footer__bottom p { margin: 0; }
.cc-footer__bottom nav { display: flex; gap: 1.4rem; }
.cc-footer__bottom a { color: var(--cc-text-inv-2); }
.cc-footer__bottom a:hover { color: var(--cc-red); }

/* ---------- Utilities ---------- */
.cc-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--cc-ease), transform 0.7s var(--cc-ease); }
.cc-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cc-reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .cc-hero { background-image: linear-gradient(rgba(11, 17, 23, 0.9), rgba(11, 17, 23, 0.9)), var(--cc-hero-img); }
  .cc-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .cc-page-hero { background-image: linear-gradient(rgba(11, 17, 23, 0.9), rgba(11, 17, 23, 0.9)), var(--cc-hero-img); }
}

@media (max-width: 767.98px) {
  .cc-stats { grid-template-columns: repeat(2, 1fr); }
  .cc-step { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.7rem 0; }
  .cc-cta { padding: 2.6rem 1.6rem; border-radius: var(--cc-radius); }
}

@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .cc-section { padding: 4.5rem 0; }
  .cc-section--tight { padding: 3.25rem 0; }
  .cc-hero { padding: 9rem 0 4.5rem; }
  .cc-page-hero { padding: 8.5rem 0 3.75rem; }
  .cc-hero__stats { grid-template-columns: 1fr; }
  .cc-stats { grid-template-columns: 1fr; }
  .cc-card { padding: 1.75rem 1.5rem; }
  .cc-panel { padding: 1.9rem 1.5rem; }
  .cc-aside { padding: 1.9rem 1.5rem; }
  .cc-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Nav dropdowns ---------- */
.cc-navbar .dropdown-menu {
  --bs-dropdown-bg: #131c23;
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.12);
  --bs-dropdown-border-radius: var(--cc-radius-sm);
  --bs-dropdown-link-color: rgba(255, 255, 255, 0.82);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.07);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: var(--cc-red-cta);
  margin-top: 0.5rem;
  padding: 0.45rem;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}
.cc-navbar .dropdown-item {
  border-radius: 7px;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
}
.cc-navbar .dropdown-divider { border-color: rgba(255, 255, 255, 0.1); margin: 0.4rem 0.25rem; }
.cc-navbar .dropdown-item.is-current { color: #fff; font-weight: 600; }
.cc-navbar .dropdown-toggle::after { vertical-align: 0.12em; opacity: 0.7; }

/* ---------- FAQ ---------- */
.cc-faq { display: grid; gap: 1.6rem; }
.cc-faq__item { border-top: 1px solid var(--cc-line); padding-top: 1.6rem; }
.cc-faq__item:last-child { border-bottom: 1px solid var(--cc-line); padding-bottom: 1.6rem; }
.cc-faq__item h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.cc-faq__item p { color: var(--cc-text-2); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Related links ---------- */
.cc-related { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
a.cc-pill { color: inherit; transition: border-color 0.2s var(--cc-ease), color 0.2s var(--cc-ease); }
a.cc-pill:hover { border-color: var(--cc-red); color: var(--cc-ink); }
.cc-section--dark a.cc-pill:hover,
.cc-section--slate a.cc-pill:hover { border-color: var(--cc-red); color: #fff; }

@media (max-width: 991.98px) {
  .cc-navbar .dropdown-menu {
    position: static;
    float: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 0.9rem;
    margin: 0.15rem 0 0.35rem;
  }
  .cc-navbar .dropdown-item { color: rgba(255, 255, 255, 0.72); padding: 0.45rem 0.25rem; }
  .cc-navbar .dropdown-item:hover,
  .cc-navbar .dropdown-item:focus { background: transparent; color: #fff; }
  .cc-navbar .dropdown-item.is-current { color: #fff; }
  .cc-navbar .dropdown-divider { display: none; }
}

/* ---------- Resource landing page (/matrix/) ---------- */
.cc-resource {
  position: relative;
  background-color: var(--cc-ink);
  color: var(--cc-text-inv);
  padding: 11rem 0 5.5rem;
  overflow: hidden;
  --cc-hero-img: url("../img/hero-industrial.jpg");
  background-image:
    linear-gradient(95deg, rgba(11, 17, 23, 0.97) 0%, rgba(11, 17, 23, 0.9) 46%, rgba(11, 17, 23, 0.72) 100%),
    var(--cc-hero-img);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.cc-resource::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--cc-ink));
  pointer-events: none;
}
.cc-resource .container { position: relative; z-index: 2; }
.cc-resource h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.cc-resource__lead { color: #c3ced7; font-size: 1.14rem; max-width: 56ch; }
.cc-resource .cc-ticks li { color: #c3ced7; }
.cc-resource .cc-ticks li::before { border-color: #ff6b76; }

.cc-resource__cover { margin: 0; }
.cc-resource__cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--cc-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}
.cc-resource__cover figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #8b9aa6;
  text-align: center;
}

.cc-subscribe {
  margin-top: 2.25rem;
  max-width: 34rem;
  padding: 1.9rem;
  border-radius: var(--cc-radius);
  background: rgba(19, 28, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--cc-shadow-sm);
}
.cc-subscribe h2 { font-size: 1.35rem; color: #fff; margin-bottom: 0.45rem; }
.cc-subscribe > p { color: var(--cc-text-inv-2); font-size: 0.95rem; margin-bottom: 1.25rem; }
.cc-subscribe .form-label { color: #fff; }
.cc-subscribe__slot {
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--cc-radius-sm);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.cc-subscribe__slot-note { margin: 0; color: #8b9aa6; font-size: 0.88rem; }
.cc-subscribe__fine { margin: 0.9rem 0 0; font-size: 0.78rem; color: #8b9aa6; }

@media (max-width: 991.98px) {
  .cc-resource {
    padding: 9.5rem 0 4.5rem;
    background-image:
      linear-gradient(rgba(11, 17, 23, 0.93), rgba(11, 17, 23, 0.93)),
      var(--cc-hero-img);
  }
  .cc-subscribe { max-width: none; }
}
@media (max-width: 575.98px) {
  .cc-resource { padding: 8.5rem 0 3.75rem; }
  .cc-subscribe { padding: 1.5rem 1.25rem; }
}
