/* ==========================================================================
   Systems Risk Advisory — shared stylesheet
   One file for the whole site. Linked from every page.

   COLORS: all brand colors are CSS variables, defined once in :root below.
   These hex values are PLACEHOLDERS pending Kevin's official brand codes.
   When the codes arrive, change them HERE and the whole site updates.
   ========================================================================== */

:root {
  /* Official brand codes — SRA_Website_Color_System.docx (2026-06-22) */
  --sra-blue:       #0150C7;  /* SRA Blue: primary action color, links, accents */
  --sra-blue-dark:  #003E99;  /* Dark SRA Blue: button/link hover */
  --sra-navy:       #061A33;  /* Deep Navy: headers, footers, hero, dark panels */
  --sra-navy-2:     #0B2745;  /* hero/cta gradient stop */
  --sra-navy-3:     #14375E;  /* hero/cta gradient stop */

  /* Neutrals */
  --sra-charcoal:   #1F2933;  /* Technical Charcoal: body text */
  --sra-slate:      #475569;  /* Text Gray: secondary text */
  --sra-light:      #F5F8FC;  /* Pale Gray Blue: light section / page background */
  --sra-border:     #D9E2EC;  /* Border Gray: dividers, card borders */
  --sra-white:      #FFFFFF;  /* Clean White: card surface */
  --sra-soft-blue:  #EAF2FF;  /* Light Blue: callout / hero-card tint */
  --sra-steel:      #2E6FA7;  /* Steel Blue: secondary accent */
  --sra-warning:    #FFF7E6;  /* warning notice background tint */
  --sra-warning-br: #C77700;  /* Warning Amber: notice border */

  /* Functional (reserve for status / callouts) */
  --sra-success:    #1F7A4D;  /* Success Green */
  --sra-risk:       #B42318;  /* Risk Red */
  --sra-info:       #2563EB;  /* Info Blue */

  /* Footer (Deep Navy per SRA_Website_Color_System.docx) */
  --sra-footer-bg:    #061A33;
  --sra-footer-text:  #D9E2EC;
  --sra-footer-line:  rgba(255, 255, 255, 0.14);
  --sra-footer-muted: rgba(255, 255, 255, 0.40);
  --sra-footer-link:  #BFD7FF;

  --sra-max: 1180px;
  --sra-radius: 16px;
  --sra-shadow: 0 12px 30px rgba(7, 26, 47, 0.07);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--sra-charcoal);
  background: var(--sra-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sra-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--sra-navy); }
h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 980px;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.25; }
p { margin: 0 0 16px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--sra-white);
  color: var(--sra-navy);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { width: min(var(--sra-max), calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 900px; }

main > section,
main section.section,
.section { padding: 64px 0; }
.section.compact, main section.compact { padding: 46px 0; }
.section-light, main section.alt, .section.alt { background: var(--sra-light); }
.section-navy {
  background: linear-gradient(135deg, var(--sra-navy), var(--sra-navy-2) 64%, var(--sra-navy-3));
  color: var(--sra-white);
}
.section-navy h2, .section-navy h3 { color: var(--sra-white); }
.section-navy .lead, .section-navy p { color: #E6EEF8; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--sra-blue);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 800;
}
.section-navy .eyebrow, .hero .eyebrow { color: #BFD7FF; }

.lead { max-width: 920px; font-size: 1.08rem; color: var(--sra-charcoal); }
.section-navy .lead { color: #E6EEF8; }

.section-heading { max-width: 840px; margin-bottom: 30px; }
.section-heading p { color: var(--sra-slate); font-size: 1.05rem; margin: 0; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
header.site-header {
  background: var(--sra-white);
  border-bottom: 1px solid var(--sra-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  max-width: var(--sra-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; color: var(--sra-navy); }
.brand-logo { display: block; height: 44px; width: auto; }
.brand strong, .brand .brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.tagline { display: block; color: var(--sra-slate); font-size: 0.82rem; margin-top: 2px; }
@media (max-width: 600px) { .brand-logo { height: 38px; } }

nav.primary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav.primary a { color: var(--sra-charcoal); font-weight: 700; font-size: 0.95rem; }
nav.primary a[aria-current="page"] { color: var(--sra-blue); }
nav.primary .nav-cta {
  background: var(--sra-blue);
  color: var(--sra-white);
  padding: 9px 16px;
  border-radius: 999px;
}
nav.primary .nav-cta:hover { background: var(--sra-blue-dark); text-decoration: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.button:hover, .button:focus { text-decoration: none; }
.button.primary { background: var(--sra-blue); color: var(--sra-white); }
.button.primary:hover { background: var(--sra-blue-dark); }
.button.secondary { color: var(--sra-white); border-color: rgba(255, 255, 255, 0.5); }
.button.light { background: var(--sra-white); color: var(--sra-navy); }
.button.outline { color: var(--sra-blue); border-color: var(--sra-blue); background: var(--sra-white); }

.hero-actions, .button-row, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--sra-navy), var(--sra-navy-2) 64%, var(--sra-navy-3));
  color: var(--sra-white);
  padding: 82px 0 74px;
}
.hero h1, .hero h2 { color: var(--sra-white); }
.hero-grid, .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 44px;
  align-items: center;
}
.hero-copy, .hero p { max-width: 860px; margin: 24px 0 0; font-size: 1.18rem; color: #E6EEF8; }
.hero-card, .hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 24px;
}
.hero-card h2, .hero-panel h2 { margin: 0 0 12px; color: var(--sra-white); font-size: 1.18rem; }
.hero-card ul, .hero-panel ul { margin: 0; padding-left: 20px; color: #E7EEF9; }
.hero-card li, .hero-panel li { margin-bottom: 9px; }
.hero-point {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #F3F7FB;
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */
.grid-two, .two-col, .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.split { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr); gap: 42px; }
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service-grid, .sector-grid, .step-grid, .card-grid, .theme-grid, .trust-grid, .section-card-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.service-grid, .step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sector-grid, .card-grid, .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card, .service-card, .sector-card, .theme-card, .question-card,
.engagement-card, .topic-card, .bio-card, .group-card, .link-card {
  background: var(--sra-white);
  border: 1px solid var(--sra-border);
  border-radius: var(--sra-radius);
  padding: 24px;
  box-shadow: var(--sra-shadow);
}
.card h3, .card h4 { margin: 0 0 10px; color: var(--sra-navy); }
.card p { margin: 0 0 12px; color: var(--sra-slate); font-size: 0.98rem; }
.card p:last-child { margin-bottom: 0; }
.card.compact { padding: 20px; box-shadow: none; }
.topic-card { border-top: 4px solid var(--sra-blue); }

/* --------------------------------------------------------------------------
   Callouts / notices
   -------------------------------------------------------------------------- */
.callout {
  background: var(--sra-navy);
  color: var(--sra-white);
  border-radius: 18px;
  padding: 28px;
}
.callout h2, .callout h3 { color: var(--sra-white); }
.callout p { color: #E7EEF9; }
.callout a { color: var(--sra-white); text-decoration: underline; }

.notice, .quote-block, .prompt-box {
  background: var(--sra-soft-blue);
  border: 1px solid #BFD7FF;
  border-left: 5px solid var(--sra-blue);
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--sra-charcoal);
}
.notice strong, .prompt-box strong { color: var(--sra-navy); }
.notice ul, .prompt-box ul { margin: 0; padding-left: 20px; }
.notice li, .prompt-box li { margin-bottom: 8px; }

.notice.warning, .warning {
  background: var(--sra-warning);
  border: 1px solid var(--sra-warning-br);
  border-left: 5px solid var(--sra-warning-br);
}

/* --------------------------------------------------------------------------
   Lists / checklists
   -------------------------------------------------------------------------- */
.checklist, .credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li, .credential-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}
.checklist li::before, .credential-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sra-blue);
  position: absolute;
  left: 0;
  top: 0.55em;
}
.check-list { margin: 18px 0 0; padding-left: 20px; }
.check-list li { margin-bottom: 10px; }

.link-list, .related-links { list-style: none; padding: 0; margin: 22px 0 0; }
.link-list { columns: 2; }
.link-list li { margin-bottom: 0.55rem; break-inside: avoid; }
.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-links a {
  display: block;
  background: var(--sra-white);
  border: 1px solid var(--sra-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Numbered steps / process
   -------------------------------------------------------------------------- */
.process, .step-grid.numbered { counter-reset: step; }
.step {
  position: relative;
  padding-left: 58px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sra-navy);
  color: var(--sra-white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   FAQ / details accordion
   -------------------------------------------------------------------------- */
.category-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.category-nav a {
  display: inline-block;
  border: 1px solid var(--sra-border);
  background: var(--sra-white);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
  color: var(--sra-navy);
}
.faq-group { padding: 42px 0; border-bottom: 1px solid var(--sra-border); }
.faq-group:last-child { border-bottom: 0; }
.group-intro { max-width: 860px; color: var(--sra-slate); margin-top: -6px; }
.faq-list { display: grid; gap: 14px; margin-top: 24px; }

details, .faq-item {
  background: var(--sra-white);
  border: 1px solid var(--sra-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
details { padding: 16px 18px; }
summary, .faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--sra-navy);
}
.faq-item summary { padding: 18px 22px; }
.faq-item p { margin: 0; padding: 0 22px 20px 22px; color: var(--sra-charcoal); }
details > p { margin: 12px 0 0; color: var(--sra-slate); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--sra-white);
  border: 1px solid var(--sra-border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--sra-shadow);
}
.form-card h2 { margin-top: 0; }
form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full-width { grid-column: 1 / -1; }
label { display: block; color: var(--sra-navy); font-weight: 800; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--sra-border);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--sra-charcoal);
  background: var(--sra-white);
}
textarea { min-height: 150px; resize: vertical; }
.checkbox-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checkbox-row input { width: auto; min-height: auto; margin-top: 5px; }
.checkbox-row label { font-weight: 400; color: var(--sra-charcoal); }
.help-text, .hint { display: block; margin: 4px 0 0; color: var(--sra-slate); font-size: 0.9rem; }
.hidden-field { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.submit-button {
  appearance: none;
  background: var(--sra-blue);
  color: var(--sra-white);
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
}
.submit-button:hover, .submit-button:focus { background: var(--sra-blue-dark); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; background: var(--sra-white); }
th, td { border: 1px solid var(--sra-border); padding: 14px 16px; text-align: left; vertical-align: top; }
th { color: var(--sra-navy); background: #EDF3F8; }

/* --------------------------------------------------------------------------
   CTA bands
   -------------------------------------------------------------------------- */
.cta, .cta-band {
  background: linear-gradient(135deg, var(--sra-navy), var(--sra-navy-3));
  color: var(--sra-white);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.cta h2, .cta-band h2 { color: var(--sra-white); margin: 0 0 10px; }
.cta p, .cta-band p { color: #E6EEF8; margin: 0; max-width: 800px; }

/* --------------------------------------------------------------------------
   Footer (Kevin's standard footer)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--sra-footer-line);
  background: var(--sra-footer-bg);
  color: var(--sra-footer-text);
  font-size: 0.92rem;
}
.footer-inner { max-width: var(--sra-max); margin: 0 auto; text-align: center; }
.footer-logo { display: block; height: 40px; width: auto; margin: 0 auto 1rem; }
.hp-field { display: none; }
.footer-copyright, .footer-trademark { margin: 0.25rem 0; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--sra-footer-link); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }
.footer-links span { margin: 0 0.4rem; color: var(--sra-footer-muted); }

/* Book cover */
.book-cover {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(6, 26, 51, 0.28);
}
.book-cover-frame { display: flex; justify-content: center; }
.book-feature { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.book-feature .book-cover { max-width: 220px; }
@media (max-width: 640px) {
  .book-feature { grid-template-columns: 1fr; }
  .book-feature .book-cover { max-width: 200px; margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid, .hero-inner, .split, .two-col, .cta, .cta-band { grid-template-columns: 1fr; }
  .service-grid, .sector-grid, .step-grid, .grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .button, .cta-band .button { justify-self: start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav.primary { width: 100%; }
  nav.primary ul { justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; }
  .hero { padding: 60px 0 54px; }
  main > section, .section { padding: 48px 0; }
  .grid-two, .grid-three, .grid-four, .service-grid, .sector-grid, .step-grid,
  .card-grid, .theme-grid, .trust-grid, .checklist, .credential-list,
  .related-links, .form-grid, .link-list { grid-template-columns: 1fr; columns: 1; }
}

/* --------------------------------------------------------------------------
   Page-specific helpers + anchor scroll offset for the sticky header
   -------------------------------------------------------------------------- */
[id] { scroll-margin-top: 90px; }
.policy-section { margin-bottom: 12px; }
.contact-detail { font-weight: 800; font-size: 1.05rem; color: var(--sra-navy); margin: 0 0 6px; }
.items { display: grid; gap: 12px; margin-top: 16px; }
.learn { display: inline-block; font-weight: 700; color: var(--sra-blue); margin-top: 8px; }
.path { display: block; color: var(--sra-slate); font-size: 0.85rem; margin-top: 2px; }
.badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--sra-soft-blue); color: var(--sra-blue); font-size: 0.8rem; font-weight: 800; }
.book-title { font-size: 1.3rem; font-weight: 800; color: var(--sra-navy); margin-bottom: 0.2rem; }
