/* =========================================================
   COLOR VARIABLES — drop your extended palette hex values in
   here. Placeholders below are grayscale stand-ins only, just
   so sections are visually distinguishable before you fill in
   real colors. Grouped to match a "family + accents" palette
   structure: a primary ramp, a secondary/CTA ramp, a neutral
   ramp, and a set of standalone accent colors for anywhere you
   need several mutually-distinct colors side by side (cards,
   category pills, chart-style elements).
   ========================================================= */
:root {
  /* --- Primary family (dark → light) --- */
  --primary-dark:    #1F3347; /* utility bar */
  --primary:         #FAF7F0; /* primary nav background */
  --primary-light:   #FAF7F0; /* the "light break" strip under the utility bar */

  /* --- Secondary / CTA family --- */
  --secondary:       #779EC5; /* button fill */
  --secondary-light: #D9E6F2; /* button hover, light tag backgrounds */

  /* --- Neutral / background family --- */
  --background:      #FAF7F0; /* page background (hero, cards section bg) */
  --surface:         #FCFBF8; /* card backgrounds */
  --surface-border:  #BCC7D2; /* card borders, dividers */
  --neutral:         #1F3347; /* footer background */

  /* --- Text --- */
  --text-on-dark:    #FCFBF8; /* text on primary-dark / neutral */
  --text-on-light:   #152433; /* text on background / surface */
  --text-muted:      #B2A895; /* secondary/teaser text on light backgrounds */
  
  /* --- Accents / Use sparingly ---*/
  --main-accent: #E2BE36;
  --secondary-accent: F0DD9D;

  /* --- Standalone accent set ---
     Used wherever several distinct, non-hierarchical colors are
     needed side by side: focus-area card accents, category pills.
     Fill with the "additional contrasting colors" from your
     extended palette. */
  --viz-1: #2E4761;
  --viz-2: #416181;
  --viz-3: #152433;
  --viz-4: #5C7FA3;
  --viz-5: #454545;
  --viz-6: #8F8F8F;

  /* --- ivory : warm neutral, base surfaces --- */
  --ivory-50:  #FCFBF8;
  --ivory-100: #FAF7F0;  /* base — approved nav / page background */
  --ivory-200: #EEE8DD;
  --ivory-300: #E0D8C8;
  --ivory-400: #CBC2AE;
  --ivory-500: #B2A895;

  /* --- charcoal : cool ink, dark surfaces --- */
  --charcoal-300: #BCC7D2;  /* light — borders/dividers on ivory */
  --charcoal-400: #8DA3B9;
  --charcoal-500: #5C7FA3;
  --charcoal-600: #416181;
  --charcoal-700: #2E4761;
  --charcoal-800: #1F3347;  /* base — approved ink / dark nav */
  --charcoal-900: #152433;  /* darkest — deep dark-mode surface */

  /* --- blue : quiet, supporting field. NOT the bold voice. --- */
  --blue-50:  #EFF5FA;
  --blue-100: #D9E6F2;
  --blue-200: #BCD1E6;
  --blue-300: #97B8D8;  /* base — approved "held quiet" field */
  --blue-400: #779EC5;
  --blue-500: #4F7FB0;  /* AA text-safe limit for charcoal text on fill */
  --blue-600: #3B6691;  /* below this: decorative/large-block only */
  --blue-700: #294C70;

  /* --- gold : bold, single accent voice. NEVER used as text color. --- */
  --gold-50:  #FBF7E9;
  --gold-100: #F6ECCA;
  --gold-200: #F0DD9D;
  --gold-300: #EBCE70;
  --gold-400: #E7C24B;
  --gold-500: #E2BE36;  /* base — approved "Signal Gold" accent */
  --gold-600: #D1A61A;  /* hover/pressed state */
  --gold-700: #A58312;  /* deep trim/border, not a text-bearing fill */

  /* --- extended data-viz hues (charts only, not brand surfaces) --- */
  /* quiet tier — passes AA for charcoal text on fill, safe for small labels/badges */
  --viz-teal:  #6DBAB8;
  --viz-sage:  #72B692;
  /* bold tier — marks/lines/bars only, do not set small text on these fills */
  --viz-coral: #DD6D4B;
  --viz-plum:  #9E5AAF;
  --viz-rose:  #D16174;

  --canarinho: #FFDC02;
}


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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-on-light);
  background-color: var(--background);
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
}

/* ---- Utility bar: dark primary ---- */
.utility-bar {
  background-color: var(--charcoal-800);
  color: var(--text-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  font-size: 0.8rem;
}

.utility-links a {
  margin-left: 1.25rem;
}

.utility-links a:hover {
  text-decoration: underline;
}

/* ---- Light break: thin strip under the dark bar ---- */
.light-break {
  height: 6px;
  background-color: var(--main-accent);
}

/* ---- Temporary sun logo element ---- */
.logo {
  color: var(--main-accent);
}


/* ---- Primary nav ---- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--surface);
  border-bottom: 1px solid var(--surface-border);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 2rem;
  max-width: 44rem;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-body {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-button {
  background-color: var(--secondary);
  color: var(--text-on-dark);
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--secondary-light);
  color: var(--text-on-light);
}

/* ---- Section shared spacing ---- */
section {
  padding: 3rem 2rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

/* ---- Focus area cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.focus-card {
  background-color: var(--ivory-50);
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--card-accent, var(--primary-dark));
  border-radius: 6px;
  padding: 1.5rem;
}

.focus-card h3 {
  margin-bottom: 0.5rem;
}

.focus-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-link {
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Insights section ---- */
.insights-section {
  background-color: var(--surface);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.insight-image-placeholder {
  height: 10rem;
  background-color: var(--surface-border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.insight-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.insight-feature h3 {
  margin: 0.4rem 0 0.5rem;
}

.insight-feature p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.insight-list {
  list-style: none;
  border-top: 1px solid var(--surface-border);
}

.insight-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.95rem;
}

.insight-list-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-right: 0.5rem;
}

/* ---- Program cards ---- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
}

.program-card {
  background-color: var(--background);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 1.25rem;
}

.program-card h4 {
  margin-bottom: 0.4rem;
}

.program-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Category pills (extended accent set) ---- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pill {
  background-color: var(--pill-color, var(--secondary));
  color: var(--text-on-dark);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ---- Footer: neutral secondary ---- */
.site-footer {
  background-color: var(--neutral);
  color: var(--text-on-dark);
  padding: 3rem 2rem 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h5 {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.7;
}
