/* ==========================================================================
   CROWNED STANDARD — crownedstandard.us
   Workforce Innovation & Entrepreneurship Institute
   Static stylesheet. No build step. No framework.
   ========================================================================== */

:root {
  /* Brand palette */
  --plum:        #3D0C5E;   /* deep plum — primary dark */
  --plum-deep:   #2C0845;   /* deeper plum for gradients */
  --purple:      #6A1B9A;   /* royal authority purple */
  --magenta:     #C8186A;   /* commanding magenta */
  --pink:        #E91E8C;   /* bold hot pink */
  --gold:        #C9922A;   /* warm gold — accent */
  --gold-light:  #F0A500;   /* bright gold */

  /* Neutrals */
  --cream:       #FAF9F6;
  --cream-2:     #F4F2ED;
  --white:       #FFFFFF;
  --ink:         #1C1A22;
  --muted:       #6B6577;
  --border:      #E4E0DA;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "DM Mono", "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   TYPE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 400; }

p { margin: 0 0 1rem; }

em.gold { font-style: italic; color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.eyebrow--boxed {
  border: 1px solid rgba(201, 146, 42, 0.45);
  padding: 0.4rem 1rem;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 40rem;
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn--gold      { background: var(--gold); color: #1C1206; }
.btn--gold:hover{ background: var(--gold-light); }

.btn--plum      { background: var(--plum); color: #fff; }
.btn--plum:hover{ background: var(--purple); }

.btn--ghost      { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn--ghost:hover{ background: rgba(255,255,255,0.1); }

.btn--outline      { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--outline:hover{ background: var(--plum); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--plum);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--magenta); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--plum);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { margin-top: 0.75rem; }
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.section       { padding: 5rem 0; }
.section--tight{ padding: 3.5rem 0; }
.section--cream{ background: var(--cream-2); }
.section--white{ background: var(--white); }

.section--plum {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 55%, var(--purple) 100%);
  color: #fff;
  padding: 5rem 0;
}
.section--plum h1,
.section--plum h2,
.section--plum h3 { color: #fff; }
.section--plum p  { color: rgba(255,255,255,0.72); }

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 82% 38%, rgba(233,30,140,0.16), transparent 62%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(201,146,42,0.12), transparent 55%);
}
.section--plum .container { position: relative; z-index: 1; }

.hero { padding: 6.5rem 0; }
.hero .lead { color: rgba(255,255,255,0.72); }

.center { text-align: center; }
.narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }
.measure { max-width: 52rem; }

/* --------------------------------------------------------------------------
   GRID + CARDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-split { grid-template-columns: 1fr; gap: 1.5rem; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.85rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(61,12,94,0.08); border-color: rgba(201,146,42,0.5); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.925rem; margin: 0; }

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(61,12,94,0.16);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.card--school { padding: 0; overflow: hidden; text-decoration: none; display: block; }
.card--school .bar { height: 4px; }
.card--school .body { padding: 2rem; }
.card--school .more {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* Stat blocks */
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  color: var(--plum);
}
.stat-value .plus { color: var(--gold); }
.section--plum .stat-value { color: var(--gold); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}
.section--plum .stat-label { color: rgba(255,255,255,0.55); }

/* Pain / quote rows */
.pain-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.pain-row .q {
  padding: 1.85rem;
  background: var(--cream-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  display: flex;
  align-items: center;
}
.pain-row .a {
  padding: 1.85rem;
  border-left: 1px solid var(--border);
}
.pain-row .a p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 800px) {
  .pain-row { grid-template-columns: 1fr; }
  .pain-row .a { border-left: none; border-top: 1px solid var(--border); }
}

/* Checklists */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.55rem;
  flex-shrink: 0;
}
.section--plum .check-list li { color: rgba(255,255,255,0.75); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--border); background: var(--white); }
.compare th {
  background: var(--plum);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  padding: 1rem;
}
.compare td { padding: 1rem; border-top: 1px solid var(--border); font-size: 0.925rem; vertical-align: top; }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { font-weight: 500; border-left: 1px solid var(--border); }

/* Curriculum list */
.module {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.module h3 { margin: 0; font-size: 1.15rem; }
.module p { margin: 0; color: var(--muted); font-size: 0.925rem; }
@media (max-width: 800px) { .module { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Pull quote */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  margin: 2.5rem 0;
}

.callout {
  border-left: 4px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-weight: 500;
  margin: 2rem 0 0;
}

.panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,146,42,0.35);
  padding: 1.85rem;
}

.source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}
.source a { color: inherit; }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form { background: var(--white); border: 1px solid var(--border); padding: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 1px;
  border-color: var(--magenta);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--plum-deep);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* --------------------------------------------------------------------------
   UTILITY / A11Y
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: #000;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
