/*--------------------------------------------------------------
# Generic & Base Resets
--------------------------------------------------------------*/
html { box-sizing: border-box; line-height: 1.15; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body { 
    margin: 0; 
    background: #f4f7f6; 
    color: #333; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.5; 
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: 0.3s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*--------------------------------------------------------------
# Header (Official Brand Colors)
--------------------------------------------------------------*/
.site-header {
    background: #03545d !important; /* Official Teal */
    border-bottom: 3px solid #ffd600; /* Official Yellow */
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title { margin: 0; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.site-title a { color: #ffffff !important; }
.site-title span { color: #ffd600; } /* Yellow .top */

/* Desktop Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-navigation a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
}

.main-navigation a:hover { color: #ffd600 !important; }

/* Download Button */
.download-btn-header {
    background: #ffd600;
    color: #064344 !important; /* Dark text on yellow */
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 0px #c4a600;
}

.download-btn-header:hover {
    background: #ffea00;
    transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Footer (Deep Teal)
--------------------------------------------------------------*/
.site-footer {
    background: #064344 !important; /* Darker Teal */
    color: #cbd5e1;
    padding: 50px 0 20px;
    margin-top: 40px;
    border-top: 4px solid #ffd600;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3, .footer-column h4 { color: #ffd600; margin-bottom: 15px; }

.footer-column ul { list-style: none; padding: 0; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: #cbd5e1; }
.footer-column a:hover { color: #ffd600; }

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 13px;
}

/*--------------------------------------------------------------
# Utilities & Mobile
--------------------------------------------------------------*/
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

@media (max-width: 768px) {
    .main-navigation ul, .header-cta { display: none; } /* Standard Mobile behavior */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* --- FOOTER FIX: Remove Dots --- */
.site-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer li {
    list-style-type: none !important;
    margin-bottom: 10px;
}

/* --- MOBILE MENU REPAIR --- */

/* 1. Hide the menu by default on mobile */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none !important; /* Hide menu */
        flex-direction: column !important;
        background: #064344;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px !important;
        gap: 15px !important;
        z-index: 999;
    }

    /* 2. Show menu when the 'toggled' class is added by JS */
    .main-navigation.toggled ul {
        display: flex !important;
    }

    /* 3. Style the Mobile Toggle Button */
    .menu-toggle {
        display: block !important;
        background: #ffd600;
        color: #03545d;
        border: none;
        padding: 8px 15px;
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .header-cta {
        display: none; /* Hide the big button on tiny screens to save space */
    }
}
/* --- FOOTER LINK COLORS --- */
.site-footer a, 
.site-footer a:visited {
    color: #ffffff !important; /* Force white instead of default purple/blue */
    text-decoration: none;
    transition: 0.3s;
}

.site-footer a:hover, 
.site-footer a:active, 
.site-footer a:focus {
    color: #ffd600 !important; /* Official Yellow on hover */
    text-decoration: underline;
}

/* Remove Dots from Footer Lists */
.site-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer li {
    list-style-type: none !important;
    margin: 0 0 10px 0 !important;
}

/* --- MOBILE TOGGLE BUTTON (The 3 Bars) --- */
.menu-toggle {
    background: transparent;
    border: 1px solid #ffd600;
    padding: 10px;
    cursor: pointer;
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 4px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffd600; /* Yellow bars */
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important; /* Show on mobile */
    }
    
    .header-wrapper {
        padding: 10px 15px;
    }

    /* Keep the menu hidden until toggled */
    .main-navigation ul {
        display: none;
        flex-direction: column;
        background: #064344;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        z-index: 999;
    }

    .main-navigation.toggled ul {
        display: flex !important;
    }
}
/* Desktop override */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    .main-navigation ul {
        display: flex !important;
    }
}

/* --- MOBILE NAVIGATION LOGIC --- */

@media (max-width: 768px) {
    /* Ensure the wrapper stays in one row */
    .header-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }

    /* The actual list of links */
    .main-navigation ul {
        display: none; /* Default hidden */
        flex-direction: column;
        background: #03545d; /* Official Teal */
        position: absolute;
        top: 100%; /* Sits right under the header */
        left: 0;
        width: 100%;
        padding: 20px 0 !important;
        margin: 0;
        list-style: none;
        z-index: 9999;
        border-bottom: 3px solid #ffd600;
    }

    /* The magic class added by navigation.js */
    .main-navigation.toggled ul {
        display: flex !important;
    }

    .main-navigation li {
        text-align: center;
        padding: 10px 0;
    }

    .main-navigation li a {
        display: block;
        font-size: 18px;
        color: #ffffff !important;
    }

    /* Style the Hamburger Button */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: #ffd600 !important; /* Yellow button */
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 4px;
        cursor: pointer;
    }

    .menu-toggle .bar {
        width: 22px;
        height: 2px;
        background-color: #03545d; /* Teal bars on yellow */
        transition: 0.3s;
    }
}