/**
 * Pro Angler 2026 Navigation Styles
 * Site-wide header/nav styling - Matches front-page.php
 * Updated: January 2026
 */

/* Fonts loaded via header.php <link> tags and enqueue-nav-styles.php */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --pa-teal: #2AC8CD;
    --pa-navy: #185572;
    --pa-orange: #FFA838;
    --pa-dark: #1a1a2e;
    --pa-white: #FFFFFF;
}

/* ============================================
   HEADER - DESKTOP
   ============================================ */
.pa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px; /* Increased for more headroom */
    background: #fff;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.pa-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo */
.pa-header .logo {
    flex-shrink: 0;
    margin-right: 60px;
}

.pa-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pa-header .logo img {
    height: 44px;
    width: auto;
}

/* Nav wrapper for desktop */
.pa-nav-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 20px;
}

/* Ensure first nav item has no extra margin */
.pa-nav li:first-child {
    margin-left: 0;
}

.pa-nav li:first-child a {
    margin-left: 0;
}

/* Desktop Nav */
.pa-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pa-nav li {
    margin: 0;
    padding: 0;
}

.pa-nav li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pa-dark);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    white-space: nowrap;
}

.pa-nav li a:hover,
.pa-nav li.current-menu-item a,
.pa-nav li.current_page_item a {
    background: rgba(42, 200, 205, 0.12);
    color: var(--pa-teal);
}

/* Header CTA Button */
.pa-header-cta {
    display: inline-flex;
    align-items: center;
    background: #FFA838;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pa-header-cta:hover {
    background: #e8962f;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Mobile Menu Toggle - Hidden on desktop */
.pa-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 7px;
    padding: 10px;
}

.pa-menu-toggle span {
    display: block;
    width: 32px;
    height: 3px;
    background: var(--pa-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   HEADER - MOBILE (matches front-page mockup)
   ============================================ */
@media (max-width: 992px) {
    .pa-header {
        height: 80px;
    }
    
    .pa-header .container {
        padding: 0 20px;
        justify-content: space-between;
    }
    
    /* Logo pushed to left edge */
    .pa-header .logo {
        margin-right: 0;
        margin-left: 0;
    }
    
    .pa-header .logo img {
        height: 46px;
    }
    
    .pa-nav-wrapper {
        display: none;
    }
    
    /* Hamburger - thicker bars, pushed right */
    .pa-menu-toggle {
        display: flex;
        margin-right: -8px;
        width: 52px;
        height: 52px;
        gap: 9px;
    }
    
    .pa-menu-toggle span {
        width: 34px;
        height: 4px;
        border-radius: 2px;
    }
}

/* Mobile Menu Panel */
.pa-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9998;
    padding: 20px;
    overflow-y: auto;
}

.pa-mobile-menu.active {
    display: block;
}

.pa-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-mobile-menu li {
    border-bottom: 1px solid #eee;
}

.pa-mobile-menu li a {
    display: block;
    padding: 16px 0;
    color: var(--pa-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.pa-mobile-menu li a:hover,
.pa-mobile-menu li.current-menu-item a {
    color: var(--pa-teal);
}

.pa-mobile-menu .mobile-cta {
    display: block;
    background: linear-gradient(135deg, #FFA838 0%, #FF8C00 100%);
    color: #fff !important;
    text-align: center;
    padding: 16px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    text-decoration: none;
}

.pa-mobile-menu .mobile-cta:hover {
    background: linear-gradient(135deg, #e8962f 0%, #e07800 100%);
}

/* ============================================
   BODY PADDING FOR FIXED HEADER
   ============================================ */
body {
    padding-top: 100px;
}

@media (max-width: 992px) {
    body {
        padding-top: 80px;
    }
}

/* Override for homepage which handles its own spacing */
body.home {
    padding-top: 0;
}
