/* Services Page Styles */

/* Main content area */
.services-main {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Page heading */
.services-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Intro text */
.services-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Two-column layout */
.services-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* Sidebar */
.services-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Services menu */
.services-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.services-menu li {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--bg-light);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.services-menu li:last-child {
    border-bottom: none;
}

.services-menu li:hover {
    background: var(--bg-light);
    color: var(--bg-green);
}

.services-menu li.active {
    background: var(--bg-green);
    color: var(--text-dark);
}

.services-menu li.active::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--text-dark);
    border-radius: 50%;
}

/* Content area */
.services-content {
    flex: 1;
    min-width: 0;
}

.services-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.services-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Gallery */
.services-gallery {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-green) var(--bg-light);
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-track::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: var(--bg-green);
    border-radius: 3px;
}

.gallery-track img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.gallery-track img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Gallery controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.gallery-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--bg-green);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--bg-green);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: var(--bg-green);
    color: var(--text-dark);
}

/* Contact section */
.contact-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
}

.contact-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

/* Contact form */
.services-contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.services-contact-form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.services-contact-form input:focus {
    outline: none;
    border-color: var(--bg-green);
}

.services-contact-form input::placeholder {
    color: var(--text-muted);
}

.services-contact-form .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Image modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-green);
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 1024px) {
    .services-layout {
        gap: 30px;
    }

    .services-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .services-main {
        padding-top: 100px;
    }

    .services-main h1 {
        font-size: 2rem;
    }

    .services-layout {
        flex-direction: column;
    }

    .services-sidebar {
        width: 100%;
    }

    .services-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .services-menu li {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 12px 16px;
        font-size: 0.9rem;
        border: none;
        background: var(--bg-light);
        border-radius: 8px;
        text-align: center;
    }

    .services-menu li.active {
        background: var(--bg-green);
    }

    .services-menu li.active::after {
        display: none;
    }

    .services-content h2 {
        font-size: 1.5rem;
    }

    .gallery-track img {
        width: 220px;
        height: 150px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 24px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-main {
        padding-top: 80px;
    }

    .services-main h1 {
        font-size: 1.75rem;
    }

    .services-intro {
        font-size: 1rem;
    }

    .services-menu li {
        min-width: 100%;
    }

    .gallery-track img {
        width: 180px;
        height: 120px;
    }

    .services-gallery {
        padding: 12px;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
