/* ================================================================
   PrepApex Design System — sp-design.css
   Single source of truth for all colors, typography, spacing.
   All pages must reference this file.
   ================================================================ */

/* ── TOKENS ── */
:root {
  /* Core palette */
  --navy:       #0A1A2F;
  --navy-mid:   #0D2040;
  --navy-light: rgba(10,26,47,0.07);
  --gold:       #BFA35A;
  --gold-light: #D4B96A;
  --gold-d:     rgba(191,163,90,0.12);
  --gold-b:     rgba(191,163,90,0.30);
  --white:      #FFFFFF;

  /* Semantic */
  --bg:         #FFFFFF;
  --bg2:        #F5F7FA;
  --bg3:        #EBF0F7;
  --bg-card:    #FFFFFF;
  --accent:     #3B6DB5;
  --accent-h:   #2D5A9C;
  --accent-d:   rgba(59,109,181,.07);
  --accent-b:   rgba(59,109,181,.18);
  --text:       #0A1A2F;
  --muted:      #4A5568;
  --dim:        #8896A8;
  --border:     #E2E8F0;
  --border2:    #C9D6E8;
  --green:      #2D7D46;
  --green-d:    rgba(45,125,70,.10);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.03);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.04);

  /* Radii */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── SHARED HEADER / MASTHEAD ── */
.sp-masthead {
  background: var(--navy);
  border-bottom: 2px solid var(--gold-b);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}
.sp-masthead-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.sp-masthead-logo svg { height: 30px; width: auto; }
.sp-masthead-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.sp-masthead-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color .15s;
}
.sp-masthead-links a:hover { color: #FFFFFF; }
.sp-masthead-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--gold);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
  text-decoration: none;
  font-family: inherit;
}
.sp-masthead-cta:hover { background: #A8893C; transform: translateY(-1px); }

/* App-mode masthead (no sticky, slightly smaller) */
.sp-masthead-app {
  background: var(--navy);
  border-bottom: 2px solid var(--gold-b);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-masthead-app svg { height: 28px; width: auto; }
.sp-app-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px rgba(59,109,181,.28);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-gold {
  padding: 14px 30px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(191,163,90,.30);
}
.btn-gold:hover { background: #A8893C; transform: translateY(-1px); }
.btn-white {
  padding: 15px 34px;
  background: #FFFFFF;
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.btn-white:hover { background: #F5F7FA; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-outline {
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--bg2); color: var(--text); border-color: var(--dim); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

/* ── CARDS ── */
.sp-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.sp-card-top-gold {
  border-top: 3px solid var(--gold);
}

/* ── GOLD SECTION BLOCK ── */
.sp-gold-block {
  background: var(--gold);
  padding: 80px 32px;
  text-align: center;
}
.sp-gold-block h2, .sp-gold-block h3 { color: #FFFFFF; }
.sp-gold-block p { color: rgba(255,255,255,0.82); }

/* ── TYPOGRAPHY ── */
/* ── CANONICAL GOLD SECTION EYEBROW — use this class for ALL section headings ── */
.section-eyebrow {
  font-size: 1rem;
  font-weight: 800;
  color: #BFA35A;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.sp-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  color: #9A7A2A;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sp-eyebrow-light {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── SECTION ── */
.sp-section { padding: 96px 32px; }
.sp-section-tint {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-section-inner { max-width: 1160px; margin: 0 auto; }

/* ── FOOTER ── */
.sp-footer {
  background: var(--bg);
  border-top: 2px solid var(--gold-b);
  padding: 40px 32px;
}
.sp-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sp-footer-logo { display: flex; align-items: center; opacity: .6; transition: opacity .15s; }
.sp-footer-logo:hover { opacity: .85; }
.sp-footer-logo svg { height: 22px; width: auto; }
.sp-footer-copy { font-size: 0.82rem; color: var(--dim); }
.sp-footer-links { list-style: none; display: flex; gap: 28px; }
.sp-footer-links a { font-size: 0.82rem; color: var(--dim); transition: color .15s; }
.sp-footer-links a:hover { color: var(--muted); }

/* ── FORMS / INPUTS ── */
.sp-input {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.sp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-d);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .sp-masthead-links { display: none; }
}
@media (max-width: 640px) {
  .sp-section { padding: 64px 20px; }
  .sp-masthead { padding: 0 20px; }
  .sp-gold-block { padding: 60px 20px; }
}
