/* ==========================================================================
   FL510 – Site CSS (sticky header + updated colors)
   ========================================================================== */

/* ---------------------------
   Brand variables
---------------------------- */
:root {
    /* Core palette */
    --fl510-blue: #0B3D91; /* Rich Blue (primary) */
    --fl510-linen: #FAF0E6; /* Linen White (background) */
    --fl510-charcoal: #2B2B2B; /* Charcoal (text) */
    --fl510-muted: #8C8C8C; /* Muted text */
    --fl510-crimson: #9C0D10; /* Accent */
    /* Aliases used throughout */
    --fl510-bg: var(--fl510-linen);
    --fl510-text: var(--fl510-charcoal);
    --fl510-primary: var(--fl510-blue);
    --fl510-accent: var(--fl510-crimson);
    /* layout + radius */
    --fl510-maxw: 1100px;
    --fl510-radius: 12px;
    /* focus + shadows */
    --fl510-focus-ring: 0 0 0 3px rgba(11, 61, 145, 0.25);
    --fl510-card-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --fl510-btn-shadow: 0 6px 18px rgba(11, 61, 145, 0.25);
}

/* ---------------------------
   Base
---------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    color: var(--fl510-text);
    background: var(--fl510-bg);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--fl510-primary);
    text-underline-offset: 2px;
    text-decoration-thickness: .08em;
}

    a:hover {
        filter: brightness(1.05);
    }

:focus-visible {
    outline: none;
    box-shadow: var(--fl510-focus-ring);
    border-radius: 6px;
}

/* If Bootstrap is present: keep its focus helpers */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ---------------------------
   Layout
---------------------------- */
.container {
    max-width: var(--fl510-maxw);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sticky header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: saturate(140%) blur(6px);
}

    .site-header .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .85rem 0;
    }

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--fl510-primary);
    font-size: 1.1rem;
}

.site-header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--fl510-text);
}

    .site-header nav a:hover {
        color: var(--fl510-primary);
    }

/* Footer */
.site-footer {
    padding: 1rem 0;
    color: var(--fl510-muted);
}

/* ---------------------------
   Hero (uses blue + linen with subtle accent tint)
---------------------------- */
.fl510-hero {
    background: radial-gradient(1200px 500px at 12% 0%, rgba(11,61,145,.10), transparent 60%), linear-gradient(180deg, #ffffff, rgba(250,240,230,.85) 70%, transparent);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    .fl510-hero .container {
        padding: 4rem 1rem 3rem;
    }

    .fl510-hero h1 {
        font-size: 2.4rem;
        line-height: 1.15;
        margin: 0 0 .5rem;
        color: var(--fl510-primary);
    }

    .fl510-hero .tagline {
        font-size: 1.1rem;
        color: var(--fl510-muted);
        margin: 0 0 1.25rem;
    }

/* ---------------------------
   Buttons
---------------------------- */
.btn {
    display: inline-block;
    padding: .75rem 1rem;
    border-radius: .75rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
    will-change: transform, box-shadow, filter;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--fl510-primary);
    color: #fff;
}

    .btn-primary:hover {
        box-shadow: var(--fl510-btn-shadow);
        filter: brightness(1.05);
    }

/* Secondary uses white with blue border; accent hover goes crimson */
.btn-secondary {
    background: #fff;
    color: var(--fl510-primary);
    border-color: var(--fl510-primary);
}

    .btn-secondary:hover {
        background: var(--fl510-accent);
        color: #fff;
        border-color: var(--fl510-accent);
    }

/* CTA row */
.cta-row {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

/* ---------------------------
   Cards / Grid
---------------------------- */
.fl510-grid .container {
    padding: 2.25rem 1rem;
}

.fl510-grid .grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--fl510-radius);
    padding: 1.25rem;
    box-shadow: var(--fl510-card-shadow);
}

    .card h3 {
        margin-top: 0;
        color: var(--fl510-primary);
    }

/* ---------------------------
   Contact block
---------------------------- */
.fl510-contact {
    padding: 2.75rem 0;
    background: linear-gradient(90deg, rgba(11,61,145,.10), rgba(156,13,16,.08)); /* blue -> crimson accent */
    border-top: 1px solid rgba(0,0,0,.06);
}

    .fl510-contact h2 {
        margin: 0 0 .5rem;
    }

    .fl510-contact p {
        margin: 0 0 1rem;
    }

/* ---------------------------
   Utilities
---------------------------- */
.u-center {
    display: grid;
    place-items: center;
}

.u-hide {
    display: none !important;
}

.u-m-0 {
    margin: 0 !important;
}

.u-mb-0 {
    margin-bottom: 0 !important;
}

.u-mb-1 {
    margin-bottom: .5rem !important;
}

.u-mb-2 {
    margin-bottom: 1rem !important;
}

.u-p-1 {
    padding: .5rem !important;
}

.u-p-2 {
    padding: 1rem !important;
}

/* ---------------------------
   Responsive tweaks
---------------------------- */
@media (max-width: 640px) {
    .site-header nav a {
        margin-left: .75rem;
    }

    .fl510-hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .fl510-hero .container {
        padding-top: 5rem;
        padding-bottom: 3.5rem;
    }
}

/* ---------------------------
   Reduced motion
---------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .btn {
        transition: none;
    }
}
