/* ==========================================================================
   2 Bros Paint Pros — base styles
   Design tokens + shared layout, navigation, footer, buttons, and sections.
   Page-specific styles live in their own CSS files (home.css, about.css, …).
   ========================================================================== */

:root {
    /* Brand palette: 061E29 (navy) · 1D546D (teal-blue) · 5F9598 (sage) · F3F4F4 (off-white) */
    --brand: #1d546d;
    --brand-dark: #061e29;
    --brand-accent: #5f9598;
    --brand-light: #e7eff0;        /* soft sage tint derived from 5F9598 */
    --ink: #061e29;
    --muted: #4c6670;              /* readable navy-slate (AA on light bg) */
    --surface: #ffffff;
    --bg: #f3f4f4;
    --border: #e1e6e7;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow-sm: 0 6px 18px rgba(6, 30, 41, 0.07);
    --shadow: 0 12px 30px rgba(6, 30, 41, 0.13);
}

/* ----- Layout: sticky footer via flex column ----- */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 38%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
}

/* Skip link — visible only when focused (Bootstrap .visually-hidden-focusable) */
.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    background: var(--brand-dark);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-xs);
    font-weight: 600;
    text-decoration: none;
}

/* Accessible focus styles */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid rgba(29, 84, 109, 0.45);
    outline-offset: 2px;
}

/* ----- Navigation ----- */
.site-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--ink);
}

/* Tablet & collapsed navbar (< 992px): larger tap targets in the menu */
@media (max-width: 991.98px) {
    .site-nav .navbar-nav .nav-link {
        min-height: 44px;
        padding-block: 0.6rem;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .cta-banner {
        padding: 2rem 1.25rem;
    }

    .site-footer {
        margin-top: 2.5rem;
        padding: 2rem 0 1.25rem;
    }

    .footer-divider {
        margin: 1.5rem 0 1rem;
    }

    /* Larger tap targets for footer links on phones */
    .footer-links a {
        display: inline-block;
        padding: 0.35rem 0;
        min-height: 44px;
    }
}

.site-nav .nav-link {
    color: var(--ink);
    font-weight: 600;
    padding-inline: 0.9rem;
    border-radius: var(--radius-xs);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--brand);
}

.site-nav .nav-link.active {
    color: var(--brand);
}

.site-nav .nav-cta {
    color: var(--brand);
}

/* ----- Buttons (brand system, layered on Bootstrap's .btn) ----- */
.btn-brand {
    background: var(--brand);
    border: 2px solid var(--brand);
    color: #fff;
    font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-brand-outline {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background: var(--brand);
    color: #fff;
}

/* ----- Shared section helpers ----- */
.section-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
}

.section-muted {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

/* Constrain centered lead paragraphs */
.lead.mx-auto {
    max-width: 680px;
}

.stat-number {
    color: var(--brand);
}

/* ----- Cards (shared) ----- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ----- CTA banner ----- */
.cta-banner {
    background: var(--brand-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
}

.cta-banner h2 {
    font-weight: 800;
}

/* ----- Footer ----- */
.site-footer {
    flex-shrink: 0;
    background: var(--ink);
    color: #c5d3d5;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-logo {
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-xs);
    padding: 3px;
}

.footer-brand {
    font-weight: 800;
    color: #fff;
}

.footer-text {
    color: #9fb3b5;
    overflow-wrap: anywhere;
}

.footer-heading {
    color: var(--brand-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #c5d3d5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #fff;
    text-decoration: underline;
}

.footer-links svg {
    vertical-align: -4px;
    margin-right: 0.4rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 2rem 0 1rem;
}

.footer-copy {
    color: #7e9498;
    font-size: 0.9rem;
}

/* ----- Honeypot (anti-spam) — visually and assistively hidden ----- */
.hp-field,
.hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
