/* Reset och grundläggande stilar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header och Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Hero-sektion */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

/* Knappar */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-button.secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Bild-placeholders */
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
    padding: 2rem;
}

.image-placeholder.small {
    min-height: 150px;
    font-size: 0.9rem;
}

.image-placeholder.large {
    min-height: 400px;
}

/* Riktiga bilder - ersätter placeholders */
.hero-image img,
.intro-content img,
.column img,
.gallery-item img,
.two-column img,
section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-effekt på bilder */
.gallery-item img:hover,
.feature-card img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Hero-bilder specifikt */
.hero-image img {
    max-height: 500px;
    object-fit: cover;
}

/* Små bilder (ikoner etc) */
img[style*="max-width: 100px"],
.small-icon {
    box-shadow: none;
    border-radius: 0;
}

/* Bilder i tips-boxar och warning-boxar */
.tip-box img,
.warning-box img {
    margin-top: 1rem;
    border-radius: 6px;
}

/* Bilder i gallery grid */
.gallery-item img {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

/* Responsive bildhantering */
@media (max-width: 968px) {
    .hero-image img {
        max-height: 400px;
    }
}

@media (max-width: 600px) {
    .hero-image img {
        max-height: 300px;
    }
    
    section img {
        border-radius: 6px;
    }
}

/* Sektioner */
section {
    padding: 4rem 0;
}

.gray-bg {
    background-color: var(--light-gray);
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Intro-sektion */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 1.1rem;
}

.intro-content .image-placeholder {
    margin: 2rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.feature-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.feature-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-card a:hover {
    color: #2980b9;
}

/* Två-kolumn layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.column {
    font-size: 1.05rem;
}

.column a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.column a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Fördelar-lista */
.benefits-list {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background-color: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    border-radius: 4px;
}

.benefit-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Tips-boxar */
.tip-box {
    background-color: #e8f4fd;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.tip-box h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* Listor */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* CTA-sektion */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

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

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

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

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

/* Responsiv design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}
