/* ===== source: css/base.css ===== */
/* =========================================================
   BASE - design tokens, dark mode, reset, container, sections, typography, form elements, reduced motion
   ========================================================= */

/* =========================================================
   SGS SECURITY TRAINING
   COMPLETE DESIGN SYSTEM
   ========================================================= */

:root {
  --red: #d7191f;
  --red-h: #b8141a;
  --ink: #15171c;
  --ink2: #22252c;
  --dk: #0c0d10;
  --bg: #fff;
  --soft: #f4f5f7;
  --line: #e4e6ea;
  --mut: #5d6470;
  --card: #fff;
  --hdr: 72px;

  --f-head: Archivo, Impact, sans-serif;
  --f-body: Inter, "Inter Fallback", system-ui, sans-serif;

  box-sizing: border-box;
}

/* =========================================================
   LIGHT THEME ONLY
   The SGS website uses the project light theme consistently.
   Do not switch the entire site to dark mode based on the user's
   operating-system/browser preference.
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
}

/* Metric-matched fallback so nav text doesn't jump when Inter finishes loading */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(
    90px + env(safe-area-inset-top, 0px)
  );
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--f-body);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #ff8a8e;
  outline-offset: 2px;
}

/* =========================================================
   SKIP LINK
   ========================================================= */

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: 4px;
}

.skip:focus {
  left: 8px;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 56px 0;
}

.alt {
  background: var(--soft);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1 {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  margin: 4px 0 6px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
}

.eyebrow,
.eyebrow-l {
  font: 700 11px var(--f-body);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0;
}

.eyebrow-l {
  color: #ff5b61;
}

.lead {
  color: var(--mut);
  margin-bottom: 26px;
  max-width: 760px;
  
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.mini {
  font-size: 14.5px;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mut);
  display: block;
  margin: 6px 0 4px;
}

input,
textarea,
select {
  font: inherit;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
      transition: none !important;
      scroll-behavior: auto !important;
  
  }
}

/* ===== source: css/buttons.css ===== */
/* =========================================================
   BUTTONS - .btn variants, button rows, "more" links (shared by every page)
   ========================================================= */

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  font: 600 14px var(--f-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition:
    background .2s,
    color .2s,
    transform .15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.sm {
  padding: 5px 14px;
  font-size: 12px;
}

.btn.r {
  background: var(--red);
  color: #fff;
}

.btn.r:hover {
  background: var(--red-h);
}

.btn.o {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn.o:hover {
  background: #fff;
  color: #000;
}

.section .btn.o {
  border-color: var(--ink);
  color: var(--ink);
}

.section .btn.o:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn.dark {
  background: var(--ink2);
  color: #fff;
  padding: 9px 14px;
  font-size: 12.5px;
}

.btn.dark:hover {
  background: var(--red);
}

.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.more {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.more:hover {
  color: var(--red);
}

/* ===== source: css/ready.css ===== */
/* =========================================================
   READY CTA - "Not sure which course" call-to-action band
   ========================================================= */

/* =========================================================
   READY CTA
   ========================================================= */

.ready {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 34px 0;
  background: linear-gradient(
    100deg,
    #0c0d10 60%,
    #3a1218
  );
}

.ready-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ready h2 {
  font-size: 24px;
}

.ready p {
  color: #c8ccd4;
  font-size: 14px;
}

.ready .btns {
  margin: 0;
  gap: 12px;
}

/* ===== source: css/page-head.css ===== */
/* =========================================================
   PAGE HEAD - inner-page banner, breadcrumb, notice box, related links, chips
   ========================================================= */

.chip {
  border: 1px solid var(--line);
  background: #c20d0d;
  color: #ffffff;
  border-radius: 4px;
  padding: 8px 14px;
  font: 600 12.5px var(--f-body);
  cursor: pointer;
  display: inline-block;
  transition: .2s;
}

.chip:hover {
  border-color: var(--red);
}

/* =========================================================
   INNER PAGES
   ========================================================= */

.page-head {
  position: relative;
  color: #fff;
  padding: 70px 0 40px;
  background:
    radial-gradient(
      circle at 78% 30%,
      #3a4256 0,
      transparent 40%
    ),
    linear-gradient(
      115deg,
      #0c0d10 45%,
      #1a2033 100%
    );
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 3px;
  background: var(--red);
}

.page-head h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 14px;
}

.crumb {
  font-size: 12px;
  color: #b3b8c2;
  margin-bottom: 14px;
}

.crumb a {
  color: #d3d7de;
}

.crumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.crumb span {
  color: #fff;
}

.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 16px 18px;
  border-radius: 6px;
  margin: 16px 0 8px;
}

.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.chiplist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--mut);
}

.note a {
  color: var(--red);
  font-weight: 600;
}

.chiplist .chip {
  cursor: default;
}

.chiplist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 12px;
}
