/* SafeWrap Control Systems
   Plain CSS, no build step, no JavaScript.
   Palette is based on the SafeWrap navy and gold, with a warmer paper tone. */

:root {
  --navy-950: #0a1b29;
  --navy-900: #0f2638;
  --navy-700: #193d5b;
  --navy-500: #2f5d82;
  --gold: #e0b043;
  --gold-dark: #b98a1e;
  --ink: #17232d;
  --muted: #55636f;
  --paper: #f5f2ea;
  --white: #ffffff;
  --line: #dcd7ca;
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #e8eef3;
  --on-dark-muted: #a9bac8;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-500); }

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* ---------- Shared bits ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.eyebrow-gold { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #ecc060; color: var(--navy-900); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-small { padding: 10px 18px; font-size: 0.9375rem; }

.text-link { font-weight: 700; }
.text-link::after { content: " \2192"; }

.fine-print { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.fine-print.on-dark { color: var(--on-dark-muted); }

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  min-height: 68px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--white); }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 1.0625rem; }
.brand-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.site-nav ul { display: flex; gap: 26px; }
.site-nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--gold); }
/* On phones the header button is replaced by this link in the nav row. */
.nav-cta { display: none; }
.nav-cta a { color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 93, 130, 0.55), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 22px),
    var(--navy-900);
  color: var(--on-dark);
  padding-top: clamp(56px, 9vw, 112px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); display: block; }
.lede {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  max-width: 58ch;
  color: var(--on-dark);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.instructor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}
.card-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.card-name {
  margin: 4px 0 18px;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.instructor-card .check-list { margin-bottom: 18px; font-size: 0.9875rem; line-height: 1.45; }
.instructor-card .text-link { color: var(--gold); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(48px, 8vw, 88px) 0 0;
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 26px 24px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat dt {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1.15;
}
.stat dd { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy-900); color: var(--on-dark); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a { color: var(--gold); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-intro { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }
.section-navy .section-intro { color: var(--on-dark-muted); }

.narrow h2 { margin-bottom: 22px; }

/* Principles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9875rem; color: var(--muted); line-height: 1.55; }

/* The 13 components */
.system-list {
  counter-reset: component;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-bottom: 28px;
}
.system-list li {
  counter-increment: component;
  position: relative;
  padding: 22px 0 22px 54px;
  border-top: 1px solid var(--line-dark);
}
.system-list li::before {
  content: counter(component, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1.3;
}
.system-list h3 { margin-bottom: 4px; }
.system-list p { font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-muted); }

/* Benefits + evidence */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.benefit-list { margin-top: 32px; }
.benefit-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.benefit-list h3 { margin-bottom: 6px; }
.benefit-list p { color: var(--muted); }

.evidence {
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  padding: 28px;
}
.evidence > h3 { font-size: 1.25rem; margin-bottom: 8px; }
.evidence-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9688rem;
  line-height: 1.55;
}
.evidence-list a { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 600; }
.evidence .fine-print { margin-top: 16px; }

/* Offerings */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.offer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.offer-featured {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--on-dark);
}
.offer-featured h3 { color: var(--white); }
.offer-step {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.offer-featured .offer-step { color: var(--gold); }
.offer h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.offer p:last-child { font-size: 0.9875rem; line-height: 1.55; }

.process-title { margin: clamp(40px, 6vw, 64px) 0 20px; font-size: 1.3125rem; }
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.process li {
  counter-increment: step;
  border-top: 3px solid var(--navy-700);
  padding-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.process li::before {
  content: "Step " counter(step);
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.process strong { color: var(--ink); }

/* Who it's for */
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.who-primary {
  background: var(--navy-900);
  color: var(--on-dark);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  padding: 32px;
}
.who-primary h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 14px; line-height: 1.2; }
.who-primary .text-link { color: var(--gold); display: inline-block; margin-top: 8px; }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.who-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.who-list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.who-list p { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--navy-700);
}
.about-role { font-weight: 700; color: var(--navy-500); margin: 6px 0 22px; }
.about-copy p { max-width: 62ch; }
.cred-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cred-list li {
  padding: 8px 14px;
  border: 1px solid var(--navy-700);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--white);
}

/* FAQ */
.faq { margin-top: 8px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 1.0938rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--navy-500);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); }

/* Inquiry form */
.inquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.inquire-copy h2 { margin-bottom: 18px; }
.inquire-copy .check-list { margin-top: 26px; }

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--on-dark); }
.req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 176, 67, 0.35);
}
.form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-actions .fine-print { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  padding-top: 56px;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 40px;
}
.footer-brand { font-weight: 800; font-size: 1.125rem; color: var(--white); margin-bottom: 10px; }
.site-footer nav li { margin-bottom: 8px; }
.site-footer nav a { text-decoration: none; }
.site-footer .fine-print { color: var(--on-dark-muted); }
.footer-base {
  margin-top: 40px;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}

/* ---------- Thank-you page ---------- */

.simple-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--navy-900);
  color: var(--on-dark);
  padding: 80px var(--gutter);
}
.simple-page h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.simple-page p { max-width: 52ch; margin-inline: auto; }
.simple-page .btn { margin-top: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .card-grid, .system-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .two-col, .who-grid, .inquire-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 120px; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    width: calc(100% + var(--gutter) * 2);
    border-top: 1px solid var(--line-dark);
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 22px; padding-block: 4px; }
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px 22px 0; border-bottom: 1px solid var(--line-dark); }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  html { scroll-padding-top: 112px; }
  .header-inner { min-height: 0; gap: 8px 16px; }
  .header-cta { display: none; }
  .nav-cta { display: block; }
  .brand-mark { width: 30px; height: 30px; }
  .faq details p { padding-right: 0; }
  .card-grid, .system-list, .who-list, .inquiry-form, .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .site-header, .inquiry-form, .cta-row, .skip-link { display: none; }
  .hero, .section-navy, .site-footer, .who-primary, .offer-featured { background: none; color: #000; }
  .hero h1, .section-navy h2, .section-navy h3 { color: #000; }
}
