/* Service Detail Styling */
:root {
    --color-primary: #0D3458;
    --color-secondary: #7aaede;
    --section-padding: clamp(3rem, 10vh, 6rem);
}

/* Background Image – fixed to viewport so it always covers when scrolling */
body::before {
    content: '';
    display: block;
    position: fixed;
    inset: 0;
    background-image: url('/assets/service-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 25;
    user-select: none;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

@media screen and (max-width: 65em) {
    body::before {
        z-index: 11;
    }
}

section {
    background-color: unset;
}

.footer,
.footer-bottom {
    position: relative;
    z-index: 30;
}

/* Navbar + Tjenester dropdown above section so dropdown doesn’t go behind service image */
.nav,
.nav .dropdown,
.nav .dropdown ul {
    z-index: 30;
}

/* Desktop: transparent navbar so body::before background shows through */
@media screen and (min-width: 65.001em) {
    .navbar {
        background-color: transparent;
    }
}

/* Main Service Content (above body::before overlay so section backgrounds show) */
section#tjeneste {
    padding: var(--section-padding) 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 26;
}

/* Page Title */
.service-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, transparent 100%);
    border-radius: 2px;
}

/* Content Layout */
.wrapper {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: start;
    justify-content: space-between;
}

/* Right Side Layout */
.right-column {
    flex: 0.75;
}

/* Image Container */
.images {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.images img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background-color: #fff;
}

/* Text Content */
.subject {
    position: relative;
    padding: 2.5rem;
    border-radius: 20px;
    height: fit-content;
    flex: 0.75;
}

.subject p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.service-description {
    margin-bottom: 0;
}

.service-description p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.service-description p:last-child {
    margin-bottom: 0;
}

/* CTA Container */
.cta-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.cta-container h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-container p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* New CTA Pro Styles (scoped to service section) */
section#tjeneste .cta-wrap {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    background-color: #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

section#tjeneste .cta-pro {
    flex: 0.45;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 0.55;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    min-height: 76px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-item i {
    color: var(--color-secondary);
    font-size: 1.4rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item span {
    font-size: 1.35rem;
    color: #444;
    line-height: 1.6;
}

.feature-item:hover {
    border-color: var(--color-secondary);
}

.feature-item:hover i {
    background: var(--color-primary);
    color: white;
}

/* Remove old button styles */
.btn-wrap {
    margin-top: 0;
    padding: 0;
    background: none;
    border: none;
}

.btn-wrap::before,
.btn-wrap::after {
    display: none;
}

/* Custom Button Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link i {
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.back-link:hover {
    color: var(--color-primary);
    transform: translateX(-5px);
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
    section#tjeneste {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {
    .wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .right-column {
        order: -1;
        flex: 1 1 100%;
        width: 100%;
    }

    .images img {
        height: 300px;
    }

    .subject p {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .btn-wrap {
        padding: 1.5rem;
    }

    section#tjeneste .cta-wrap {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    section#tjeneste .cta-pro {
        flex: 1 1 auto;
        width: 100%;
    }

    .feature-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        flex: 1 1 auto;
        width: 100%;
    }

    .feature-item {
        min-height: auto;
        padding: 1rem;
    }

    .feature-item i {
        padding: 0.75rem;
        font-size: 1.2rem;
    }

    .feature-item span {
        font-size: 1.15rem;
    }

    .service-title {
        text-align: center;
    }

    .service-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}