/* ===================================
   hanley.world — Shared Nav & Footer
   =================================== */

/* ===== Navigation ===== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Dropdown */
.nav-item-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-link-dropdown {
    color: #86868b;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-item-dropdown:hover .nav-link-dropdown {
    color: #ffffff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: rgba(17, 17, 19, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(15px);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #86868b;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* ===== Footer ===== */

footer {
    padding: 5rem 0;
    background: #000000;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-brand h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-brand p {
    color: #6e6e73;
    max-width: 250px;
}

.footer-col h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #6e6e73;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ===== Mobile Menu Toggle ===== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

/* ===== Responsive — Nav & Footer ===== */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        padding: 1.5rem 2rem;
        gap: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a,
    .nav-link-dropdown {
        font-size: 1rem;
        white-space: nowrap;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 0.5rem 0 0 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        transition: none;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .dropdown-menu a:hover {
        background: transparent;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin: 0 auto;
    }
}
