/* *****************************************************

    ** WOW Online Solutions: brand layer for Nexus **

    Matches wowonlinesolutions.com.au (Oxygen build,
    checked 24/11/2026): fonts, buttons, lime top bar,
    header, navigation and dark footer.

    Colours come from the Nexus tokens in custom.css;
    the --wos-* values below mirror the website's own
    variables so the two stay easy to compare.

***************************************************** */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Chivo";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/chivo-latin.woff2") format("woff2");
}

/* ---------- Website tokens ---------- */
:root {
    --wos-green: #5fa72e;
    --wos-green-dark: #1b5c1a;
    --wos-lime: #d4ff88;
    --wos-lime-strong: #c2f56a;
    --wos-ink: #1f2421;
    --wos-text: #3a3a3a;
    --wos-muted: #636e65;
    --wos-grey: #f3f5f1;
    --wos-line: #dde3d8;
    --wos-white: #fff;
    --wos-footer-text: #c9d1c6;
    --wos-font-head: "Chivo", "Segoe UI", Roboto, Arial, sans-serif;
    --wos-font-body: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
    --wos-radius: 7px;
    --wos-shadow: 0 10px 30px rgba(31, 36, 33, .08);
}

/* ---------- Base ---------- */
body.wow-theme {
    font-family: var(--wos-font-body);
    color: var(--wos-text);
    background-color: var(--wos-white);
}
body.wow-theme h1, body.wow-theme h2, body.wow-theme h3,
body.wow-theme h4, body.wow-theme h5, body.wow-theme h6,
body.wow-theme .h1, body.wow-theme .h2, body.wow-theme .h3,
body.wow-theme .h4, body.wow-theme .h5, body.wow-theme .h6 {
    font-family: var(--wos-font-head);
    font-weight: 700;
}
body.wow-theme .primary-content h1,
body.wow-theme .primary-content h2,
body.wow-theme .primary-content .card-title {
    color: var(--wos-green-dark);
}
body.wow-theme a {
    color: var(--wos-green-dark);
}
body.wow-theme a:hover {
    color: var(--wos-ink);
}
body.wow-theme .text-primary {
    color: var(--wos-green-dark) !important;
}
body.wow-theme :focus-visible {
    outline: 3px solid var(--wos-green-dark);
    outline-offset: 2px;
}

.wow-skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 1100;
    padding: 10px 16px;
    background: var(--wos-ink);
    color: var(--wos-white) !important;
    border-radius: var(--wos-radius);
    font-weight: 700;
}
.wow-skip-link:focus {
    top: 8px;
}

/* ---------- Buttons ---------- */
/* The website's call-to-action: lime with an ink outline */
body.wow-theme .wow-btn,
body.wow-theme .btn-primary,
body.wow-theme .btn-success {
    color: var(--wos-ink);
    background: var(--wos-lime);
    border: 1px solid var(--wos-ink);
    border-radius: var(--wos-radius);
    font-family: var(--wos-font-head);
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}
body.wow-theme .wow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
body.wow-theme .wow-btn:hover,
body.wow-theme .btn-primary:hover,
body.wow-theme .btn-success:hover,
body.wow-theme .btn-primary:not(:disabled):not(.disabled):active,
body.wow-theme .btn-success:not(:disabled):not(.disabled):active {
    color: var(--wos-ink);
    background: var(--wos-lime-strong);
    border-color: var(--wos-ink);
    transform: translate3d(0, -1px, 0);
}
body.wow-theme .btn-primary:focus,
body.wow-theme .btn-success:focus {
    box-shadow: 0 0 0 3px rgba(27, 92, 26, .35);
}
body.wow-theme .btn-primary.disabled,
body.wow-theme .btn-primary:disabled {
    color: var(--wos-ink);
    background: var(--wos-lime);
    border-color: var(--wos-ink);
    transform: none;
}
body.wow-theme .sidebar .btn-success {
    color: var(--wos-ink);
    background: var(--wos-lime);
}

/* ---------- Sidebar and cards ---------- */
body.wow-theme .sidebar .card-header {
    font-family: var(--wos-font-head);
    color: var(--wos-green-dark);
}
body.wow-theme .sidebar .list-group-item.active,
body.wow-theme .sidebar .list-group-item.active:hover,
body.wow-theme .sidebar .list-group-item.active:focus {
    background-color: var(--wos-grey);
    color: var(--wos-green-dark);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--wos-green);
}
body.wow-theme .list-group-item.active {
    background-color: var(--wos-green-dark);
    border-color: var(--wos-green-dark);
}

/* ---------- Header ---------- */
header.header.wow-header {
    background-color: var(--wos-white);
    box-shadow: 0 2px 14px rgba(31, 36, 33, .08);
    position: relative;
    z-index: 100;
}

/* Lime top bar */
.wow-topbar {
    background-color: var(--wos-lime);
}
.wow-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 40px;
}
.wow-topbar-contact,
.wow-topbar-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
body.wow-theme .wow-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wos-ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
body.wow-theme .wow-topbar-link:hover {
    color: var(--wos-green-dark);
    text-decoration: underline;
}
.wow-topbar-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Logged-in account strip (Nexus .topbar, recoloured) */
header.header.wow-header .topbar.wow-accountbar {
    background-color: var(--wos-ink);
    color: var(--wos-footer-text);
}
header.header.wow-header .topbar.wow-accountbar .btn,
header.header.wow-header .topbar.wow-accountbar .active-client .btn,
header.header.wow-header .topbar.wow-accountbar .active-client .input-group-text {
    color: var(--wos-footer-text);
}
header.header.wow-header .topbar.wow-accountbar .btn:hover {
    color: var(--wos-lime);
}
header.header.wow-header .topbar.wow-accountbar .active-client .btn.btn-active-client span {
    border-bottom-color: var(--wos-lime);
}

/* Logo row */
header.header.wow-header .wow-header-main {
    min-height: 84px;
}
header.header.wow-header .wow-header-main > .container {
    flex-wrap: nowrap;
    gap: 16px;
}
header.header.wow-header .wow-logo-link {
    display: block;
    flex-shrink: 0;
}
header.header.wow-header .logo-img.wow-logo {
    display: block;
    width: 210px;
    max-width: 100%;
    max-height: none;
    height: auto;
}
header.header.wow-header .search {
    border-color: var(--wos-line);
    border-radius: var(--wos-radius);
}
header.header.wow-header .search:focus-within {
    border-color: var(--wos-green-dark);
}
header.header.wow-header .toolbar {
    align-items: center;
}
header.header.wow-header .toolbar .nav-link {
    border-color: var(--wos-line);
    border-radius: 8px;
    color: var(--wos-ink);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
header.header.wow-header .toolbar .nav-link:hover {
    color: var(--wos-green-dark);
    background-color: var(--wos-grey);
}
header.header.wow-header .toolbar .badge-dark {
    background-color: var(--wos-green-dark);
}
header.header.wow-header .btn.wow-btn {
    font-size: 15px;
}

/* Menu row */
header.header.wow-header .wow-nav {
    border-top: 1px solid var(--wos-line);
}
/* Nexus's script moves menu items into "More" once #nav is 30px tall or more,
   so links stay 28px high and the spacing sits on the list instead. */
header.header.wow-header .wow-nav .navbar-nav,
header.header.wow-header .wow-nav #nav {
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 4px;
}
header.header.wow-header .wow-nav .navbar-nav > li > a {
    display: block;
    padding: 3px 12px;
    line-height: 22px;
    color: var(--wos-ink);
    font-family: var(--wos-font-head);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 6px;
}
header.header.wow-header .wow-nav .navbar-nav > li > a:hover,
header.header.wow-header .wow-nav .navbar-nav > li.show > a {
    color: var(--wos-green-dark);
    background-color: var(--wos-grey);
}
header.header.wow-header .wow-nav .navbar-nav > li.active > a {
    color: var(--wos-green);
}
header.header.wow-header .wow-nav .dropdown-menu {
    min-width: 240px;
    padding: 10px;
    border: 1px solid var(--wos-line);
    border-radius: 10px;
    box-shadow: var(--wos-shadow);
}
header.header.wow-header .wow-nav .dropdown-menu li.dropdown-item {
    padding: 0;
    background: transparent;
}
header.header.wow-header .wow-nav .dropdown-menu a.dropdown-item {
    padding: 9px 12px !important;
    color: var(--wos-ink);
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
}
header.header.wow-header .wow-nav .dropdown-menu a.dropdown-item:hover,
header.header.wow-header .wow-nav .dropdown-menu a.dropdown-item:focus {
    color: var(--wos-green-dark);
    background-color: var(--wos-grey);
}
header.header.wow-header .wow-nav .badge {
    background-color: var(--wos-lime);
    color: var(--wos-ink);
}

/* Breadcrumb */
body.wow-theme .master-breadcrumb,
body.wow-theme .master-breadcrumb .breadcrumb {
    background-color: var(--wos-grey);
}
body.wow-theme .master-breadcrumb .breadcrumb a {
    color: var(--wos-green-dark);
}

/* ---------- Footer ---------- */
footer.footer.wow-footer {
    padding: 0;
    color: var(--wos-footer-text);
    background-color: var(--wos-ink);
    font-size: 15px;
}
.wow-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 56px;
}
.wow-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.wow-footer-logo-link {
    display: block;
}
.wow-footer-logo {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 12px;
}
.wow-footer-name {
    margin: 0;
    color: var(--wos-white);
    font-family: var(--wos-font-head);
    font-weight: 700;
    font-size: 20px;
}
body.wow-theme .wow-footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wos-lime);
    font-size: 15px;
    text-decoration: none;
}
body.wow-theme .wow-footer-social:hover {
    color: var(--wos-white);
    text-decoration: underline;
}
.wow-footer-social-icon {
    width: 20px;
    height: 20px;
}
.wow-footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
body.wow-theme .wow-footer-heading {
    margin: 0;
    color: var(--wos-lime);
    font-family: var(--wos-font-head);
    font-weight: 700;
    font-size: 17px;
}
.wow-footer-list,
.wow-footer-utility {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wow-footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body.wow-theme .wow-footer-link {
    color: var(--wos-footer-text);
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
}
body.wow-theme .wow-footer-link:hover {
    color: var(--wos-white);
    text-decoration: underline;
}
.wow-footer-text {
    margin: 0;
    color: var(--wos-footer-text);
    line-height: 1.6;
}
.wow-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.wow-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.wow-footer-copy {
    margin: 0;
    color: #9aa59a;
    font-size: 14px;
}
.wow-footer-utility {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}
.wow-footer-utility .wow-footer-link {
    font-size: 14px;
}
footer.footer.wow-footer .btn.wow-footer-locale {
    color: var(--wos-footer-text);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--wos-radius);
    font-size: 13px;
}
footer.footer.wow-footer .btn.wow-footer-locale:hover {
    color: var(--wos-ink);
    background: var(--wos-lime);
    border-color: var(--wos-lime);
}

/* ---------- Responsive (breakpoints match the website) ---------- */
@media (max-width: 1199.98px) {
    /* Nexus collapses its menu below 1200px */
    header.header.wow-header .wow-nav {
        border-top: 0;
        min-height: 0;
    }
    header.header.wow-header .wow-nav .navbar-collapse.show,
    header.header.wow-header .wow-nav .navbar-collapse.collapsing {
        padding-bottom: 16px;
    }
    /* Bootstrap removes container padding inside collapsing navbars */
    header.header.wow-header .wow-nav > .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    header.header.wow-header .wow-nav .navbar-nav,
    header.header.wow-header .wow-nav #nav {
        gap: 0;
        margin: 0;
    }
    header.header.wow-header .wow-nav .navbar-nav > li > a {
        padding: 12px 4px;
        border-radius: 0;
        border-bottom: 1px solid var(--wos-line);
    }
    header.header.wow-header .wow-nav .dropdown-menu {
        box-shadow: none;
        border: 0;
        padding: 0 0 0 16px;
    }
    .wow-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    header.header.wow-header .logo-img.wow-logo {
        width: 180px;
    }
}
@media (max-width: 1023px) {
    header.header.wow-header .wow-header-main {
        min-height: 72px;
    }
}
@media (max-width: 767px) {
    /* Phones: keep every top-bar link, wrapping onto two centred rows */
    .wow-topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 16px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .wow-topbar-contact,
    .wow-topbar-nav {
        gap: 16px;
    }
    body.wow-theme .wow-topbar-link {
        min-height: 32px;
    }
    header.header.wow-header .logo-img.wow-logo {
        width: 160px;
    }
    body.wow-theme .wow-mobile-cta {
        margin-top: 14px;
        width: 100%;
    }
    .wow-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        padding-top: 56px;
    }
    .wow-footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
    .wow-footer-utility {
        justify-content: center;
    }
}
@media (max-width: 575.98px) {
    /* Nexus centres the logo row on phones; keep logo left and tools right */
    header.header.wow-header .wow-header-main > .container {
        justify-content: space-between;
    }
}
@media (max-width: 479px) {
    .wow-topbar-inner {
        justify-content: center;
    }
    header.header.wow-header .logo-img.wow-logo {
        width: 140px;
    }
    .wow-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.wow-theme .wow-btn,
    body.wow-theme .btn-primary,
    body.wow-theme .btn-success {
        transition: none;
        transform: none !important;
    }
}
