/* Variabler */
:root {
    --primary-color: #0057B8; /* Blå - Norges flagg */
    --accent-color: #6AB8E8; /* Lysere blå */
    --dark-color: #213552;
    --light-color: #F0F6FF;
    --white-color: #FFFFFF;
    --text-color: #2C3E50;
    --grey-color: #E9EFF6;
    --shadow: 0 8px 25px rgba(0, 87, 184, 0.1);
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigasjonsmeny */
.main-nav {
    padding: 1.25rem 0;
    background-color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: block;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style-type: none;
    gap: 2.5rem;
}

.nav-menu li a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero-seksjon */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(170deg, var(--white-color) 0%, var(--light-color) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 87, 184, 0.05) 0%, rgba(0, 87, 184, 0) 70%);
    transform: rotate(-30deg);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subheading {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 87, 184, 0.15));
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 87, 184, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 87, 184, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 87, 184, 0.2);
}

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Funksjoner-seksjon */
.features {
    padding: 7rem 0;
    background-color: var(--white-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--primary-color);
}

.features-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.feature-box {
    flex: 1 1 250px;
    max-width: 300px;
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
    z-index: -1;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 87, 184, 0.15);
}

.feature-icon {
    margin-bottom: 2rem;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-box h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-box p {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Hvordan det fungerer seksjon */
.how-it-works {
    padding: 7rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(0, 87, 184, 0.05) 0%, rgba(0, 87, 184, 0) 70%);
    border-radius: 50%;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(0, 87, 184, 0.05) 0%, rgba(0, 87, 184, 0) 70%);
    border-radius: 50%;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.how-it-works h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--primary-color);
}

.process-container {
    max-width: 850px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.process-container::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 35px;
    width: 2px;
    height: calc(100% - 90px);
    background-color: var(--primary-color);
    opacity: 0.3;
}

.process-step {
    display: flex;
    margin-bottom: 3.5rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--white-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.step-content {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    flex: 1;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.center-content {
    text-align: center;
    margin-top: 4rem;
}

/* FAQ-seksjon */
.faq-section {
    padding: 7rem 0;
    background-color: var(--white-color);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--primary-color);
}

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

.accordion-item {
    margin-bottom: 1.5rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin: 0;
    transition: var(--transition);
}

.accordion-header:hover h3 {
    color: var(--primary-color);
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.toggle-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.toggle-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion-item.active .toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.accordion-item.active .accordion-header {
    background-color: rgba(0, 87, 184, 0.05);
}

/* Testimonials-seksjon */
.testimonials {
    padding: 7rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--primary-color);
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial-card {
    flex: 1 1 300px;
    max-width: 380px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 87, 184, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    line-height: 1;
    color: rgba(0, 87, 184, 0.1);
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.author {
    font-weight: 600;
    color: var(--dark-color);
    text-align: right;
}

/* CTA-seksjon */
.final-cta {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white-color);
    text-align: center;
}

.final-cta h2 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.final-cta .cta-button {
    background: var(--white-color);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.final-cta .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-logo text {
    fill: var(--white-color);
}

.footer-links h4,
.footer-tags h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-tags h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-tags p {
    opacity: 0.7;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive design */
@media screen and (max-width: 1100px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .feature-box {
        flex: 1 1 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .process-container::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-marker {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}
