:root {
    --primary: #083d63;
    --primary-dark: #052b46;
    --gold: #d8a83e;
    --gold-dark: #b98921;
    --white: #ffffff;
    --light: #f5f7fa;
    --text: #263238;
    --muted: #667784;
    --border: #dce5eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 900;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name strong {
    color: var(--primary);
    font-size: 17px;
}

.brand-name small {
    color: var(--gold-dark);
    font-weight: 800;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navigation a {
    font-size: 14px;
    font-weight: 800;
}

.navigation a:hover {
    color: var(--primary);
}

.register-button {
    padding: 11px 19px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--primary-dark);
    font-weight: 900;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
}

.site-footer {
    padding-top: 70px;
    background: var(--primary-dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 45px;
}

.footer-brand .brand-mark {
    background: var(--gold);
    color: var(--primary-dark);
}

.footer-brand .brand-name strong {
    color: var(--white);
}

.footer-grid h3 {
    margin-bottom: 15px;
    color: var(--gold);
}

.footer-grid a:not(.brand),
.footer-grid p {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    margin-top: 55px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 900px) {
    .menu-button {
        display: block;
    }

    .register-button {
        display: none;
    }

    .navigation {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        background: var(--white);
    }

    .navigation.open {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* BH LOGO */

.brand-logo {
    display: block;
    width: 190px;
    max-height: 64px;
    object-fit: contain;
}

.footer-brand {
    width: fit-content;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
}

.footer-logo {
    display: block;
    width: 190px;
    max-height: 80px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .brand-logo {
        width: 150px;
        max-height: 54px;
    }

    .footer-logo {
        width: 160px;
    }
}


/* AUTHENTICATION HEADER AND ALERTS */
.header-account-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.header-login {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.flash-wrapper {
    position: relative;
    z-index: 20;
    width: min(920px, calc(100% - 28px));
    margin: 18px auto 0;
}

.flash-message {
    margin-bottom: 10px;
    padding: 14px 17px;
    border-radius: 10px;
    font-weight: 700;
}

.flash-success {
    background: #e8f8ef;
    color: #166c43;
    border: 1px solid #b7e6cb;
}

.flash-error {
    background: #fff0ee;
    color: #b42318;
    border: 1px solid #f4c7c2;
}

.flash-info {
    background: #eef6fd;
    color: #175d91;
    border: 1px solid #c5dff4;
}

@media (max-width: 820px) {
    .header-account-actions {
        margin-left: auto;
    }

    .header-login {
        display: none;
    }
}
