/* CSS för häckplantering Malmö - Nordic design 2012 stil */
/* Optimerad för snabb laddning och mobilanpassning */

/* Grundinställningar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography - Nordisk stil */
h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #1a5f3f;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2em;
    font-weight: 400;
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.5em;
    font-weight: 500;
    margin: 1.2rem 0 0.8rem;
    color: #2c5530;
}

h4 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    font-size: 1.125em;
    color: #34495e;
}

/* Header och navigation */
.malmö-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.malmö-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.häck-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a5f3f;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.häck-logo::before {
    content: "🌿";
    margin-right: 0.5rem;
    font-size: 1.5em;
}

.malmö-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.malmö-nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.malmö-nav-links a:hover {
    background-color: #e8f5e8;
    color: #1a5f3f;
    transform: translateY(-1px);
}

/* CTA Button - Lila som specificerat */
.cta-button {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #8e44ad 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

/* Mobile hamburger menu */
.malmö-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.malmö-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Container och layout */
.malmö-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.häck-section {
    padding: 3rem 0;
}

.malmö-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.malmö-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(26, 95, 63, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.malmö-hero-content {
    position: relative;
    z-index: 2;
}

/* Above the fold optimering */
.above-fold {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Info rutor - Nordisk stil */
.häck-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.häck-info-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #1a5f3f;
    transition: all 0.3s ease;
}

.häck-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.häck-info-box h3 {
    color: #1a5f3f;
    margin-bottom: 1rem;
}

/* Tabeller - mobilanpassade */
.malmö-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.malmö-table th {
    background: linear-gradient(135deg, #1a5f3f 0%, #2e7d32 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.malmö-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.malmö-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Formulär styling */
.malmö-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border-top: 4px solid #8e44ad;
}

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

.malmö-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.malmö-form-group input,
.malmö-form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.malmö-form-group input:focus,
.malmö-form-group textarea:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

/* Quote boxes */
.häck-quote {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.häck-quote::before {
    content: '"';
    font-size: 4rem;
    color: #4caf50;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
}

/* Drop-down menyer */
.häck-dropdown {
    margin: 1rem 0;
}

.häck-dropdown-header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    position: relative;
}

.häck-dropdown-header:hover {
    background: #34495e;
}

.häck-dropdown-header::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.häck-dropdown-content {
    display: none;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid #e0e0e0;
}

.häck-dropdown.active .häck-dropdown-header::after {
    transform: rotate(45deg);
}

.häck-dropdown.active .häck-dropdown-content {
    display: block;
}

/* Progress indicators för formulär */
.form-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #8e44ad;
    color: white;
}

/* Säsongsbundet innehåll */
.säsong-info {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.säsong-info h3 {
    color: #e65100;
    margin-bottom: 1rem;
}

/* CSS bilder för rubriker */
.rubrik-ikon {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    vertical-align: middle;
    border-radius: 50%;
    position: relative;
}

.rubrik-ikon.plantering {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.rubrik-ikon.plantering::after {
    content: '🌱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.rubrik-ikon.skötsel {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
}

.rubrik-ikon.skötsel::after {
    content: '✂️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

/* Footer */
.malmö-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-services {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.footer-services h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
}

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

.footer-services ul li {
    margin-bottom: 0.5rem;
}

.footer-services ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-services ul li a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
}

/* Mobile responsiv design */
@media (max-width: 768px) {
    .malmö-nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .malmö-nav-links.active {
        left: 0;
    }

    .malmö-menu-toggle {
        display: flex;
    }

    .malmö-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .häck-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .malmö-table {
        font-size: 0.9rem;
    }

    .malmö-table th,
    .malmö-table td {
        padding: 0.5rem;
    }

    .häck-section {
        padding: 2rem 0;
    }

    .malmö-hero {
        padding: 2rem 0;
    }

    .above-fold {
        min-height: 60vh;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        margin: 1rem 0;
    }
}

/* Preloader för snabbare upplevd laddning */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #1a5f3f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Performance optimering */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility förbättringar */
.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;
}

/* Focus states för keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #8e44ad;
    outline-offset: 2px;
}

/* Smooth scrolling för ankarlänkar */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .malmö-header,
    .malmö-footer,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}