/* 
 * Bryan Nunke Insurance Agency - Complete Custom Styles
 * Color Scheme: Blue (Primary/Headers) and Red (CTAs)
 * Updated: Footer styling improved
 */

:root {
    --primary-blue: #003087;
    --secondary-blue: #0047AB;
    --accent-red: #C5192D;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
}

/* Navbar - Blue */
.navbar {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile Call Button - Always Visible and Prominent */
.mobile-call-btn {
    font-weight: 700;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(197, 25, 45, 0.4);
    white-space: nowrap;
}

.mobile-call-btn:hover {
    box-shadow: 0 4px 12px rgba(197, 25, 45, 0.6);
}

/* Desktop Call Button in Navbar */
.navbar .btn-danger {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 6px rgba(197, 25, 45, 0.3);
}

.navbar .btn-danger:hover {
    box-shadow: 0 4px 10px rgba(197, 25, 45, 0.5);
}

/* ============================================
   HERO SECTION - WITH BACKGROUND IMAGE
   ============================================ */
.hero-section {
    min-height: 600px;
    padding: 100px 0;
    background-image: url('/static/images/hero/hero-handshake.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Dark blue overlay for brand consistency and text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.88) 0%, rgba(0, 71, 171, 0.82) 100%);
    z-index: 1;
}

/* Ensure hero content is above overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section .display-3 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 4rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem !important;
}

.hero-section p,
.hero-section .lead {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.75rem !important;
    margin-bottom: 1.25rem !important;
}

.hero-section .fs-5 {
    font-size: 1.4rem !important;
    margin-bottom: 2rem !important;
}

/* Hero button - make it bigger */
.hero-section .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.25rem;
}

/* ============================================
   SERVICE CARDS WITH IMAGES
   ============================================ */
.service-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card .card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-bottom: 3px solid var(--primary-blue);
}

/* ============================================
   WHY CHOOSE SECTION IMAGE
   ============================================ */
.why-choose-image {
    border-radius: 0.5rem;
}

/* Ensure check icons don't shrink on small screens */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 48, 135, 0.3);
}

.btn-danger {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #A01525;
    border-color: #A01525;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(197, 25, 45, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Page Headers */
.page-header {
    background-color: var(--primary-blue);
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ============================================
   FOOTER - UPDATED STYLING
   ============================================ */
footer {
    background-color: var(--primary-blue) !important;
    margin-top: 0 !important;
    padding: 3rem 0 1rem 0;
}

/* Footer Section Headers - Clean white headers */
footer h5,
footer h6,
footer .h5,
footer .h6 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

/* Alternative: Uncomment for red headers
footer h5,
footer h6 {
    color: var(--accent-red) !important;
}
*/

/* Footer body text */
footer p,
footer a,
footer li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer links */
footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    opacity: 1;
}

/* Contact info icons */
footer .bi {
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Social media icons */
footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

footer .social-links svg,
footer .social-links i {
    color: #ffffff;
    font-size: 1.2rem;
    position: relative;
    left: 4px;  /* Shift icon 5px to the right */
    top: -1px;  /* Shift icon 2px up */
}

/* Copyright section */
footer .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem;
}

/* Footer spacing between sections */
footer .row > div {
    margin-bottom: 1.5rem;
}

/* Remove extra spacing before footer */
section.bg-primary:last-of-type {
    margin-bottom: 0 !important;
}

.py-5:last-of-type {
    margin-bottom: 0 !important;
}

/* Service Sections */
.service-section {
    padding: 20px 0;
}

.service-section h2 {
    color: var(--primary-blue);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 135, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-danger {
    background-color: var(--accent-red) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.text-white {
    color: #ffffff !important;
}

/* Ensure white text on blue backgrounds */
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.bg-primary .lead {
    color: #ffffff !important;
}

/* Ensure white text on red backgrounds */
.bg-danger h1,
.bg-danger h2,
.bg-danger h3,
.bg-danger p,
.bg-danger .lead {
    color: #ffffff !important;
}

/* Buttons on red CTA section */
.bg-danger .btn-danger {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--accent-red);
}

.bg-danger .btn-danger:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-red);
}

/* Social Links */
.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Alerts */
.alert-info {
    background-color: #E7F3FF;
    border-color: var(--primary-blue);
    color: var(--text-dark);
}

.alert-warning {
    background-color: #FFF3CD;
    border-color: #FFD700;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 60px 0;
        background-position: 60% center;
    }
    
    .hero-section h1,
    .hero-section .display-3 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.35rem !important;
    }
    
    .hero-section .fs-5 {
        font-size: 1.1rem !important;
    }
    
    .hero-section .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    footer {
        padding: 2rem 0 1rem 0;
    }
    
    footer h5,
    footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Make mobile call button even more prominent on tablets */
    .mobile-call-btn {
        font-size: 1rem;
        padding: 0.6rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-section h1,
    .hero-section .display-3 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.2rem !important;
    }
    
    .hero-section .fs-5 {
        font-size: 1rem !important;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Extra prominent call button on small phones */
    .mobile-call-btn {
        font-size: 1.05rem;
        padding: 0.65rem 1.5rem;
        box-shadow: 0 3px 10px rgba(197, 25, 45, 0.5);
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Accessibility */
a:focus,
button:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}