/* =========================================
   Real African Fire Fighters — Custom Styles
   © 2026 RAFF Zambia
   ========================================= */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
    color: #222;
    overflow-x: hidden;
}

/* -----------------------------------------
   NAVBAR
   ----------------------------------------- */
.navbar {
    padding: 0.6rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.navbar-brand span {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #ff4d4d !important;
}

/* -----------------------------------------
   HERO — ANIMATED FIRE GRADIENT
   ----------------------------------------- */
.hero-fire {
    position: relative;
    min-height: 88vh;
    background: linear-gradient(-45deg, #1a0000, #4a0000, #8b0000, #dc3545, #ff6b35);
    background-size: 400% 400%;
    animation: fireGradient 14s ease infinite;
    padding-top: 56px;
    overflow: hidden;
}

@keyframes fireGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 100, 0, 0.35), transparent 65%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

.hero-title {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    animation: fadeUp 1.2s ease both;
}

.hero-subtitle {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    animation: fadeUp 1.2s ease 0.2s both;
}

.hero-fire .btn {
    animation: fadeUp 1.2s ease 0.4s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------
   PAGE HEADER (services, quote)
   ----------------------------------------- */
.page-header-fire {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #8b0000, #dc3545, #ff6b35);
    background-size: 300% 300%;
    animation: fireGradient 12s ease infinite;
    margin-top: 56px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* -----------------------------------------
   BUTTONS
   ----------------------------------------- */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.25s ease;
}

.btn-danger:hover {
    background-color: #b02a37;
    border-color: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.35);
}

.btn-success {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
    transition: all 0.25s ease;
}

.btn-success:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* -----------------------------------------
   CARDS
   ----------------------------------------- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15) !important;
}

.card h4, .card h3 {
    color: #dc3545;
    font-weight: 700;
}

/* -----------------------------------------
   FLOATING SERVICE ICONS (services page)
   ----------------------------------------- */
.service-icon-anim {
    display: inline-block;
    animation: floatRotate 6s ease-in-out infinite;
}

.service-icon-anim i {
    font-size: 180px;
    color: #dc3545;
    filter: drop-shadow(0 8px 20px rgba(220, 53, 69, 0.35));
}

@keyframes floatRotate {
    0%   { transform: translateY(0)    rotate(-6deg); }
    50%  { transform: translateY(-20px) rotate(6deg); }
    100% { transform: translateY(0)    rotate(-6deg); }
}

/* -----------------------------------------
   FLOATING ICONS (homepage service cards)
   ----------------------------------------- */
.icon-float {
    animation: gentleFloat 3.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Stagger each card icon slightly */
.service-card:nth-child(1) .icon-float { animation-delay: 0s; }
.service-card:nth-child(2) .icon-float { animation-delay: 0.5s; }
.service-card:nth-child(3) .icon-float { animation-delay: 1s; }

/* -----------------------------------------
   SHIELD GLOW (homepage about section)
   ----------------------------------------- */
.shield-glow {
    display: inline-block;
    animation: shieldPulse 4s ease-in-out infinite;
}

.shield-glow i {
    font-size: 220px;
    color: #dc3545;
    filter: drop-shadow(0 0 30px rgba(220, 53, 69, 0.6));
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 25px rgba(220, 53, 69, 0.5)); }
    50%      { transform: scale(1.06); filter: drop-shadow(0 0 45px rgba(220, 53, 69, 0.85)); }
}

/* -----------------------------------------
   QUOTE PAGE — SLIDING SERVICE CARDS BACKGROUND
   ----------------------------------------- */
.quote-bg-anim {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

.slide-track {
    display: flex;
    width: max-content;
    animation: slideLoop 40s linear infinite;
    gap: 30px;
}

.slide-card {
    flex: 0 0 auto;
    width: 220px;
    height: 160px;
    background: #fff;
    border: 3px solid #dc3545;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.slide-card i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 10px;
}

.slide-card span {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

@keyframes slideLoop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Form sits above the animation */
.quote-card {
    position: relative;
    z-index: 2;
    border-radius: 16px;
}

/* -----------------------------------------
   FORM
   ----------------------------------------- */
.form-control:focus,
.form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    color: #333;
}

/* -----------------------------------------
   CTA GLOW
   ----------------------------------------- */
.cta-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0000, #8b0000) !important;
}

.cta-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 100, 0, 0.3), transparent 60%);
    animation: glowPulse 5s ease-in-out infinite;
    pointer-events: none;
}

.cta-glow .container {
    position: relative;
    z-index: 2;
}

/* -----------------------------------------
   FOOTER
   ----------------------------------------- */
footer {
    border-top: 4px solid #dc3545;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ff4d4d !important;
}

/* -----------------------------------------
   TRUST BAR ICONS
   ----------------------------------------- */
.bg-danger .container i {
    margin-right: 6px;
}

/* -----------------------------------------
   SECTIONS
   ----------------------------------------- */
section {
    scroll-margin-top: 70px;
}

h2.text-danger {
    letter-spacing: 1px;
}

/* -----------------------------------------
   MOBILE OPTIMIZATIONS
   ----------------------------------------- */
@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 0.85rem;
    }

    .hero-fire {
        min-height: 75vh;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 1.9rem;
        letter-spacing: 1.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header-fire {
        padding: 100px 0 40px;
    }

    .service-icon-anim i {
        font-size: 100px;
        margin-top: 25px;
    }

    .shield-glow i {
        font-size: 140px;
        margin-top: 20px;
    }

    .quote-bg-anim {
        opacity: 0.05;
    }

    .slide-card {
        width: 160px;
        height: 130px;
    }

    .slide-card i {
        font-size: 2rem;
    }

    .slide-card span {
        font-size: 0.8rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* -----------------------------------------
   REDUCED MOTION (accessibility + battery)
   ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}