/* ============================================
   CSS Variables - Dynamikfabrikken Brand
   ============================================ */
:root {
    /* Brand Colors */
    --primary-orange: #f6921e;
    --primary-yellow: #ffdd15;
    --dark-text: #14191c;
    --secondary-text: #58595b;
    --light-bg: #fefefe;
    --section-bg: #f9f9f9;
    --accent-beige: #fbc08d;

    /* Functional Colors */
    --success: #4CAF50;
    --error: #f44336;
    --border: #e0e0e0;

    /* Spacing */
    --container-width: 1400px;
    --header-height: 80px;
    --step-nav-height: 60px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --slide-transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-text);
    background: var(--light-bg) url('bg-main.png') repeat;
    overflow: hidden;
    height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', var(--font-family);
    line-height: 1.1;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
}

p {
    margin-bottom: 12px;
}

/* ============================================
   Top Header (Transparent)
   ============================================ */
.top-header {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 20px 50px;
    margin-left: -40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-logo-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--dark-text);
    text-transform: lowercase;
    line-height: 1;
}

.header-logo-sub {
    font-size: 9px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    line-height: 1;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--dark-text);
    padding: 10px 16px;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.lang-switch:hover {
    color: var(--primary-orange);
}

#currentLang {
    color: var(--primary-orange);
}

/* ============================================
   Bottom Step Navigation
   ============================================ */
.step-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--step-nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.step-nav-container {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    width: 100%;
}

.step-item {
    position: relative;
    flex: 1;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
}

.step-item:not(:first-child) {
    padding-left: 32px;
}

/* Arrow between steps */
.step-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 25px 0 25px 14px;
    border-color: transparent transparent transparent white;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item:last-child::after {
    display: none;
}

.step-item:hover {
    background: var(--accent-beige);
    color: var(--dark-text);
}

.step-item:hover::after {
    border-left-color: var(--accent-beige);
}

.step-item.active {
    background: var(--primary-orange);
    color: white;
    font-weight: 800;
}

.step-item.active::after {
    border-left-color: var(--primary-orange);
}

/* ============================================
   Slides Container
   ============================================ */
.slides-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--step-nav-height);
    display: flex;
    transition: var(--slide-transition);
    will-change: transform;
}

.slide {
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
    position: relative;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.slide::-webkit-scrollbar {
    width: 8px;
}

.slide::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.slide::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 0;
}

.slide::-webkit-scrollbar-thumb:hover {
    background: var(--dark-text);
}

.slide-content {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 40px 40px 40px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-base);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    color: var(--dark-text);
    box-shadow: 0 4px 20px rgba(246, 146, 30, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(246, 146, 30, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--dark-text);
}

.btn-secondary:hover {
    background: var(--dark-text);
    color: white;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

/* ============================================
   Hero Section (Slide 1) - Compact for Single Screen
   ============================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: center;
    padding: 40px 0 20px 0;
    max-height: calc(100vh - var(--header-height) - var(--step-nav-height) - 80px);
}

.hero-text {
    max-width: 580px;
}

.hero-title {
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    font-size: 44px;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--secondary-text);
    margin-bottom: 28px;
    line-height: 1.55;
    font-weight: 400;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    padding: 14px 24px;
}

.card-dots {
    display: flex;
    gap: 7px;
}

.card-dots span {
    width: 11px;
    height: 11px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
}

.card-content {
    padding: 28px;
    background: #fafafa;
}

.cookie-banner-preview {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.banner-text h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark-text);
    font-weight: 700;
    text-transform: none;
    font-family: 'Poppins', var(--font-family);
}

.banner-text p {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-buttons button {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-base);
    cursor: pointer;
}

.banner-buttons .accept {
    background: #1863dc;
    color: white;
    border: 2px solid #1863dc;
}

.banner-buttons .accept:hover {
    background: #0d4fb3;
    border-color: #0d4fb3;
}

.banner-buttons .decline {
    background: white;
    border: 2px solid #d0d0d0;
    color: #666;
}

.banner-buttons .decline:hover {
    border-color: #999;
    color: var(--dark-text);
}

.checkmarks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-text);
}

.check-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ============================================
   Section Headers - Compact
   ============================================ */
.section-header {
    margin-bottom: 32px;
}

.section-header.center {
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--dark-text);
}

.section-header p {
    font-size: 16px;
    color: var(--secondary-text);
    line-height: 1.55;
    font-weight: 400;
}

/* ============================================
   Services Grid (Slide 2)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    padding: 24px;
    background: white;
    transition: var(--transition-base);
    border-left: 3px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    gap: 20px;
    align-items: center;
}

.service-card:hover {
    border-left-color: var(--primary-orange);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(246, 146, 30, 0.12);
}

.service-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-icon i {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2.5;
}

.service-content {
    flex: 1;
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.service-card p {
    color: var(--secondary-text);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Process Timeline (Slide 2) - Redesigned
   ============================================ */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 20px 0;
}

.process-step {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 32px;
    top: 85px;
    width: 2px;
    height: calc(100% + 28px);
    background: linear-gradient(to bottom, var(--primary-orange), transparent);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--primary-orange);
    color: white;
    font-size: 32px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(246, 146, 30, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 0;
    background: white;
    padding: 32px 40px;
    border-left: 3px solid var(--accent-beige);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
}

.step-content p {
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

/* ============================================
   Pricing Grid (Slide 4)
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e5e5;
    padding: 32px;
    position: relative;
    transition: var(--transition-base);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border-color: var(--primary-orange);
    border-width: 3px;
    box-shadow: 0 16px 48px rgba(246, 146, 30, 0.15);
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--dark-text);
}

.pricing-subtitle {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
}

.pricing-price {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-beige);
}

.price {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-text);
    font-family: 'Poppins', var(--font-family);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.price-period {
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature span {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--dark-text);
}

.pricing-cta {
    width: 100%;
}

/* ============================================
   FAQ Section (Slide 5)
   ============================================ */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px;
    text-align: left;
    font-size: 19px;
    font-weight: 700;
    font-family: 'Poppins', var(--font-family);
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--section-bg);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 36px 28px;
}

.faq-answer p {
    color: var(--secondary-text);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Contact Section (Slide 6)
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
}

.contact-info > p {
    font-size: 17px;
    color: var(--secondary-text);
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
}

.contact-form-wrapper {
    background: white;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-text);
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 2px solid #d5d5d5;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-base);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(246, 146, 30, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
}

/* ============================================
   New Elements (Price Badge, FAQ Trigger, etc.)
   ============================================ */

.hero-cta {
    margin-top: 32px;
}

/* FAQ Trigger Button - Simple */
.faq-trigger {
    display: inline-block;
    margin-top: 48px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--dark-text);
    color: var(--dark-text);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.faq-trigger:hover {
    background: var(--dark-text);
    color: white;
}

/* Single Pricing Card - Compact */
.pricing-single {
    max-width: 720px;
    margin: 0 auto;
}

.pricing-note {
    margin-top: 20px;
    padding: 18px 22px;
    background: #fafafa;
    border-left: 4px solid var(--primary-orange);
    font-size: 13px;
    line-height: 1.6;
}

.pricing-note p {
    margin-bottom: 10px;
    color: var(--secondary-text);
}

.pricing-note p:last-child {
    margin-bottom: 0;
}

.pricing-note strong {
    color: var(--dark-text);
    font-weight: 700;
}

/* Desktop: Column layout for pricing features */
@media (min-width: 1025px) {
    .pricing-single {
        max-width: 900px;
    }

    .pricing-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 28px;
        margin-bottom: 24px;
    }
}

/* FAQ Modal */
.faq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.faq-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-modal-content {
    background: white;
    padding: 50px;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.faq-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-text);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.faq-modal-close:hover {
    color: var(--primary-orange);
}

.faq-modal h2 {
    margin-bottom: 32px;
    text-align: center;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Desktop: Compact Navigation Under Logo */
@media (min-width: 1025px) {
    :root {
        --step-nav-height: 45px;
        --nav-spacing: 10px;
    }

    .step-navigation {
        position: fixed;
        top: calc(14px + var(--header-height) + var(--nav-spacing));
        left: 0;
        right: 0;
        bottom: auto;
        height: var(--step-nav-height);
        padding: 0;
        padding-right: 40px;
        justify-content: flex-start;
        align-items: center;
        z-index: 1001;
    }

    .step-nav-container {
        max-width: none;
        width: auto;
    }

    .step-item {
        min-height: 45px;
        padding: 10px 18px;
        font-size: 11px;
        flex: none;
    }

    .step-item:not(:first-child) {
        padding-left: 28px;
    }

    .step-item::after {
        border-width: 22px 0 22px 10px;
    }

    .slides-container {
        top: 0;
        bottom: 0;
    }

    .slide {
        padding-top: calc(14px + var(--header-height) + var(--nav-spacing) + var(--step-nav-height) + 30px);
        min-height: 100vh;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 20px;
    }

    .header-logo img {
        height: 40px;
    }

    .slide {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 30px;
    }

    .slide-content {
        padding: 0 24px;
    }

    .step-navigation {
        padding: 0 20px;
    }

    .step-item {
        font-size: 11px;
        padding: 10px 16px;
        min-height: 45px;
    }

    .step-item::after {
        border-width: 22px 0 22px 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 20px;
        gap: 16px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .service-icon i {
        width: 20px;
        height: 20px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 13px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 35px;
    }

    .header-logo-text {
        font-size: 16px;
    }

    .step-item {
        font-size: 10px;
        padding: 8px 12px;
        min-height: 40px;
    }

    .step-item::after {
        border-width: 20px 0 20px 10px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .top-header,
    .step-navigation {
        display: none;
    }
}

/* ============================================
   Crisp Chat - Styling
   ============================================ */
/* Crisp will show in corner with higher z-index when modal is active */

