/* ============================================
   Utah State Food Handler - Main Stylesheet
   Professional food handler permit registration site
   ============================================ */

/* ============================================
   1. CSS Variables (Color Scheme & Typography)
   ============================================ */
:root {
    /* Primary - Dark Navy (professional, trustworthy) */
    --primary: #1B2A4A;
    --primary-light: #2d4373;
    --primary-dark: #0f1a2e;
    --primary-50: #eef1f7;
    --primary-100: #d5dcea;
    --primary-200: #aab8d5;
    --primary-300: #7f94c0;
    --primary-400: #4a6592;
    --primary-500: #1B2A4A;
    --primary-600: #16223c;
    --primary-700: #111a2e;
    --primary-800: #0c1220;
    --primary-900: #070a12;

    /* Secondary - Green (food safety, health) */
    --secondary: #2E7D32;
    --secondary-light: #4CAF50;
    --secondary-dark: #1B5E20;
    --secondary-50: #e8f5e9;
    --secondary-100: #c8e6c9;
    --secondary-200: #a5d6a7;
    --secondary-300: #81c784;
    --secondary-400: #66bb6a;
    --secondary-500: #2E7D32;
    --secondary-600: #256628;
    --secondary-700: #1B5E20;
    --secondary-800: #134d17;
    --secondary-900: #0a3c0e;

    /* Accent - Warm Orange (CTA buttons, energy) */
    --accent: #E8790B;
    --accent-light: #F59E0B;
    --accent-dark: #C2620A;
    --accent-50: #fff7ed;
    --accent-100: #ffedd5;
    --accent-200: #fed7aa;
    --accent-300: #fdba74;
    --accent-400: #fb923c;
    --accent-500: #E8790B;
    --accent-600: #C2620A;
    --accent-700: #9a4e08;
    --accent-800: #723a06;
    --accent-900: #4a2604;

    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #d97706;
    --error: #ef4444;
    --error-light: #fee2e2;
    --error-dark: #dc2626;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
    --font-elegant: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --container-max: 1280px;
    --section-padding: 5rem;
    --section-padding-mobile: 3rem;

    /* Shadows */
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-large: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 2px 10px -2px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index scale */
    --z-dropdown: 100;
    --z-nav: 200;
    --z-mobile-menu: 300;
    --z-modal: 400;
    --z-toast: 500;
}


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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: var(--primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Full-page background images with dark overlay */
body.bg-home,
body.bg-inner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.bg-home {
    background-image: linear-gradient(rgba(27, 42, 74, 0.35), rgba(27, 42, 74, 0.5)), url('../images/foodmain1.jpg');
}

body.bg-inner {
    background-image: linear-gradient(rgba(27, 42, 74, 0.4), rgba(27, 42, 74, 0.55)), url('../images/foodmain2.jpg');
}

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

a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-light);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}


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

.section {
    padding: var(--section-padding) 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

.section-gray {
    background-color: rgba(255, 255, 255, 0.03);
}

.section-dark {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-dark .section-header h2 {
    color: #ffffff;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }


/* ============================================
   4. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

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

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: #ffffff; }
.text-gray { color: var(--gray-500); }
.text-muted { color: var(--gray-400); }

.font-display { font-family: var(--font-display); }
.font-elegant { font-family: var(--font-elegant); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }


/* ============================================
   5. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: #ffffff;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(232, 121, 11, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 0.625rem;
    line-height: 1;
}


/* ============================================
   6. Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background-color: var(--primary);
    padding: 0.75rem 0;
}

main {
    padding-top: 5rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-link img {
    height: 50px;
    width: auto;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 1.75rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
    border-top: 3px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 700;
    border-top-color: var(--secondary);
}

.nav-cta {
    margin-left: 2rem;
    padding: 0.875rem 2.25rem !important;
    background-color: var(--secondary);
    color: #ffffff !important;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-top: none !important;
    white-space: nowrap;
}

.nav-cta:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-1px);
}

.nav-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.nav-mobile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}


/* ============================================
   7. Mobile Menu
   ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-menu);
    background-color: var(--primary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-100%);
    transition: all var(--transition-slow);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: var(--radius-md);
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mobile-nav-link.active {
    color: var(--accent-light);
}

.mobile-nav-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/* ============================================
   8. Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 26, 46, 0.3) 0%,
        rgba(15, 26, 46, 0.2) 50%,
        rgba(15, 26, 46, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

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

.scroll-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.7);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero-sm {
    min-height: 50vh;
}

.hero-md {
    min-height: 65vh;
}


/* ============================================
   9. Cards
   ============================================ */
.card {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.card-static {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* Class Card - for class listings */
.class-card {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.class-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.class-card-header {
    padding: 1.25rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.class-card-header h3,
.class-card-header h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.class-card-header .class-date {
    font-size: 0.875rem;
    opacity: 0.9;
}

.class-card-body {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.class-card-body .class-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.class-card-body .class-detail svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.class-card-body .class-detail:last-child {
    margin-bottom: 0;
}

.class-detail-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--secondary);
    margin-top: 0.125rem;
}

.class-detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.class-detail-value {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.class-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
}

.class-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


/* ============================================
   10. Features / Info Cards
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background-color: rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.feature-icon svg,
.feature-icon img {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}


.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   11. FAQ Accordion
   ============================================ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-item.open {
    border-color: rgba(255, 255, 255, 0.35);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.04);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.accordion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-base);
}

.accordion-icon::before {
    content: '+';
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1;
}

.accordion-item.open .accordion-icon::before {
    content: '\2212'; /* minus sign */
}

.accordion-item.open .accordion-icon {
    color: #ffffff;
}

.accordion-body {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.accordion-item.open .accordion-body {
    display: block;
}


/* ============================================
   12. Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.form-label .required {
    color: var(--error);
    margin-left: 0.125rem;
}

.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.45);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.25);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--error);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--error);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}


/* ============================================
   13. Tags / Badges
   ============================================ */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.025em;
    line-height: 1.5;
}

.tag-primary {
    background-color: var(--primary-50);
    color: var(--primary);
}

.tag-secondary {
    background-color: var(--secondary-50);
    color: var(--secondary-dark);
}

.tag-success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.tag-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.tag-accent {
    background-color: var(--accent-50);
    color: var(--accent-dark);
}

.tag-error {
    background-color: var(--error-light);
    color: var(--error-dark);
}

.tag-gray {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

.spots-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background-color: var(--success-light);
    color: var(--success-dark);
}

.spots-badge.limited {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.spots-badge.full {
    background-color: var(--error-light);
    color: var(--error-dark);
}

.spots-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}


/* ============================================
   14. Footer
   ============================================ */
.footer {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
    padding: 4rem 0 3rem;
}

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

.footer-brand-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-brand-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-link {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: #ffffff;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-light);
    margin-top: 0.125rem;
}

.footer-contact-value {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact-value a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact-value a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nonprofit {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   15. Admin Styles
   ============================================ */
.admin-sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.admin-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 1rem 0;
}

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

.admin-header h1 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--primary);
    padding: 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav a {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.admin-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.admin-content {
    padding: 2rem 0;
}

.admin-content > .container {
    max-width: 1500px;
}

.admin-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-form .form-group {
    margin-bottom: 1.25rem;
}

/* Form overrides for white-background admin contexts */
.admin-card .form-label,
.modal .form-label,
.login-card .form-label {
    color: var(--gray-700);
}

.admin-card .form-input,
.admin-card .form-textarea,
.admin-card .form-select,
.modal .form-input,
.modal .form-textarea,
.modal .form-select,
.login-card .form-input,
.login-card .form-textarea,
.login-card .form-select {
    color: var(--gray-900);
    background-color: #ffffff;
    border-color: var(--gray-300);
}

.admin-card .form-input:focus,
.admin-card .form-textarea:focus,
.admin-card .form-select:focus,
.modal .form-input:focus,
.modal .form-textarea:focus,
.modal .form-select:focus,
.login-card .form-input:focus,
.login-card .form-textarea:focus,
.login-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(208, 34, 42, 0.15);
}

.admin-card .form-input::placeholder,
.admin-card .form-textarea::placeholder,
.modal .form-input::placeholder,
.modal .form-textarea::placeholder,
.login-card .form-input::placeholder,
.login-card .form-textarea::placeholder {
    color: var(--gray-400);
}

/* Heading/text color overrides for white-background admin contexts */
.admin-card h1, .admin-card h2, .admin-card h3, .admin-card h4,
.modal h1, .modal h2, .modal h3, .modal h4,
.login-card h1, .login-card h2, .login-card h3, .login-card h4 {
    color: var(--gray-900);
}

/* Button overrides for white-background admin contexts */
.admin-card .btn-outline,
.modal .btn-outline {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.admin-card .btn-outline:hover,
.modal .btn-outline:hover {
    color: var(--gray-900);
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

/* Modal structural styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

/* Admin content overrides (outside white cards - on dark bg) */
.admin-content h1,
.admin-content h2 {
    color: #ffffff;
}

.admin-card h1,
.admin-card h2,
.admin-card h3,
.admin-card h4 {
    color: var(--gray-900);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    background-color: var(--gray-50);
}

.admin-table th {
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: var(--gray-50);
}

.admin-table .actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-table .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
}

.char-counter-warn {
    color: var(--accent);
}

.char-counter-full {
    color: #dc2626;
    font-weight: 600;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-dark);
    border-color: #a7f3d0;
}

.alert-error {
    background-color: var(--error-light);
    color: var(--error-dark);
    border-color: #fecaca;
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
    border-color: #fde68a;
}

.alert-info {
    background-color: var(--primary-50);
    color: var(--primary);
    border-color: var(--primary-200);
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.alert-close {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.25rem;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

.alert-close:hover {
    opacity: 1;
}


/* ============================================
   16. Utilities
   ============================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.my-1 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }

.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 2rem; }
.pb-0 { padding-bottom: 0; }
.pb-4 { padding-bottom: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 40rem; }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip link - visible on focus */
.sr-only-focusable:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 99999;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

/* Focus indicators for keyboard navigation */
a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
.nav-mobile-btn:focus-visible,
.accordion-header:focus-visible,
.modal-close:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Disabled button styling */
button:disabled,
button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-soft); }
.shadow-md { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-large); }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

.list-disc {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.list-disc li {
    margin-bottom: 0.5rem;
}

.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 2rem 0;
}


/* ============================================
   17. Responsive Design
   ============================================ */

/* Mobile-first: default styles are for mobile */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }

    .hero-title {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 1.75rem;
    }

    .nav-mobile-btn {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* Below 1024px - navigation collapses */
@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-btn {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Below 768px - mobile layout */
@media (max-width: 767px) {
    :root {
        --section-padding: 3rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-tagline {
        font-size: 1.125rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5 {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .class-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .nav,
    .mobile-menu,
    .hero,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
    }

    .section {
        padding: 1rem 0;
    }
}
