/* 
nudeifyNO.pw - Stilark
Hovedfarger: #BA0C2F (Rødt), #00205B (Blått), #FFFFFF (Hvitt)
Fonter: 'Montserrat' for overskrifter, 'Open Sans' for tekst
*/

:root {
    --primary-color: #BA0C2F;
    --secondary-color: #00205B;
    --accent-color: #c8102e;
    --light-color: #F9F9F9;
    --dark-color: #212529;
    --text-color: #444444;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #FFFFFF;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.3px;
}

h2 span {
    color: var(--primary-color);
    position: relative;
}

h2 span::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}

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

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 90px 0;
    position: relative;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* Knapper */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 30px;
    font-family: var(--header-font);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(186, 12, 47, 0.3);
}

.primary:hover {
    background-color: #9f0b29;
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 7px 18px rgba(186, 12, 47, 0.4);
}

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

.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 32, 91, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

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

/* Toppseksjon */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    display: block;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

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

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

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

.menu a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero-seksjon */
.hero {
    padding-top: 130px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(186, 12, 47, 0.03) 0%, rgba(0, 32, 91, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186, 12, 47, 0.1) 0%, rgba(186, 12, 47, 0) 70%);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 32, 91, 0.1) 0%, rgba(0, 32, 91, 0) 70%);
}

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

.hero-content {
    flex: 0 0 55%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 0 0 40%;
    position: relative;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    font-family: var(--header-font);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Seksjon: Hvordan det fungerer */
.hvordan-det-fungerer {
    background-color: #FFFFFF;
}

.steps {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    justify-content: space-between;
}

.step {
    flex: 0 0 calc(33.333% - 20px);
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 35px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
}

.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px 5px 0 0;
}

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

.step-icon {
    margin-bottom: 25px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(186, 12, 47, 0.3);
}

/* Seksjon: Funksjoner */
.funksjoner {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.funksjoner::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.03;
}

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

.feature-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 35px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    margin-bottom: 25px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Seksjon: Om Oss */
.om-oss {
    background-color: #FFFFFF;
}

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

.about-content {
    flex: 0 0 55%;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.05rem;
}

.about-image {
    flex: 0 0 40%;
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 5px solid rgba(186, 12, 47, 0.1);
    border-radius: 10px;
    z-index: -1;
}

/* Bunntekst */
footer {
    background-color: var(--light-color);
    padding: 70px 0 20px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-branding {
    flex: 0 0 35%;
}

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

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

.footer-nav {
    flex: 0 0 60%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 40px;
}

.footer-column {
    flex: 0 0 auto;
    min-width: 160px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
    border-radius: 5px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #666;
}

/* Responsivt design */
@media (max-width: 992px) {
    h1, .hero-title {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container, .om-oss .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image, .about-content, .about-image {
        flex: 0 0 100%;
    }
    
    .about-content h2 {
        text-align: center;
    }
    
    .steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 30px;
    }
    
    .footer-branding, .footer-nav {
        flex: 0 0 100%;
    }
    
    .footer-nav {
        margin-top: 40px;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .menu-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.4s ease, padding 0.4s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
    }
    
    .menu.active {
        max-height: 350px;
        padding: 20px 0;
    }
    
    .menu li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    .menu a::after {
        display: none;
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-column {
        flex: 0 0 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    h1, .hero-title {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}

/* Animasjoner for mobilmenyen */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
