/**
 * C Color Spectrum Theme System
 *
 * Each spectrum has a unique color palette based on its characteristics:
 * - Spectrum 1: Cool, Blue-Ash Base, Less Saturated
 * - Spectrum 2: Cool, Blue Base, More Saturated
 * - Spectrum 3: Warm, Yellow Base, Moderate Saturation
 * - Spectrum 4: Warm, Red-Earth Base, Less Saturated
 *
 * Usage: Add theme class to body or main wrapper element
 * Example: <body class="spectrum-1-theme">
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
   ======================================== */

:root {
  /* Default/fallback colors (standard site colors) */
  --spectrum-primary-bg: #000000;
  --spectrum-secondary-bg: #ffffff;
  --spectrum-text-on-primary: #ffffff;
  --spectrum-text-on-secondary: #292b2c;
  --spectrum-accent: #0d55d2;
}

/* ========================================
   SPECTRUM 1: Cool Blue-Ash, Less Saturated
   "Appear rubbed with ash"
   ======================================== */

.spectrum-1-theme {
  --spectrum-primary-bg: #6b6e7a;
  --spectrum-secondary-bg: #a8acb6;
  --spectrum-text-on-primary: #a8acb6;
  --spectrum-text-on-secondary: #6b6e7a;
  --spectrum-accent: #6b6e7a;
}

/* ========================================
   SPECTRUM 2: Cool Blue, More Saturated
   Most vibrant/saturated of the four
   ======================================== */

.spectrum-2-theme {
  --spectrum-primary-bg: #000522;
  --spectrum-secondary-bg: #ededff;
  --spectrum-text-on-primary: #ededff;
  --spectrum-text-on-secondary: #000321;
  --spectrum-accent: #000522;
}

/* ========================================
   SPECTRUM 3: Warm Yellow, Moderate
   Warm cream tones with complementary blue
   ======================================== */

.spectrum-3-theme {
  --spectrum-primary-bg: #394da0;
  --spectrum-secondary-bg: #fffdf9;
  --spectrum-text-on-primary: #fffdf9;
  --spectrum-text-on-secondary: #001e8e;
  --spectrum-accent: #394da0;
}

/* ========================================
   SPECTRUM 4: Warm Red-Earth, Less Saturated
   "Appear rubbed with earth"
   ======================================== */

.spectrum-4-theme {
  --spectrum-primary-bg: #363b3d;
  --spectrum-secondary-bg: #9b9487;
  --spectrum-text-on-primary: #9b9487;
  --spectrum-text-on-secondary: #363b3d;
  --spectrum-accent: #363b3d;
}

/* ========================================
   THEMED SECTION CLASSES
   Use these with spectrum themes for
   consistent color application
   ======================================== */

/* Primary themed section - uses primary background */
.spectrum-section-primary {
  background-color: var(--spectrum-primary-bg);
  color: var(--spectrum-text-on-primary);
}

.spectrum-section-primary h1,
.spectrum-section-primary h2,
.spectrum-section-primary h3,
.spectrum-section-primary h4,
.spectrum-section-primary p {
  color: var(--spectrum-text-on-primary);
}

/* Secondary themed section - uses secondary background */
.spectrum-section-secondary {
  background-color: var(--spectrum-secondary-bg);
  color: var(--spectrum-text-on-secondary);
}

.spectrum-section-secondary h1,
.spectrum-section-secondary h2,
.spectrum-section-secondary h3,
.spectrum-section-secondary h4,
.spectrum-section-secondary p {
  color: var(--spectrum-text-on-secondary);
}

/* Themed quote blocks */
.spectrum-quote {
  background-color: var(--spectrum-secondary-bg);
  color: var(--spectrum-text-on-secondary);
  padding: 25px 20px;
  text-align: center;
}

.spectrum-quote blockquote,
.spectrum-quote p,
.spectrum-quote cite {
  color: var(--spectrum-text-on-secondary);
}

@media (min-width: 768px) {
  .spectrum-quote {
    padding: 25px 40px;
  }
}

/* Themed CTA buttons */
.spectrum-section-primary .cta-btn,
.spectrum-section-secondary .cta-btn {
  background-color: var(--spectrum-accent);
  color: var(--spectrum-text-on-primary);
}

/* ========================================
   SPECTRUM PAGE HERO BANNER
   Full-width banner with spectrum colors
   ======================================== */

.spectrum-hero {
  background-color: var(--spectrum-primary-bg);
  color: var(--spectrum-text-on-primary);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.spectrum-hero .container {
  text-align: center;
}

.spectrum-hero h1 {
  color: var(--spectrum-text-on-primary);
  margin: 0;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .spectrum-hero {
    min-height: 500px;
    padding: 100px 40px;
  }
}

@media (min-width: 1920px) {
  .spectrum-hero {
    min-height: 600px;
    padding: 120px 60px;
  }
}

/* ========================================
   SPECTRUM CONTENT SECTIONS
   Standard padding with themed colors
   ======================================== */

.spectrum-content-section {
  padding: 60px 20px;
  text-align: center;
}

.spectrum-content-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.spectrum-content-section p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .spectrum-content-section {
    padding: 80px 40px;
  }

  .spectrum-content-section p {
    font-size: 20px;
  }
}

@media (min-width: 1920px) {
  .spectrum-content-section {
    padding: 100px 60px;
  }
}

/* ========================================
   SPECTRUM CTA SECTION
   Bottom call-to-action with themed colors
   ======================================== */

.spectrum-cta-section {
  background-color: var(--spectrum-secondary-bg);
  color: var(--spectrum-text-on-secondary);
  text-align: center;
  padding: 60px 20px;
}

.spectrum-cta-section h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--spectrum-text-on-secondary);
}

@media (min-width: 768px) {
  .spectrum-cta-section {
    padding: 80px 40px;
  }

  .spectrum-cta-section h2 {
    font-size: 42px;
  }
}

@media (min-width: 1920px) {
  .spectrum-cta-section {
    padding: 100px 60px;
  }

  .spectrum-cta-section h2 {
    font-size: 48px;
  }
}

/* ========================================
   SPECTRUM INTERSTITIAL
   Thin strip sections between content
   ======================================== */

.spectrum-interstitial {
  background-color: var(--spectrum-primary-bg);
  color: var(--spectrum-text-on-primary);
  padding: 40px 20px;
  text-align: center;
}

.spectrum-interstitial p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--spectrum-text-on-primary);
}

@media (min-width: 768px) {
  .spectrum-interstitial {
    padding: 50px 40px;
  }

  .spectrum-interstitial p {
    font-size: 18px;
  }
}
