@charset "UTF-8";

:root {
  /* Hovedfarge (Merkevare Oransje) */
  --bs-primary: #ff4d00;
  --bs-primary-rgb: 255, 77, 0;

  /* Egendefinerte oransje-varianter for hover/aktive tilstander */
  --bs-orange: #ff4d00;
  --bs-orange-darker: #d94100;
  --bs-orange-lighter: #ff6a2b;
  --bs-orange-rgb: 255, 77, 0;

  /* Standard Bootstrap-farger som er tilpasset og sikret */
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  
  --bs-white: #fff;
  --bs-black: #000;
  
  /* Profesjonelle, nøytrale gråtoner (gir et moderne og stramt B2B-uttrykk) */
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #f1f3f5;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #1a1d20; /* Dypere, mer moderne sort/mørkegrå til overskrifter */

  --bs-secondary: #495057;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #1a1d20;

  /* RGB-versjoner for opasitet i komponenter */
  --bs-secondary-rgb: 73, 80, 87;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 26, 29, 32;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;

  /* Body og generelle standarder */
  --bs-body-color-rgb: 26, 29, 32;
  --bs-body-bg-rgb: 255, 255, 255;
  
  --bs-font-sans-serif: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-heading-font-family: "Outfit", system-ui;
  --bs-heading-font-weight: 400; /* Litt mer tyngde i Outfit gjør seg veldig bra */
  
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 300;
  --bs-body-line-height: 1.6;
  --bs-body-color: #1a1d20;
  --bs-body-bg: #fff;
}

/* Moderne, flate knapper uten tekstskygge */
.btn-primary {
    color: #ffffff !important;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
    box-shadow: none !important; /* Fjerner all skyggesurr */
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-orange-darker);
    border-color: var(--bs-orange-darker);
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Outline-knapper i samme stil */
.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff !important;
}


/* Skjul tomme avsnitt fra editorer som TinyMCE */
p:empty, 
p:has(br:only-child) {
    display: none;
}

/* Artikkel- og tekstformatering */
article {
    font-size: calc(var(--bs-body-font-size) + 0.05rem);
    line-height: 1.7; /* Sikrer god luft og lesbarhet */
}

article li {
    margin-bottom: 0.5rem;
}

/* Generell regel for alle overskrifter for å sikre riktig avstand og hierarki */
h1, .h1, 
h2, .h2, 
h3, .h3, 
h4, .h4, 
h5, .h5, 
h6, .h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: var(--bs-heading-font-weight);
    line-height: 1.25;
	margin-top: 0.5em;
    margin-bottom: 0.25em;
}

/* Første element i en container/seksjon trenger ikke stor toppmargin */
section > *:first-child,
article > *:first-child,
.container > *:first-child {
    margin-top: 0;
}


/* Automatisk vekslende bakgrunner på seksjoner og artikler inne i main */
main section:nth-of-type(even),
main article:nth-of-type(even) {
    background-color: var(--bs-white);
}

main section:nth-of-type(odd),
main article:nth-of-type(odd) {
    background-color: var(--bs-gray-100);
    border-top: 1px solid var(--bs-gray-300);
    border-bottom: 1px solid var(--bs-gray-300);
}

/* Generell stil for CTA-banner */
.cta-banner {
    background-color: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-300);
    border-left: 4px solid var(--bs-primary) !important; /* Fallback */
    color: var(--bs-body-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
}

/* Dynamiske farger på venstre-kanten basert på stil-klassen fra PHP */
.cta-banner.cta-banner-primary { border-left-color: var(--bs-primary) !important; }
.cta-banner.cta-banner-success { border-left-color: var(--bs-success) !important; }
.cta-banner.cta-banner-warning { border-left-color: var(--bs-warning) !important; }
.cta-banner.cta-banner-danger  { border-left-color: var(--bs-danger)  !important; }
.cta-banner.cta-banner-info    { border-left-color: var(--bs-info)    !important; }
.cta-banner.cta-banner-dark    { border-left-color: var(--bs-dark)    !important; }

.cta-icon-wrapper {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.cta-text {
    font-family: var(--bs-heading-font-family);
    font-size: 1.15rem;
    font-weight: 500 !important;
    color: var(--bs-body-color) !important;
}

/* Bildebehandling for artikler */
.article-img-container {
    min-height: 50vh;
    padding: 0;
}

.article-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Parallax-vindu som bryter ut av containeren */
.parallax-window {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* Styling og effekt */
    height: 35vh; /* Justert litt opp for bedre visuell effekt, kan endres */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Mørkere overlay for å gi dybde og kontrast til eventuell tekst */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.35);
    
    /* Luft over og under */
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Sitat / Blockquote */
blockquote {
    padding: 1.5rem;
    margin: 2rem 1.5rem !important;
    background: white;
    border: 2px solid var(--bs-gray-300);
    font-style: italic;
    font-size: 1.35rem;
    text-align: center;
    border-radius: 4px;
}

img, svg {
    vertical-align: middle;
    max-width: 100%;
}

article img.artikkelbilde {
    width: 100%;
    height: auto;
    margin: 10px 0;
}

@media (min-width: 768px) {
    article img.artikkelbilde {
        width: 40%;
    }
}

/* Dropdown og Navbar tilpasninger */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.35rem 1rem;
    font-weight: 400;
    color: var(--bs-body-color);
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

@media (min-width: 992px) {
    .navbar-brand img {
        max-height: 70px;
    }
}

@media (max-width: 475px) {
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        white-space: normal;
    }
}

.min-vh-50 {
    min-height: 50vh !important;
}

/* Egendefinerte farge- og skyggeklasser */
.text-orange {
    color: var(--bs-primary) !important;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lenker i brødtekst – sikrer god kontrast og lesbarhet */
main a:not(.btn), article a:not(.btn) {
    color: var(--bs-body-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

main a:not(.btn):hover, article a:not(.btn):hover {
    color: var(--bs-primary);
}

.form-floating > label {
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* Funksjoner / Ikon-bokser */
.feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    font-size: 2rem;
}

/* Video- og Hero-seksjoner */
.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header.video {
    position: relative;
    height: 40vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header.video .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

header.heroBg {
    min-height: 280px;
    max-height: 60vh;
    overflow: hidden;
    position: relative;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.7));
    z-index: 0;
}

@media (min-width: 768px) {
    header.heroBg {
        min-height: 500px;
        max-height: none;
    }
}

/* Faktaboks */
.factbox-container {
    background-color: var(--bs-gray-100);
    border-left: 5px solid var(--bs-primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.factbox-title {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--bs-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.factbox-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bs-body-color);
}

/* Google Maps Autocomplete (.pac-container) - oppdatert med variabler */
.pac-container {
    background-color: var(--bs-white);
    border: 1px solid var(--bs-gray-300);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: var(--bs-font-sans-serif);
    margin-top: -2px;
    z-index: 1050;
}

.pac-item {
    padding: 10px 15px;
    font-size: 14px;
    color: var(--bs-gray-700);
    cursor: pointer;
    border-top: 1px solid var(--bs-gray-200);
    display: flex;
    align-items: center;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover, 
.pac-item-selected {
    background-color: var(--bs-gray-100);
}

.pac-item-query {
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-body-color);
    padding-right: 5px;
}

.pac-matched {
    color: var(--bs-primary);
    font-weight: 700;
}

.pac-icon {
    margin-right: 10px;
    opacity: 0.6;
}

/* Figurer med bildetekst */
figure.image {
    display: table;
    margin: 2.5rem auto;
    max-width: 100%;
}

figure.image img {
    display: block;
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 0.95rem;
    color: var(--bs-gray-600);
    padding: 12px 5px;
    font-style: italic;
    border-bottom: 2px solid var(--bs-primary);
    max-width: 80%;
    margin: 0 auto;
}

.modal-xl {
    max-width: 90vw;
}

/* Slank, minimalistisk og ren FAQ-stil */
.faq-list {
    border-top: 1px solid var(--bs-gray-300);
}

.faq-item {
    border-bottom: 1px solid var(--bs-gray-300);
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.faq-item:hover {
    background-color: var(--bs-gray-100);
}

.faq-item .btn-link {
    color: var(--bs-dark);
    font-family: var(--bs-heading-font-family);
    font-weight: 500;
    text-decoration: none;
    background-color: transparent;
    transition: color 0.2s ease;
}

.faq-item .btn-link:hover {
    color: var(--bs-primary);
}

/* Stil når FAQ-en er åpen */
.faq-item .btn-link:not(.collapsed) {
    color: var(--bs-primary);
}

/* Myk rotasjon av pilen */
.faq-item .faq-arrow-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item .btn-link:not(.collapsed) .faq-arrow-icon {
    transform: rotate(-180deg);
    color: var(--bs-primary) !important;
}

/* Svardelen uten boks – ren tekst med god luft */
.faq-answer {
    background-color: transparent;
    font-family: var(--bs-body-font-family);
    color: var(--bs-secondary-color);
    line-height: 1.6;
    padding-left: 2.5rem; /* Skyver svaret litt inn så det matcher tittelen */
}