/* ============================================================
   786 Cyber — Shared Brand CSS
   Style Guide v3.0 — April 2026
   LOCKED: Do not change values without a Change Log entry.
   Used by all marketing HTML pages.
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Primary brand colours */
  --green:        #2c3729;   /* Forest green — People & Identity, nav, headings, primary buttons */
  --gold:         #e8b84b;   /* Bright gold — Policy & Process, CTA accents */
  --grey:         #8a9490;   /* Slate grey — Tech & Threats, secondary text, tags */

  /* Supporting colours */
  --green-mid:    #4a6b44;   /* Subheadings, hover states */
  --gold-dark:    #b8900a;   /* Gold text on light backgrounds */
  --grey-dark:    #4a5450;   /* Text on grey backgrounds */
  --green-light:  #edf4ec;   /* People & Identity backgrounds */
  --gold-light:   #fdf6e3;   /* Policy & Process backgrounds */
  --grey-light:   #f0f2f1;   /* Tech & Threats backgrounds */
  --off-white:    #F8F8F6;   /* Page / card backgrounds */

  /* Semantic colours */
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #3b82f6;

  /* Text */
  --text-primary:   #1A1A1A;
  --text-secondary: #4a5450;
  --text-tertiary:  #8a9490;

  /* Borders */
  --border:       #D0D5D2;
  --border-hover: #B0B5B2;

  /* Typography */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(20,30,25,0.07), 0 4px 16px rgba(20,30,25,0.06);
  --shadow-nav:  0 1px 0 rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--green-mid);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

p { line-height: 1.65; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.section--tight { padding: 48px 0; }
section.section--flush { padding: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  background: var(--green);
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-nav);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__wordmark .w7 { color: #fff; }
.nav__wordmark .w8 { color: var(--gold); }
.nav__wordmark .w6 { color: var(--grey); }
.nav__wordmark .wc { color: #fff; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold); }

.nav__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
  min-height: 40px;
  padding: 10px 20px;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: #1e2820; text-decoration: none; color: #fff; }

.btn--gold {
  background: var(--gold);
  color: var(--text-primary);
}
.btn--gold:hover { background: #d4a535; text-decoration: none; }

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--outline:hover { background: var(--green-light); text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: #fff; }

.btn--lg { font-size: 15px; min-height: 48px; padding: 13px 28px; }
.btn--sm { font-size: 13px; min-height: 34px; padding: 7px 14px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.card--hover {
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.card--hover:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(20,30,25,0.10);
}

/* Pillar-tagged cards — 3px left border */
.card--people  { border-left: 3px solid var(--green); }
.card--policy  { border-left: 3px solid var(--gold); }
.card--tech    { border-left: 3px solid var(--grey); }

/* ── Badges / Tags ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--people  { background: var(--green-light); color: var(--green); }
.badge--policy  { background: var(--gold-light);  color: var(--gold-dark); }
.badge--tech    { background: var(--grey-light);  color: var(--grey-dark); }

.badge--active    { background: #f0fdf4; color: #166534; }
.badge--progress  { background: #fffbeb; color: #92400e; }
.badge--planned   { background: #f8fafc; color: #64748b; }
.badge--blocked   { background: #fef2f2; color: #991b1b; }

/* Framework / control tags (monospace-style inline tags) */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  background: var(--grey-light);
  color: var(--grey-dark);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.tag--green  { background: var(--green-light); color: var(--green); border-color: #c5ddc2; }
.tag--gold   { background: var(--gold-light);  color: var(--gold-dark); border-color: #e8d5a0; }
.tag--red    { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ── Pillar label (eyebrow above headings) ───────────────────── */
.pillar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pillar-label--people { color: var(--green); }
.pillar-label--policy { color: var(--gold-dark); }
.pillar-label--tech   { color: var(--grey-dark); }

/* ── Section label (small uppercase heading) ─────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--green);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb__sep { opacity: 0.4; }

/* ── "Who needs this" applicability strip ────────────────────── */
.applies-strip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.applies-strip strong { color: #fff; }

/* ── Content grid ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Module chip (small numbered card) ──────────────────────── */
.module-chip {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.module-chip__num {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.module-chip__num--green { background: var(--green); }
.module-chip__num--gold  { background: var(--gold-dark); }
.module-chip__num--grey  { background: var(--grey); }

/* ── Report extract component ────────────────────────────────── */
.report-extract {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(20,30,25,0.10);
}

.report-extract__header {
  background: var(--green);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold);
}

.report-extract__org {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.report-extract__body { padding: 24px 28px; }

.report-extract__section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border);
}
.report-extract__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Control row inside extract */
.control-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid #f0f0ee;
}
.control-row:last-child { border-bottom: none; }

.control-row__status {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.control-row__status--done     { background: #f0fdf4; color: #166534; border: 1.5px solid #22c55e; }
.control-row__status--progress { background: #fffbeb; color: #92400e; border: 1.5px solid #f59e0b; }
.control-row__status--todo     { background: #f8fafc; color: #64748b; border: 1.5px solid #cbd5e1; }
.control-row__status--critical { background: #fef2f2; color: #991b1b; border: 1.5px solid #ef4444; }

.control-row__content { flex: 1; min-width: 0; }
.control-row__title   { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.control-row__tags    { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Brand toggle (786 Cyber / MSP view) */
.brand-toggle {
  display: inline-flex;
  background: var(--grey-light);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.brand-toggle__btn {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.brand-toggle__btn.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 4px rgba(20,30,25,0.10);
}

/* MSP co-brand bar (shown when MSP mode active) */
.msp-bar {
  background: #1a2332;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.msp-bar strong { color: #5bb8d4; }
.msp-bar__powered { color: rgba(255,255,255,0.35); font-size: 11px; }

/* ── Checklist ───────────────────────────────────────────────── */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}
.checklist li:last-child { border-bottom: none; }
.checklist__icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.checklist__icon--required { background: #fef2f2; color: #991b1b; border: 1.5px solid #ef4444; }
.checklist__icon--important { background: #fffbeb; color: #92400e; border: 1.5px solid #f59e0b; }
.checklist__icon--good      { background: #f0fdf4; color: #166534; border: 1.5px solid #22c55e; }

/* ── CTA block ───────────────────────────────────────────────── */
.cta-block {
  background: var(--green);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.cta-block h2 { color: #fff; margin-bottom: 12px; }
.cta-block p  { color: rgba(255,255,255,0.72); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-block__actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--green);
  border-top: 3px solid var(--gold);
  padding: 40px 0 28px;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  max-width: 280px;
  line-height: 1.5;
}
.footer__links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.footer__col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.footer__bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer__bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-block { padding: 32px 24px; }
  .hero { padding: 48px 0 40px; }
  .nav__links { display: none; }
  .report-extract__header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer__top { flex-direction: column; }
  .footer__links { gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn--lg { width: 100%; justify-content: center; }
}
