/* ============================================================
   BIVASTRA INC.
   MASTER STYLE SHEET
   ============================================================ */


/* ============================================================
   1. GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #263746;

    font-family:
        "Bookman Old Style",
        Bookman,
        Georgia,
        serif;

    font-size: 15px;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}


/* ============================================================
   2. HEADER
   Desktop structure:

   Logo
   -------------------------------
                         Navigation

   Mobile structure:

   Logo                         ☰
   -------------------------------
   Navigation opens below when
   hamburger is selected.
   ============================================================ */

.site-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    position: relative;
    z-index: 1000;
}


/* ------------------------------------------------------------
   Header container
   ------------------------------------------------------------ */

.header-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 4px 8px 0;

    display: grid;

    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;

    align-items: start;

    position: relative;
}


/* ------------------------------------------------------------
   Brand / Logo
   ------------------------------------------------------------ */

.brand-area {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    align-items: flex-start;

    flex-shrink: 0;
}

.brand-area a {
    display: inline-block;

    text-decoration: none;
    line-height: 0;
}

.brand-logo {
    width: 307px;
    height: auto;

    display: block;
    max-width: 100%;
}


/* ============================================================
   3. DESKTOP NAVIGATION
   ============================================================ */

.main-navigation {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-top: -4px;
    padding: 0 4px 4px 20px;
}

.nav-list {
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding: 0;

    gap: 27px;
}

.nav-item {
    position: relative;

    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-group {
    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

.nav-item > .nav-link-group > a {
    display: inline-flex;
    align-items: center;

    padding: 8px 6px;

    color: #263746;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.2px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-item > .nav-link-group > a:hover {
    color: #1f6b8f;
}


/* ============================================================
   4. DROPDOWN BUTTON
   ============================================================ */

.dropdown-toggle {
    border: none;
    background: transparent;

    padding: 0 0 0 5px;
    margin: 0;

    color: #263746;

    font-size: 11px;
    line-height: 1;

    cursor: pointer;
}

.dropdown-toggle:hover {
    color: #1f6b8f;
}


/* ============================================================
   5. DROPDOWN MENU
   ============================================================ */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 2px);
    left: 50%;

    transform: translateX(-50%);

    min-width: 145px;

    margin: 0;
    padding: 5px 0;

    list-style: none;

    background: #ffffff;

    border: 1px solid #e1e5e8;
    border-radius: 2px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

    display: none;

    z-index: 1001;
}

.dropdown-menu li {
    position: relative;

    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li > a {
    display: block;

    width: 100%;

    padding: 6px 9px;

    color: #263746;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu li > a:hover {
    background: #f3f6f8;
    color: #1f6b8f;
}


/* ============================================================
   6. ABOUT US SUBMENU
   ============================================================ */

.submenu-link-group {
    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

.submenu-link-group > a {
    display: block;
    flex: none;

    padding: 6px 4px;

    color: #263746;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    white-space: nowrap;
}

.submenu-link-group > a:hover {
    background: #f3f6f8;
    color: #1f6b8f;
}

.submenu-toggle {
    border: none;
    background: transparent;

    padding: 0 4px;
    margin: 0;

    color: #263746;

    font-size: 11px;
    line-height: 1;

    cursor: pointer;
}

.submenu-toggle:hover {
    color: #1f6b8f;
}

.sub-menu {
    position: absolute;

    top: 0;
    left: 100%;

    min-width: 120px;

    margin: 0;
    padding: 5px 0;

    list-style: none;

    background: #ffffff;

    border: 1px solid #e1e5e8;
    border-radius: 2px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

    display: none;

    z-index: 1002;
}

.sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu li a {
    display: block;

    width: 100%;

    padding: 6px 9px;

    color: #263746;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    white-space: nowrap;
}

.sub-menu li a:hover {
    background: #f3f6f8;
    color: #1f6b8f;
}


/* ============================================================
   7. DESKTOP DROPDOWNS
   ============================================================ */

@media (min-width: 769px) {

    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .has-submenu:hover > .sub-menu {
        display: block;
    }

}


/* ============================================================
   8. ORIGINBIT
   ============================================================ */

.originbit-item > a {
    display: inline-flex;
    align-items: center;

    padding: 8px 6px;

    color: #263746;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.2px;

    text-decoration: none;
    white-space: nowrap;
}

.originbit-item > a:hover {
    color: #1f6b8f;
}

.originbit-item sup {
    font-size: 0.55em;
    line-height: 0;

    position: relative;
    top: -0.45em;

    margin-left: 1px;
}


/* ============================================================
   9. MOBILE MENU BUTTON
   Hidden on desktop.
   ============================================================ */

.mobile-menu-button {
    display: none;

    grid-column: 2;
    grid-row: 1;

    width: 38px;
    height: 36px;

    margin: 5px 0 0 15px;
    padding: 7px 6px;

    border: 1px solid #d9e0e5;
    border-radius: 4px;

    background: #ffffff;

    cursor: pointer;

    align-self: start;
}

.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 4px 0;

    background: #263746;
}


/* ============================================================
   10. ACCESSIBILITY
   ============================================================ */

.nav-item a:focus,
.dropdown-toggle:focus,
.submenu-toggle:focus,
.mobile-menu-button:focus {
    outline: 2px solid #2d6684;
    outline-offset: 2px;
}


/* ============================================================
   11. MAIN CONTENT
   ============================================================ */

main {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 18px 30px 40px;
}

main section {
    margin: 0 0 34px;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    color: #263746;

    font-family:
        "Bookman Old Style",
        Bookman,
        Georgia,
        serif;

    line-height: 1.25;
}

h1 {
    margin: 0 0 18px;

    font-size: 34px;
    font-weight: 700;
}

h2 {
    margin: 0 0 14px;

    font-size: 25px;
    font-weight: 700;
}

h3 {
    margin: 0 0 10px;

    font-size: 20px;
    font-weight: 700;
}

p {
    margin: 0 0 14px;
}

main ul {
    margin-top: 8px;
    margin-bottom: 16px;

    padding-left: 24px;
}

main li {
    margin-bottom: 4px;
}

main a {
    color: #2d6684;

    text-decoration: underline;
}

main a:hover {
    color: #1f6b8f;
}


/* ============================================================
   12. INSTITUTIONAL SUPPORT
   ============================================================ */

h2.institutional-support-heading {
    margin-bottom: 14px;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.35;
}


/* ============================================================
   13. ORANGE SEAL
   ============================================================ */

.orange-seal-section {
    margin-top: 20px;
}

.orange-seal-image {
    display: block;

    width: 150px;
    height: 150px;

    object-fit: contain;

    margin-bottom: 18px;
}

.orange-seal-heading {
    color: #ff6900;
}


/* ============================================================
   14. PARTNERS
   ============================================================ */

.partners-section {
    margin-top: 20px;
}

.partners-heading {
    color: #19690f;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 20px 30px;

    margin-top: 15px;
}

.partners-logos img {
    width: auto;
    height: auto;

    max-width: 200px;

    object-fit: contain;
}


/* ============================================================
   15. FOOTER
   ============================================================ */

.site-footer {
    width: 100%;

    margin-top: 30px;

    border-top: 1px solid #cfd6dc;

    background: #172d40;
    color: #ffffff;
}


/* ============================================================
   16. FOOTER NAVIGATION
   ============================================================ */

.footer-links-section {
    width: 100%;

    background: #172d40;
}

.footer-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 28px 30px 24px;

    display: grid;

    grid-template-columns:
        1fr
        1.25fr
        1fr
        1.35fr;

    column-gap: 50px;
}

.footer-column {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* ============================================================
   17. FOOTER LINK LIST
   ============================================================ */

.footer-links {
    width: 100%;

    list-style: none;

    margin: 0;
    padding: 0;
}

.footer-links li {
    list-style: none;

    margin: 0;
    padding: 0;
}


/* ============================================================
   18. FOOTER LINKS
   ============================================================ */

.footer-links a {
    display: flex;
    align-items: center;

    width: fit-content;

    min-height: 30px;

    margin: 0;
    padding: 4px 0;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.35;

    text-decoration: none !important;

    box-sizing: border-box;
}

.footer-links a:hover {
    color: #d7e7ef;

    text-decoration: none !important;
}


/* ============================================================
   19. DELIBERATE GROUP GAP
   Used only where the footer HTML explicitly
   contains .footer-group-gap.
   ============================================================ */

.footer-links li.footer-group-gap {
    display: block;

    width: 100%;

    height: 14px;
    min-height: 14px;

    margin: 0;
    padding: 0;

    pointer-events: none;
}


/* ============================================================
   20. COPYRIGHT + SOCIAL MEDIA
   ============================================================ */

.footer-bottom {
    width: 100%;

    background: #ffffff;

    border-top: 1px solid #d9d9d9;
}

.footer-bottom-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 6px 30px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* ============================================================
   21. COPYRIGHT
   ============================================================ */

.copyright {
    color: #555555;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.5;

    white-space: nowrap;
}


/* ============================================================
   22. SOCIAL MEDIA
   ============================================================ */

.social-media-links {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;
}

.social-media-links a {
    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;

    background: transparent;

    text-decoration: none;

    flex: 0 0 18px;
}

.social-media-links a img {
    display: block;

    width: 18px !important;
    height: 18px !important;

    margin: 0;
    padding: 0;

    border: none;

    object-fit: contain;
}

.social-media-links a:hover {
    opacity: 0.72;
}


/* ============================================================
   23. TABLET
   ============================================================ */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;

        row-gap: 25px;
        column-gap: 40px;
    }

}


/* ============================================================
   24. MOBILE
   ============================================================ */

@media (max-width: 768px) {


    /* --------------------------------------------------------
       MOBILE HEADER
       -------------------------------------------------------- */

    .header-container {
        width: 100%;

        margin: 0;
        padding: 4px 15px 5px;

        display: grid;

        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;

        align-items: start;
    }


    /* --------------------------------------------------------
       Mobile logo
       -------------------------------------------------------- */

    .brand-area {
        grid-column: 1;
        grid-row: 1;

        width: auto;
    }

    .brand-logo {
        width: 250px;

        max-width: 82vw;

        height: auto;
    }


    /* --------------------------------------------------------
       Mobile hamburger
       -------------------------------------------------------- */

    .mobile-menu-button {
        display: block;

        grid-column: 2;
        grid-row: 1;

        margin: 5px 0 0 12px;
    }


    /* --------------------------------------------------------
       Mobile navigation
       Hidden until main.js adds .mobile-open.
       -------------------------------------------------------- */

    .main-navigation {
        grid-column: 1 / -1;
        grid-row: 2;

        display: none;

        width: 100%;

        margin: 5px 0 0;

        padding: 0;

        background: #ffffff;

        box-sizing: border-box;
    }

    .main-navigation.mobile-open {
        display: block;
    }


    /* --------------------------------------------------------
       Mobile navigation list
       -------------------------------------------------------- */

    .nav-list {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        margin: 0;
        padding: 0;

        background: #ffffff;
    }

    .nav-item {
        width: 100%;

        border-top: 1px solid #edf0f2;
    }


    /* --------------------------------------------------------
       Mobile main navigation links
       -------------------------------------------------------- */

    .nav-item > .nav-link-group {
        width: 100%;

        justify-content: space-between;
    }

    .nav-item > .nav-link-group > a {
        width: 100%;

        padding: 12px 5px;

        font-size: 13px;
    }


    /* --------------------------------------------------------
       Mobile dropdown button
       -------------------------------------------------------- */

    .dropdown-toggle {
        width: 40px;

        padding: 0;

        font-size: 10px;
    }


    /* --------------------------------------------------------
       Mobile dropdown menu
       -------------------------------------------------------- */

    .dropdown-menu {
        position: static;

        width: 100%;
        min-width: 0;

        padding: 0;

        border: none;
        border-top: 1px solid #edf0f2;

        border-radius: 0;

        box-shadow: none;

        transform: none;

        background: #fafbfc;

        display: none;
    }

    .dropdown.mobile-open > .dropdown-menu {
        display: block;
    }

    .dropdown-menu li > a {
        padding: 10px 20px;

        font-size: 13px;
        font-weight: 700;
    }


    /* --------------------------------------------------------
       Mobile About Us submenu
       -------------------------------------------------------- */

    .submenu-link-group {
        width: 100%;
    }

    .submenu-link-group > a {
        padding: 10px 20px;

        font-size: 13px;
        font-weight: 700;
    }

    .submenu-toggle {
        width: 40px;

        padding: 0;

        font-size: 10px;
    }

    .sub-menu {
        position: static;

        width: 100%;
        min-width: 0;

        padding: 0;

        border: none;
        border-top: 1px solid #edf0f2;

        border-radius: 0;

        box-shadow: none;

        background: #f5f7f8;

        display: none;
    }

    .has-submenu.submenu-open > .sub-menu {
        display: block;
    }

    .sub-menu li a {
        padding: 10px 35px;

        font-size: 13px;
        font-weight: 700;
    }


    /* --------------------------------------------------------
       Mobile OriginBit
       -------------------------------------------------------- */

    .originbit-item > a {
        display: block;

        width: 100%;

        padding: 12px 5px;

        font-size: 13px;
        font-weight: 700;
    }

    .originbit-item sup {
        font-size: 0.55em;
        top: -0.45em;
    }


    /* --------------------------------------------------------
       MOBILE FOOTER
       -------------------------------------------------------- */

    .footer-container {
        display: flex;

        flex-direction: column;

        gap: 22px;

        padding: 27px 25px 25px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-links a {
        min-height: 40px;

        padding: 7px 0;

        font-size: 12px;
        line-height: 1.4;
    }

    .footer-links li.footer-group-gap {
        height: 10px;
        min-height: 10px;
    }


    /* --------------------------------------------------------
       Mobile copyright + social media
       -------------------------------------------------------- */

    .footer-bottom-container {
        flex-direction: column;

        align-items: center;
        justify-content: center;

        padding: 12px 20px 14px;

        gap: 10px;
    }

    .copyright {
        font-size: 9px;

        white-space: normal;

        text-align: center;
    }

    .social-media-links {
        justify-content: center;

        gap: 10px;
    }

}


/* ============================================================
   25. VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .brand-logo {
        width: 225px;
        max-width: 80vw;
    }

    .header-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-bottom-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .copyright {
        font-size: 8.5px;
    }

}