:root {
    --primary-dark: #0f172a;
    --primary-light: #f0f9fa; /* Updated to match image */
    --accent-green: #10b981;
    --text-dark: #1e293b;
    --text-blue: #0052ff; /* Updated */
    --text-red: #c62828; /* Updated */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

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

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

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.text-dark-purple {
    color: #4a1d96 !important;
}

/* Hero Section Typography Overrides */
main h1.display-4 {
    color: #4a1d96 !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
}

main h2.h2 {
    color: #0052ff !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

main p.fst-italic {
    font-family: 'Georgia', serif !important;
    color: #c62828 !important;
    font-size: 1.15rem !important;
}

/* Hero Image Overrides */
main .rounded-circle.border-white {
    border-width: 8px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    width: 320px !important;
    height: 320px !important;
}

main .bg-success.rounded-pill {
    background-color: #00d65f !important;
    border: none !important;
    font-size: 14px !important;
    padding: 6px 16px !important;
    transform: rotate(10deg) !important;
    top: 25px !important;
    right: 15px !important;
}

/* Reduce Hero Banner Height */
main.position-relative.pt-5.pb-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

main .custom-container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.custom-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 991px) {
    .custom-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 767px) {
    .custom-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Hero Banner Full Width */
main .custom-container {
    max-width: 100% !important;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.fw-black {
    font-weight: 900 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-shadow {
    transition: box-shadow 0.3s ease-in-out;
}

/* Blog Image Zoom */
.blog-img-wrapper {
    overflow: hidden;
}
.blog-img-wrapper img {
    transition: transform 0.4s ease;
}
.card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

/* Marquee */
.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    align-items: center;
    line-height: 1.2;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    animation: marquee 15s linear infinite;
    min-width: max-content;
    flex: 0 0 auto;
    will-change: transform;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Grid 9 */
.grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-9 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-9 {
        grid-template-columns: repeat(9, 1fr);
        gap: 1rem;
    }
}

.grid-9 > div {
    padding: 1.25rem 0.5rem !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
}

.grid-9 > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: #e2e8f0 !important;
}

.grid-9 h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    line-height: 1.2 !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

.grid-9 i {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 48px;
    font-style: normal;
}

.grid-9 i::before {
    display: none !important; /* Hide original Bootstrap icon */
}

.grid-9 i svg {
    width: 36px;
    height: 36px;
    stroke-width: 2px;
}

/* Specific Icon Colors to match image */
.grid-9 div:nth-child(1) i { color: #2563eb !important; } /* AC - Blue */
.grid-9 div:nth-child(2) i { color: #ec4899 !important; } /* Beauty - Pink */
.grid-9 div:nth-child(3) i { color: #d97706 !important; } /* Carpenter - Orange/Brown */
.grid-9 div:nth-child(4) i { color: #06b6d4 !important; } /* Cleaning - Teal */
.grid-9 div:nth-child(5) i { color: #eab308 !important; } /* Electrical - Yellow */
.grid-9 div:nth-child(6) i { color: #a855f7 !important; } /* Painting - Purple */
.grid-9 div:nth-child(7) i { color: #22c55e !important; } /* Pest Control - Green */
.grid-9 div:nth-child(8) i { color: #3b82f6 !important; } /* Plumbing - Light Blue */
.grid-9 div:nth-child(9) i { color: #6366f1 !important; } /* Renovation - Indigo */

/* Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05) !important;
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.4s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* Gradients */
.grad-ac {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.grad-beauty {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.grad-clean {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.grad-banner {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

/* Footer Styles */
.footer-section {
    background-color: #0f2133;
    color: #ffffff;
    overflow-x: hidden;
}

.footer-section [class*="col-"] {
    min-width: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.footer-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 0.25rem;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-email {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #ffffff;
}

.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem 0.5rem;
    line-height: 1.35;
}

.footer-section .service-card-title > i {
    flex-shrink: 0;
    margin-top: 0.15em;
}

.footer-section .service-card-title > a {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-section .footer-nav-columns {
    min-width: 0;
}

.footer-section .footer-services-section .row {
    row-gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .footer-section .service-card {
        height: auto;
    }

    .footer-section .footer-nav-columns {
        flex-direction: column !important;
        row-gap: 1.5rem !important;
    }

    .footer-section .footer-services-section h3 {
        line-height: 1.4;
        padding-left: 2px;
        padding-right: 2px;
    }

    .footer-section .footer-bottom .custom-container {
        flex-wrap: wrap;
        justify-content: center !important;
        row-gap: 0.75rem;
    }

    .footer-section .footer-bottom .d-flex.gap-3 {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.35rem;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.hover-white {
    transition: color 0.2s ease;
}

.hover-white:hover {
    color: #ffffff !important;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Horizontal Scroll */
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.snap-x {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.snap-start {
    scroll-snap-align: start;
}

.snap-center {
    scroll-snap-align: center;
}

/* Slider Card Widths */
@media (min-width: 992px) {
    .snap-start[style*="width: 280px"] {
        width: calc((100% - (4 * 1.5rem)) / 4.5) !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .snap-start[style*="width: 280px"] {
        width: calc((100% - (2 * 1.5rem)) / 2.5) !important;
    }
}

@media (max-width: 767px) {
    .snap-center[style*="width: 160px"] {
        width: calc((100% - 1rem) / 1.5) !important;
    }
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-arrow:hover {
    background-color: #f9fafb;
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.right-arrow {
    right: 15px;
}

.left-arrow {
    left: 15px;
}

/* Floating Buttons & Popups */
.floating-btns-container {
    z-index: 1000;
}

@media (min-width: 768px) {
    .floating-btns-container {
        bottom: 40px !important;
    }
}

.contact-popup {
    animation: popupFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
}

.float-btn i {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .float-btn {
        width: 55px;
        height: 55px;
    }
    .float-btn i {
        font-size: 28px;
    }
}

.float-btn:hover {
    transform: scale(1.1);
}

.btn-whatsapp {
    background-color: #22c55e !important;
}

.btn-phone {
    background-color: #3b82f6 !important;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e293b !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
    padding: 8px 10px 0;
    z-index: 1045;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* Scoped: un-prefixed .nav-item clashes with Bootstrap .nav-item and hides/breaks layout */
.mobile-bottom-nav .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 2px;
    gap: 2px;
}

.mobile-bottom-nav .mob-nav-item i {
    font-size: 1.15rem;
    line-height: 1;
    display: block;
}

.mobile-bottom-nav .mob-nav-item span {
    line-height: 1.15;
    white-space: nowrap;
}

.mobile-bottom-nav .mob-nav-item.active,
.mobile-bottom-nav .mob-nav-item:hover {
    color: #ffffff !important;
}

.mobile-bottom-nav .nav-cart-wrapper {
    position: relative;
    flex: 0 0 auto;
    top: -14px;
    align-self: center;
}

.mobile-bottom-nav .nav-cart-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #22c55e !important;
    color: white !important;
    border: 4px solid #1e293b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav .nav-cart-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.mobile-bottom-nav .nav-cart-btn:hover {
    transform: scale(1.05);
}

/* Mobile Specific Overrides */
.d-md-none header.bg-primary-dark {
    background-color: #1e293b !important;
}

.d-md-none .bg-white.p-2 img {
    height: 180px !important;
    border-radius: 12px !important;
}

/* Mobile Category Grid */
.d-md-none .row.g-2 > div > div {
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    padding: 1rem 0.5rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.d-md-none .row.g-2 i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-bottom: 8px !important;
    font-style: normal;
}

.d-md-none .row.g-2 i::before {
    display: none !important;
}

.d-md-none .row.g-2 i svg {
    width: 28px;
    height: 28px;
    stroke-width: 2px;
}

/* Mobile Icon Colors */
.d-md-none .row.g-2 > div:nth-child(1) i { color: #2563eb !important; }
.d-md-none .row.g-2 > div:nth-child(2) i { color: #ec4899 !important; }
.d-md-none .row.g-2 > div:nth-child(3) i { color: #d97706 !important; }
.d-md-none .row.g-2 > div:nth-child(4) i { color: #06b6d4 !important; }
.d-md-none .row.g-2 > div:nth-child(5) i { color: #eab308 !important; }
.d-md-none .row.g-2 > div:nth-child(6) i { color: #a855f7 !important; }
.d-md-none .row.g-2 > div:nth-child(7) i { color: #22c55e !important; }
.d-md-none .row.g-2 > div:nth-child(8) i { color: #3b82f6 !important; }
.d-md-none .row.g-2 > div:nth-child(9) i { color: #6366f1 !important; }

.d-md-none .row.g-2 div.text-secondary {
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

/* Mobile Layout Spacing Standardization */
@media (max-width: 767px) {
    .d-md-none header,
    .d-md-none .bg-white.p-2,
    .d-md-none section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Utility */
.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

/* Hover Utilities */
.hover-bg-primary:hover {
    background-color: var(--bs-primary) !important;
}

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

.hover-border-primary {
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.hover-border-primary:hover {
    border-color: var(--bs-primary) !important;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a53be);
    color: white;
}
