/* 
nudifyerNO.pw - CSS Stilark
Farger: #00205B (Norsk blå), #BA0C2F (Norsk rød)
Skrifter: 'Nunito' for overskrifter, 'Roboto' for brødtekst
*/

:root {
    --primær-farge: #00205B;
    --sekundær-farge: #BA0C2F;
    --lys-farge: #F8F9FA;
    --mørk-farge: #343A40;
    --tekst-farge: #4A4A4A;
    --overskrift-font: 'Nunito', sans-serif;
    --brødtekst-font: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--brødtekst-font);
    line-height: 1.7;
    color: var(--tekst-farge);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--overskrift-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--mørk-farge);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

h2 span {
    color: var(--primær-farge);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: var(--primær-farge);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sekundær-farge);
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

.seksjon-beskrivelse {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Knapper */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--overskrift-font);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.primær {
    background-color: var(--primær-farge);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 32, 91, 0.2);
}

.primær:hover {
    background-color: #001c4d;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 32, 91, 0.3);
}

.sekundær {
    background-color: transparent;
    border: 2px solid var(--sekundær-farge);
    color: var(--sekundær-farge);
}

.sekundær:hover {
    background-color: var(--sekundær-farge);
    color: white;
    transform: translateY(-2px);
}

.cta-senter {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cta-venstre {
    margin-top: 30px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

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

.menu li {
    margin: 0 15px;
}

.menu a {
    color: var(--mørk-farge);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primær-farge), var(--sekundær-farge));
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.menu a:hover:after {
    width: 100%;
}

.menu-mobil-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Hero seksjon */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    background-color: var(--lys-farge);
    background-image: radial-gradient(#00205B 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
    background-blend-mode: soft-light;
}

.hero:after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(186, 12, 47, 0.1), rgba(0, 32, 91, 0.1));
    z-index: 0;
}

.hero:before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 32, 91, 0.1), rgba(186, 12, 47, 0.1));
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-innhold {
    flex: 0 0 58%;
}

.hero-bilde {
    flex: 0 0 38%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.knapper-cta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.statistikk {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.statistikk-element {
    display: flex;
    flex-direction: column;
}

.nummer-statistikk {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primær-farge);
}

.tekst-statistikk {
    font-size: 0.9rem;
    color: var(--tekst-farge);
}

/* Hvordan Det Fungerer seksjon */
.hvordan {
    position: relative;
    background-color: #FFFFFF;
}

.trinn-prosess {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
    position: relative;
}

.trinn {
    flex: 0 0 28%;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--lys-farge);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trinn:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.trinn-ikon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.tilkobling {
    display: flex;
    align-items: center;
    flex: 0 0 8%;
    justify-content: center;
}

/* Funksjoner seksjon */
.funksjoner {
    position: relative;
    background: linear-gradient(to bottom, #FFFFFF, var(--lys-farge));
}

.funksjoner-rutenett {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.funksjon-kort {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, var(--primær-farge), var(--sekundær-farge));
    border-image-slice: 1;
    border-width: 3px 0 0 0;
    border-style: solid;
}

.funksjon-kort:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.funksjon-ikon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Om seksjon */
.om {
    position: relative;
    background-color: #FFFFFF;
}

.om .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.om-innhold {
    flex: 0 0 55%;
}

.om-innhold h2 {
    text-align: left;
}

.om-bilde {
    flex: 0 0 40%;
}

/* Footer */
footer {
    background-color: var(--lys-farge);
    padding: 60px 0 20px;
}

.footer-topp {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.favicon-footer {
    margin-left: 15px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-kolonne {
    flex: 1;
    min-width: 200px;
    margin-bottom: 25px;
}

.footer-kolonne h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primær-farge);
    position: relative;
    display: inline-block;
}

.footer-kolonne h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--primær-farge), var(--sekundær-farge));
    bottom: -8px;
    left: 0;
}

.footer-kolonne ul li {
    margin-bottom: 10px;
}

.footer-kolonne a {
    color: var(--tekst-farge);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-kolonne a:hover {
    color: var(--primær-farge);
    transform: translateX(3px);
}

.footer-bunn {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bunn p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive stiler */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-innhold, .hero-bilde {
        flex: 0 0 100%;
    }
    
    .hero-bilde {
        margin-top: 40px;
    }
    
    .om .container {
        flex-direction: column;
    }
    
    .om-innhold, .om-bilde {
        flex: 0 0 100%;
    }
    
    .om-bilde {
        margin-top: 40px;
        order: -1;
    }
    
    .om-innhold h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-mobil-toggle {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .menu.aktiv {
        max-height: 300px;
        padding: 20px 0;
    }
    
    .menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .trinn-prosess {
        flex-direction: column;
        align-items: center;
    }
    
    .trinn {
        flex: 0 0 100%;
        margin-bottom: 40px;
        max-width: 350px;
        width: 100%;
    }
    
    .tilkobling {
        margin: -20px 0;
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .knapper-cta {
        flex-direction: column;
    }
    
    .statistikk {
        justify-content: center;
    }
    
    .statistikk-element {
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
    }
    
    .footer-kolonne h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-kolonne {
        text-align: center;
    }
}
