/* =========================================================
   TOOLZEN HUB — GLOBAL HEADER
   RESPONSIVE HEADER
   Desktop: Home | Categories | Articles | About
   Mobile: Hamburger → Home | Categories | Articles | About
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

html,
body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}


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

.site-header {
    position: sticky;
    top: 0;
    left: 0;

    width: 100%;
    height: 64px;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e8eceb;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 1000;

    font-family: Georgia, "Times New Roman", serif;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    height: 64px;

    margin: 0 !important;
    padding: 0 20px !important;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    justify-content: flex-start;
}


/* =========================================================
   BRAND
========================================================= */

.navbar__brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    width: fit-content;

    margin: 0 !important;
    padding: 0 !important;

    flex-shrink: 0;

    color: #101828;

    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
}


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

.brand-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50%;

    background: #0b9f58;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 23px;
    font-weight: 700;

    box-shadow:
        0 4px 12px rgba(11, 159, 88, 0.18);
}


/* =========================================================
   BRAND TEXT
========================================================= */

.brand-text {
    display: flex;
    flex-direction: column;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1;

    font-family: Georgia, "Times New Roman", serif;
}


.brand-title {
    margin: 0 !important;
    padding: 0 !important;

    color: #111827;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.6px;
}


.brand-title span {
    color: #0b9f58;
}


.brand-subtitle {
    margin: 5px 0 0 !important;
    padding: 0 !important;

    color: #667085;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 11px;
    font-weight: 400;
}


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

.navbar__menu {
    display: flex;
    align-items: center;

    margin-left: auto !important;
    margin-right: 0 !important;

    height: 100%;

    flex-shrink: 0;
}


.navbar__menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 20px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}


.navbar__menu li {
    display: flex;
    align-items: center;

    margin: 0 !important;
    padding: 0 !important;
}


.navbar__menu a {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: auto;
    height: 64px;

    margin: 0 !important;
    padding: 0 !important;

    color: #344054;

    background: transparent;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    border: 0;

    transition: color 0.2s ease;
}


.navbar__menu a:visited {
    color: #344054;
}


.navbar__menu a:hover {
    color: #0b9f58;
}


.navbar__menu a.active,
.navbar__menu a[aria-current="page"] {
    color: #0b9f58 !important;
}


.navbar__menu a.active::after,
.navbar__menu a[aria-current="page"]::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 6px;

    height: 3px;

    border-radius: 3px;

    background: #0b9f58;
}


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

.navbar__actions {
    display: none;

    align-items: center;

    margin-left: auto !important;
    margin-right: 0 !important;

    padding: 0 !important;

    flex-shrink: 0;
}


/* =========================================================
   HAMBURGER BUTTON
   HIDDEN ON DESKTOP
========================================================= */

.menu-toggle {
    width: 42px;
    height: 42px;

    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0;

    background: transparent;

    color: #101828;

    cursor: pointer;

    border-radius: 10px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.menu-toggle:hover {
    background: #f1f8f5;
    color: #0b9f58;
}


.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 0;
    padding: 0;

    border-radius: 4px;

    background: currentColor;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================================
   MOBILE NAVIGATION
   HIDDEN BY DEFAULT
========================================================= */

.mobile-navigation {
    display: none;

    width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: #ffffff;

    border-bottom: 1px solid #e8eceb;

    box-shadow:
        0 8px 20px rgba(16, 24, 40, 0.06);
}


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

.mobile-navigation__menu {
    display: flex;

    flex-direction: column;

    margin: 0;
    padding: 8px 20px 16px;

    list-style: none;
}


.mobile-navigation__link {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 14px 4px;

    color: #344054;

    text-decoration: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-weight: 600;

    border-bottom: 1px solid #eef1f0;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


.mobile-navigation__link:last-child {
    border-bottom: 0;
}


.mobile-navigation__link:hover,
.mobile-navigation__link.active {
    color: #0b9f58;
}


.mobile-navigation__link[aria-current="page"] {
    color: #0b9f58;
}


/* =========================================================
   MOBILE MENU OPEN STATE
========================================================= */

.mobile-navigation.is-open {
    display: block;
}


/* =========================================================
   MOBILE HAMBURGER ACTIVE STATE
========================================================= */

.menu-toggle.is-open {
    background: #f1f8f5;
    color: #0b9f58;
}


/* =========================================================
   TABLET + MOBILE
   900px and below
========================================================= */

@media (max-width: 900px) {

    .site-header {
        height: 64px;
    }


    .navbar {
        height: 64px;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }


    /* Hide desktop links */
    .navbar__menu {
        display: none !important;
    }


    /* Show hamburger wrapper */
    .navbar__actions {
        display: flex !important;

        margin-left: auto !important;
    }


    /* Show hamburger */
    .menu-toggle {
        display: inline-flex !important;
    }


    /* Mobile menu remains hidden until JS adds .is-open */
    .mobile-navigation {
        display: none;
    }


    .mobile-navigation.is-open {
        display: block;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .site-header {
        height: 58px;
    }


    .navbar {
        height: 58px;

        padding-left: 12px !important;
        padding-right: 12px !important;
    }


    .brand-logo {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .navbar__brand {
        gap: 9px;
    }


    .brand-title {
        font-size: 18px;
    }


    .brand-subtitle {
        font-size: 10px;
    }


    .menu-toggle {
        width: 40px;
        height: 40px;
    }


    .menu-toggle span {
        width: 21px;
    }


    .mobile-navigation__menu {
        padding-left: 16px;
        padding-right: 16px;
    }
}
