/* Section backgrounds (admin configurable) — home, cases, etc. */
.section-bg,
.homepage-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.section-bg--fixed,
.homepage-bg--page {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.section-bg__media,
.homepage-bg__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.section-bg__video,
.homepage-bg__video {
    object-fit: cover;
}

.section-bg__image,
.homepage-bg__image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-bg__overlay,
.homepage-bg__overlay {
    position: absolute;
    inset: 0;
    background: #0a192f;
    z-index: 1;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero--custom-bg {
    background: transparent !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-block--custom-bg {
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

.section-block--custom-bg > .section-block__inner {
    position: relative;
    z-index: 2;
}

body.home-scope-page {
    background-color: transparent;
}

body.cases-scope-page {
    background-color: transparent;
}

body.cases-scope-page .container,
body.cases-scope-page .cases-hero,
body.cases-scope-page .cases-content-block,
body.cases-scope-page footer {
    position: relative;
    z-index: 1;
}

.cases-hero,
.cases-content-block {
    background: transparent !important;
}

.cases-hero .page-header__inner,
.cases-content-block__inner {
    background: transparent;
}

.page-header h1 {
    color: var(--text-main);
}

.page-header p {
    color: var(--text-muted);
}

body.home-scope-page .about,
body.home-scope-page .services,
body.home-scope-page .contact-section,
body.home-scope-page footer {
    position: relative;
    z-index: 1;
}

.site-footer {
    position: relative;
    background: var(--bg-main);
    color: var(--text-main);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.site-footer__inner {
    position: relative;
    z-index: 2;
}

.site-footer .footer-description,
.site-footer .copyright,
.site-footer p {
    color: var(--text-muted);
}

.site-footer h4,
.site-footer .section-title {
    color: var(--accent-color, var(--primary-neon));
}

.cases-content-block {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 4px 0 8px;
}

.cases-content-block.section-block--custom-bg {
    background: transparent !important;
}

.cases-content-block__inner {
    position: relative;
    z-index: 2;
}

.cases-page-header--custom-bg {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 24px 12px;
    margin-bottom: 48px;
}

.cases-page-header--custom-bg .page-header__inner {
    position: relative;
    z-index: 2;
}

.category-section--custom-bg {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px 16px 8px;
}

.category-section--custom-bg .category-section__inner {
    position: relative;
    z-index: 2;
    background: transparent;
}

@media (max-width: 768px) {
    .section-bg__video,
    .homepage-bg__video {
        object-position: center;
    }
}
