/* =========================================================
   Salem Aegis — Design system
   Palette sampled directly from the brand logo:
     navy #20282B / teal #14A89A / off-white bg #F8FAF9
   ========================================================= */

:root {
  --navy: #20282b;
  --navy-soft: #3a444a;
  --teal: #14a89a;
  --teal-dark: #0e8478;
  --teal-tint: #e6f6f4;
  --bg: #f8faf9;
  --white: #ffffff;
  --border: #dfe5e4;
  --text: #20282b;
  --text-muted: #55625f;
  --danger: #b3261e;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(32, 40, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(32, 40, 43, 0.10);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--space-2); color: var(--text); }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }

ul, ol { margin: 0 0 var(--space-2); padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-tint);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
/* Pressed / just-clicked / current page: stay solid and bold, never greyed */
.btn-primary:active,
.btn-primary:focus,
.btn-primary[aria-current="page"] {
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  border-color: var(--teal-dark);
}
.main-nav a { white-space: nowrap; }
.btn-primary:focus-visible { outline: 3px solid rgba(20,168,154,0.45); outline-offset: 2px; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-on-dark {
  background: var(--teal);
  color: var(--white);
}
.btn-on-dark:hover { background: var(--teal-dark); }

.btn-outline-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-block { width: 100%; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* =====================
   Header / Nav
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img.brand-logo-full { height: 62px; width: auto; }
.brand img.brand-logo-mark { height: 46px; width: auto; display: none; }
.brand span.visually-hidden { position: absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}
.main-nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.nav-cta { margin-left: var(--space-2); }

/* Trust strip */
.trust-strip {
  background: var(--navy);
  color: var(--white);
}
.trust-strip .container {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.85rem;
  text-align: center;
}
.trust-strip strong { color: var(--teal); font-weight: 600; }

@media (max-width: 1260px) {
  .brand img.brand-logo-full { display: none; }
  .brand img.brand-logo-mark { display: block; }

  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: 0;
  }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; margin-top: 0.5rem; }
  .main-nav a:not(.btn) { display: block; padding: 0.85rem 0.2rem; border-bottom: none; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { width: 100%; }
}

/* =====================
   Hero
   ===================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #1a2a30 60%, #16332f 100%);
  color: var(--white);
  padding: var(--space-7) 0 var(--space-6);
}
.hero .eyebrow { background: rgba(20,168,154,0.18); color: #6fe0d1; }
.hero h1 { color: var(--white); }
.hero-lede { font-size: 1.15rem; color: #d7dedd; max-width: 62ch; }
.hero-support {
  margin-top: var(--space-3);
  color: #9fb0ad;
  font-size: 0.92rem;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-5) 0;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--space-1); }
.page-hero p { color: #cfd8d6; max-width: 68ch; }

/* =====================
   Sections / layout helpers
   ===================== */
section { padding: var(--space-6) 0; }
section.tight { padding: var(--space-5) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p { color: #cfd8d6; }
.section-teal-tint { background: var(--teal-tint); }

.section-heading { max-width: 68ch; margin-bottom: var(--space-4); }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5rem; }
.card .card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.pillar-icon, .step-number, .cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.section-navy .step-number {
  background: rgba(20,168,154,0.18);
  color: var(--teal);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.stat { min-width: 140px; }
.stat .stat-num { font-size: 1.9rem; font-weight: 800; color: var(--teal-dark); display: block; }
.section-navy .stat .stat-num { color: var(--teal); }
.stat .stat-label { font-size: 0.88rem; color: var(--text-muted); }
.section-navy .stat .stat-label { color: #9fb0ad; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); padding: 0; list-style: none; }
.tag-list li {
  margin: 0;
  background: var(--teal-tint);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100%;
}

.check-list { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-weight: 800;
}
.section-navy .check-list li::before { color: var(--teal); }

.divider { border: none; border-top: 1px solid var(--border); margin: var(--space-4) 0; }

blockquote.callout {
  border-left: 4px solid var(--teal);
  background: var(--teal-tint);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-3) 0;
  font-size: 0.97rem;
}
blockquote.callout p:last-child { margin-bottom: 0; }

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  background: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Process steps */
.step-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  counter-reset: step;
}
.step-list li {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.step-list .num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-2) 0;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal-dark);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--space-2); color: var(--text-muted); max-width: 68ch; }

/* =====================
   Forms
   ===================== */
form { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--space-3); }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--white);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
}
.radio-row, .checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.radio-row label, .checkbox-row label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--teal-tint);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}
.consent-field input { margin-top: 0.3rem; }
.consent-field label { font-weight: 400; font-size: 0.9rem; color: var(--navy); }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-2); }
.required-mark { color: var(--danger); }

/* Honeypot spam trap: off-screen for people, still present for simple bots. */
.sa-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0 !important;
}

/* =====================
   CTA band
   ===================== */
.cta-band {
  background: var(--teal);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .button-row { justify-content: center; }
.cta-band .btn-secondary { border-color: var(--white); color: var(--white); }
.cta-band .btn-secondary:hover { background: var(--white); color: var(--teal-dark); }

/* =====================
   Footer
   ===================== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 96px; width: auto; margin-bottom: var(--space-2); }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer p, .site-footer li { color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  font-size: 0.82rem;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}
.footer-bottom a { color: var(--white); }
.site-footer .disclaimer { font-size: 0.78rem; color: var(--white); opacity: 0.85; max-width: 80ch; margin-top: var(--space-2); }

/* =====================
   Misc utility
   ===================== */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.badge-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.badge-list .card { flex: 1 1 220px; }

table.compare { width: 100%; border-collapse: collapse; margin-top: var(--space-3); }
table.compare th, table.compare td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
table.compare th { color: var(--navy); }

/* =====================
   Pricing
   ===================== */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .check-list { flex: 1; margin-bottom: var(--space-3); font-size: 0.94rem; }
.price-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-md); }
.price-badge {
  position: absolute; top: -0.8rem; left: var(--space-3);
  background: var(--teal); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.price-for { color: var(--text-muted); font-size: 0.93rem; }
.price { margin: var(--space-2) 0 var(--space-1); }
.price span { display: block; }
.price-from { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.price-amount { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.price-term { font-size: 0.88rem; color: var(--text-muted); }
.price-alacarte { margin-top: var(--space-4); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-3); align-items: start; }
.price-alacarte table.compare { margin-top: 0; }
.price-alacarte td { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-alacarte th { font-weight: 600; }
@media (max-width: 900px) {
  .price-alacarte { grid-template-columns: 1fr; }
  .pricing-grid { gap: var(--space-4); }
}
.section-navy .stat-num small { color: var(--teal); }

/* =========================================================
   Events (events.html, career-switch.html recap)
   ========================================================= */
.event-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.event-card img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.event-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--space-2); }
.event-status { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--teal-tint); color: #0e8478; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: var(--space-2); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); color: #cfd8d6; }
.video-placeholder strong { color: var(--white); font-size: 1.25rem; display: block; margin-bottom: 0.4rem; }
.video-placeholder .play { width: 72px; height: 72px; border-radius: 50%; background: rgba(20,168,154,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.video-placeholder .play::after { content: ""; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #6fe0d1; margin-left: 6px; }
.speaker-card { text-align: left; }
.speaker-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-2); display: block; }
.speaker-card .speaker-role { color: #0e8478; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.speaker-card .speaker-talk { font-size: 0.95rem; }
@media (max-width: 900px) {
  .event-card { grid-template-columns: 1fr; }
}
