/* Blue Bird Ambulance Services - Blue Theme */

:root {
    --theme-primary: #0d6efd;
    --theme-primary-dark: #0a58ca;
    --theme-primary-darker: #084298;
    --theme-light: #6ea8fe;
    --theme-bg: #e7f1ff;
    --theme-banner: #fff3cd;
    --dark-gray: #212529;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
}

/* Navbar */
.navbar-blue {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%) !important;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.3);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--theme-primary) !important;
    border-radius: 8px;
}

/* Theme utility classes */
.theme-text { color: var(--theme-primary) !important; }
.btn-theme {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    border: none;
    color: white;
}
.btn-theme:hover {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary-darker) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
}
.btn-outline-theme {
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
}
.btn-outline-theme:hover {
    background-color: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

.card-theme {
    border: 2px solid rgba(13, 110, 253, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-theme:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.15);
}
.card-theme-accent {
    border-color: var(--theme-primary);
    background: linear-gradient(to bottom, #f8fbff, #fff);
}

/* Emergency banner - blue theme */
.emergency-banner {
    background: linear-gradient(90deg, #cfe2ff 0%, #b6d4fe 100%);
    color: #084298;
    font-size: 1.05rem;
    animation: pulse 2s infinite;
}
.emergency-banner .emergency-label {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Hero - less gap on right, bigger vehicle */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
}
/* Wider content area: less empty space on left/right, still balanced */
main .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
.hero-row {
    gap: 0;
}
.hero-vehicle-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ambulance-icon {
    animation: float 3s ease-in-out infinite;
}
.ambulance-vehicle .ambulance-emoji {
    font-size: 340px;
    line-height: 1;
    display: inline-block;
    max-width: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features */
.features-section {
    background: #fff;
}
.feature-icon, .service-icon, .value-icon, .contact-icon {
    display: inline-block;
}

/* Services */
.services-section {
    background: var(--theme-bg);
}

/* About - distinct subsections */
.about-section {
    background: #fff;
}
.about-intro {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-bottom: 3px solid var(--theme-primary);
}
.about-intro h2 {
    color: var(--theme-primary);
    font-weight: 700;
}
.about-mission {
    background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
    border-top: 2px solid rgba(13, 110, 253, 0.3);
    border-bottom: 2px solid rgba(13, 110, 253, 0.3);
}
.about-story {
    background: #f8fafc;
}
.about-story-box {
    background: #fff;
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.about-values {
    background: linear-gradient(180deg, #f0f7ff 0%, #e7f1ff 100%);
    padding-left: 0;
    padding-right: 0;
}
.about-values .value-card {
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    border: 2px solid rgba(13, 110, 253, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-values .value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}
.about-stats {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: #fff;
}
.about-stats .stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.about-stats .stat-card h3 {
    color: #fff !important;
    font-weight: 800;
}
.about-stats .stat-card .lead {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}
.team-stat h3 {
    font-weight: bold;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: white;
}
.cta-section .btn-light:hover {
    background-color: rgba(255,255,255,0.9);
    color: var(--theme-primary);
}

/* Contact */
.contact-section {
    background: var(--theme-bg);
}
.emergency-contact-inline {
    background: linear-gradient(135deg, #cfe2ff 0%, #b6d4fe 100%);
    border: 2px solid var(--theme-primary);
    color: #052c65;
}
.emergency-contact-inline .emergency-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #052c65;
    letter-spacing: 0.03em;
}
.emergency-contact-inline .btn-theme {
    color: #fff;
}

.contact-form-section .card,
.contact-section .card {
    border: none;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.1);
}

/* Footer */
.footer-blue {
    background: linear-gradient(135deg, var(--theme-primary-darker) 0%, #052c65 100%);
}

/* Floating buttons */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-button 2s infinite;
}

.floating-whatsapp-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-button-whatsapp 2s infinite;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse-button-whatsapp {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
}

.floating-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.6);
    color: white;
}

@keyframes pulse-button {
    0%, 100% { box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(25, 135, 84, 0.7); }
}

body.contact-page .floating-call-btn,
body.contact-page .floating-whatsapp-btn {
    display: none !important;
}

/* Scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 70px;
}

@media (min-width: 1400px) {
    main .container {
        max-width: 1380px;
    }
}

/* Mobile: correct layout for phone */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    .hero-title {
        font-size: 1.75rem !important;
        text-align: center;
    }
    .hero-section .lead {
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-vehicle-col {
        margin-bottom: 1rem;
    }
    .ambulance-vehicle .ambulance-emoji {
        font-size: 200px !important;
    }
}

/* Phone: extra space so floating buttons don't overlap CTA buttons */
@media (max-width: 768px) {
    .hero-btns {
        padding-bottom: 5rem;
    }
}

@media (max-width: 768px) {
    body { padding-top: 56px; }
    main .container,
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-section h1 { font-size: 1.65rem !important; }
    .ambulance-vehicle .ambulance-emoji { font-size: 180px !important; }
    .emergency-banner { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
    .emergency-banner .emergency-label { font-size: 1.1rem; }
    .emergency-contact-inline .emergency-heading { font-size: 1.4rem; }
    .emergency-contact-inline .display-5 { font-size: 1.5rem; }
    .floating-call-btn {
        width: 52px; height: 52px;
        bottom: 18px; right: 18px;
    }
    .floating-whatsapp-btn {
        width: 52px; height: 52px;
        bottom: 78px; right: 18px;
    }
    .navbar-brand .fs-4 { font-size: 1.1rem !important; }
    section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

@media (max-width: 576px) {
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-btns { padding-bottom: 5.5rem; }
    .ambulance-vehicle .ambulance-emoji { font-size: 160px !important; }
}
