/* ===========================
   Service Hero
=========================== */

.service-hero{
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}



.service-hero h1 span{
    color:var(--primary);
    font-size:1.9rem;
    font-weight: 700;
    line-height: 1.1
}

.maskinering-hero{
    background-image: url("../images/maskinering-hero.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 43%;
}

.engineering-hero{
    background-image: url("../images/engineering-hero.jpg");
}

.welding-hero{
    background-image: url("../images/welding-intro-3.jpg");
    background-size: auto;
    background-position: center 65%;
    background-repeat: no-repeat;
}


.inspection-hero{

    background-image:url("../images/inspection-hero.jpg");
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;

}

.rental-hero{
    background-image: url("../images/rental-hero.jpg");
}


.service-hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.35) 35%,
        rgba(0,0,0,.10) 70%,
        rgba(0,0,0,0) 100%
    );
}

.service-hero-content{
    position: relative;
    z-index: 3;
    max-width: 700px;
    color: #fff;
}

.service-hero-content span{
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-bottom: 18px;
}

.service-hero-content h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;

    
}

.service-hero-content p{
    font-size: 20px;
    line-height: 1.7;
    max-width: 600px;
}

/* ===========================
   Service Intro
=========================== */

.service-intro-grid{
    display:grid;
    grid-template-columns: 1.2fr 1fr;
    gap:70px;
    align-items:center;
}



.service-intro-text p{
    margin-top:25px;
}

.service-intro-image img{
    width:100%;
    height:500px;
    object-fit:cover;
    border:1px solid #ddd;
}

.service-intro-image img.component-image{
    width:100%;
    height:500px;
    object-fit:cover;
    object-position:center 20%;
}

.service-intro-image img.product-full-image{
    width:100%;
    height:420px;
    object-fit:cover;
    object-position:center center;
    display:block;
    border:1px solid #ddd;
}

/* ===========================
   Service Carousel
=========================== */

.service-carousel{
    position:relative;
    width:100%;
    height:500px;
    overflow:hidden;
    border:1px solid #ddd;
    background:#f5f5f5;
}

.service-carousel-track{
    position:relative;
    width:100%;
    height:100%;
}

.service-carousel-slide{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    transition:opacity .45s ease;
}

.service-carousel-slide.active{
    opacity:1;
    visibility:visible;
}

.service-carousel-slide img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}


/* Piler */

.service-carousel-btn{
    position:absolute;
    top:50%;
    z-index:5;

    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    transform:translateY(-50%);

    border:0;
    background:rgba(0,0,0,.55);
    color:#fff;

    font-size:32px;
    line-height:1;

    cursor:pointer;
    transition:.25s ease;
}

.service-carousel-btn:hover{
    background:var(--primary);
}

.service-carousel-prev{
    left:16px;
}

.service-carousel-next{
    right:16px;
}


/* Prikker */

.service-carousel-dots{
    position:absolute;
    z-index:5;
    left:50%;
    bottom:18px;

    display:flex;
    gap:8px;

    transform:translateX(-50%);
}

.service-carousel-dot{
    width:8px;
    height:8px;

    padding:0;
    border:0;
    border-radius:50%;

    background:rgba(255,255,255,.55);

    cursor:pointer;
    transition:.25s ease;
}

.service-carousel-dot.active{
    width:24px;
    border-radius:10px;
    background:#fff;
}


/* Tablet */

@media (max-width:900px){

    .service-carousel{
        height:450px;
    }

}


/* Mobile */

@media (max-width:600px){

    .service-carousel{
        height:240px;
    }

    .service-carousel-btn{
        width:38px;
        height:38px;
        font-size:26px;
    }

    .service-carousel-prev{
        left:10px;
    }

    .service-carousel-next{
        right:10px;
    }

    .service-carousel-dots{
        bottom:12px;
    }

}


/* Small mobile */

@media (max-width:400px){

    .service-carousel{
        height:220px;
    }

}

/* ===========================
   Capabilities
=========================== */

.section-heading{
    text-align:center;
}

.section-heading .section-divider{
    margin:18px auto 30px;
}

.section-heading h2{
    margin-bottom:25px;
}

.capability-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.capability-card{
    background:#fff;
    padding:40px;
    border:1px solid #e5e5e5;
    transition:.3s;
}

.capability-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.capability-card h3{
    margin-bottom:18px;
}

.capability-card p{
    margin:0;
}

/* ===========================
   Service Details
=========================== */

.service-details-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.service-details-image img{
    width:100%;
    height:520px;
    object-fit:cover;
    object-position:95% center;
    border:1px solid #ddd;
}



.service-details-content p{
    margin:30px 0;
}

.service-list{
    list-style:none;
    padding:0;
    margin:35px 0 0;
}

.service-list li{
    position:relative;
    padding-left:22px;
    margin-bottom:16px;
}

.service-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:12px;
    width:10px;
    height:2px;
    background:var(--primary);
}

/* ===========================
   Service CTA
=========================== */

.service-cta{
    background:#f5f5f5;
    padding:70px 0;
}

.service-cta-content{
    max-width:700px;
    margin:0 auto;
    text-align:center;
}

.service-cta-content h2{
    margin-bottom:25px;
}

.service-cta-content p{
    margin-bottom:40px;
}


/* ===========================
   Maskinpark
=========================== */
.machine-link{

    margin-top:40px;

    padding-top:30px;

    border-top:1px solid #e5e5e5;

}

.machine-link p{

    margin-bottom:18px;

    font-weight:1000;

}

.machine-link-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    color:var(--primary);

    text-decoration:none;

    font-weight:600;

    transition:.3s ease;

}

.machine-link-btn:hover{

    gap:16px;

}

/* ========================================
   SERVICES – TABLET
======================================== */

@media (max-width: 900px){

    /* Hero */

    .service-hero{
        height:auto;
        min-height:480px;
    }

    .service-hero-content{
        max-width:600px;
    }

    .service-hero h1 span{
        font-size:3rem;
    }

    .service-hero-content p{
        font-size:18px;
    }


    /* Intro */

    .service-intro-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .service-intro-image img,
    .service-intro-image img.component-image{
        height:450px;
    }

    .service-intro-image img.product-full-image{
        height:400px;
    }


    /* Capabilities */

    .capability-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:20px;
    }

    .capability-card{
        padding:30px;
    }


    /* Details */

    .service-details-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .service-details-image img{
        height:450px;
    }
}


/* ========================================
   SERVICES – MOBILE
======================================== */

@media (max-width: 600px){

    /* Hero */

    
   .service-hero{
    height:240px !important;
    min-height:240px !important;
    max-height:240px !important;
    align-items:flex-end;
    padding:0;
    overflow:hidden;
}

.service-hero .container{
    padding-bottom:22px;
}

    .service-hero-overlay{
        background:linear-gradient(
            180deg,
            rgba(0,0,0,.15) 0%,
            rgba(0,0,0,.45) 45%,
            rgba(0,0,0,.82) 100%
        );
    }

    .service-hero-content{
        max-width:100%;
    }

    .service-hero-content > span{
        margin-bottom:12px;
        font-size:12px;
    }

    .service-hero h1 span{
        font-size:2.3rem;
    }

    .service-hero-content h1{
        margin-bottom:16px;
    }

    .service-hero-content p{
        max-width:100%;
        font-size:16px;
        line-height:1.6;
    }

    /* Brødtekst på selskapsidene */

     .service-intro-text p,
     .service-details-content p,
     .capability-card p,
     .service-list li{
        font-size:17px;
        line-height:1.7;
    }


    /* Intro */

    .service-intro-grid{
        gap:30px;
    }

    .service-intro-text p{
        margin-top:18px;
    }

    .service-intro-image img,
    .service-intro-image img.component-image,
    .service-intro-image img.product-full-image{
        height:240px;
    }


    /* Capabilities */

    .capability-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .capability-card{
        padding:26px 24px;
    }

    .capability-card h3{
        margin-bottom:12px;
    }


    /* Details */

    .service-details-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .service-details-image img{
        height:240px;
    }

    .service-details-content p{
        margin:20px 0;
    }

    .service-list{
        margin-top:25px;
    }

    .service-list li{
        margin-bottom:13px;
    }


    /* CTA */

    .service-cta{
        padding:55px 0;
    }

    .service-cta-content h2{
        margin-bottom:18px;
    }

    .service-cta-content p{
        margin-bottom:30px;
    }


    /* Maskinpark-link */

    .machine-link{
        margin-top:30px;
        padding-top:24px;
    }
}


/* ========================================
   SERVICES – SMALL MOBILE
======================================== */

@media (max-width: 400px){

    

    .service-hero h1 span{
        font-size:2rem;
    }

    .service-hero-content p{
        font-size:15px;
    }

    .service-intro-image img,
    .service-intro-image img.component-image,
    .service-intro-image img.product-full-image,
    .service-details-image img{
        height:220px;
    }

    .capability-card{
        padding:22px 20px;
    }
}


/* ========================================
   INSPECTION – LOGOER
======================================== */

.inspection-logos{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:28px;

    margin-top:35px;
    width:100%;
}

.inspection-logos img{
    width:auto;
    height:auto;

    max-width:90px;
    max-height:65px;

    object-fit:contain;
}


/* Tablet */

@media (max-width:900px){

    .inspection-logos{
        gap:24px;
        flex-wrap:wrap;
    }

    .inspection-logos img{
        max-width:85px;
        max-height:60px;
    }

}


/* Mobil */

@media (max-width:600px){

    .inspection-logos{
        gap:20px;
        margin-top:28px;
    }

    .inspection-logos img{
        max-width:70px;
        max-height:52px;
    }

}

@media (max-width: 768px) {

    .welding-hero {
        background-size: cover;
        background-position: 35% center;
    }

}