/* Mobile Most Used Services Design */

/* Enhanced mobile most used services styling */
@media (max-width: 767px) {
    /* Hide desktop version on mobile */
    .section .card-flex {
        display: none !important;
    }

    /* Mobile most used services container - removed container styling */
    .mobile-most-used-services {
        display: block;
        padding: 0;
        background: transparent;
        border-radius: 0;
        margin: 1.5rem 0;
        position: relative;
    }

    /* Mobile section header - moved outside container feel */
    .mobile-most-used-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        position: relative;
    }

    .mobile-view-all {
        font-size: 1rem;
        color: #997133;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        background: linear-gradient(135deg, #997133 0%, #8A6A3A 50%, #7A5F41 100%);
        color: white;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(153, 113, 51, 0.3);
        border: 2px solid #997133;
    }

    .mobile-view-all:hover {
        background: linear-gradient(135deg, #8A6A3A 0%, #7A5F41 50%, #997133 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(153, 113, 51, 0.4);
        color: white;
        text-decoration: none;
    }

    .mobile-view-all:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(153, 113, 51, 0.3);
    }

    /* Mobile services grid - made more prominent */
    .mobile-services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
        padding: 0 1rem;
        position: relative;
    }

    /* Mobile service card - enhanced for swipeable feel */
    .mobile-service-card {
        background: #fff;
        border-radius: 20px;
        padding: 1.5rem;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid rgba(153, 113, 51, 0.1);
        transform: translateZ(0);
    }

    .mobile-service-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .mobile-service-card:active {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    }

    /* All service cards have the same design */
    .mobile-service-card {
        background: #fff;
        color: #333;
    }

    .mobile-service-card .mobile-service-title {
        color: #333;
    }

    .mobile-service-card .mobile-service-start {
        color: #666;
    }

    .mobile-service-card .mobile-service-start svg path {
        fill: #333;
    }

    /* Mobile service icon - enhanced */
    .mobile-service-icon {
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 60px;
        position: relative;
    }

    .mobile-service-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, rgba(153, 113, 51, 0.1) 0%, rgba(153, 113, 51, 0.05) 100%);
        border-radius: 50%;
        z-index: -1;
    }

    .mobile-service-icon img {
        width: 45px;
        height: 45px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        transition: transform 0.3s ease;
    }

    .mobile-service-icon svg {
        width: 45px;
        height: 45px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        transition: transform 0.3s ease;
    }

    .mobile-service-card:hover .mobile-service-icon img,
    .mobile-service-card:hover .mobile-service-icon svg {
        transform: scale(1.1);
    }

    /* Mobile service title - enhanced */
    .mobile-service-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 1.2rem;
        line-height: 1.4;
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    /* Mobile service start button - enhanced */
    .mobile-service-start {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        color: #666;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.5rem 0;
        transition: all 0.3s ease;
        margin-top: auto;
        position: relative;
    }

    .mobile-service-start::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #997133, #8A6A3A);
        transition: width 0.3s ease;
    }

    .mobile-service-start:hover {
        color: #997133;
        transform: translateX(2px);
    }

    .mobile-service-start:hover::after {
        width: 100%;
    }

    .mobile-service-start svg {
        width: 12px;
        height: 14px;
        transition: transform 0.3s ease;
    }

    .mobile-service-start:hover svg {
        transform: translateX(2px);
    }

    /* RTL support */
    .mobile-service-start[dir="rtl"] svg {
        transform: rotate(180deg);
    }

    .mobile-service-start[dir="rtl"]:hover svg {
        transform: rotate(180deg) translateX(-2px);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mobile-most-used-services {
        padding: 0;
        margin: 1rem 0;
    }

    .mobile-most-used-header {
        margin-bottom: 1.2rem;
        padding: 0 0.8rem;
    }

    .mobile-view-all {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .mobile-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 0.8rem;
    }

    .mobile-service-card {
        padding: 1.2rem;
        min-height: 160px;
        border-radius: 16px;
    }

    .mobile-service-icon {
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .mobile-service-icon::before {
        width: 40px;
        height: 40px;
    }

    .mobile-service-icon img,
    .mobile-service-icon svg {
        width: 35px;
        height: 35px;
    }

    .mobile-service-title {
        font-size: 1.1rem;
        min-height: 2.6rem;
    }

    .mobile-service-start {
        font-size: 0.9rem;
    }
}

/* Small screens */
@media (min-width: 481px) and (max-width: 767px) {
    .mobile-most-used-services {
        padding: 0;
        margin: 2rem 0;
    }

    .mobile-view-all {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .mobile-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.2rem;
    }

    .mobile-service-card {
        padding: 1.8rem;
        min-height: 200px;
        border-radius: 24px;
    }

    .mobile-service-icon {
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .mobile-service-icon::before {
        width: 60px;
        height: 60px;
    }

    .mobile-service-icon svg {
        width: 50px;
        height: 50px;
    }

    .mobile-service-title {
        font-size: 1.3rem;
        min-height: 3.2rem;
    }
}

/* Smooth transitions */
.mobile-service-card * {
    transition: all 0.3s ease;
}

/* Enhanced focus states for accessibility */
.mobile-service-card:focus-within {
    outline: 2px solid rgba(153, 113, 51, 0.5);
    outline-offset: 2px;
}

.mobile-service-start:focus {
    outline: 2px solid rgba(153, 113, 51, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading state */
.mobile-service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for card appearance - enhanced */
@keyframes cardSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-service-card {
    animation: cardSlideUp 0.6s ease-out;
}

.mobile-service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-service-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Add subtle background pattern for depth */
.mobile-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.95) 100%);
    border-radius: inherit;
    z-index: -1;
} 