/* 
        ============================================
        CSS VARIABLES CHEATSHEET - Roadrunner STEM
        ============================================

COLOR USAGE GUIDE:
• --primary: Main brand color (buttons, section accents)
• --accent: Interactive elements (links, hover states)
• --highlight: Headings, important text
• --soft: Background accents
• --muted: Borders, subtle backgrounds
• --text-*: All text colors
• --bg-*: Background colors

TEXT SIZES:
• --font-size-base: 18px (body text)
• --font-size-sm: 0.9rem (footer, small text)
• --font-size-lg: 1.25rem (subheadings)
• --font-size-xl: 1.5rem (h3)
• --font-size-2xl: 1.75rem (h2)
• --font-size-3xl: 2rem (h1)

SPACING:
• --space-xs: 0.5rem (tiny gaps)
• --space-sm: 1rem (small padding/margin)
• --space-md: 1.5rem (medium spacing)
• --space-lg: 2rem (section padding)
• --space-xl: 3rem (large spacing)

BORDER RADIUS:
• --radius-sm: 6px (small elements)
• --radius-md: 8px (buttons, inputs)
• --radius-lg: 12px (content sections)
• --radius-xl: 16px (images, special elements)

SHADOWS:
• --shadow-sm: Subtle shadows
• --shadow-md: Medium shadows
• --shadow-lg: Large shadows
• --shadow-xl: Extra large shadows

TRANSITIONS:
• --transition-fast: 0.2s (quick interactions)
• --transition-base: 0.3s (standard)
• --transition-slow: 0.4s (slow animations)

TO MODIFY:
1. Change color values in :root
2. Adjust spacing variables as needed
3. Update typography variables for font sizes
============================================
*/
                                        /* ===== CSS VARIABLES ===== */
:root {
                                   /* ================================ */
                                   /* ====== COLOR VARIABLES ========= */
                                  /* ================================ */
  
  /* Primary Colors */
  --primary: #355e3b; /*hunter green*/
  --primary-light: #4a7d52; /*fern*/
  --primary-dark: #2a4a2f; /*dark spruce*/
  
  /* Accent Colors */
  --accent: #2d7dd2; /*steel blue*/
  --accent-light: #6ab0f3; /*cool sky*/
  --accent-dark: #1a5ca8; /*baltic blue*/
  
  /* Highlight Colors */
  --highlight: #8a2b52; /*vintage berry*/
  --highlight-light: #a8446d; /*berry crush*/
  
  /* Neutral Colors */
  --soft: #a77464; /*cinnamon wood*/
  --muted: #d2d6ef; /*lavender*/
  --muted-dark: #b8bcd6; /*pale slate*/
  
  /* Text Colors */
  --text-primary: #333333; /*graphite*/
  --text-secondary: #555555; /*charcoal*/
  --text-light: #ffffff; /*white*/
  --text-dark: #222222; /*carbon black*/
  
  /* Background Colors */
  --bg-body: #f5f5f5; /*white smoke*/
  --bg-section: #ffffff; /*white*/
  --bg-alt: #f9f9f9; /*bright snow*/
  
  /* Border Colors */
  --border-light: #e0e0e0; /*alabaster grey*/
  --border-medium: #cccccc; /*silver*/
  --border-dark: #999999; /*grey */
  
  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  
                              /* ================================ */
                              /* ====== SPACING VARIABLES ======= */
                              /* ================================ */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
                                /* ================================ */
                                /* ====== BORDER & SHADOW ========= */
                                /* ================================ */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 2px 4px var(--shadow-light);
  --shadow-md: 0 4px 8px var(--shadow-medium);
  --shadow-lg: 0 8px 16px var(--shadow-medium);
  --shadow-xl: 0 8px 24px var(--shadow-medium);
  
  /* ================================ */
  /* ====== TYPOGRAPHY VARIABLES ==== */
  /* ================================ */
  --font-family-heading: 'Merriweather', serif;
  --font-family-body: 'Merriweather', serif;
  --font-family-base: 'Merriweather', serif;
  
  /* Font Sizes */
  --font-size-base: 18px;
  --font-size-sm: 0.9rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2rem;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Line Heights */
  --line-height-base: 1.6;
  --line-height-tight: 1.3;
  --line-height-loose: 1.8;
  
  /* ================================ */
  /* ====== TRANSITION VARIABLES ==== */
  /* ================================ */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
  
  /* ================================ */
  /* ====== OPACITY VARIABLES ======= */
  /* ================================ */
  --section-opacity: 0.8;
  --overlay-opacity: 0.6
}


/* ===== BASE STYLES ===== */
/* ================================ */
/* ====== HTML & BODY ============= */
/* ================================ */
html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-normal);
  background-image: url('/assets/images/background.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: var(--line-height-base);
  overflow-x: hidden;
  position: relative;
}

main {
  padding: var(--space-md) var(--space-sm);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* ================================ */
/* ====== TYPOGRAPHY ============== */
/* ================================ */
h1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-black);
  color: var(--highlight);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

h2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--primary);
  border-bottom: 2px solid var(--muted);
  padding-bottom: var(--space-xs);
}

h3 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--highlight);
  margin-bottom: var(--space-sm);
}

p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

/* ================================ */
/* ====== HEADER & NAVIGATION ===== */
/* ================================ */
header {
  background: var(--primary-light);
  color: var(--text-light);
  padding: var(--space-xs);
  text-align: center;
}

header h1,
header p,
nav a {
  color: var(--text-light);
  text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

header h1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-black);
}

header p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-lg);
}

/* Navigation container */
header nav ul {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  list-style: none;
  justify-content: center;
  padding: 1rem;
  margin: 0;
}
header nav ul li {
  display: block;
}

header nav ul li a {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  text-decoration: none;
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  transition: all var(--transition-base);
  display: block;
  white-space: nowrap;
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  text-shadow: 
    -1px -1px 0 var(--accent),
     1px -1px 0 var(--accent),
    -1px  1px 0 var(--accent),
     1px  1px 0 var(--accent);
}

/* Responsive navigation */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  header nav ul li a {
    display: block;
    text-align: center;
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ================================ */
/* ====== CONTENT SECTIONS ======== */
/* ================================ */
.section-block {
  background: var(--bg-section);
  opacity: var(--section-opacity);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 8px solid var(--primary-dark);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .grid-container.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .grid-container.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.orgchart-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

/* ================================ */
/* ====== BUTTONS ================= */
/* ================================ */
.button {
  background: var(--primary);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
}
.button:hover {
  background: var(--primary-light);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 480px) {
  .button-group {
    flex-direction: row;
  }
  
  .button-group .button {
    flex: 1;
    min-width: 200px;
    text-align: center;
  }
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  border: 2px solid transparent;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================================ */
/* ====== FORMS =================== */
/* ================================ */
form {
  max-width: 700px;
  margin: 0 auto;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-md);
  border: 2px solid var(--muted);
  border-radius: var(--radius-md);
  background-color: var(--bg-section);
  transition: all var(--transition-base);
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(67, 129, 193, 0.2);
  outline: none;
}

.form-container {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  max-width: 100%;
  overflow: hidden;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  font-family: var(--font-family-body);
  background: var(--bg-section);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 129, 193, 0.2);
}



.form-message {
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  border-radius: var(--radius-sm);
  display: none;
  font-weight: var(--font-weight-bold);
}

.form-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.required {
  color: #dc2626;
}

.checkbox-group {
  background: var(--bg-section);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.checkbox-option {
  padding: var(--space-sm) 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary); /* Colors it with your theme */
}

/* ================================ */
/* ====== FOOTER ================== */
/* ================================ */
footer {
  text-align: center;
  padding: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-light);
  background: var(--primary-light);
  text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  font-family: var(--font-family-body);
}

/* ================================ */
/* ====== LISTS =================== */
/* ================================ */
ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

li {
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-base);
}


/* ================================ */
/* ====== CONTACT PANEL =========== */
/* ================================ */
.contact-panel {
  position: fixed;
  top: 0;
  left: -4600px; /* Start COMPLETELY off-screen */
  width: 380px;
  height: 100%;
  background: var(--bg-section);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  transition: left var(--transition-slow); /* Animate LEFT property */
  z-index: 10000;
  overflow-y: auto;
  opacity: var(--section-opacity);
  border-right: 8px solid var(--primary);
  display: block;
}

.contact-panel.active {
  left: 0; /* Slide in to screen edge */
}

.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, var(--overlay-opacity));
  z-index: 9999;
  display: none;
}

.contact-overlay.active {
  display: block;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--accent-dark);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--muted);
}

.panel-content {
  padding: var(--space-sm) 0;
}

/* ================================ */
/* ====== WORKSHOP COMPONENTS ===== */
/* ================================ */
.workshop-cardgroup {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  width: 100%;
}

@media (min-width: 768px) {
  .workshop-cardgroup {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workshop-card {
  background: var(--muted-dark);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border-color: 2px solid var(--primary-light);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.workshop-section {
  background: var(--bg-section);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 8px solid var(--primary);
}

.workshop-cardgroup .workshop-card h3, p{

  padding: 4px;
  margin: 0;
  line-height: 1.2;

}


.workshop-level {
  display: inline-block;
  background: var(--primary);
  color: var(--text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  font-size: var(--font-size-lg);
  color: var(--accent-dark);
  font-weight: var(--font-weight-bold);
  margin: var(--space-sm) 0;
  background: var(--muted);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  display: inline-block;
}


/* ================================ */
/* ====== LAYOUT COMPONENTS ======= */
/* ================================ */
.two-column {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.full-width-content {
  width: 100%;
  margin-top: var(--space-xl);
}



/* ================================ */
/* ====== SPECIAL COMPONENTS ====== */
/* ================================ */

.schedule-section {
  background: var(--bg-section);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  min-width: 600px;
}

.schedule-table th {
  background: var(--primary);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: var(--font-weight-bold);
  border: 1px solid var(--primary-dark);
}

.schedule-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.schedule-table tr:nth-child(even) {
  background-color: var(--bg-alt);
}

.schedule-table tr:hover {
  background-color: var(--muted);
}

.schedule-table .button {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

/* ================================ */
/* ====== UTILITY CLASSES ========= */
/* ================================ */
a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
  vertical-align: super;
}

/* ================================ */
/* ====== RESPONSIVE STYLES ======= */
/* ================================ */
@media (min-width: 480px) {
  .button-group {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
}
