/* =========================================================
   BestReferral.ca — Shared Global Styles
   File: /assets/css/style.css
   ========================================================= */

:root {
    --br-bg: #e4edf2;
    --br-bg-soft: #eef3f6;
    --br-surface: #ffffff;

    --br-text: #102235;
    --br-text-dark: #12243a;
    --br-muted: #5f707b;
    --br-muted-light: #8fa4b2;

    --br-blue: #3155e7;
    --br-green: #18b777;
    --br-green-light: #63e598;

    --br-navy-1: #041626;
    --br-navy-2: #061f39;
    --br-navy-3: #073b59;

    --br-border: #e5ebef;

    --br-radius-sm: 10px;
    --br-radius-md: 14px;
    --br-radius-lg: 18px;

    --br-shadow-sm: 0 4px 12px rgba(35,60,78,.08);
    --br-shadow-md: 0 7px 20px rgba(35,60,78,.055);
}

/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--br-text);
    background: var(--br-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

header {
    width: 100%;
    background: var(--br-surface);
    border-bottom: 1px solid var(--br-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 900;
    color: var(--br-text-dark);
}

.brand img {
    width: 37px;
    height: 37px;
    object-fit: cover;
    border-radius: 11px;
}

.brand span {
    color: var(--br-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #354657;
}

.nav-links a:hover,
.back-link:hover {
    color: var(--br-blue);
}

.back-link {
    color: #536575;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   COMMON CARDS / CONTENT
   ========================================================= */

.section-card,
.card {
    background: var(--br-surface);
    border-radius: var(--br-radius-lg);
    box-shadow: var(--br-shadow-md);
}

.section-card {
    padding: 30px;
    margin-bottom: 21px;
}

.card {
    padding: 30px;
    margin-bottom: 21px;
}

.section-card h2,
.card h2 {
    color: #132436;
}

.section-card p,
.card p {
    color: var(--br-muted);
    line-height: 1.72;
}

/* =========================================================
   COMMON DISCLOSURE / NOTICE
   ========================================================= */

.notice {
    background: #fff8dd;
    border: 1px solid #f0dfa1;
    border-radius: 16px;
    padding: 21px;
    color: #615839;
    font-size: 11px;
    line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width: 100%;
    background: var(--br-navy-1);
    color: white;
    padding: 27px 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-row img {
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.footer-brand {
    font-size: 15px;
    font-weight: 800;
}

.footer-note {
    margin-top: 3px;
    color: var(--br-muted-light);
    font-size: 10px;
}

.footer-links {
    display: flex;
    gap: 22px;
    color: #aabac5;
    font-size: 11px;
}

.footer-links a:hover {
    color: white;
}

/* =========================================================
   SHARED UTILITIES
   ========================================================= */

.text-green {
    color: var(--br-green);
}

.text-blue {
    color: var(--br-blue);
}

.text-muted {
    color: var(--br-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: 94%;
    }

    .brand {
        font-size: 20px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .nav-links {
        display: none;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .section-card,
    .card {
        padding: 23px;
    }
}