/* ===== Service Hero Section ===== */
.service-hero {
    background-color: #1f1a15; /* fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--primary-foreground);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay on top of the photo */
.service-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 18, 12, 0.78) 0%, rgba(42, 36, 28, 0.72) 100%);
    z-index: 0;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 158, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.service-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== Service Description ===== */
.service-description {
    padding: 4rem 1.5rem;
    background-color: var(--background);
}

.service-description h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.description-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.description-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(200, 158, 74, 0.15);
}

.description-card h3 {
    margin-bottom: 1rem;
    color: var(--foreground);
    font-size: 1.25rem;
}

.description-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 4rem 1.5rem;
    background-color: var(--card);
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
    cursor: pointer;
    background-color: var(--muted);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gallery-btn {
    background: var(--gold);
    color: var(--gold-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.gallery-btn:hover {
    background: var(--primary-foreground);
    color: var(--primary);
}

/* ===== Before/After Slider ===== */
.before-after-item {
    padding: 0;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-after-img,
.after-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-after-img img,
.after-after-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-after-img {
    overflow: hidden;
}

.slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 10;
}

.label {
    position: absolute;
    top: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    z-index: 5;
}

.before-label {
    left: 1rem;
}

.after-label {
    right: 1rem;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    animation: zoom-in 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: var(--radius);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Responsive Gallery ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .service-hero-content h1 {
        font-size: 2rem;
    }
    
    .service-hero-content p {
        font-size: 1rem;
    }
    
    .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        right: 1rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .service-description {
        padding: 2rem 1rem;
    }
    
    .description-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 70%;
    }
}
