/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
}

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-subtitle p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Video background for hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
    z-index: 1;
}

.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
}

.video-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.video-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chili-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.03rem 0.06rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.12rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0.15;
    margin-right: 0.5rem;
}

.chili-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 0.35;
    transform: scale(1.1);
}

/* Section backgrounds - Alternating white/navy */
#hva-er-aiseek {
    background: var(--white);
}

#slik-fungerer {
    background: var(--navy);
    color: var(--white);
}

#slik-fungerer h2,
#slik-fungerer h3,
#slik-fungerer h4,
#slik-fungerer p {
    color: var(--white);
}

#teknologi {
    background: var(--white);
}

#demo {
    background: var(--navy);
    color: var(--white);
}

#demo h2,
#demo h3,
#demo p {
    color: var(--white);
}

#faq {
    background: var(--white);
}

/* Two-Column Layout (Visma-style alternating) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 3rem;
}

.two-col-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(19, 51, 85, 0.1);
}

.two-col-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.two-col-content p {
    text-align: left;
    margin-bottom: 1.5rem;
}

.two-col-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.two-col-content li {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.two-col-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--navy);
}

/* Reverse order for alternating effect */
.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

/* 3-Step Process */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--color-cyan-soft) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(5, 198, 215, 0.3);
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.step p {
    font-size: 1rem;
}

/* Process Cards */
.process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 4rem 0;
}

.process-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.process-icon {
    width: 80px;
    height: 80px;
    background: rgba(19, 51, 85, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    background: var(--navy);
}

.process-icon svg {
    color: var(--navy);
    transition: all 0.3s ease;
}

.process-card:hover .process-icon svg {
    color: var(--white);
}

.process-card h3 {
    color: var(--navy) !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-card p {
    color: var(--text-secondary) !important;
    font-size: 1rem;
    line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    margin-top: 3rem;
}

.trust-badge {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(19, 51, 85, 0.02);
}

.trust-badge:hover {
    background: rgba(19, 51, 85, 0.05);
    transform: translateX(4px);
}

.trust-badge-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: 8px;
}

.trust-badge-icon svg {
    color: var(--white);
}

.trust-badge-content {
    flex: 1;
}

.trust-badge h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.trust-badge p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(19, 51, 85, 0.2);
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(19, 51, 85, 0.1);
}

.form-submit {
    width: 100%;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    display: block;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    display: block;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(19, 51, 85, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--white);
    border: none;
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(19, 51, 85, 0.03);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--navy);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Footer - World-Class Horizontal Design */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    align-items: flex-start; /* Top alignment for cleaner look */
    margin-bottom: 1rem;
    max-width: 1100px;
}

.footer-section {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    white-space: nowrap;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-section a:hover {
    color: white;
}

.footer-section a:not(:last-child)::after {
    content: "•";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

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

/* ===== RESPONSIVE ===== */
/* Tablet - Switch to hamburger navigation at 1024px */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-login {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Note: .mobile-nav display now controlled by .active class in components.css */

    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Typography now handled by clamp() in base.css - smooth scaling! */

    .container {
        padding: 0 1.5rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col.reverse {
        direction: ltr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile - Layout changes at 768px */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1rem;
    }

    /* Logo size now fluid with clamp() in components.css */

    /* Typography now fluid with clamp() in base.css */

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 3.5rem 0;
    }

    #hero {
        min-height: 70vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col.reverse {
        direction: ltr;
    }

    .process-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .footer-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-section h4,
    .footer-section a {
        white-space: normal;
    }

    .footer-section a {
        padding: 0.75rem 0;
        display: block;
        min-height: 44px; /* WCAG touch target */
        line-height: 1.4;
    }

    .footer-section a:not(:last-child)::after {
        content: none;
    }

    /* Explicit touch target for mobile nav links */
    .mobile-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Small phone adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Typography now fluid via clamp() */
    /* Logo now fluid via clamp() */

    .step-number {
        font-size: 3rem;
    }
}

/* Ultra-narrow breakpoint removed - no longer needed with fluid logo sizing and proper flex layout */
