/*
 * SPR Modern Blue Theme (Refined)
 * Primary Color: #39388e
 */

:root {
    --spr-blue: #39388e;
    --spr-dark-blue: #2c2b70;
    --spr-accent: #ff9900;
    --spr-text: #2d3436;
    --spr-bg-light: #f8f9fa; /* Slightly lighter for better contrast */
}

/* --- Background Animation Setup --- */
#spr-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    pointer-events: none; /* Let clicks pass through */
    background: linear-gradient(to bottom, #ffffff, #f0f2f5); /* Subtle gradient base */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    color: var(--spr-text);
    background-color: transparent; /* Allow canvas to show */
    position: relative;
}

/* --- Typography & Colors --- */
.text-spr-blue { color: var(--spr-blue) !important; }
.text-spr-blue:hover { color: var(--spr-dark-blue) !important; text-decoration: none; }

.btn-warning {
    background-color: var(--spr-accent);
    border-color: var(--spr-accent);
    color: white !important; /* Fixed text color for better contrast */
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-warning:hover {
    background-color: #e68a00;
    transform: translateY(-2px); /* Slight lift effect */
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important; /* Slight transparency */
    backdrop-filter: blur(5px); /* Modern blur effect */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}
.nav-link { font-weight: 500; color: var(--spr-text) !important; }
.nav-link:hover { color: var(--spr-blue) !important; }

/* --- Sections --- */
section {
    position: relative; /* Ensure sections sit above canvas if they have backgrounds */
}

/* --- BUG FIX: Call to Action / Support Section --- */
.call-to-action {
    position: relative;
    /* FALLBACK COLOR: Dark Blue (Ensures white text is visible if image fails) */
    background-color: var(--spr-blue); 
    /* Optional: Add image if available */
    background-image: url('../img/bg-masthead.jpg'); 
    background-size: cover;
    background-position: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    color: white !important;
}

/* Ensure overlay darkens enough for text readability */
.call-to-action .overlay {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 100%;
    background-color: rgba(44, 43, 112, 0.85); /* Strong blue tint overlay */
    z-index: 1;
}

.call-to-action .container {
    position: relative;
    z-index: 2; /* Text sits on top of overlay */
}

/* Text visibility enforcers */
.call-to-action h2, 
.call-to-action p, 
.call-to-action li, 
.call-to-action strong {
    color: white !important;
}

/* --- Footer --- */
.footer {
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #eee;
}

/* --- Floating Help Button --- */
.btn-floating-help {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--spr-blue);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(57, 56, 142, 0.4);
    z-index: 1050;
    transition: all 0.3s ease;
    border: 2px solid white;
}
.btn-floating-help:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--spr-accent);
    color: white;
}
/* --- Text Readability Fix --- */
.text-overlay-card {
    background-color: rgba(255, 255, 255, 0.92); /* 92% Opaque White */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    backdrop-filter: blur(5px); /* Optional: Blurs the background image slightly behind the text */
    border: 1px solid rgba(255, 255, 255, 0.5);
}
