/* ============================================
   PC GILMORE - Services Page Styles (IMPROVED)
   Added hover animations similar to index page feature cards
   ============================================ */


/* Page Header */

.page-header {
    background-color: var(--primary-color);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/image/background_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.98) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(245, 240, 232, 0.9);
    font-size: 1.2rem;
}


/* Main Services Section */

.main-services {
    padding: 100px 0;
    background-color: var(--secondary-color);
}


/* Services Layout - Two Column */

.services-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 50px;
    align-items: stretch;
}


/* Left Side - Services Cards List */

.services-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* Compact Service Card (Horizontal) - IMPROVED WITH HOVER ANIMATION */

.service-card-compact {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


/* Dark gradient background animation - similar to index page feature cards */

.service-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.service-card-compact:hover::before {
    left: 0;
}

.service-card-compact:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}


/* Ensure content stays above the background */

.service-card-compact .service-icon-small,
.service-card-compact .service-card-content,
.service-card-compact .service-card-price {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}


/* Icon color change on hover */

.service-card-compact:hover .service-icon-small {
    background: #dc2626;
}


/* Text color change on hover */

.service-card-compact:hover .service-card-content h3 {
    color: #fff;
}

.service-card-compact:hover .service-card-content p {
    color: rgba(255, 255, 255, 0.9);
}


/* Price color change on hover */

.service-card-compact:hover .service-card-price .price-from {
    color: rgba(255, 255, 255, 0.7);
}

.service-card-compact:hover .service-card-price .price-amount {
    color: #fff;
}

.service-icon-small {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.service-icon-small svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    transition: all 0.4s ease;
}

.service-card-content {
    flex: 1;
    min-width: 0;
}

.service-card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.service-card-content p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    transition: all 0.4s ease;
}

.service-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.price-from {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.4s ease;
}


/* Services Image Section */

.services-image-section {
    display: flex;
    align-items: stretch;
}

.services-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
    min-height: 500px;
}


/* Services Slideshow */

.services-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services-slideshow .slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.services-slideshow .slideshow-img.active {
    opacity: 1;
}

.services-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.7) 60%, transparent 100%);
    padding: 80px 30px 30px;
}

.overlay-content {
    text-align: center;
    color: var(--secondary-color);
}

.overlay-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(245, 240, 232, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.overlay-icon svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
}

.overlay-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.overlay-content p {
    color: rgba(245, 240, 232, 0.9);
    font-size: 0.95rem;
    margin: 0;
}


/* Service Modal */

.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.show {
    display: flex;
    opacity: 1;
}

.service-modal-content {
    background-color: white;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.service-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-speed);
}

.service-modal .modal-close:hover {
    background-color: var(--primary-color);
}

.service-modal .modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
    transition: color var(--transition-speed);
}

.service-modal .modal-close:hover svg {
    color: white;
}

.service-modal .modal-body {
    padding: 40px;
    text-align: center;
}

.modal-service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.modal-service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--secondary-color);
}

.service-modal h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-modal .modal-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-features {
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.modal-features h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-modal .modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-modal .modal-price .price-label {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-right: 10px;
}

.btn-full {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
}


/* Service Process Section */

.service-process {
    padding: 100px 0;
    background-color: white;
}

.process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.process-step {
    text-align: center;
    padding: 20px 15px;
    opacity: 0;
    transform: translateY(20px);
    flex: 1;
    max-width: 180px;
}

.process-step.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.step-number {
    width: 55px;
    height: 55px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step p {
    color: #666;
    font-size: 0.85rem;
    max-width: 160px;
    margin: 0 auto;
    line-height: 1.5;
}

.process-connector {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 45px;
}


/* Guarantee Section */

.guarantee-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.guarantee-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.guarantee-item.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(245, 240, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition-speed);
}

.guarantee-item:hover .guarantee-icon {
    background-color: rgba(245, 240, 232, 0.2);
    transform: scale(1.1);
}

.guarantee-icon svg {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
}

.guarantee-item h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.guarantee-item p {
    color: rgba(245, 240, 232, 0.8);
    font-size: 0.95rem;
}


/* Services CTA */

.services-cta {
    padding: 100px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.services-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-cta p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.services-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


/* Responsive Styles */

@media (max-width: 1200px) {
    .services-layout {
        grid-template-columns: 1fr 380px;
        gap: 40px;
    }
    .services-image-wrapper {
        min-height: 450px;
    }
    .service-card-compact {
        padding: 15px 18px;
        gap: 15px;
    }
    .service-icon-small {
        width: 50px;
        height: 50px;
    }
    .service-icon-small svg {
        width: 25px;
        height: 25px;
    }
    .service-card-content h3 {
        font-size: 1rem;
    }
    .service-card-content p {
        font-size: 0.8rem;
    }
    .price-amount {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .services-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .services-image-section {
        order: -1;
    }
    .services-image-wrapper {
        min-height: 280px;
        height: 280px;
    }
    .services-image-wrapper img {
        position: relative;
        height: 100%;
    }
    .services-image-overlay {
        padding: 60px 25px 25px;
    }
    .overlay-icon {
        width: 50px;
        height: 50px;
    }
    .overlay-icon svg {
        width: 25px;
        height: 25px;
    }
    .overlay-content h3 {
        font-size: 1.15rem;
    }
    .overlay-content p {
        font-size: 0.9rem;
    }
    .services-cards-list {
        gap: 12px;
    }
    .service-card-compact {
        padding: 16px 20px;
        gap: 18px;
    }
    .service-icon-small {
        width: 55px;
        height: 55px;
    }
    .service-icon-small svg {
        width: 28px;
        height: 28px;
    }
    .service-card-content h3 {
        font-size: 1.05rem;
    }
    .service-card-content p {
        font-size: 0.85rem;
    }
    .price-amount {
        font-size: 1.15rem;
    }
    .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .process-step {
        flex: 0 0 calc(33.33% - 20px);
        max-width: 200px;
        padding: 20px 15px;
    }
    .process-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .main-services,
    .service-process,
    .services-cta {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .services-image-wrapper {
        border-radius: 15px;
        min-height: 220px;
        height: 220px;
    }
    .services-cards-list {
        gap: 10px;
    }
    .service-card-compact {
        padding: 14px 16px;
        gap: 15px;
        border-radius: 10px;
    }
    .service-icon-small {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    .service-icon-small svg {
        width: 24px;
        height: 24px;
    }
    .service-card-content h3 {
        font-size: 0.95rem;
    }
    .service-card-content p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price-from {
        font-size: 0.65rem;
    }
    .price-amount {
        font-size: 1.05rem;
    }
    .guarantee-section {
        padding: 60px 0;
    }
    .services-cta h2 {
        font-size: 1.8rem;
    }
    .process-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px 15px;
        padding: 0;
    }
    .process-step {
        flex: 0 0 calc(33.33% - 15px);
        max-width: 150px;
        padding: 15px 10px;
    }
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin: 0 auto 15px;
    }
    .process-step h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .process-step p {
        font-size: 0.8rem;
        max-width: 100%;
        line-height: 1.4;
    }
    .service-modal {
        padding: 15px;
    }
    .service-modal-content {
        border-radius: 15px;
    }
    .service-modal .modal-body {
        padding: 25px 20px;
    }
    .modal-service-icon {
        width: 80px;
        height: 80px;
    }
    .modal-service-icon svg {
        width: 40px;
        height: 40px;
    }
    .service-modal h2 {
        font-size: 1.4rem;
    }
    .service-modal .modal-description {
        font-size: 0.95rem;
    }
    .modal-features {
        padding: 18px;
    }
    .modal-features h4 {
        font-size: 1rem;
    }
    .modal-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    .service-modal .modal-price {
        font-size: 1.6rem;
    }
    .btn-full {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .services-image-wrapper {
        min-height: 180px;
        height: 180px;
    }
    .services-cards-list {
        gap: 8px;
    }
    .service-card-compact {
        padding: 12px 14px;
        gap: 12px;
    }
    .service-icon-small {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }
    .service-icon-small svg {
        width: 22px;
        height: 22px;
    }
    .service-card-content h3 {
        font-size: 0.9rem;
    }
    .service-card-content p {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    .price-amount {
        font-size: 0.95rem;
    }
    .guarantee-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .guarantee-icon {
        width: 55px;
        height: 55px;
    }
    .guarantee-icon svg {
        width: 28px;
        height: 28px;
    }
    .guarantee-item h4 {
        font-size: 0.95rem;
    }
    .guarantee-item p {
        font-size: 0.8rem;
    }
    .process-grid {
        gap: 20px 10px;
    }
    .process-step {
        flex: 0 0 calc(33.33% - 10px);
        max-width: 110px;
        padding: 10px 5px;
    }
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .process-step h4 {
        font-size: 0.85rem;
    }
    .process-step p {
        font-size: 0.75rem;
    }
    .services-cta h2 {
        font-size: 1.5rem;
    }
    .services-cta p {
        font-size: 0.95rem;
    }
    .services-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .services-cta .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    .service-modal .modal-body {
        padding: 20px 15px;
    }
    .modal-service-icon {
        width: 70px;
        height: 70px;
    }
    .service-modal h2 {
        font-size: 1.25rem;
    }
    .service-modal .modal-price {
        font-size: 1.4rem;
    }
}