/* ===================================
   FÖRSKOTTSLÖN - KOMPLETT STYLESHEET
   Version 2.6 - Med fix för mobil navbar (logo vänster, ikon höger, utan rotation)
   =================================== */

@charset "UTF-8";

/* ===================================
   1. ROOT VARIABLES & RESET
   =================================== */
:root {
    --primary-dark: #4A704A;
    --primary-medium: #6D8B4A;
    --primary-light: #A6C36F;
    --accent-light: #D4E4C1;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* DARK MODE AVSTÄNGT
@media (prefers-color-scheme: dark) {
    Ta bort all dark mode CSS
}
*/

/* ===================================
   2. BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-medium);
    outline-offset: 2px;
}

/* Skip to content link */
.visually-hidden-focusable:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px;
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* ===================================
   3. NAVIGATION - LOGO FIX
   =================================== */
.header-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    height: 5px;
}

.navbar {
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    background-color: #ffffff !important;
}

/* LOGO FIX - Korrekt aspekt */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: auto;
    max-height: 100px;
    width: 100%;
    max-width: 300px;
    object-fit: contain;
    transition: transform var(--transition-fast), max-width 0.3s, max-height 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary-dark) !important;
    font-weight: 500;
    font-size: 1.1rem;
    margin-left: 1rem;
    padding: 0.6rem 1.2rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-medium);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-medium) !important;
}

/* ===================================
   4. BUTTONS
   =================================== */
.btn-login,
.btn-custom-theme {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(74, 112, 74, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-login {
    font-family: inherit; /* ärver från body, samma som nav-link */
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.btn-login:hover,
.btn-custom-theme:hover {
    background: linear-gradient(135deg, var(--primary-medium) 0%, #8AA65A 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 112, 74, 0.5);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-success {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* ===================================
   5. HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('img/hero-background.jpeg') no-repeat center/cover;
    color: white;
    padding: 10rem 0;
    position: relative;
    min-height: 600px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   6. SERVICE CARDS
   =================================== */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* ===================================
   7. ABOUT PAGE STYLES - FIX STAT BOXES
   =================================== */
.modern-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.image-content {
    flex: 1;
    min-width: 300px;
}

.modern-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.modern-image:hover {
    transform: scale(1.03);
}

/* FIXADE STAT BOXES */
.stat-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    line-height: 1.2;
}

/* Transformation stats specific */
.transformation-stats {
    margin-top: 2rem;
}

.transformation-stats .stat-box {
    transition: transform var(--transition-fast);
}

.transformation-stats .stat-box:hover {
    transform: translateY(-5px);
}

/* Team Cards */
.team-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

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

.team-image {
    width: 150px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-light);
}

/* Value Cards */
.value-card {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-fast);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-medium);
    margin-bottom: 1rem;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 2px solid white;
}

/* ===================================
   8. FOOTER
   =================================== */
.lively-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.lively-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(166, 195, 111, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lively-footer .container {
    position: relative;
    z-index: 1;
}

.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ===================================
   9. COOKIE BANNER
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 9999;
    animation: slideUp var(--transition-medium);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===================================
   10. BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1050;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 8px 24px rgba(74, 112, 74, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    opacity: 0.85;
    animation: fadeInUp 0.6s;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    color: #fff;
    transform: translateY(-6px) scale(1.08) rotate(-8deg);
    box-shadow: 0 12px 32px rgba(74, 112, 74, 0.35);
    opacity: 1;
}

.back-to-top i {
    animation: bounceUp 1.2s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1.5px;
}

@keyframes bounceUp {
    from { transform: translateY(2px); }
    to { transform: translateY(-2px); }
}

/* ===================================
   11. ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   12. MODALS
   =================================== */
.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

/* ===================================
   13. FORMS
   =================================== */
.form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(74, 112, 74, 0.25);
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===================================
   14. UTILITIES
   =================================== */
.text-primary-custom {
    color: var(--primary-dark) !important;
}

.bg-primary-custom {
    background-color: var(--primary-dark) !important;
}

.border-primary-custom {
    border-color: var(--primary-dark) !important;
}

/* ===================================
   15. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-width: 250px;
        max-height: 90px;
    }
    
    .navbar-nav {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .nav-link {
        margin-left: 0 !important;
        text-align: center;
        font-size: 1rem;
        padding: 0.6rem 0;
    }
    
    
    .content-wrapper {
        flex-direction: column !important;
    }
    
    .flex-reverse {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
   /* .navbar-brand img {
        width: 280px;      
        max-height: 100px; 
    }
    
    .navbar {
        padding: 1.5rem 1rem;
    }
    */
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .modern-section {
        padding: 2rem 1.5rem;
    }
    
    .team-card {
        margin-bottom: 2rem;
    }
    
    .cookie-banner .col-md-4 {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Fix stat boxes on mobile */
    .stat-box .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.8rem;
    }

    
/*}

@media (max-width: 576px) {*/

    .navbar-brand img {
        max-width: 240px;  /* Ökat från 200px */
        max-height: 80px;  /* Ökat från 60px */
        min-width: 200px;  /* Garanterad minsta storlek */
    }

    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn-custom-theme, .btn-lg {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card i {
        font-size: 2rem;
    }
    
    .modern-image {
        height: 200px;
    }

    /* Mobil-specifika ändringar för navbar */
    .header-bar {
        display: none;
    }

    .navbar {
        position: relative;
        padding: 0.75rem 1rem;
        min-height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-toggler {
        margin-left: auto; /* Ny: Skjut ikonen till höger */
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        transition: var(--transition-fast);
        border: none;
        background: transparent;
    }


    .navbar-brand {
        flex-shrink: 0;
    }

    .navbar-brand img {
        max-width: 250px;
        max-height: 85px;
        width: auto;
    }
}

@media (max-width: 600px) {
    .back-to-top {
        display: none !important;
    }
}

/* ===================================
   16. PRINT STYLES
   =================================== */
@media print {
    .navbar, .footer, .back-to-top, .cookie-banner, .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .btn {
        display: none;
    }
}

/* ===================================
   17. LOADING STATES
   =================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===================================
   18. ACCESSIBILITY IMPROVEMENTS
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-login, .btn-custom-theme {
        border: 2px solid currentColor;
    }
    
    .service-card {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.navbar-flex-nowrap {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .btn-login {
        margin-left: 1rem !important; /* Justera värdet efter önskat avstånd */
    }
    
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}