
   EVERYDAY INSIGHT
   NAVIGATION.CSS

/* ========= HEADER ========= */

.site-header{

    position:sticky;

    top:0;

    z-index:1000;

    background:#ffffff;

    border-bottom:1px solid #e7e1d8;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

}

/* ========= NAV CONTAINER ========= */

.nav-container{

    width:92%;

    max-width:1200px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:90px;

    padding:18px 0;

}

/* ========= LOGO ========= */

.logo{

    font-family:"Playfair Display",serif;

    font-size:1.9rem;

    font-weight:700;

    color:#4f463f;

    text-decoration:none;

    letter-spacing:1px;

}

.logo span{

    color:#9c8061;

}

/* Keep the image logo proportional on desktop. */
.logo img{

    display:block;

    width:190px;

    max-width:100%;

    height:auto;

    object-fit:contain;

}

/* ========= NAVIGATION ========= */

.nav-menu{

    display:flex;

    align-items:center;

    gap:35px;

    list-style:none;

}

.nav-menu a{

    color:#4b4b4b;

    text-decoration:none;

    font-weight:500;

    transition:.3s;

    position:relative;

}

.nav-menu a:hover{

    color:#9c8061;

}

/* Underline Animation */

.nav-menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:#9c8061;

    transition:.3s;

}

.nav-menu a:hover::after{

    width:100%;

}

/* Current Page */

.nav-menu a.active{

    color:#9c8061;

    font-weight:600;

}

.nav-menu a.active::after{

    width:100%;

}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: #444;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #9c8061;
    transform: scaleX(0);
    transition: transform .3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ========= TOOLS BUTTON ========= */

.nav-btn{

    background:#9c8061;

    color:white;

    padding:10px 20px;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.nav-btn:hover{

    background:#7f6750;

    transform:translateY(-2px);

}

/* ========= MOBILE MENU BUTTON ========= */

.menu-toggle{

    display:none;

    font-size:2rem;

    background:none;

    border:none;

    cursor:pointer;

}

/* ========= FOOTER ========= */

.site-footer{

    background:#4f463f;

    color:white;

    margin-top:80px;

    padding:50px 20px;

}

.footer-container{

    width:92%;

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:40px;

}

.footer-container h3{

    color:white;

    margin-bottom:15px;

}

.footer-container p{

    color:#d8d8d8;

}

.footer-container ul{

    list-style:none;

}

.footer-container li{

    margin-bottom:10px;

}

.footer-container a{

    color:#d8d8d8;

    text-decoration:none;

    transition:.3s;

}

.footer-container a:hover{

    color:white;

}

.footer-bottom{

    text-align:center;

    margin-top:40px;

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.15);

    font-size:.9rem;

}

/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 768px) {

    .nav-container {
        width: 100%;
        min-height: auto;
        padding: 10px 16px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Logo container */
    .logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        width: auto;
        max-width: calc(100% - 65px);
        margin: 0;
        padding: 0;

        flex: 0 1 auto;
        overflow: visible;
    }

    /* Logo image — preserve original shape */
    .logo img {
        display: block;

        width: 260px !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: none !important;

        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: left center;

        margin: 0;
        padding: 0;

        transform: none !important;
    }

    /* Hamburger button */
    .menu-toggle {
        display: block;
        margin-left: auto;
        padding: 8px;

        flex: 0 0 auto;

        font-size: 2rem;
        line-height: 1;
    }

    /* Collapsed navigation */
    .nav-menu {
        display: none;

        width: 100%;
        padding: 20px 0;

        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

/* Smaller phones */
@media (max-width: 768px) {

    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 10px 14px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .logo {
        display: block;
        width: 230px;
        max-width: calc(100% - 65px);
        flex-shrink: 1;
        overflow: visible;
    }

    .logo img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;

        object-fit: contain !important;
        aspect-ratio: auto !important;
        transform: none !important;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .nav-menu.show {
        display: flex;
    }
}
/* Keep the website logo readable across all pages */
#navigation .logo {
    flex-shrink: 0;
}

#navigation .logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    #navigation .logo {
        width: min(230px, calc(100% - 65px));
    }

    #navigation .logo img {
        width: 100% !important;
        height: auto !important;
    }
}
/* English / Tagalog dropdown */
.language-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: 14px;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #d6dfdb;
    border-radius: 9px;
    background: #fffdf9;
    color: #304b49;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.language-button:hover,
.language-button:focus-visible {
    background: #eaf3ef;
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    min-width: 145px;
    padding: 6px;
    border: 1px solid #dce6e0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(35, 60, 50, 0.14);
}

.language-options[hidden] {
    display: none;
}

.language-options a {
    display: block;
    padding: 9px 11px;
    border-radius: 6px;
    color: #304b49;
    text-decoration: none;
}

.language-options a:hover,
.language-options a:focus-visible {
    background: #eaf3ef;
}

@media (max-width: 768px) {
    .language-menu {
        margin-left: auto;
    }

    .language-button {
        gap: 4px;
        padding: 7px 8px;
        font-size: 0.78rem;
    }

    .menu-toggle {
        flex-shrink: 0;
        margin-left: 8px;
    }
}