/* Custom enhancements for Rugero Consulting */

/* Sticky navbar spacing */
body {
    padding-top: 0;
}

/* Add padding to content to account for fixed navbar */
.wrap {
    margin-top: 0;
}

/* Adjust hero section for fixed navbar */
.hero-wrap {
    margin-top: 80px !important;
}

@media (max-width: 991.98px) {
    .hero-wrap {
        margin-top: 70px !important;
    }
}

/* Ensure navbar container has proper background */
.ftco-navbar-light .container {
    background: transparent;
}

/* Fix footer text colors - ensure all text is visible */
.footer {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer ul.list-unstyled {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer ul.list-unstyled li {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer ul.list-unstyled li a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer ul.list-unstyled li a:hover {
    color: #ce9f45 !important;
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer .copyright a {
    color: #ce9f45 !important;
}

/* Ensure footer headings are white */
.footer .footer-heading {
    color: #fff !important;
}

/* Make top contact bar visible above fixed navbar */
.wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    width: 100%;
    margin-top: 0;
}

/* Adjust navbar position to account for top bar */
.ftco-navbar-light {
    top: 40px !important;
}

@media (max-width: 991.98px) {
    .ftco-navbar-light {
        top: 0 !important;
    }
    
    .wrap {
        display: none; /* Hide top bar on mobile to save space */
    }
}

/* Adjust hero section margin for top bar + navbar */
.hero-wrap {
    margin-top: 120px !important;
}

@media (max-width: 991.98px) {
    .hero-wrap {
        margin-top: 70px !important;
    }
}

/* Ensure navbar stays white and fixed */
.ftco-navbar-light {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Improved button styles */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced card hover effects */
.services {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Improved form styling */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ce9f45;
    box-shadow: 0 0 0 0.2rem rgba(206, 159, 69, 0.25);
}

/* Alert styling */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced testimonial cards */
.testimony-wrap {
    transition: transform 0.3s ease;
}

.testimony-wrap:hover {
    transform: translateY(-5px);
}

/* Better spacing and typography */
.heading-section h2 {
    line-height: 1.3;
}

/* Improved hero section */
.hero-wrap .slider-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modern card design */
.block-7 {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.block-7:hover {
    border-color: #ce9f45;
    transform: translateY(-5px);
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .hero-wrap .slider-text h1 {
        font-size: 32px !important;
    }
    
    .services {
        margin-bottom: 30px;
    }
}

/* Loading animation */
.submitting {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ce9f45;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Improved footer form */
.footer .form-consultation .form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Better blog entry styling */
.blog-entry {
    transition: all 0.3s ease;
}

.blog-entry:hover {
    box-shadow: 0px 15px 30px -10px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Enhanced counter numbers */
.ftco-counter .number {
    font-weight: 800;
    background: linear-gradient(135deg, #ce9f45 0%, #1d469a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved navigation */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: #ce9f45;
    border-radius: 2px;
}

/* Better contact form */
.contact-wrap {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-wrap {
    border-radius: 10px;
}

/* Success message animation */
.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
}


/* Floating WhatsApp Contact Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white !important;
}

