:root {
    --color-navy: #1B2A38;
    --color-navy-dark: #101C26;
    --color-accent: #4c7761;
    --color-text: #333;
    --color-white: #ffffff;

    --color-surface: rgba(255, 255, 255, 0.65);
    --color-surface-strong: rgba(255, 255, 255, 0.85);
    --color-border-light: #e2e2e2;
    --color-contact-border: rgba(255, 255, 255, 0.25);

    --color-bg-fallback: #F7F8F6;
}

.top-menu {
    text-align: right;
    padding: 10px 30px 20px 30px;
    display: flex;
    justify-content: center;
}

.top-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
}

.top-menu a:hover {
    color: var(--color-white);
}

.top-menu ul {
    list-style-type:none;
}

.logo img {
    max-width: 90px;
    height: auto;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background: var(--color-bg-fallback) url('assets/bg-two.jpg') no-repeat center top / cover fixed;
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Noto Serif Display", serif;

}

header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-menu {
    background: var(--color-navy);
    padding: 15px 30px;
}

/* Desktop */
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.menu-list li {
    margin: 0;
}

.menu-list a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
}

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

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.info-box {
    background: var(--color-surface);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.service-list {
    margin: 0 0 20px;
    padding-left: 22px;
}

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

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 0 0 20px;
}

.hero-image img {
    width: 100%;
    /* height:auto is required now that the img carries width/height attributes
       (added for CLS) — without it the attribute height wins and distorts. */
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-content {
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--color-navy-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

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

@media (min-width: 769px) {

    .hero {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 30px;
        padding: 20px 20px 30px;
    }

    .hero-image {
        flex: 1.2;
    }

    .hero-content {
        flex: 1;
    }

    .hero-cta {
        justify-content: flex-start;
    }
}

h2 {
    color: var(--color-navy);
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-img {
    max-width: 100%;
    height: auto;
}

.about-person-wrapper {
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 25px;
}

.about-person-wrapper h3, .about-person-wrapper h4 {
    margin-bottom:0;
}
.about-person-wrapper ul {
    margin-top:0;
}

@media (min-width: 769px) {
    .about-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-person-wrapper {
        flex: 1;
    }
}

#tjenester > h3 {
    margin: 10px 0;
}

.accordion {
    background: var(--color-accent);
    color: var(--color-white);
    cursor: pointer;
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.accordion .icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.accordion .icon::before,
.accordion .icon::after {
    content: '';
    position: absolute;
    background: var(--color-white);
    transition: transform 0.3s ease;
}

.accordion .icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion .icon::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion.is-open .icon::after {
    transform: translateX(-50%) rotate(90deg);
}

.panel {
    max-height: 0;
    overflow: hidden;
    background: var(--color-surface-strong);
    padding: 0 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.panel.open {
    padding: 20px;
}

.kilde {
    float: right;
    font-style: italic;
}

.contact-box {
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
}

.contact-box a, .contact-box h2, .contact-box h3 {
    color: var(--color-white);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.contact-person {
    border: 1px solid var(--color-contact-border);
    border-radius: 10px;
    padding: 20px;
}

.contact-person h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-person p {
    margin: 6px 0;
}

@media (min-width: 769px) {
    .contact-wrapper {
        flex-direction: row;
    }

    .contact-person {
        flex: 1;
    }
}

footer {
    background: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-logo-item {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 1100px;
        margin: auto;
        padding: 20px 20px;
    }

.top-menu {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 8px;
    gap: 6px;
}

.menu-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
}

.menu-list::-webkit-scrollbar {
    display: none;
}

.menu-list a {
    font-size: 10.5px;
    padding: 6px 2px;
    white-space: nowrap;
}

.info-box {
    padding: 10px;
}

.logo img {
    max-width: 45px;
    height: auto;
}

body {
    background-attachment: scroll;
}
}