/* ========================================
   SUBPAGE
======================================== */

.subpage header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.subpage .navbar {
    height: 80px;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}


/* ========================================
   HERO - OM OSS
======================================== */

.hero-about {
    min-height: 360px;

    background-image: url("../images/about-hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-about .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.62) 45%,
        rgba(0, 0, 0, 0.22) 100%
    );
}

.hero-about .hero-content {
    padding: 40px 0;
}

.hero-about h1 {
    max-width: 760px;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
}



.hero-about .hero-text {
    max-width: 600px;
    margin-top: 18px;

    font-size: 1.1rem;
}


/* ========================================
   GENERELLE SEKSJONER
======================================== */

.about-section,
.companies-section {
    padding: 90px 0;
}

.section-container {
    width: min(90%, 1100px);
    margin: 0 auto;
}

.section-label {

    display: inline-block;

    margin-bottom: 12px;

    color: #16725d;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

}

.about-section h2,
.companies-section h2 {

    max-width: 750px;

    margin-bottom: 24px;

    color: #16384c;

    font-size: 42px;
    line-height: 1.2;

}

.section-text {

    max-width: 700px;

    margin-bottom: 24px;

    color: #4a555d;

    font-size: 19px;
    line-height: 1.7;

}

.text-link,
.company-card a {

    color: #16725d;

    font-weight: 700;

}




/* ========================================
   Om oss - introduksjon
======================================== */

.about-intro {
    border-top: 1px solid #ececec;
}

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

.about-text h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: var(--text);
}

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

.about-text p + p {
    margin-top: 30px;
}

.about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: 22% center;
}




@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 380px;
    }
}
/* ========================================
   TIMELINE
======================================== */

.company-timeline {
    padding: 20px 0 80px;
    background: var(--white);
}

.timeline-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-header {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.timeline-header h2 {
    margin: 18px 0 0;

    color: var(--text);

    font-size: clamp(1.5rem, 1vw, 3.2rem);
    line-height: 1.15;
}

.timeline {
    position: relative;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
}

.timeline-track {
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;

    height: 2px;

    background: #d9d9d9;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: relative;
    z-index: 2;

    width: 18px;
    height: 18px;

    border: 4px solid var(--primary);
    border-radius: 50%;

    background: var(--white);
}

.timeline-marker::after {
    content: "";

    position: absolute;
    top: 18px;
    left: 50%;

    width: 2px;
    height: 24px;

    background: #d9d9d9;

    transform: translateX(-50%);
}

.timeline-year {
    display: block;

    margin-top: 42px;
    margin-bottom: 8px;

    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-item h3 {
    margin-bottom: 8px;

    color: var(--text);

    font-size: 0.8rem;
    line-height: 1.4;
}

.timeline-item p {
    color: #666;

    font-size: 0.75rem;
    line-height: 1.6;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {
    .timeline {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 70px;
    }

    .timeline-track {
        display: none;
    }
}





@media (max-width: 480px) {
    .section-container,
    .timeline-container {
        width: 92%;
    }

    .about-section h2,
    .companies-section h2 {
        font-size: 34px;
    }

    .section-text {
        font-size: 17px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.75;
    }
}

/* ========================================
   OM OSS – MOBILE
======================================== */

@media (max-width: 768px) {

    /* Hero */

    .hero-about {
        min-height: 380px;
        background-position: center;
    }

    .hero-about .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,.20) 0%,
            rgba(0,0,0,.55) 50%,
            rgba(0,0,0,.85) 100%
        );
    }

    .hero-about .hero-content {
        padding: 40px 0;
    }

    .hero-about h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .hero-about .hero-text {
        font-size: 1rem;
        line-height: 1.6;
    }


    /* Generelle seksjoner */

    .about-section,
    .companies-section {
        padding: 60px 0;
    }

    .about-section h2,
    .companies-section h2 {
        font-size: 32px;
    }

    .section-text {
        font-size: 17px;
    }


    /* Intro */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-text h2 {
        font-size: 27px;
        margin-bottom: 22px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.75;
    }

    .about-text p + p {
        margin-top: 22px;
    }

    .about-image img {
        height: 340px;
    }


    /* Tidslinje */

    .company-timeline {
        padding: 60px 0;
    }

    .timeline-header {
        margin-bottom: 40px;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-item {
        padding: 0 0 38px 34px;
    }

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        top: 2px;
        width: 16px;
        height: 16px;
    }

    .timeline-marker::after {
        top: 16px;
        left: 50%;
        width: 2px;
        height: calc(100% + 22px);
    }

    .timeline-year {
        margin-top: 0;
        margin-bottom: 6px;
    }

    .timeline-item h3 {
        font-size: 1rem;
    }

    .timeline-item p {
        font-size: .9rem;
    }
}

/* ========================================
   FOOTER
======================================== */

.site-footer {

    padding: 40px 0 22px;

    background: var(--footer-bg);

    color: var(--white);

    border-top: 3px solid var(--primary);

}

.footer-container {

    width: min(90%, var(--container-width));
    margin: 0 auto;

}


/* ========================================
   FOOTER TOP
======================================== */

.footer-main {

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

    gap: 48px;

    padding-bottom: 30px;

}

.footer-brand {

    display: flex;
    align-items: center;

    gap: 24px;

}

.footer-logo {

    width: 145px;
    height: auto;

}

.footer-brand p {

    max-width: 430px;

    margin: 0;

    color: var(--footer-text);

    font-size: 14px;
    line-height: 1.65;

}