/**
 * AGS Layout Styles
 */

/* === Header === */
.header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: #ffffff;
    transition: none;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* === Logo === */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    width: 250px;
    /* Reserve space for the width */
    height: 90px;
}

.logo-img {
    position: absolute;
    top: -20px;
    /* Moved down slightly more */
    left: 0;
    height: 160px;
    /* Slightly reduced */
    width: auto;
    max-width: none;
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    z-index: 1000;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}



/* === Navigation === */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    position: relative;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* Different colors for each nav link */
.nav-menu li:nth-child(1) .nav-link {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.nav-menu li:nth-child(2) .nav-link {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.nav-menu li:nth-child(3) .nav-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-menu li:nth-child(4) .nav-link {
    background: linear-gradient(135deg, #6cac38 0%, #5a9130 100%);
    box-shadow: 0 2px 8px rgba(108, 172, 56, 0.3);
}

.nav-item-join .nav-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    /* Emerald Green */
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.nav-item-contact .nav-link {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    /* Orange */
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.nav-link.active::after {
    display: none;
}

/* === Dropdown Menu === */
.nav-menu>li {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.nav-menu>li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: white;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    margin: 0.25rem 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.nav-dropdown .nav-link:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.nav-dropdown .nav-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

/* === Mobile Menu Toggle === */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* === Top Bar (phone/email) === */
.top-bar {
    background: var(--color-gray-800);
    color: white;
    padding: var(--space-2) 0;
    font-size: var(--font-size-xs);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.top-bar-contact {
    display: flex;
    gap: var(--space-6);
}

.top-bar-contact a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.top-bar-contact a:hover {
    color: white;
}

.top-bar-social {
    display: flex;
    gap: var(--space-3);
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-social a:hover {
    color: white;
}

/* === Footer === */
.footer {
    background: var(--color-gray-800);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: var(--space-4) 0;
    font-size: var(--font-size-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-teal);
    transform: translateY(-3px);
}

.footer-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: white;
}

/* === Responsive === */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        margin-bottom: 0.5rem;
        width: 100%;
        display: block;
        text-align: center;
        color: white;
        /* Restore text color */
        border-radius: var(--radius-full);
        /* Restore rounded corners */
        padding: 0.75rem 1.25rem;
        /* Restore padding */
        border-bottom: none;
        /* Remove border */
    }

    .nav-menu .nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .header-actions {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .top-bar {
        display: none;
    }

    .header {
        top: 0;
    }

    .nav-menu {
        top: 70px;
        /* Adjusted for potentially smaller mobile header */
    }

    .logo {
        height: 70px;
        width: 180px;
    }

    .logo-img {
        height: 120px;
        top: -10px;
    }


}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* === Hero Banner === */
/* === Hero Banner === */
/* Legacy Hero Styles Removed */

/* === Hero Decorations === */
.hero-decorations {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

/* Thick Static Colored Lines */
.hero-line {
    position: absolute;
    bottom: 0;
    height: 15px;
    opacity: 1;
}

.line-green {
    width: 100%;
    background: var(--color-green);
    bottom: 0;
    z-index: 1;
}

.line-orange {
    width: 100%;
    background: var(--color-orange);
    bottom: 15px;
    /* Stacked right above green */
    z-index: 2;
}

.line-dark-orange {
    width: 100%;
    background: var(--color-orange-dark);
    /* Dark orange */
    top: 0;
    bottom: auto;
    z-index: 4;
}

/* === Form Elements === */
.toggle-group {
    display: inline-flex;
    background: var(--color-gray-100);
    padding: var(--space-1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-gray-200);
}

.toggle-option {
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
}

.toggle-option:hover {
    color: var(--color-gray-900);
}

.toggle-option.active {
    background: white;
    color: var(--color-green);
    box-shadow: var(--shadow-sm);
}