/* Workforce Wizards - Optimized CSS */
/* Performance optimizations: compressed selectors, efficient animations, cached variables */

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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --gold-accent: #d4af37;
    --purple-magic: #4a2c5a;
    --teal-sparkle: #1a8a7a;
    --pink-whimsy: #c5447d;
    --blue-enchant: #2ca19d;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-magic: linear-gradient(135deg, var(--primary-color), var(--purple-magic));
    --gradient-sparkle: linear-gradient(135deg, var(--teal-sparkle), var(--pink-whimsy));
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 50%;
    background: var(--white);
    padding: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-accent);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Focus States for Accessibility */
.nav-link:focus,
.cta-button:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.mobile-menu-btn:focus {
    outline: 3px solid var(--gold-accent);
    outline-offset: 2px;
}

/* Page Container */
.page {
    display: none;
    padding-top: 100px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-magic) 50%, var(--teal-sparkle) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
    top: 20%;
    left: 10%;
    color: var(--gold-accent);
}

.hero::after {
    content: '🌟';
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite reverse;
    top: 60%;
    right: 15%;
    color: var(--pink-whimsy);
}

.hero .container::before {
    content: '💫';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    animation: float 7s ease-in-out infinite;
    top: 40%;
    left: 80%;
    color: var(--blue-enchant);
}

.hero .container::after {
    content: '⚡';
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.15;
    animation: float 5s ease-in-out infinite reverse;
    top: 15%;
    right: 25%;
    color: var(--teal-sparkle);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.hero-content .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--gold-accent);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--gradient-magic);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    background: var(--gradient-sparkle);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 76, 147, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-sparkle);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(106, 76, 147, 0.2);
}

.service-card:nth-child(1) .service-icon {
    color: var(--purple-magic);
}

.service-card:nth-child(2) .service-icon {
    color: var(--primary-color);
}

.service-card:nth-child(3) .service-icon {
    color: var(--accent-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 6px;
    background: var(--gradient-sparkle);
    margin: 1rem auto;
    border-radius: 3px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scaleX(1.1); }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-magic);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(32, 178, 170, 0.2);
}

.team-member:nth-child(odd)::before {
    background: var(--gradient-sparkle);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--gold-accent);
    font-style: italic;
    margin-bottom: 1rem;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-magic);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px var(--shadow);
    background-size: cover;
    background-position: center;
}

/* Pricing Tables */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 3px solid var(--gold-accent);
    transform: scale(1.05);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-sparkle);
}

.pricing-card.featured::before {
    background: var(--gold-accent);
    height: 8px;
}

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

.pricing-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--purple-magic);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal-sparkle);
    font-weight: bold;
}

.pricing-features li.not-included {
    opacity: 0.5;
}

.pricing-features li.not-included::before {
    content: '–';
    color: var(--dark-gray);
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.location-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--gold-accent);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-sparkle);
    border-radius: 0 15px 0 50px;
    opacity: 0.1;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

.location-card:nth-child(1) { border-left-color: var(--purple-magic); }
.location-card:nth-child(2) { border-left-color: var(--teal-sparkle); }
.location-card:nth-child(3) { border-left-color: var(--pink-whimsy); }
.location-card:nth-child(4) { border-left-color: var(--blue-enchant); }
.location-card:nth-child(5) { border-left-color: var(--gold-accent); }
.location-card:nth-child(6) { border-left-color: var(--purple-magic); }

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    background: var(--light-gray);
    padding: 4rem 0;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold-accent);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: bold;
}

/* Case Study Cards */
.case-study-card {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px var(--shadow);
    border-left: 5px solid var(--purple-magic);
}

.case-study-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.metric-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--purple-magic);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Blog/Resource Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-header {
    height: 200px;
    background: var(--gradient-magic);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Compliance Badges */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.compliance-badge {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.compliance-badge:hover {
    border-color: var(--gold-accent);
}

.compliance-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    background: var(--gradient-sparkle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold-accent);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

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

.footer-section h3 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--primary-color);
    }
    
    .cta-button {
        border: 2px solid var(--white);
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.1rem;
    }

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

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

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

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobile About Page Layout */
    .about-mobile-stack {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .about-mobile-stack > div:last-child {
        order: -1;
        margin-bottom: 2rem;
    }

    /* Mobile Contact Form */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Mobile Hero Icons */
    .hero::before,
    .hero::after,
    .hero .container::before,
    .hero .container::after {
        display: none;
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Print stylesheet */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  nav, .cta-button, .sparkle, .skip-link {
    display: none !important;
  }

  .page {
    display: block !important;
    opacity: 1 !important;
  }

  .page:not(.active) {
    display: none !important;
  }
}
