/* Verkflöde Main Stylesheet */

/* CSS Variables for Light Mode */
:root {
    --forest-green: #0A382B;
    --leaf-green: #6EBF4A;
    --off-white: #F7F7F7;
    --light-gray: #E0E0E0;
    --charcoal: #333333;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F7;
    --text-primary: #333333;
    --text-secondary: #666666;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

/* Dark Mode Variables - Improved Accessibility (WCAG AA) */
[data-theme="dark"] {
    --forest-green: #408007;  /* Natural green with good contrast */
    --leaf-green: #8FE368;     /* Brighter green for better visibility */
    --off-white: #242424;      /* Slightly lighter background */
    --light-gray: #3A3A3A;     /* Better contrast for borders */
    --charcoal: #F0F0F0;       /* Brighter text */
    --bg-primary: #181818;     /* Lighter background (was #0F0F0F) */
    --bg-secondary: #242424;   /* Lighter secondary bg (was #1A1A1A) */
    --text-primary: #F0F0F0;   /* Brighter primary text (was #E0E0E0) */
    --text-secondary: #C8C8C8; /* Brighter secondary text (was #B0B0B0) */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

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

/* Privacy Policy Styles */
.privacy-main {
    min-height: 100vh;
    background: var(--bg-primary);
}

.privacy-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.privacy-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.privacy-updated {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.privacy-section {
    margin-bottom: 2.5rem !important; /* INCREASED section spacing */
    padding: 0 !important; /* Override global section padding */
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* THE FIX: Remove all margins from paragraphs and lists within a section */
.privacy-section p,
.privacy-section ul {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.privacy-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem; /* Add a little space before lists */
}

.privacy-section li {
    margin-bottom: 0.25rem;
}

.privacy-contact-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    text-align: center;
}

.privacy-contact-box p {
    color: var(--text-secondary);
}

.privacy-contact-box a {
    color: var(--leaf-green);
    font-weight: 500;
    text-decoration: none;
}

/* About Us Page Styles */
.about-tagline {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.founder-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.founder-image-container {
    flex-shrink: 0;
    text-align: center;
}

.founder-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.founder-name {
    margin-top: 1rem;
    margin-bottom: 0;
}

.founder-bio {
    flex: 1;
    min-width: 350px;
}

.vision-item {
    margin-bottom: 1.5rem;
}

.vision-item strong {
    color: var(--color-primary);
}

.cta-section {
    margin-top: 2rem;
}

.cta-message {
    font-weight: 600;
    margin-top: 2rem;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

/* Selection Color */
::selection {
    background-color: var(--leaf-green);
    color: var(--forest-green);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(45deg, var(--forest-green), var(--leaf-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--forest-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

/* Ensure header content doesn't overflow on mobile */
@media (max-width: 767px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo-img {
        height: 3rem;
    }
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 4.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--forest-green);
}

.logo-text-accent {
    color: var(--leaf-green);
}

/* Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--leaf-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--forest-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--forest-green);
    color: white;
}

.btn-primary:hover {
    background: var(--forest-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--forest-green);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--leaf-green);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background: var(--light-gray);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--forest-green);
    z-index: 101;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 320px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Sections */
section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Mobile section padding adjustments */
@media (max-width: 767px) {
    section {
        padding: 3rem 1rem;
    }
    
    .section-padding {
        padding: 3rem 1rem;
    }
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Stats Cards */
.stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border-top: 4px solid var(--leaf-green);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--forest-green);
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Goal Cards */
.goal-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--leaf-green);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--light-gray);
    padding: 2rem 1.5rem;
    text-align: center;
}

[data-theme="dark"] footer {
    background: #0A0A0A;
}

/* Form Styling */
input[type="text"],
input[type="email"], 
textarea {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--light-gray) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus, 
textarea:focus {
    outline: none !important;
    border-color: var(--leaf-green) !important;
    box-shadow: 0 0 0 2px rgba(143, 227, 104, 0.2) !important;
}

/* Dark mode form adjustments */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea {
    border-color: #3A3A3A !important;
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] textarea:focus {
    box-shadow: 0 0 0 2px rgba(143, 227, 104, 0.3) !important;
}

/* Form Submit Button */
button[type="submit"] {
    background: var(--leaf-green) !important;
    color: var(--forest-green) !important;
    transition: all 0.3s ease !important;
}

button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Dark mode button - dark color to contrast with forest green background */
[data-theme="dark"] button[type="submit"] {
    background: #2A5A2A !important; /* Darker green */
    color: white !important;
    font-weight: 600 !important;
}

[data-theme="dark"] button[type="submit"]:hover {
    background: #1A4A1A !important; /* Even darker on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
}

/* Layout Classes */
.section-padding {
    padding: 5rem 1.5rem;
}

.container-narrow {
    max-width: 48rem;
    margin: 0 auto;
}

.container-wide {
    max-width: 64rem;
    margin: 0 auto;
}

.container-standard {
    max-width: 80rem;
    margin: 0 auto;
}

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

.text-left {
    text-align: left;
}

/* Mobile Menu Panel Classes */
.mobile-menu-panel-padding {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 102;
    padding: 0.5rem;
}

.mobile-nav-container {
    margin-top: 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: var(--forest-green);
}

.mobile-nav-cta-container {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.mobile-nav-footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

/* Typography Classes */
.hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 auto;
    max-width: 64rem;
}

.hero-heading-narrow {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 2rem;
}

.card-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

.feature-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.hero-text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.section-text-wide {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-section-text {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-link {
    color: var(--forest-green);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
}

.cta-group {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-demo-button {
    font-size: 1.125rem;
}

/* Layout Components */
.hero-section {
    background: var(--bg-primary);
}

.section-dark {
    background: var(--forest-green);
    color: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Mobile Menu Classes */
.mobile-menu-panel-inner {
    padding: 1.5rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-nav {
    margin-top: 3rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
}

.mobile-nav-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.mobile-nav-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

/* Form Classes */
.form-container {
    margin-top: 2.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.form-input-white {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: white;
    color: var(--charcoal);
}

.form-textarea-white {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: white;
    color: var(--charcoal);
    resize: vertical;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    resize: vertical;
}

.form-button {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-text {
    color: white;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.email-link {
    color: white;
    text-decoration: underline;
}

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flex-center-gap-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-footer {
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Accessibility Focus Styles */
*:focus {
    outline: 2px solid var(--leaf-green);
    outline-offset: 2px;
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

.footer-dark {
    background: #1A1A1A;
    color: #B0B0B0;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-link {
    color: #B0B0B0;
    text-decoration: none;
    margin: 0 1rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--leaf-green);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

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

/* Print Styles */
@media print {
    header, footer, .mobile-menu, .theme-toggle, .lang-switcher {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}