html {
    font-size: 100%;
}

:root {
    --primary-color: #646b3c;
}

:root,
body,
footer,
.logo path,
a,
h1,h2,h3 {
    transition: color 300ms ease, background-color 300ms ease, fill 300ms ease;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.56;
    margin: 0;
    padding: 0;
    background: #fff;
}

html, body { 
    overflow-x: clip; 
}

@supports not (overflow: clip) {
    html, body { overflow-x: hidden; } 
}

a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', Arial, sans-serif;
    color: var(--primary-color);
}

h1 {
    padding: 0 25%;
    margin: 100px 0 50px;
    text-align: center;
}

h1 img {
    max-width: 100%;
    height: auto;
    padding: 0 10%;
    box-sizing: border-box;
}

h2 {
    font-size: 2rem;
    margin: 0 0 8px 0;
}
h3 {
    font-size: 1.125rem;
    padding-top: 0.9rem;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

svg {
  max-width: 100vw;
  max-height: 100vh;
}

ul {
    margin: 0;
}

li {
    margin-bottom: 10px;
}

p {
    margin: 0 0 16px 0;
}

ul+p { margin-top: 30px; }

section {
    margin-bottom: 50px;
}

section img {
    max-width: 100%;
    height: auto;
    margin: 0 0 20px 0;
}

em {
    opacity: 0.5;
}

footer {
    min-height: 400px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
}

.logo path {
    fill: var(--primary-color)
}

/* Color switcher UI */
.color-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
    padding: 0;
    background-clip: padding-box;
}

.color-swatch.selected {
    outline: 1px solid rgba(255,255,255,1);
    transform: scale(1.05);
}

.footer-content {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    gap: 24px;
    max-width: 1820px;
    margin: 0 auto;
    padding: 40px 100px;
    box-sizing: border-box;
    width: 100%;
}

.footer-content img {
    max-width: 400px;
    height: auto;
    display: block;
    opacity: .75;
}

.container {
    max-width: 1820px;
    margin: 0 auto 100px;
    padding: 0 100px;
    box-sizing: border-box;
}

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

.info-box {
    margin: 50px 0;
    background: #f0f0f0; /* fallback */
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    /* border-top: 8px solid var(--primary-color); */
    padding: 24px 28px;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.3rem;
    text-transform: none;
}

.info-box p {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.85;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.map {
    background: #f0f0f0; /* fallback */
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    padding-bottom: 16px;
}

    .map strong {
        color: var(--primary-color);
        margin: 0 32px 8px 32px;
        display: block;
    }

    .map ul {
        margin: 0 32px;
    }

.environmentimage {
    display: block;
    width: 100vw;
    max-width: none;
    height: auto;
    position: relative;
    left: 50%;
    right: 50%;
    margin: 0; 
    margin-left: -50vw; 
    margin-right: -50vw;   
    margin-bottom: 50px;   
}

.grid .environmentimage {
    grid-column: 1 / -1;
}


.environmentimage--hero {
    max-height: 1024px;     
    object-fit: cover;    
    object-position: center; 
    width: 100vw;
    max-width: none;
    margin-left: -50vw;    
    margin-right: -50vw;   
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

a[target="_blank"]::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z"/><path d="M5 5h5V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5h-2v5H5V5z"/></svg>');
    margin-left: 4px;
    vertical-align: middle;
}


@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

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

    .grid > * {
        grid-column: 1 / -1 !important;
    }

    h1 {
        padding: 0 15%;
        margin: 50px 0 20px;
    }

    .intro-heading {
        font-size: 1.6rem;
        white-space: nowrap;
    }

    h3 {
        font-size: 1.125rem;
    }

    .info-box h4 {
        font-size: 1.25rem; 
    }

    .info-box p {
        font-size: 0.9rem;  
        line-height: 1.5;
    }

    .info-box {
        padding: 16px 20px; /* mindre padding på mobil */
    }

    .divider {
        border-bottom: 2px solid var(--primary-color);
        margin-bottom: 30px;        
    }

    footer {
        min-height: auto;
        padding: 24px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .color-switcher {
        display: none;
    }

}

@media print, screen and (min-width: 768px) {
    html {
        font-size: 106.25%;
    }
}

@media print, screen and (min-width: 1280px) {
    html {
        font-size: 112.5%;
    }
}

@media print, screen and (min-width: 1700px) {
    html {
        font-size: 125%;
    }
}
