/**
 * Header & Footer Default Styles
 * 
 * Fallback styles when Elementor Theme Builder is not used.
 * 
 * @package GrowthSheriff
 * @since 1.0.0
 */

/* ==========================================================================
   HEADER
   ========================================================================== */
.gs-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gs-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gs-header.is-sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.gs-header.is-hidden {
    transform: translateY(-100%);
}

.gs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Branding */
.gs-header__branding {
    flex-shrink: 0;
}

.gs-header__branding .custom-logo-link {
    display: block;
}

.gs-header__branding .custom-logo {
    max-height: 60px;
    width: auto;
}

.gs-header__site-title {
    font-family: var(--gs-font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gs-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.gs-header__site-title:hover {
    color: var(--gs-primary);
}

/* Navigation */
.gs-header__nav {
    display: flex;
    align-items: center;
}

.gs-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gs-nav-menu li {
    position: relative;
}

.gs-nav-menu a {
    font-family: var(--gs-font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gs-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.gs-nav-menu a:hover,
.gs-nav-menu .current-menu-item > a {
    color: var(--gs-primary);
}

/* Submenu */
.gs-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--gs-gray-900);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.gs-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gs-nav-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    text-transform: none;
}

.gs-nav-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Toggle */
.gs-header__mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.gs-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 20px;
    position: relative;
}

.gs-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gs-white);
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.gs-hamburger span:nth-child(1) { top: 0; }
.gs-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.gs-hamburger span:nth-child(3) { bottom: 0; }

.gs-hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.gs-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.gs-hamburger.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Overlay */
.gs-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.gs-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .gs-header__mobile-toggle {
        display: block;
    }
    
    .gs-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--gs-gray-900);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .gs-header__nav.is-active {
        right: 0;
    }
    
    .gs-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .gs-nav-menu a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .gs-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .gs-nav-menu .sub-menu.is-open {
        max-height: 500px;
    }
    
    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 0.75rem;
        background: transparent;
        border: none;
        color: var(--gs-white);
        padding: 0.5rem;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .submenu-toggle.is-active {
        transform: rotate(180deg);
    }
    
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.gs-footer {
    background: var(--gs-gray-900);
    color: var(--gs-gray-300);
    padding: 4rem 0 2rem;
}

.gs-footer__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-widget {
    font-size: 0.9375rem;
}

.footer-widget-title {
    font-family: var(--gs-font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gs-white);
    margin-bottom: 1.5rem;
}

.footer-widget a {
    color: var(--gs-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--gs-primary);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

/* Footer Navigation */
.gs-footer__nav {
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gs-footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gs-footer-menu a {
    color: var(--gs-gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.gs-footer-menu a:hover {
    color: var(--gs-white);
}

/* Footer Bottom */
.gs-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.gs-footer__copyright {
    font-size: 0.875rem;
    color: var(--gs-gray-500);
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.gs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1400px) {
    .gs-container {
        max-width: 1320px;
    }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.gs-main {
    min-height: 50vh;
}

.gs-content {
    padding: 3rem 0;
}

/* ==========================================================================
   SKIP LINK
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--gs-primary);
    color: var(--gs-white);
    padding: 1rem 2rem;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   SCREEN READER TEXT
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
