/* Explain: Component styles for gallery and other interactive elements. */
.site-header {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
}

/* Hero slider */
.hero-slider .swiper {
    width: 100%;
    height: 260px;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 33, 46, 0.78) 0%, rgba(20, 33, 46, 0.45) 45%, rgba(20, 33, 46, 0.08) 100%);
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    max-width: 640px;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem);
    color: #ffffff;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #ffffff;
    --swiper-navigation-size: 26px;
}

.hero-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #ffffff;
    opacity: 1;
}

@media (min-width: 768px) {
    .hero-slider .swiper {
        height: 300px;
    }
}

@media (min-width: 1024px) {
    .hero-slider .swiper {
        height: 340px;
    }
}

/* Cards */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

.service-card-media img {
    transition: transform 500ms ease;
}

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

.feature-card {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--surface-color);
    padding: 1.5rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--surface-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    cursor: zoom-in;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 24, 34, 0.93);
    padding: 1rem;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(100%, 1100px);
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    object-fit: contain;
}

.lightbox-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: background 200ms ease;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

/* Form */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-status.success {
    color: var(--primary-color);
    font-weight: 600;
}

.form-status.error {
    color: #B4453A;
    font-weight: 600;
}

/* Gallery filters */
.gallery-item.is-hidden {
    display: none;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.gallery-filter:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.gallery-filter.is-active {
    border-color: var(--button-color);
    background: var(--button-color);
    color: #ffffff;
}