/* ═══════════════════════════════════════════════════════
   SAVADUB GRC — Shared Stylesheet
   Bootstrap 5 base. Only overrides & additions here.
═══════════════════════════════════════════════════════ */

/* ── Brand tokens ─────────────────────────────────── */
:root {
  --sd-blue:        #081065;
  --sd-blue-mid:    #0d1a8a;
  --sd-blue-light:  #1a2db8;
  --sd-red:         #DD3333;
  --sd-red-dark:    #b82020;
  --sd-cyan:        #66A9BF;
  --sd-cyan-light:  #a8d4e3;
  --sd-white:       #ffffff;
  --sd-off-white:   #f4f6fb;
  --sd-gray-100:    #eef0f7;
  --sd-gray-200:    #d8dce8;
  --sd-gray-700:    #4a5068;
  --sd-gray-900:    #0f1225;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--sd-gray-900);
  background: var(--sd-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); }

/* ── Colour helpers ───────────────────────────────── */
.text-red    { color: var(--sd-red)  !important; }
.text-cyan   { color: var(--sd-cyan) !important; }
.text-blue   { color: var(--sd-blue) !important; }
.bg-deep-blue { background-color: var(--sd-blue)      !important; }
.bg-off-white { background-color: var(--sd-off-white) !important; }

/* ── Typography helpers ───────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sd-cyan);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sd-blue);
}
.section-heading.light { color: var(--sd-white); }

.lead-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sd-gray-700);
}
.lead-text.light { color: rgba(255,255,255,.78); }

.divider-red {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sd-red);
  border-radius: 2px;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
  background: var(--sd-blue);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
}
.site-header .logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sd-white);
  text-decoration: none;
  letter-spacing: -.01em;
}
.site-header .logo span { color: var(--sd-red); }
.site-header .nav-link {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 600;
  padding: .25rem 0;
  text-decoration: none;
  transition: color .2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--sd-white); }

/* ── Buttons ──────────────────────────────────────── */
.btn-sd-primary {
  background: var(--sd-red);
  color: var(--sd-white);
  border: none;
  font-weight: 700;
  font-size: .9rem;
  padding: .78rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s, transform .15s;
  cursor: pointer;
}
.btn-sd-primary:hover {
  background: var(--sd-red-dark);
  color: var(--sd-white);
  transform: translateY(-1px);
}

.btn-sd-outline {
  background: transparent;
  color: var(--sd-white);
  border: 1.5px solid rgba(255,255,255,.45);
  font-weight: 600;
  font-size: .9rem;
  padding: .76rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: border-color .2s, background .2s;
}
.btn-sd-outline:hover {
  border-color: var(--sd-white);
  background: rgba(255,255,255,.07);
  color: var(--sd-white);
}

.btn-sd-blue {
  background: var(--sd-blue);
  color: var(--sd-white);
  border: none;
  font-weight: 700;
  font-size: .9rem;
  padding: .78rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s;
}
.btn-sd-blue:hover { background: var(--sd-blue-mid); color: var(--sd-white); }

/* ── Page Hero ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--sd-blue) 0%, var(--sd-blue-mid) 60%, #102080 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(102,169,191,.06) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(102,169,191,.06) 80px);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--sd-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero .hero-badge {
  background: rgba(102,169,191,.15);
  border: 1px solid rgba(102,169,191,.35);
  color: var(--sd-cyan-light);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--sd-white);
  line-height: 1.12;
}
.page-hero h1 .accent { color: var(--sd-red); }
.page-hero .hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  max-width: 560px;
}

/* ── Breadcrumb ───────────────────────────────────── */
.grc-breadcrumb {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.grc-breadcrumb a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}
.grc-breadcrumb a:hover { color: var(--sd-cyan-light); }
.grc-breadcrumb .sep { margin: 0 .4rem; }

/* ── Regulation chips ─────────────────────────────── */
.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(102,169,191,.12);
  border: 1px solid rgba(102,169,191,.3);
  color: var(--sd-cyan-light);
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ── Challenge / Risk cards ───────────────────────── */
.challenge-card {
  border-left: 3px solid var(--sd-red);
  background: var(--sd-gray-100);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  height: 100%;
}
.challenge-card h6 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--sd-blue);
  margin-bottom: .35rem;
}
.challenge-card p {
  font-size: .845rem;
  color: var(--sd-gray-700);
  margin: 0;
  line-height: 1.6;
}

/* ── Solution / Service cards ─────────────────────── */
.solution-card {
  border: 1.5px solid var(--sd-gray-200);
  border-radius: 14px;
  padding: 1.6rem;
  height: 100%;
  background: var(--sd-white);
  transition: border-color .25s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sd-gray-200);
  transition: background .25s;
}
.solution-card:hover {
  border-color: var(--sd-blue-light);
  box-shadow: 0 10px 32px rgba(8,16,101,.09);
  transform: translateY(-3px);
}
.solution-card:hover::before { background: var(--sd-red); }
.solution-card .s-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--sd-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--sd-blue);
  margin-bottom: 1rem;
}
.solution-card h5 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sd-blue);
  margin-bottom: .4rem;
}
.solution-card p {
  font-size: .875rem;
  color: var(--sd-gray-700);
  line-height: 1.65;
  margin: 0;
}

/* ── Framework tags ───────────────────────────────── */
.fw-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--sd-gray-100);
  border: 1px solid var(--sd-gray-200);
  color: var(--sd-blue);
  font-size: .74rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
  letter-spacing: .03em;
}
.fw-tag .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sd-cyan);
  flex-shrink: 0;
}

/* ── Dark section ─────────────────────────────────── */
.dark-section {
  background: var(--sd-blue);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 39px, rgba(102,169,191,.04) 40px
  );
  pointer-events: none;
}

/* ── Process steps ────────────────────────────────── */
.process-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sd-blue);
  color: var(--sd-white);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.process-step h6 { font-size: .95rem; font-weight: 700; color: var(--sd-blue); margin-bottom: .25rem; }
.process-step p  { font-size: .855rem; color: var(--sd-gray-700); margin: 0; line-height: 1.6; }

/* ── Stat bar ─────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sd-white);
  line-height: 1;
}
.stat-item .lbl {
  font-size: .72rem;
  color: var(--sd-cyan-light);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .3rem;
}

/* ── Internal audit vs external ───────────────────── */
.audit-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--sd-gray-200);
}
.audit-card .audit-head {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}
.audit-card .audit-head.blue { background: var(--sd-blue); color: var(--sd-white); }
.audit-card .audit-head.red  { background: var(--sd-red);  color: var(--sd-white); }
.audit-card .audit-body { padding: 1.25rem 1.5rem; }
.audit-feature {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .855rem;
  color: var(--sd-gray-700);
  margin-bottom: .6rem;
  line-height: 1.55;
}
.audit-feature i { color: var(--sd-cyan); flex-shrink: 0; margin-top: .1rem; }

/* ── CTA section ──────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--sd-blue) 0%, var(--sd-blue-mid) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(221,51,51,.1);
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--sd-gray-900);
  color: rgba(255,255,255,.5);
  font-size: .84rem;
  padding: 2rem 0;
}
.site-footer a { color: rgba(255,255,255,.5); text-decoration: none; }
.site-footer a:hover { color: var(--sd-white); }
.site-footer .f-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--sd-white);
  font-size: 1.1rem;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 767.98px) {
  .page-hero { padding: 3.5rem 0 5rem; }
  .page-hero::after { height: 50px; }
}
