/**
 * Custom CSS Overrides
 * 
 * Add any additional custom styles here.
 * These will load after the main style.css
 *
 * @package Cutlab_Creative
 */

/* Header scrolled state */
.site-header.scrolled {
    background-color: hsl(var(--background));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation (optional enhancement) */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: hsl(var(--background));
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid hsl(var(--border));
    }

    .main-nav.is-open {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 200;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: hsl(var(--foreground));
        margin: 3px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Button hover effects */
.btn-primary:hover {
    box-shadow: 0 4px 20px hsla(var(--primary), 0.3);
}

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

/* Card hover effects */
.card-dark {
    transition: all 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.3s ease;
}

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

/* WordPress specific */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: hsl(var(--background));
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: hsl(var(--foreground));
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
