:root {
    --primary-color: #0066cc;
    --secondary-color: #28a745;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
iframe,
video,
canvas {
    max-width: 100%;
}

.container,
.container-fluid,
.row {
    max-width: 100%;
}

/* Navbar */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    min-width: 0;
    max-width: calc(100vw - 110px);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.nav-link {
    font-weight: 600;
    margin: 0 0.5rem;
    color: var(--dark-color) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    color: var(--primary-color);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: scale(1.05);
}

/* Icons */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.phone-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover, .phone-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Pulse Animation */
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
}

.whatsapp-btn {
    animation: pulse-animation 2s infinite;
}

.phone-btn {
    animation: pulse-animation 2s infinite;
    animation-delay: 1s;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.accordion-button {
    padding: 20px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    color: var(--dark-color);
    background: transparent;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button::after {
    filter: grayscale(1);
}

.accordion-body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #666;
}

/* Service Area Section */
.service-area {
    padding: 80px 0;
    background: white;
}

.neighborhood-badge {
    background: #eef2f7;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    display: inline-block;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.neighborhood-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 450px;
}

/* Social Sharing */
.share-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    margin-right: 10px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #3b5998; }

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
    opacity: 0.9;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-card {
    border: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: scale(1.02);
}

/* Comparison Slider */
.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.comparison-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.comparison-after {
    width: 50%;
    z-index: 2;
    overflow: hidden;
}

.comparison-handle {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.comparison-handle::after {
    content: "\f337";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.label-before, .label-after {
    position: absolute;
    bottom: 20px;
    z-index: 4;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    pointer-events: none;
}

.label-before { right: 20px; }
.label-after { left: 20px; }

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 50px;
}

/* Language Switcher */
.lang-switch {
    background: var(--primary-color);
    color: white !important;
    border-radius: 20px;
    padding: 5px 15px !important;
    font-size: 0.9rem;
}

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991px) {

    /* Hide search from navbar — redundant on mobile */
    .navbar .navbar-search-wrap {
        display: none !important;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    .navbar .container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .navbar-brand {
        font-size: 1.05rem;
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hamburger button */
    .navbar-toggler {
        flex: 0 0 auto;
        border: none;
        padding: 6px 10px;
        background: rgba(0, 102, 204, 0.08);
        border-radius: 10px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Slide-down mobile menu */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        border-top: 3px solid var(--primary-color);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.13);
        padding: 12px 0 18px;
        z-index: 999;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Each nav item row */
    .navbar-collapse .navbar-nav {
        flex-direction: column !important;
        gap: 0;
        padding: 0 16px;
    }

    .navbar-collapse .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-collapse .nav-item:last-child {
        border-bottom: none;
        padding-top: 10px;
    }

    .navbar-collapse .nav-link {
        padding: 13px 8px !important;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--dark-color) !important;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .navbar-collapse .nav-link:hover {
        color: var(--primary-color) !important;
        background: none;
    }

    /* Language button inside mobile menu */
    .navbar-collapse .lang-switch {
        display: inline-block;
        margin-top: 4px;
        padding: 9px 22px !important;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 700;
        text-align: center;
        width: 100%;
    }

    /* Call-to-action strip inside mobile menu */
    .mobile-nav-cta {
        display: flex;
        gap: 10px;
        padding: 14px 16px 0;
    }

    .mobile-nav-cta a {
        flex: 1;
        text-align: center;
        padding: 11px 6px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
    }

    .mobile-nav-cta .cta-call {
        background: var(--primary-color);
        color: #fff;
    }

    .mobile-nav-cta .cta-wa {
        background: #25d366;
        color: #fff;
    }
}

/* =========================================================
   GENERAL MOBILE FIXES
   ========================================================= */
@media (max-width: 768px) {

    .section-padding {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        width: 100%;
        padding: 1.25rem;
    }

    .search-form .input-group {
        max-width: 100%;
    }

    .category-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .category-tabs .btn {
        margin: 0 !important;
        white-space: normal;
        max-width: 100%;
    }

    .card {
        max-width: 100%;
    }

    .whatsapp-btn,
    .phone-btn {
        right: 14px;
        width: 54px;
        height: 54px;
    }

    .phone-btn {
        bottom: 92px;
    }

    .whatsapp-btn {
        bottom: 24px;
    }
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testi-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    padding: 22px;
    height: 100%;
    border-right: 4px solid #1a56db;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .2s;
}
.testi-card:hover { transform: translateY(-4px); }
.testi-stars { color: #f59e0b; font-size: 1rem; }
.testi-body {
    font-size: .9rem;
    color: #444;
    line-height: 1.75;
    flex-grow: 1;
    font-style: italic;
}
.testi-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    font-size: 1rem;
    flex-shrink: 0;
}
.testi-name { font-weight: 800; font-size: .88rem; color: #1a2540; }
.testi-meta { font-size: .75rem; color: #888; margin-top: 2px; }

/* Smart Quiz - Mobile Optimized */
.quiz-card { 
    min-height: 480px; 
    display: block !important; 
    border-radius: 24px !important;
    padding: 30px 20px !important;
}
.quiz-step { 
    display: none !important; 
}
.quiz-step.active { 
    display: block !important; 
    animation: quizSlideIn .3s ease-out; 
}

.quiz-option {
    border: 2px solid #eef2f7;
    border-radius: 16px;
    padding: 24px 15px;
    text-align: center;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.quiz-option:hover, .quiz-option:active { 
    border-color: #1a56db; 
    background: #f0f7ff; 
    transform: scale(1.02); 
}
.quiz-option i { font-size: 2.2rem; color: #1a56db; margin-bottom: 12px; }
.quiz-option span { font-weight: 800; font-size: 1rem; color: #1a2540; }

.quiz-option-wide {
    border: 2px solid #eef2f7;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 12px;
    font-weight: 800;
    color: #1a2540;
    background: #fff;
    display: block;
    width: 100%;
}
.quiz-option-wide:hover, .quiz-option-wide:active { 
    border-color: #1a56db; 
    background: #f0f7ff; 
}

/* Progress Bar */
.quiz-progress {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a56db, #3b82f6);
    width: 25%;
    transition: width .4s;
}

/* Overlap Fix for Floating Buttons */
@media (max-width: 768px) {
    .quiz-card { margin-bottom: 120px !important; } /* Extra space for buttons */
    .whatsapp-btn { bottom: 20px !important; }
    .phone-btn { bottom: 85px !important; }
    
    /* Make 2-column options stack on small screens if needed, 
       but for 4 options 2x2 is better. Let's force 2x2. */
    .quiz-step[data-step="1"] .col-6 { padding: 8px; }
}

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

