/* Custom CSS to override template colors */

:root {
    --bs-primary: #FF002A !important;
    --bs-secondary: #DCD2DB !important;
    --bs-dark: #000000 !important;
    
    --primary: #FF002A !important;
    --secondary: #DCD2DB !important;
    --dark: #000000 !important;
}

.btn-primary {
    background-color: #FF002A !important;
    border-color: #FF002A !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: #e0001f !important;
    border-color: #e0001f !important;
    color: #FFFFFF !important;
}

.btn-secondary {
    background-color: #DCD2DB !important;
    border-color: #DCD2DB !important;
    color: #000000 !important;
}

.btn-secondary:hover {
    background-color: #c5bbc4 !important;
    border-color: #c5bbc4 !important;
    color: #000000 !important;
}

.text-primary {
    color: #FF002A !important;
}

.text-secondary {
    color: #DCD2DB !important;
}

.bg-primary {
    background-color: #FF002A !important;
}

.bg-secondary {
    background-color: #DCD2DB !important;
}

.bg-dark {
    background-color: #000000 !important;
}

/* Button hover text colors */
.btn:hover {
    color: #FFFFFF !important;
}

.btn.btn-secondary:hover {
    color: #000000 !important;
}

/* Navigation Active State */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #FF002A !important;
}

/* Footer Social Icons */
.footer .btn.btn-social:hover {
    background: #FF002A !important;
    color: #FFFFFF !important;
}

/* Testimonial Carousel Active Dot */
.testimonial-carousel .owl-dot.active {
    background-color: #FF002A !important;
}

/* Back to Top Button */
.back-to-top {
    background-color: #FF002A !important;
    color: #FFFFFF !important;
}

.back-to-top:hover {
    background-color: #e0001f !important;
    color: #FFFFFF !important;
}

/* Link Colors */
a {
    color: #FF002A !important;
}

a:hover {
    color: #cc0022 !important;
}

/* Service Tabs */
.service .nav .nav-link.active {
    background-color: #FF002A !important;
}

/* Team Overlay Buttons */
.team-item .team-overlay .btn:hover {
    color: #FFFFFF !important;
    background: #FF002A !important;
}

/* Quote Button in Header */
.navbar-light a.btn.btn-primary {
    color: #FFFFFF !important;
}

.navbar-light a.btn.btn-primary:hover {
    color: #FFFFFF !important; 
    background-color: #e0001f !important;
}

/* Fix for all button types */
.btn {
    font-weight: 600 !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}

.btn-primary, .btn-primary:hover,
.btn-outline-primary:hover,
.btn-light:hover,
.btn-dark, .btn-dark:hover {
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: #FF002A !important;
    border-color: #FF002A !important;
}

.btn-outline-primary:hover {
    background-color: #FF002A !important;
}

.btn-square.btn-primary, 
.btn-sm-square.btn-primary,
.btn-lg-square.btn-primary {
    color: #FFFFFF !important;
}

.btn-square:hover, 
.btn-sm-square:hover,
.btn-lg-square:hover {
    color: #FFFFFF !important;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background-color: #25D366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white !important;
    transform: scale(1.05);
}

.whatsapp-btn i {
    font-size: 30px;
    margin-right: 0;
}

/* Remove the media query as button is now circular at all screen sizes */
@media (max-width: 767.98px) {
    .whatsapp-btn {
        width: 60px;
        height: 60px;
    }
}

/* Redesigned Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-overlay p {
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-card:hover .service-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.service-card:hover .service-title {
    background-color: var(--primary);
} 