/* ============================================
   SCAN TO CAPTURE - Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Brand Colors */
    --slate: #2A3240;
    --denim: #5A7A90;
    --steel: #8C9DA8;
    --silver: #B8C8D2;
    --light-silver: #E6E6E6;
    --ice: #8AB4C8;

    /* Text Colors */
    --text-dark: #2A3240;
    --text-light: #FFFFFF;
    --text-light-secondary: #E6E6E6;

    /* Backgrounds */
    --bg-light: #FFFFFF;
    --bg-dark: #2A3240;

    /* Fonts */
    --font-heading: "Archivo Black", sans-serif;
    --font-body: "Montserrat", sans-serif;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Typography --- */
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-optical-sizing: auto;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    color: var(--text-dark);
    line-height: 1.2;
}

/* --- Links --- */
a {
    color: var(--ice);
    text-decoration: none;
}

a:hover {
    color: var(--denim);
}

/* --- Light Sections (default) --- */
/* Text: --text-dark (#2A3240)
   Background: white or near-white
   Headers: --text-dark in Archivo Black
   Body: --text-dark in Montserrat */

/* --- Dark Sections --- */
.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--text-light);
}

.section-dark p,
.section-dark li,
.section-dark span {
    color: var(--text-light-secondary);
}

.section-dark a {
    color: white;
}

.section-dark a:hover {
    color: var(--silver);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--slate);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--denim);
    color: var(--text-light);
}

.btn-primary:visited {
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ice);
    border: 2px solid var(--ice);
}

.btn-secondary:hover {
    background-color: var(--ice);
    color: var(--text-dark);
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.site-nav {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--light-silver);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    padding-bottom: 7px;
}

.nav-logo img {
    height: 68px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover { 
    color: var(--ice);
}

.nav-links a.btn-primary {
    color: var(--text-light) !important;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--light-silver);
        gap: 16px;
    }

    .nav-links.nav-open {
        display: flex;
    }
}

/* --- Footer --- */
.site-footer {
    padding: 60px 0 24px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-light-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--steel);
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-light-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--ice);
}

.footer-copy {
    color: var(--steel);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .page-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

}