
/* ====================================================
   GLOBAL STANDARDIZED HEADER & FOOTER
   ==================================================== */

/* Global Styles & Box Sizing Fix */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root { --primary-teal: #1a8b9d; --secondary-grey: #4a5056; --light-bg: #f8f9fa; --white: #ffffff; --transition: 0.3s ease; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; color: #333; line-height: 1.6; overflow-x: hidden; background-color: var(--light-bg); }
a { text-decoration: none; color: var(--primary-teal); transition: color var(--transition); }

/* --- Desktop Nav Layout --- */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); box-shadow: 0 4px 25px rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000; transition: all 0.3s ease; }
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Styling */
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; transition: transform var(--transition); }
.logo img:hover { transform: scale(1.02); }
.logo-text { font-size: 1.2rem; font-weight: bold; color: var(--secondary-grey); line-height: 1.1; }
.logo-text span { color: var(--primary-teal); }

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    margin: 0; 
    padding: 0;
    flex-direction: row;
    position: static;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    opacity: 1;
    visibility: visible;
    border: none;
}

nav ul li { border: none; position: relative; width: auto; }
nav ul li a { 
    color: var(--secondary-grey); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 1.05rem; 
    transition: color 0.3s; 
    padding: 0.5rem;
    display: inline-block;
    position: relative;
}

nav ul li a:hover { color: var(--primary-teal); background: rgba(26, 139, 157, 0.08); border-radius: 8px; }

/* Active Page Underline */
nav ul li a.active {
    color: var(--primary-teal) !important;
    font-weight: 600 !important;
}
nav ul li a.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 3px !important;
    background-color: var(--primary-teal) !important;
    border-radius: 2px !important;
}

/* Hide Hamburger on Desktop */
.mobile-toggle { display: none; }

/* --- Footer Standard --- */
footer {
    background: #1a1c1e;
    color: #d1d5db;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-col h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-teal);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--primary-teal); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; color: #9ca3af; }
.footer-contact-item i { color: var(--primary-teal); font-size: 1.2rem; margin-top: 0.2rem; }
.footer-contact-item a { color: #9ca3af; text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--primary-teal); }
.footer-badge { background: rgba(255,255,255,0.05); padding: 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; }
.copyright { background: #111315; border-top: 1px solid rgba(255,255,255,0.05); padding: 0; }
.copyright div { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: #9ca3af; font-size: 0.95rem; }

/* ====================================================
   TABLET / MOBILE RESPONSIVENESS (<= 1200px)
   ==================================================== */
@media (max-width: 1200px) {
    .nav-container { justify-content: space-between; padding: 1rem; }
    
    .mobile-toggle { 
        display: flex; 
        position: relative; 
        background: rgba(26, 139, 157, 0.1); 
        border: none; 
        width: 45px; 
        height: 45px; 
        border-radius: 8px; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        z-index: 1001; 
        cursor: pointer; 
        margin-left: auto;
    }
    .mobile-toggle .bar { display: block; width: 25px; height: 3px; background-color: var(--primary-teal); margin: 3px 0; transition: all 0.3s ease; border-radius: 2px; }
    .mobile-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    nav ul { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--white); 
        flex-direction: column; 
        gap: 0; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
        border-top: 1px solid #eee; 
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        opacity: 0; 
        visibility: hidden; 
        z-index: 999; 
    }
    nav ul.active { 
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); 
        opacity: 1; 
        visibility: visible; 
    }
    nav ul li { text-align: center; border-bottom: 1px solid #f5f5f5; width: 100%; display: block; }
    nav ul li a { display: block; padding: 1.5rem; font-size: 1.2rem; }
    
    /* Center the dot in mobile view */
    nav ul li a.active::after { bottom: 0.5rem; }
}
