/**
 * ACSSW Navigation
 * Shared header/footer navigation for ALL pages
 * UPDATED: Larger fonts, reduced dropdown spacing
 */

/* === Header & Navigation === */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.98);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    transition: height 0.3s ease;
}

header.scrolled nav {
    height: 80px;
}

/* === Logo === */
.logo {
    display: flex;
    align-items: center;
    color: var(--coral);
    text-decoration: none;
    position: relative;
    margin-right: 40px;
    flex-shrink: 0;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo img {
    margin-right: 20px;
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover img {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    max-width: 300px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.2px;
    white-space: normal;
}

/* === Navigation Menu === */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    font-size: 15px;  /* INCREASED from 14px */
    margin: 0;
    margin-left: auto;
    padding-left: 20px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--brown);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding: 5px 0;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dropdown arrow */
.has-dropdown > a::after {
    content: '▾';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-menu > li:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::before,
.nav-menu > li > a.active::before {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--coral);
}

/* === Dropdown Menus === */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Right-align dropdowns for last 2 menu items to prevent cutoff */
.nav-menu > li:nth-last-child(1) .dropdown,
.nav-menu > li:nth-last-child(2) .dropdown {
    left: auto;
    right: 0;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 12px 24px;  /* REDUCED from 14px to 12px for less whitespace */
    color: var(--brown);
    font-size: 15px;  /* INCREASED from 14px */
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown a:hover {
    background: var(--light-coral);
    color: var(--coral);
    border-left-color: var(--coral);
    padding-left: 28px;
}

.dropdown a::before {
    display: none;
}

/* === Footer === */
footer {
    background: linear-gradient(135deg, var(--brown) 0%, #6B5A50 100%);
    color: white;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
    background-size: 50px 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section:first-child {
    padding-right: 40px;
}

.footer-section h4 {
    margin-bottom: 25px;
    color: var(--coral);
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--coral);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 15px;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-section a:hover {
    color: var(--coral);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #F5F0E8;
    margin: 0;
}

/* === Mobile Responsive === */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        height: 75px;
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .logo {
        margin-right: 20px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .logo-text {
        font-size: 13px;
        max-width: 160px;
        line-height: 1.4;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .footer-section:first-child {
        padding-right: 0;
    }
}