/* ============================================================
   ARB Apex Bank — Shared Site Shell
   PHP 7.4 compatible / intentionally isolated class names.
   ============================================================ */
:root {
    --apex-green: #008447;
    --apex-green-dark: #006d3a;
    --apex-gold: #f9b914;
    --apex-ink: #101719;
    --apex-white: #ffffff;
    --apex-line: #e7ece9;
    --apex-shell-width: 1328px;
}

.apex-site-header,
.apex-site-header *,
.apex-site-footer,
.apex-site-footer * {
    box-sizing: border-box;
}

.apex-site-header {
    width: 100%;
    background: var(--apex-white);
    position: relative;
    z-index: 100;
}

.apex-shell {
    width: 100%;
    max-width: var(--apex-shell-width);
    margin-left: auto;
    margin-right: auto;
}

.apex-utility-bar {
    width: 100%;
    min-height: 44px;
    background: #111111;
    color: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.apex-utility-inner {
    min-height: 44px;
    padding: 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.apex-utility-left,
.apex-utility-right {
    display: flex;
    align-items: center;
}

.apex-utility-right {
    gap: 28px;
}

.apex-utility-right a {
    color: #f4f4f4;
    text-decoration: none;
    white-space: nowrap;
}

.apex-utility-right a:hover {
    color: #ffffff;
}

.apex-main-header {
    width: 100%;
    min-height: 107px;
    background: #ffffff;
    border-bottom: 1px solid var(--apex-line);
}

.apex-header-inner {
    min-height: 107px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.apex-brand {
    display: flex;
    align-items: center;
    flex: 0 0 320px;
    width: 320px;
    text-decoration: none;
}

.apex-brand img {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    border: 0;
}

.apex-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    margin-left: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.apex-main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--apex-ink);
    text-decoration: none;
    white-space: nowrap;
}

.apex-main-nav a:hover,
.apex-main-nav a.is-active {
    color: var(--apex-green);
}

.apex-main-nav .apex-contact-button {
    padding: 15px 23px;
    min-height: 48px;
    border-radius: 5px;
    background: var(--apex-green);
    color: #ffffff;
    border: 1px solid var(--apex-green);
}

.apex-main-nav .apex-contact-button:hover,
.apex-main-nav .apex-contact-button.is-active {
    background: var(--apex-green-dark);
    color: #ffffff;
}

.apex-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid #d9e1dd;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
}

.apex-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--apex-green);
}

.apex-site-footer {
    width: 100%;
    margin-top: 75px;
    background: #071610;
    color: #d9e2de;
    border-top: 5px solid var(--apex-green);
    font-family: Arial, Helvetica, sans-serif;
}

.apex-footer-inner {
    padding: 52px 24px 30px;
}

.apex-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 42px;
}

.apex-footer-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
}

.apex-footer-note {
    max-width: 430px;
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}

.apex-footer-heading {
    margin-bottom: 14px;
    color: var(--apex-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.apex-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apex-footer-links li {
    margin: 0 0 10px;
}

.apex-footer-links a {
    color: #d9e2de;
    font-size: 14px;
    text-decoration: none;
}

.apex-footer-links a:hover {
    color: #ffffff;
}

.apex-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #9eaaa5;
    font-size: 12px;
}

@media (max-width: 1120px) {
    .apex-utility-inner,
    .apex-header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .apex-brand {
        flex-basis: 270px;
        width: 270px;
    }

    .apex-brand img {
        width: 270px;
    }

    .apex-main-nav {
        gap: 18px;
        font-size: 14px;
    }
}

@media (max-width: 860px) {
    .apex-header-inner {
        min-height: 82px;
    }

    .apex-menu-toggle {
        display: block;
        flex: 0 0 44px;
    }

    .apex-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 24px 20px;
        background: #ffffff;
        border-bottom: 1px solid var(--apex-line);
        box-shadow: 0 12px 24px rgba(16, 23, 25, 0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .apex-main-nav.is-open {
        display: flex;
    }

    .apex-main-nav a {
        min-height: 48px;
        border-bottom: 1px solid #edf1ef;
    }

    .apex-main-nav .apex-contact-button {
        justify-content: center;
        margin-top: 10px;
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .apex-utility-inner {
        min-height: 40px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-utility-right {
        gap: 14px;
    }

    .apex-main-header,
    .apex-header-inner {
        min-height: 78px;
    }

    .apex-header-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-brand {
        flex-basis: 235px;
        width: 235px;
    }

    .apex-brand img {
        width: 235px;
    }

    .apex-main-nav {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .apex-footer-bottom {
        display: block;
    }

    .apex-footer-bottom div + div {
        margin-top: 8px;
    }
}
