/* =============================================================
   RedSecLabs — MODERN REFRESH LAYER  (modern.css)
   Loaded LAST on every page EXCEPT the home page, so it wins the
   cascade over each page's local <style> blocks. Pure styling only:
   no layout-breaking changes, no effect on header / footer / mega-menu
   / floating CTA (shared chrome must stay identical to the home page).

   Theme tokens (unchanged brand):
     red #C51230 / deep #8B0000 / ink #171428 / muted #5f5c70
     line #ececf1 / wash #fafbfc / Switzer font family
   ============================================================= */

:root {
  --m-red: #C51230;
  --m-red-deep: #8B0000;
  --m-ink: #171428;
  --m-muted: #5f5c70;
  --m-line: #ececf1;
  --m-wash: #fafbfc;
  --m-radius: 16px;
  --m-radius-sm: 12px;
  --m-shadow: 0 10px 34px rgba(16, 24, 40, 0.08);
  --m-shadow-hover: 0 18px 48px rgba(16, 24, 40, 0.14);
  --m-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────
   1. SECTION RHYTHM — comfortable, consistent vertical spacing on
   content sections. Scoped to known inner-page section classes so
   header / banner / footer are never affected.
   ───────────────────────────────────────────────────────────── */
.rsl-stats-section,
.rsl-industries-section,
.swift-reasons-section,
.swift-who-section,
.rsl-deliverables-section,
.rsl-related-section,
.rsl-tier-section,
.methodology-section,
.why-rsl-section,
.trusted-clients-section,
.review-section,
.ind-index-section,
.faqs-section,
.faq-section {
  padding-top: clamp(48px, 6vw, 84px) !important;
  padding-bottom: clamp(48px, 6vw, 84px) !important;
}

/* Section heading rhythm */
.rsl-stats-section .main-heading,
.rsl-industries-section .main-heading,
.swift-reasons-section .main-heading,
.swift-who-section .main-heading,
.rsl-deliverables-section .main-heading,
.methodology-section .main-heading,
.why-rsl-section .main-heading {
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────
   2. INNER-BANNER HERO — refresh the dark inner-page hero.
   ───────────────────────────────────────────────────────────── */
.inner-banner {
  background:
    radial-gradient(1200px 400px at 12% -10%, rgba(197,18,48,0.18), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(80,100,180,0.12), transparent 55%),
    linear-gradient(135deg, #0f0d1c 0%, #1b1830 100%) !important;
  position: relative;
  overflow: hidden;
}
.inner-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 30% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.inner-banner .container { position: relative; z-index: 1; }
.inner-banner .main-heading {
  font-size: clamp(30px, 4.4vw, 50px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
}
.inner-banner .sub-heading,
.inner-banner p:not(.btn) {
  color: rgba(255,255,255,0.78) !important;
}
/* Breadcrumb as pill chips */
.inner-banner .breadcrumb-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  margin-bottom: 18px;
}
.inner-banner .breadcrumb-wrapper a,
.inner-banner .breadcrumb-wrapper span {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  font-size: 12.5px;
}
.inner-banner .breadcrumb-wrapper a:hover { color: #fff !important; }
.inner-banner .breadcrumb-wrapper .fa-angle-right { color: rgba(255,255,255,0.35) !important; }

/* ─────────────────────────────────────────────────────────────
   3. CARD SYSTEM — unify radius / shadow / hover across the known
   content card components for a cohesive premium feel.
   ───────────────────────────────────────────────────────────── */
.swift-reason-card,
.swift-who-tile,
.rsl-stat-card,
.rsl-industry-chip,
.rsl-related-card,
.rsl-cert-item,
.meth-card,
.soc2-type-card,
.ind-card {
  border-radius: var(--m-radius) !important;
  transition: transform .22s var(--m-ease), box-shadow .22s var(--m-ease), border-color .22s var(--m-ease) !important;
  will-change: transform;
}
.swift-reason-card:hover,
.swift-who-tile:hover,
.rsl-stat-card:hover,
.rsl-industry-chip:hover,
.rsl-related-card:hover,
.meth-card:hover,
.ind-card:hover {
  box-shadow: var(--m-shadow-hover) !important;
}

/* Stat cards — crisper number, lighter wash */
.rsl-stat-card {
  background: linear-gradient(160deg, #ffffff 0%, var(--m-wash) 100%) !important;
  border: 1px solid var(--m-line) !important;
}
.rsl-stat-number { letter-spacing: -0.02em !important; }

/* Industry chips — refined */
.rsl-industry-chip { border: 1px solid var(--m-line) !important; }

/* ─────────────────────────────────────────────────────────────
   4. DELIVERABLES / CHECK LISTS — modern tick rows.
   ───────────────────────────────────────────────────────────── */
.rsl-deliverables-list li {
  background: var(--m-wash) !important;
  border-left: 3px solid var(--m-red) !important;
  border-radius: 10px !important;
  padding: 14px 16px 14px 18px !important;
  position: relative;
  transition: background .18s var(--m-ease), transform .18s var(--m-ease);
}
.rsl-deliverables-list li:hover {
  background: #fff !important;
  box-shadow: var(--m-shadow);
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────
   5. FAQ — Bootstrap accordion refresh.
   ───────────────────────────────────────────────────────────── */
.faqs-wrapper .accordion-item,
.accordion-flush .accordion-item {
  background: #fff !important;
  border: 1px solid var(--m-line) !important;
  border-radius: var(--m-radius-sm) !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  transition: box-shadow .2s var(--m-ease), border-color .2s var(--m-ease);
}
.faqs-wrapper .accordion-item:hover,
.accordion-flush .accordion-item:hover {
  box-shadow: var(--m-shadow);
}
.accordion-button,
.accordion-button.faq {
  border-radius: var(--m-radius-sm) !important;
  font-family: 'Switzer-Bold', Arial, sans-serif !important;
  font-size: 16px !important;
  color: var(--m-ink) !important;
  padding: 18px 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: var(--m-red) !important;
  background: rgba(197,18,48,0.045) !important;
}
.accordion-button:focus {
  box-shadow: 0 0 0 2px rgba(197,18,48,0.18) !important;
  border-color: transparent !important;
}
.accordion-button::after {
  width: 1.1rem; height: 1.1rem;
  background-size: 1.1rem;
}
.faq-body,
.accordion-body {
  padding: 4px 20px 20px !important;
  color: var(--m-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* ─────────────────────────────────────────────────────────────
   6. CONTENT TABLES — modern, rounded, readable. (Rare; scoped to
   sections so layout/footer tables are untouched.)
   ───────────────────────────────────────────────────────────── */
/* Exclude .iso-cmp (the new iso pages style their own comparison tables). */
section table:not(.no-modern):not(.iso-cmp) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius-sm);
  overflow: hidden;
  font-size: 14.5px;
}
section table:not(.no-modern):not(.iso-cmp) thead th {
  background: var(--m-ink);
  color: #fff;
  font-family: 'Switzer-Bold', Arial, sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
}
section table:not(.no-modern):not(.iso-cmp) tbody td,
section table:not(.no-modern):not(.iso-cmp) tbody th {
  padding: 13px 16px;
  border-top: 1px solid var(--m-line);
  color: #33313f;
}
section table:not(.no-modern):not(.iso-cmp) tbody tr:nth-child(even) td {
  background: var(--m-wash);
}
section table:not(.no-modern):not(.iso-cmp) tbody tr:hover td {
  background: rgba(197,18,48,0.04);
}

/* ─────────────────────────────────────────────────────────────
   7. LISTING PAGES — services / industries index polish.
   ───────────────────────────────────────────────────────────── */
.meth-card {
  background: #fff !important;
  border: 1px solid var(--m-line) !important;
  padding: 28px 26px !important;
  box-shadow: var(--m-shadow);
}
.meth-card:hover { border-color: rgba(197,18,48,0.25) !important; transform: translateY(-4px); }

/* Service "simple" cards used in listings/grids */
.services-simple-grid .service-simple-card,
.service-grid .service-simple-card {
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius-sm);
  transition: transform .2s var(--m-ease), box-shadow .2s var(--m-ease), border-color .2s var(--m-ease);
}
.services-simple-grid .service-simple-card:hover,
.service-grid .service-simple-card:hover {
  box-shadow: var(--m-shadow);
  border-color: rgba(197,18,48,0.25);
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────────────────────────
   8. TYPOGRAPHY — section headings & ledes (content only).
   ───────────────────────────────────────────────────────────── */
.methodology-section .main-heading,
.why-rsl-section .main-heading,
.rsl-stats-section .main-heading,
.swift-reasons-section .main-heading,
.rsl-deliverables-section .main-heading,
.rsl-related-section .main-heading,
.ind-index-section .main-heading {
  font-family: 'Switzer-Bold', Arial, sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   9. LEGACY CONTENT SECTIONS — modernize the three dated patterns
   (framework icon cards, generic check "why" cards, and the awkward
   two-column "Key Benefits" box). Styling only; markup untouched.
   ───────────────────────────────────────────────────────────── */

/* 9a. Framework / icon cards (.box-with-icon-crest) ----------------- */
.box-with-icon-crest {
  background: #fff !important;
  border: 1px solid var(--m-line) !important;
  border-radius: var(--m-radius) !important;
  padding: 30px 26px !important;
  box-shadow: var(--m-shadow) !important;
  height: 100% !important;
  text-align: left !important;
  transition: transform .22s var(--m-ease), box-shadow .22s var(--m-ease), border-color .22s var(--m-ease) !important;
}
.box-with-icon-crest:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--m-shadow-hover) !important;
  border-color: rgba(197,18,48,0.22) !important;
}
.box-with-icon-crest img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  margin: 0 0 18px !important;
  padding: 10px !important;
  background: var(--m-wash) !important;
  border: 1px solid var(--m-line) !important;
  border-radius: 14px !important;
}
.box-with-icon-crest .box-hea {
  font-family: 'Switzer-Bold', Arial, sans-serif !important;
  font-size: 19px !important;
  color: var(--m-ink) !important;
  margin-bottom: 10px !important;
}
.box-with-icon-crest .desc {
  color: var(--m-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
/* even out the box-icon-wrapper grid gutters */
.box-icon-wrapper > [class*="col-"] { margin-bottom: 24px !important; }

/* 9b. Generic "why" check cards (Bootstrap .border.shadow.rounded with a
       check-circle icon) ------------------------------------------------ */
.shadow.rounded:has(> .me-3 .bi-check-circle-fill),
.shadow.rounded:has(> div > .bi-check-circle-fill),
.border.shadow.rounded:has(.bi-check-circle-fill) {
  border: 1px solid var(--m-line) !important;
  box-shadow: var(--m-shadow) !important;
  border-radius: var(--m-radius) !important;
  padding: 26px 24px !important;
  background: #fff !important;
  transition: transform .22s var(--m-ease), box-shadow .22s var(--m-ease), border-color .22s var(--m-ease) !important;
}
.shadow.rounded:has(.bi-check-circle-fill):hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--m-shadow-hover) !important;
  border-color: rgba(197,18,48,0.2) !important;
}
.shadow.rounded:has(.bi-check-circle-fill) .bi-check-circle-fill {
  color: var(--m-red) !important;
  font-size: 1.4rem !important;
}
.shadow.rounded:has(.bi-check-circle-fill) h3 {
  font-family: 'Switzer-Bold', Arial, sans-serif !important;
  font-size: 18px !important;
  color: var(--m-ink) !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
.shadow.rounded:has(.bi-check-circle-fill) p {
  color: var(--m-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* 9c. Two-column "definition / what's covered" sections — left holds a
       heading or short intro, right holds a checklist. Balanced & light:
       no heavy dark panel, no flat grey box. -------------------------- */

/* Row: stretch so the two columns align in height. */
.row:has(.check-icon) { align-items: stretch !important; }

/* LEFT column — centre its content vertically so it never looks stranded. */
.row:has(.check-icon) > [class*="col-"]:first-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
/* Heading-only left → tasteful red accent bar. */
.row:has(.check-icon) > [class*="col-"]:first-child > .main-heading {
  position: relative !important;
  padding-left: 20px !important;
  margin: 0 !important;
}
.row:has(.check-icon) > [class*="col-"]:first-child > .main-heading::before {
  content: "" !important;
  position: absolute !important;
  left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 3px;
  background: var(--m-red) !important;
}
/* Intro-box left → light wash panel with red accent + readable dark text. */
.row:has(.check-icon) > [class*="col-"]:first-child > div {
  background: var(--m-wash) !important;
  border: 1px solid var(--m-line) !important;
  border-left: 4px solid var(--m-red) !important;
  border-radius: var(--m-radius) !important;
  padding: 30px 28px !important;
  height: auto !important;
}
.row:has(.check-icon) > [class*="col-"]:first-child > div p {
  opacity: 1 !important;
  color: var(--m-ink) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* RIGHT column — clean white panel(s) holding the checklist. */
.row:has(.check-icon) > [class*="col-"]:last-child > div {
  background: #fff !important;
  border: 1px solid var(--m-line) !important;
  border-radius: var(--m-radius) !important;
  padding: 22px 26px !important;
  box-shadow: var(--m-shadow) !important;
  margin-bottom: 16px !important;
}
/* Direct-child check rows (single-panel variant) get tidy dividers. */
.row:has(.check-icon) > [class*="col-"]:last-child > div > .d-flex {
  align-items: flex-start !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--m-line) !important;
}
.row:has(.check-icon) > [class*="col-"]:last-child > div > .d-flex:first-child {
  border-top: none !important;
  padding-top: 2px !important;
}
/* Readable item text. Normalize spacing: zero the varying ms-4/mx-4
   margins and put a single consistent gap on the badge instead. */
.row:has(.check-icon) [class*="col-"]:last-child h3,
.row:has(.check-icon) [class*="col-"]:last-child p {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: var(--m-ink) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.row:has(.check-icon) .mx-4 { margin-left: 0 !important; margin-right: 0 !important; }

/* Red circular check badge (used across all .check-icon checklists).
   margin-right gives a consistent gap to the item text. */
.check-icon {
  color: #fff !important;
  background: var(--m-red) !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
  margin-top: 1px !important;
  margin-right: 14px !important;
  box-shadow: 0 2px 8px rgba(197,18,48,0.25) !important;
}

/* 9e. Methodology / numbered process cards (.card-body.box-with-icon) —
       give the number badge breathing room from the text and a cleaner,
       on-theme card. ------------------------------------------------- */
.card-body.box-with-icon {
  border: 1px solid var(--m-line) !important;
  border-radius: var(--m-radius) !important;
  box-shadow: var(--m-shadow) !important;
  padding: 24px 26px !important;
  gap: 20px !important;
  transition: transform .22s var(--m-ease), box-shadow .22s var(--m-ease), border-color .22s var(--m-ease) !important;
}
.card-body.box-with-icon:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--m-shadow-hover) !important;
  border-color: rgba(197,18,48,0.22) !important;
}
.card-body.box-with-icon .card-number {
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.card-body.box-with-icon .card-number img {
  width: 54px !important;
  height: auto !important;
}
.card-body.box-with-icon .w-100 { padding-left: 4px !important; }
.card-body.box-with-icon h3 {
  font-family: 'Switzer-Bold', Arial, sans-serif !important;
  font-size: 18px !important;
  color: var(--m-ink) !important;
  margin-bottom: 6px !important;
}
.card-body.box-with-icon p {
  color: var(--m-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* 9d. "What is …?" intro paragraph (.mid-para) — refined readable lead
       instead of cramped, justified body text. ----------------------- */
.mid-para {
  text-align: left !important;
  line-height: 1.85 !important;
  color: #46434f !important;
  font-size: 16px !important;
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
