/* ==========================================================================
   Sacramento Live Artists and Musicians (SLAM) - Main Stylesheet
   Design System: Modern, Clean, Responsive & Accessible (WCAG AA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --slam-primary: #d97706;        /* Warm Sacramento Amber / Gold */
  --slam-primary-hover: #b45309;  /* Darker Amber for hover states */
  --slam-primary-light: #fef3c7;  /* Soft Amber tint for badges/accents */
  
  --slam-secondary: #0f766e;      /* Deep Capitol Teal accent */
  --slam-secondary-hover: #115e59;

  --slam-bg-dark: #111827;        /* Rich dark charcoal for hero/footer */
  --slam-bg-dark-card: #1f2937;   /* Dark card background */
  --slam-bg-light: #f9fafb;       /* Soft light background for content */
  --slam-bg-card: #ffffff;        /* Pure white for content cards */
  
  --slam-text-dark: #1f2937;      /* Primary high-contrast body text */
  --slam-text-muted: #4b5563;     /* Muted secondary body text */
  --slam-text-light: #f9fafb;     /* Light text on dark backgrounds */
  --slam-text-light-muted: #9ca3af;

  --slam-border-color: #e5e7eb;   /* Subtle border dividers */
  --slam-focus-ring: #2563eb;     /* High visibility focus ring for accessibility */

  /* Typography */
  --slam-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --slam-font-serif: Georgia, Cambria, "Times New Roman", Times, serif;

  /* Spacing & Layout */
  --slam-max-width: 1200px;
  --slam-radius: 8px;
  --slam-radius-lg: 16px;
  --slam-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --slam-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --slam-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --slam-transition: all 0.2s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. Reset & Accessibility Fundamentals
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--slam-font-sans);
  background-color: var(--slam-bg-light);
  color: var(--slam-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--slam-primary);
  text-decoration: none;
  transition: var(--slam-transition);
}

a:hover {
  color: var(--slam-primary-hover);
  text-decoration: underline;
}

/* Accessibility Focus Indicator */
:focus-visible {
  outline: 3px solid var(--slam-focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--slam-primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. Container & Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--slam-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slam-text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slam-text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slam-text-light);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
  color: var(--slam-primary);
}

.brand-badge {
  background-color: var(--slam-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--slam-text-light-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--slam-transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--slam-primary);
  text-decoration: none;
}

.nav-cta {
  background-color: var(--slam-primary);
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--slam-radius);
  font-weight: 600;
  transition: var(--slam-transition);
}

.nav-cta:hover {
  background-color: var(--slam-primary-hover);
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Section 1: Home / Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  background-color: var(--slam-bg-dark);
  color: var(--slam-text-light);
  padding: 6rem 0 7rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: var(--slam-primary-light);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title span {
  color: var(--slam-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slam-text-light-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--slam-radius);
  cursor: pointer;
  border: none;
  transition: var(--slam-transition);
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--slam-primary);
  color: #ffffff;
  box-shadow: var(--slam-shadow-md);
}

.btn-primary:hover {
  background-color: var(--slam-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--slam-shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--slam-text-light);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--slam-text-light);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Section 2: Mission Statement & Advocacy Pillars
   -------------------------------------------------------------------------- */
.mission-quote-box {
  background-color: var(--slam-primary-light);
  border-left: 5px solid var(--slam-primary);
  padding: 2rem 2.5rem;
  border-radius: 0 var(--slam-radius) var(--slam-radius) 0;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mission-quote-text {
  font-family: var(--slam-font-serif);
  font-size: 1.35rem;
  color: #78350f;
  font-style: italic;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background-color: var(--slam-bg-card);
  border: 1px solid var(--slam-border-color);
  border-radius: var(--slam-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--slam-shadow-sm);
  transition: var(--slam-transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--slam-shadow-lg);
  border-color: rgba(217, 119, 6, 0.3);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  background-color: var(--slam-primary-light);
  color: var(--slam-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--slam-text-dark);
}

.pillar-desc {
  color: var(--slam-text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Section 3: About Section & Community Showcase Grid
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--slam-text-dark);
}

.about-text p {
  color: var(--slam-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-box {
  background-color: var(--slam-bg-dark);
  color: #ffffff;
  padding: 1.75rem;
  border-radius: var(--slam-radius);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--slam-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slam-text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.showcase-card {
  background-color: var(--slam-bg-card);
  border: 1px solid var(--slam-border-color);
  border-radius: var(--slam-radius);
  padding: 1.5rem;
  box-shadow: var(--slam-shadow-sm);
}

.showcase-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slam-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.showcase-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.showcase-desc {
  font-size: 0.9rem;
  color: var(--slam-text-muted);
}

/* --------------------------------------------------------------------------
   8. Section 4: Get Involved (Site-Level CAPTCHA Verification & Google Form)
   -------------------------------------------------------------------------- */
.cta-wrapper {
  background-color: var(--slam-bg-dark);
  color: var(--slam-text-light);
  border-radius: var(--slam-radius-lg);
  padding: 3.5rem 2rem;
  box-shadow: var(--slam-shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.cta-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-subtitle {
  color: var(--slam-text-light-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Site-Level CAPTCHA Verification Card */
.captcha-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--slam-radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.captcha-instruction {
  font-size: 1rem;
  color: var(--slam-text-light);
  font-weight: 600;
}

/* Stylized Google Form Container */
.google-form-container {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--slam-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.5rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.google-form-container iframe {
  width: 100%;
  height: 980px;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .google-form-container iframe {
    height: 1150px;
  }
}

/* Anti-Spam Security Notice Badge */
.anti-spam-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slam-text-light-muted);
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  margin: 1.5rem auto 0 auto;
  max-width: fit-content;
}

.anti-spam-badge span {
  color: var(--slam-primary);
  font-weight: 700;
}

/* Hidden Honeypot Field for Client Anti-Spam Protection */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
}

/* --------------------------------------------------------------------------
   9. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0b0f17;
  color: var(--slam-text-light-muted);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--slam-text-light-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--slam-primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. Mobile Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-section {
    padding: 4rem 0 5rem 0;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
}
