
/* =========================================
   BLACKBOOK — SHARED DESIGN SYSTEM
   Navy, White, Light Blue & Green
========================================= */

/* 1. DESIGN TOKENS */

:root {
    --bb-black: #111820;
    --bb-navy: #17243B;
    --bb-navy-light: #263B59;

    --bb-blue: #70BCE8;
    --bb-blue-light: #A5D8F5;

    --bb-green: #55B982;
    --bb-green-soft: rgba(85, 185, 130, .18);

    --bb-page: #FFFFFF;
    --bb-surface: #FFFFFF;
    --bb-surface-alt: #F5F8FC;
    --bb-dark-surface: #17243B;

    --bb-text: #111820;
    --bb-muted: #64748B;
    --bb-text-light: #FFFFFF;
    --bb-text-dark-muted: #C5D0DF;

    --bb-border: #DCE5EF;
    --bb-border-dark: rgba(255, 255, 255, .14);

    --bb-shadow:
        0 12px 24px rgba(23, 36, 59, .14),
        0 4px 8px rgba(23, 36, 59, .08);

    --bb-font-body: 'DM Sans', sans-serif;
    --bb-font-heading: 'Manrope', sans-serif;

    --bb-content-width: 1180px;

    --bb-radius: 14px;
    --bb-radius-lg: 18px;
}

/* 2. RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: var(--bb-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--bb-text);
    background: var(--bb-page);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* 3. SHARED CONTAINER */

.bb-container {
    width: min(100% - 30px, var(--bb-content-width));
    margin-inline: auto;
}

/* 4. SHARED TYPOGRAPHY */

.bb-page-title {
    font-family: var(--bb-font-heading);
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--bb-black);
}

.bb-section-title {
    font-family: var(--bb-font-heading);
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.25;
    font-weight: 700;
    color: var(--bb-text);
}

.bb-text {
    font-size: 16px;
    line-height: 1.7;
}

.bb-muted {
    color: var(--bb-muted);
}

/* 5. SHARED BUTTON */

.bb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--bb-blue);
    color: var(--bb-navy);
    border: 1px solid var(--bb-blue);
    border-radius: var(--bb-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.bb-button:hover {
    background: var(--bb-blue-light);
    border-color: var(--bb-blue-light);
    transform: translateY(-2px);
}

/* 6. SHARED CARD */

.bb-card {
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 24px;
    box-shadow: var(--bb-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bb-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(23, 36, 59, .16),
        0 6px 12px rgba(23, 36, 59, .08);
}

/* 7. SHARED FORM FIELD */

.bb-field {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    color: var(--bb-text);
    font-size: 16px;
}

.bb-field:focus {
    outline: 2px solid var(--bb-blue);
    outline-offset: 2px;
}

/* 8. HEADER */

.bb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bb-navy);
    color: var(--bb-text-light);
    border-bottom: 1px solid var(--bb-border-dark);
    box-shadow: 0 5px 20px rgba(10, 20, 35, .12);
}

.bb-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bb-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bb-logo img {
    display: block;
    width: 220px;
    max-height: 55px;
    object-fit: contain;
}

.bb-logo span {
    color: var(--bb-text-light);
    font-family: var(--bb-font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.bb-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 23px;
}

.bb-navigation a {
    color: var(--bb-text-light);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
}

.bb-navigation a:hover {
    color: var(--bb-blue-light);
}

.bb-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    background: transparent;
    color: var(--bb-text-light);
    cursor: pointer;
}

.bb-menu-toggle svg {
    width: 19px;
    height: 19px;
}

/* 9. FOOTER */

.bb-footer {
    background: var(--bb-navy);
    color: var(--bb-text-light);
    padding: 60px 0 24px;
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr;
    gap: 55px;
    padding-bottom: 42px;
}

.bb-footer-logo img {
    display: block;
    width: 120px;
    max-height: 55px;
    object-fit: contain;
}

.bb-footer-brand p {
    max-width: 320px;
    margin-top: 20px;
    color: var(--bb-text-dark-muted);
    font-size: 15px;
}

.bb-footer h3 {
    margin: 0 0 17px;
    color: var(--bb-blue-light);
    font-family: var(--bb-font-heading);
    font-size: 19px;
}

.bb-footer-contact p,
.bb-footer-contact a,
.bb-footer-links a {
    display: block;
    margin-bottom: 11px;
    color: var(--bb-text-dark-muted);
    font-size: 15px;
}

.bb-footer a {
    transition: color .2s ease;
}

.bb-footer a:hover {
    color: var(--bb-blue-light);
}

.bb-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--bb-border-dark);
    color: var(--bb-text-dark-muted);
    font-size: 14px;
}

/* 10. RESPONSIVE HEADER AND FOOTER */

@media (max-width: 900px) {
    .bb-header-inner {
        position: relative;
        min-height: 76px;
        flex-direction: row;
        justify-content: space-between;
    }

    .bb-menu-toggle {
        display: inline-flex;
    }

    .bb-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: -14px;
        right: -14px;
        z-index: 1001;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 18px;
        background: var(--bb-navy);
        box-shadow: 0 12px 20px rgba(10, 20, 35, .16);
    }

    .bb-navigation.open {
        display: flex;
    }

    .bb-navigation a {
        display: block;
        padding: 13px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        font-size: 15px;
    }

    .bb-navigation a:last-child {
        border-bottom: 0;
    }

    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 540px) {
    .bb-container {
        width: min(100% - 28px, var(--bb-content-width));
    }

    .bb-logo img {
        width: 155px;
    }

    .bb-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bb-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

/* 11. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
