* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #88b926;
    --secondary-color: #7aa520;
    --text-color: #222222;
    --text-light: #777777;
    --bg-light: #f9f9ff;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    color: #222222;
    line-height: 1.2em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.logo .subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #222;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 0 8px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-has-children {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 1rem 0;
    min-width: 200px;
    z-index: 1000;
    border-radius: 0.5rem;
}

.menu-has-children:hover .submenu {
    display: block;
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('img/header-bg.jpg') center center no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
}

.overlay-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.7;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h6 {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #fff;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1em;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-white {
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-btn {
    background: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
}

.primary-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.section-gap {
    padding: 5rem 0;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12 {
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mb-20 {
    margin-bottom: 1.25rem;
}

.about p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--white);
}

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

.projects h6 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.projects .sub {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.home-about-left {
    margin-bottom: 2rem;
}

.pb-20 {
    padding-bottom: 1.25rem;
}

.pb-10 {
    padding-bottom: 0.625rem;
}

.pt-20 {
    padding-top: 1.25rem;
}

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

.link-nav {
    font-size: 0.875rem;
    margin-top: 1rem;
}

.link-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.link-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.margin-top {
    margin-top: 3rem;
}

.mt-20 {
    margin-top: 1.25rem;
}

.projects hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.project-image {
    border-radius: 0.5rem;
    overflow: hidden;
}

.project-image img,
.home-about-left img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

.home-about-left img {
    display: block;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact h2 {
    font-size: 30px;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-centered {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contact page - team and offices */
.contact-page {
    padding: 4rem 0;
    background: var(--white);
}

.contact-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-card {
    background: var(--bg-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.3s;
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
}

.team-card-image {
    width: 100%;
    height: 220px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-body {
    padding: 1.5rem;
}

.team-card-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.team-role {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-contact {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.team-contact a {
    color: var(--text-light);
    text-decoration: none;
}

.team-contact a:hover {
    color: var(--primary-color);
}

.contact-offices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.office-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.office-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.office-address {
    margin-bottom: 0.25rem;
    color: var(--text-light);
    line-height: 1.5;
}

.office-contact {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.office-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.office-contact a:hover {
    text-decoration: underline;
}

/* Legal pages (Betingelser, Personvern) */
.legal-content {
    padding: 4rem 0;
    background: var(--white);
}

.legal-inner {
    max-width: 800px;
    margin: 0 auto;
}

.legal-inner h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-inner h4:first-of-type {
    margin-top: 0;
}

.legal-inner p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-inner a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-inner a:hover {
    text-decoration: underline;
}

/* Footer - lik prosystems.no */
.footer-area {
    background-color: #04091e;
    color: #fff;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Footer: skyv kontaktkolonnen til høyre ved smalere "Om"-kolonne */
.footer-area .row {
    display: flex;
    flex-wrap: wrap;
}
.footer-om-col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}
.footer-contact-col {
    flex: 0 0 41.666%;
    max-width: 41.666%;
}
.footer-area .social-widget {
    flex: 0 0 25%;
    max-width: 25%;
}

.single-footer-widget {
    margin-bottom: 2rem;
}

.footer-area h6,
.single-footer-widget h6 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

.single-footer-widget p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-text {
    padding-top: 20px;
    font-size: 0.875rem;
    margin-top: 0;
}

.footer-text a,
.footer-text i {
    color: #88b926;
    text-decoration: none;
}

.footer-text a:hover {
    color: #9ed62e;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-link {
    display: inline-flex;
    padding-right: 0;
    transition: all 0.3s ease;
    color: #cccccc;
}

.footer-social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: #88b926;
}

.d-flex { display: flex; }
.align-items-center { align-items: center; }

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.fa {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

.fa-phone:before {
    content: "📞";
}

.fa-envelope:before {
    content: "✉";
}

.fa-facebook:before {
    content: "f";
}

.fa-heart-o:before {
    content: "♥";
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-lg-4, .col-lg-6, .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-team {
        grid-template-columns: 1fr;
    }

    .contact-offices {
        grid-template-columns: 1fr;
    }

    .footer-social {
        text-align: left;
    }

    .footer-om-col,
    .footer-contact-col,
    .footer-area .social-widget {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .contact-team {
        margin-bottom: 3rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-light);
    }

    .menu-has-children:hover .submenu,
    .menu-has-children.active .submenu {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h6 {
        font-size: 12px;
    }

    .hero p {
        font-size: 1rem;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 1.75rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .col-md-6, .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
