/* Services Page - Complete Modern Redesign */
.page-banner-modern {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.pagebanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(66, 42, 20, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagebanner-content {
    text-align: center;
    z-index: 3;
    padding: 0 20px;
}

.page-heading-modern {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.services-section-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card-modern {
    /* background: #fff; */
    border-radius: 20px;
    padding: 30px;
    padding-bottom: 25px;
    /* box-shadow: 0 4px 20px rgba(66, 42, 20, 0.1); */
    /* border: 1px solid rgba(66, 42, 20, 0.1); */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 42, 20, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card-modern:hover::before {
    left: 100%;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(66, 42, 20, 0.2);
    border-color: #422A14;
}

.service-icon-wrapper {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(66, 42, 20, 0.05) 0%, rgba(66, 42, 20, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
    border: 2px solid rgba(66, 42, 20, 0.1);
}

.service-card-modern:hover .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(66, 42, 20, 0.1) 0%, rgba(66, 42, 20, 0.15) 100%);
    border-color: #422A14;
    transform: scale(1.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.service-card-modern:hover .service-icon {
    transform: scale(1.1);
}

.service-content-modern {
    width: 100%;
}

.service-title-modern {
    font-size: 16px;
    font-weight: 700;
    color: #422A14;
    margin: 0px;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.service-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #422A14;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.service-card-modern:hover .service-view-more {
    opacity: 1;
    transform: translateY(0);
}

.service-view-more i {
    transition: var(--transition);
}

.service-card-modern:hover .service-view-more i {
    transform: translateX(5px);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    flex: 0 0 300px;
    max-width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(66, 42, 20, 0.1), 0 2px 8px rgba(66, 42, 20, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(66, 42, 20, 0.1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 48px rgba(66, 42, 20, 0.2), 0 6px 16px rgba(66, 42, 20, 0.15);
    border-color: #422A14;
}

.service-image {
    width: 100%;
    padding:16px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #fff;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    padding-top: 0px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #422A14;
    margin-bottom: 0;
    text-align: center;
    transition: color 0.3s;
    margin-top: 0px;
    letter-spacing: 0.5px;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: #7B4F27;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        gap: 20px;
        padding: 0 15px;
    }
    .service-card {
        flex: 0 0 280px;
        max-width: 280px;
    }
    .service-content {
        padding: 20px;
    }
    .service-title {
        font-size: 20px;
    }
    .service-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .service-card {
        flex: unset;
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
    }
    .service-image {
        height: 90px;
        padding: 8px;
        margin-bottom: 2px;
    }
    .service-content {
        padding: 6px 6px 6px 6px;
    }
    .service-title {
        margin-bottom: 2px;
        font-size: 16px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        justify-items: center;
    }
    .service-card {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation for loading */
.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(66, 42, 20, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #422A14;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 25px 25px 0 25px;
    position: relative;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #422A14;
    margin: 0;
    text-align: center;
    padding-left: 48px;
    padding-right: 48px;
    letter-spacing: 0.5px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(66, 42, 20, 0.1);
    border: 2px solid #422A14;
    font-size: 24px;
    cursor: pointer;
    color: #422A14;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
}

.modal-close:hover {
    background: #422A14;
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 25px 25px 25px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: left;
    padding: 0 10px;
}

.modal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Make entire card clickable */
.service-card {
    cursor: pointer;
    position: relative;
}

.service-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(123, 79, 39, 0.08);
    border-radius: 12px;
    z-index: 1;
    transition: background 0.3s ease;
    pointer-events: none;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover .service-title {
    color: #a86c3c;
} 