/* =============================================
   Header, Navigation, Footer
   ============================================= */

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
    z-index: 1001;
}

.nav-logo span {
    color: var(--accent);
    margin-left: 2px;
}

.header.scrolled .nav-logo {
    color: var(--text-main);
}

.nav-menu {
    display: none;
}

@media (min-width: 1025px) {
    .nav-menu {
        display: block;
    }
}

.menu-list {
    display: flex;
    gap: 36px;
}

.menu-list .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.3px;
}

.header.scrolled .menu-list .nav-link {
    color: var(--text-secondary);
}

.menu-list .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.menu-list .nav-link:hover,
.menu-list .nav-link.active {
    color: var(--text-white);
}

.header.scrolled .menu-list .nav-link:hover,
.header.scrolled .menu-list .nav-link.active {
    color: var(--text-main);
}

.menu-list .nav-link:hover::after,
.menu-list .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
    cursor: pointer;
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.header.scrolled .hamburger span {
    background: var(--text-main);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--text-main);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--text-main);
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-body);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bg-gray-2);
}

.mobile-menu-header .nav-logo {
    color: var(--text-main);
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-main);
    font-size: 1.1rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    flex: 1;
}

.mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-main);
    border-bottom: 1px solid var(--bg-gray);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent);
    padding-left: 10px;
}

.mobile-menu-footer {
    padding-top: 20px;
    border-top: 1px solid var(--bg-gray-2);
}

.mobile-menu-footer p {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #050810;
    color: white;
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.footer-info span {
    opacity: 0.6;
}
