/* Stil for undresserNO.pw - AI Avkledningsverktøy for Norge */

/* Fargevariabler basert på norske flaggfarger */
:root {
    --rod: #BA0C2F; /* Norsk rød */
    --bla: #00205B; /* Norsk blå */
    --hvit: #FFFFFF;
    --sort: #111111;
    --mork-grå: #333333;
    --lys-grå: #F5F5F5;
    --grå: #777777;
    --skygge: rgba(0, 0, 0, 0.1);
    --skygge-sterk: rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(120deg, var(--rod) 0%, var(--hvit) 50%, var(--bla) 100%);
}

/* Reset og grunnleggende stiler */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--sort);
    background-color: var(--hvit);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.beholder {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
}

/* Header */
.hode {
    background: var(--hvit);
    box-shadow: 0 2px 15px var(--skygge);
    padding: 18px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

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

.logo-svg {
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--rod);
}

/* Navigasjonslenker */
.nav-lenker {
    display: flex;
    align-items: center;
}

.meny {
    display: flex;
    gap: 30px;
}

.meny a {
    font-weight: 600;
    color: var(--sort);
    position: relative;
    padding: 5px 0;
}

.meny a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--bla);
    transition: width 0.3s ease;
}

.meny a:hover {
    color: var(--bla);
}

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

.meny-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.meny-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--sort);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.meny-toggle span:nth-child(1) {
    top: 0;
}

.meny-toggle span:nth-child(2) {
    top: 10px;
}

.meny-toggle span:nth-child(3) {
    top: 20px;
}

.meny-toggle.aktiv span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.meny-toggle.aktiv span:nth-child(2) {
    opacity: 0;
}

.meny-toggle.aktiv span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Hovedseksjon */
.helteside {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.helteside::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(186, 12, 47, 0.05);
    z-index: -1;
}

.helteside::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 32, 91, 0.05);
    z-index: -1;
}

.helteside-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.helteside-tekst {
    max-width: 570px;
}

.merke {
    display: inline-block;
    background-color: rgba(0, 32, 91, 0.1);
    color: var(--bla);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.helteside h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    color: var(--sort);
}

.helteside h2 span {
    color: var(--rod);
    display: inline-block;
}

.helteside p {
    color: var(--mork-grå);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 520px;
}

.knapp-gruppe {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.knapp-primær {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--rod);
    color: var(--hvit);
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(186, 12, 47, 0.25);
    transition: all 0.3s ease;
}

.knapp-primær:hover {
    background-color: var(--bla);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 32, 91, 0.3);
}

.knapp-primær.stor {
    padding: 16px 35px;
    font-size: 1.1rem;
}

.pil-ikon {
    transition: transform 0.3s ease;
}

.knapp-primær:hover .pil-ikon {
    transform: translateX(5px);
}

.knapp-sekundær {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--mork-grå);
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--mork-grå);
    transition: all 0.3s ease;
}

.knapp-sekundær:hover {
    background-color: var(--mork-grå);
    color: var(--hvit);
    transform: translateY(-3px);
}

.statistikk {
    display: flex;
    gap: 35px;
}

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

.tall {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bla);
}

.tekst {
    font-size: 0.9rem;
    color: var(--grå);
}

.helteside-grafikk {
    position: relative;
    text-align: center;
}

.hoved-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px var(--skygge));
}

/* Funksjonsseksjon */
.funksjoner {
    padding: 90px 0;
    background-color: var(--lys-grå);
    position: relative;
    overflow: hidden;
}

.funksjoner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--rod), var(--bla));
}

.seksjons-tittel {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.seksjons-undertittel {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--grå);
    font-size: 1.1rem;
}

.funksjon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.funksjon-kort {
    background-color: var(--hvit);
    border-radius: 12px;
    box-shadow: 0 5px 30px var(--skygge);
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.funksjon-kort::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 0;
    background: var(--gradient);
    transition: height 0.4s ease;
    z-index: -1;
}

.funksjon-kort:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--skygge-sterk);
}

.funksjon-kort:hover::before {
    height: 100%;
}

.funksjon-ikon {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.rod {
    background-color: rgba(186, 12, 47, 0.1);
    color: var(--rod);
}

.bla {
    background-color: rgba(0, 32, 91, 0.1);
    color: var(--bla);
}

.funksjon-kort h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.funksjon-kort p {
    color: var(--grå);
    font-size: 0.95rem;
}

/* Tilbakemeldinger */
.tilbakemeldinger {
    padding: 70px 0;
    background-color: var(--hvit);
}

.tilbakemelding-boks {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--lys-grå);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px var(--skygge);
    position: relative;
}

.tilbakemelding-boks::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    line-height: 0;
    color: rgba(186, 12, 47, 0.1);
    font-family: serif;
}

.stjerner {
    color: var(--rod);
    font-size: 1.7rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.tilbakemelding-tekst {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--mork-grå);
}

.forfatter {
    font-weight: 600;
    color: var(--bla);
}

/* Hvordan det fungerer */
.hvordan {
    padding: 90px 0;
    background-color: var(--lys-grå);
    position: relative;
    overflow: hidden;
}

.trinn-prosess {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto 60px;
}

.trinn {
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.trinn-sirkel {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bla);
    color: var(--hvit);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.trinn-sirkel::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed var(--rod);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.trinn h3 {
    margin-bottom: 12px;
    color: var(--sort);
}

.trinn p {
    color: var(--grå);
    font-size: 0.95rem;
}

.trinn-pil {
    color: var(--rod);
    margin: 0 10px;
}

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

/* FAQ */
.faq {
    padding: 90px 0;
    background-color: var(--hvit);
}

.faq-liste {
    max-width: 800px;
    margin: 0 auto;
}

.faq-element {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-element:hover {
    box-shadow: 0 5px 15px var(--skygge);
}

.faq-sporsmal {
    padding: 20px;
    background-color: var(--hvit);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-sporsmal:hover {
    background-color: rgba(0, 32, 91, 0.05);
}

.faq-sporsmal h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-pluss {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-pluss::before,
.faq-pluss::after {
    content: '';
    position: absolute;
    background-color: var(--rod);
    transition: all 0.3s ease;
}

.faq-pluss::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-pluss::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-element.aktiv .faq-pluss::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-svar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 32, 91, 0.03);
}

.faq-element.aktiv .faq-svar {
    max-height: 300px;
}

.faq-svar p {
    padding: 20px;
    color: var(--grå);
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(45deg, rgba(186, 12, 47, 0.05), rgba(0, 32, 91, 0.05));
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    color: var(--grå);
    margin-bottom: 35px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.bunn {
    background-color: var(--sort);
    color: var(--hvit);
    padding: 70px 0 20px;
}

.bunn-innhold {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.bunn-logo {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.bunn-logo h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.bunn-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.bunn-lenker {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.bunn-kolonne h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.bunn-kolonne h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 40px;
    background-color: var(--rod);
}

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

.bunn-kolonne ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.bunn-kolonne ul li a:hover {
    color: var(--rod);
    padding-left: 5px;
}

.nøkkelord {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nøkkelord span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.alder {
    color: var(--rod) !important;
    margin-top: 10px;
    font-weight: 500;
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .helteside-grid {
        grid-template-columns: 1fr;
    }
    
    .helteside-tekst {
        order: 1;
        text-align: center;
        margin: 0 auto;
    }
    
    .helteside p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .helteside-grafikk {
        order: 0;
        margin-bottom: 30px;
    }
    
    .statistikk {
        justify-content: center;
    }
    
    .knapp-gruppe {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .meny-toggle {
        display: block;
    }
    
    .meny {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--hvit);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 20px var(--skygge);
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .meny.aktiv {
        right: 0;
    }
    
    .meny li {
        margin: 15px 0;
    }
    
    .helteside {
        padding: 60px 0;
    }
    
    .helteside h2 {
        font-size: 2.5rem;
    }
    
    .seksjons-tittel {
        font-size: 2.2rem;
    }
    
    .trinn-prosess {
        flex-direction: column;
        gap: 30px;
    }
    
    .trinn-pil {
        transform: rotate(90deg);
    }
    
    .bunn-innhold {
        flex-direction: column;
    }
    
    .bunn-logo {
        text-align: center;
        margin: 0 auto;
    }
    
    .bunn-lenker {
        justify-content: center;
    }
    
    .bunn-kolonne h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .bunn-kolonne {
        text-align: center;
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .helteside h2 {
        font-size: 2.2rem;
    }
    
    .knapp-primær, .knapp-sekundær {
        width: 100%;
        justify-content: center;
    }
    
    .statistikk {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat-element {
        text-align: center;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}
