/**
 * Services CSS Styling
 * File: assets/css/services.css
 * 
 * Comprehensive styling for services/products system
 */

/* ============================================
   SERVICES GRID LAYOUT
   ============================================ */

.services-grid {
    margin: 2rem 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.service-badge.featured {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #000;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.service-badge.popular {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-category i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: #3498db;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    text-align: center;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.service-actions .btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-actions .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */

.service-categories-filter {
    margin: 2rem 0;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.category-filter:hover {
    color: #495057;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.category-filter.active {
    color: white;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.category-filter i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */

.service-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.service-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.price-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
}

.service-summary-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.service-summary-card .card-body {
    padding: 1.5rem;
}

.service-info .info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.service-info .info-item:last-child {
    border-bottom: none;
}

.service-tags .badge {
    margin: 0.2rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.service-share .btn {
    margin: 0.2rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.service-features .feature-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.service-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    flex-shrink: 0;
}

.feature-content h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.service-gallery .gallery-thumb {
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.service-gallery .gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.service-faqs .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-faqs .accordion-button {
    background: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.service-faqs .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: none;
}

.service-faqs .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.service-faqs .accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
    line-height: 1.7;
}

/* ============================================
   ENQUIRY FORM STYLES
   ============================================ */

.service-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-enquiry-form .form-control,
.service-enquiry-form .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.service-enquiry-form .form-control:focus,
.service-enquiry-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.service-enquiry-form .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.service-enquiry-form .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* ============================================
   SEARCH AND FILTERS
   ============================================ */

.services-filters {
    margin: 2rem 0;
}

.search-bar .input-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    overflow: hidden;
}

.search-bar .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.search-bar .form-control:focus {
    box-shadow: none;
}

.search-bar .btn {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.quick-filters .btn-group .btn {
    border-radius: 25px;
    margin: 0 0.25rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-filters .btn-group .btn:hover {
    transform: translateY(-2px);
}

.sort-options .dropdown-toggle {
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991.98px) {
    .service-hero {
        background-attachment: scroll;
        text-align: center;
    }
    
    .service-hero .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .service-summary-card {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .category-filters {
        justify-content: center;
        padding: 1rem;
    }
    
    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .services-grid .row {
        margin: 0 -0.5rem;
    }
    
    .services-grid .row > div {
        padding: 0 0.5rem;
    }
    
    .service-image-container {
        height: 180px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .search-bar .input-group {
        border-radius: 15px;
    }
    
    .search-bar .form-control,
    .search-bar .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .category-filter {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .quick-filters .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .quick-filters .btn-group .btn {
        margin: 0.25rem 0;
        border-radius: 10px;
    }
    
    .service-hero {
        min-height: 40vh;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-features .feature-item {
        text-align: center;
        flex-direction: column;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 575.98px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-image-container {
        height: 160px;
    }
    
    .service-content {
        padding: 0.75rem;
    }
    
    .service-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .service-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .service-badge {
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-badge.featured {
    animation: pulse 2s infinite;
}

.category-filter {
    animation: fadeInLeft 0.4s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .service-badge,
    .service-actions,
    .services-filters,
    .category-filters {
        display: none;
    }
    
    .service-image-container {
        height: auto;
    }
    
    .service-image {
        max-height: 200px;
        width: auto;
    }
}