body {
    font-family: "p22-underground", sans-serif;
    margin: 0;
    background-color: #fff;
    color: #4A4A4A;
}

h1, h2, h3 {
    font-family: "p22-underground-sc", sans-serif;
    font-weight: 500;
}

/* ===== Header styles ===== */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f1db; /* Changed to desired light color */
    padding: 0.1em 2em;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0d9b4;
    text-align: center;
}

.header-logo {
    height: 130px;  /* Increased from 100px to 130px (30% larger) */
    margin: 0.5em auto 0.1em auto;
    display: block;
}

.logo {
    font-size: 3em;
    font-weight: 700;
    color: #0b260a;
    margin-bottom: 0.5em;
    font-family: "p22-underground-sc", sans-serif;
}

/* ===== Navigation styles ===== */
nav {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    flex: 1;
    margin-bottom: 2em;
    flex-direction: row;
}

nav a {
    text-decoration: none;
    color: #0b260a;
    font-weight: 400;
    font-size: 1.1em;
    font-family: "p22-underground-sc", sans-serif;
    transition: opacity 0.3s;
    padding: 0.2em 0.2em;
    border-radius: 4px;
}

nav a:hover {
    opacity: 0.7;
    background-color: #0b260a;
    color: #f6edbe;
}

#lang-switch {
    margin-left: 1em;
}

/* ===== Hero styles ===== */
.hero {
    background: #0b260a;
    color: #fff;
    text-align: center;
    padding: 4em 1em;
}

.hero-logo {
    max-width: 90%;
    width: 350px;
    margin-bottom: 1em;
}

.hero p {
    font-size: 1.2em;
    color: #f6edbe;
}

.hero-picture {
    width: 100%;
    height: 400px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ===== Section styles ===== */
.section {
    padding: 3em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    color: #0b260a;
    font-size: 2.5em;
    margin-bottom: 1em;
}

/* Om oss sektion */
.about-section {
    text-align: center;
    background-color: #fff;
}

.about-section p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Divider */
.section-divider {
    border: none;
    border-top: 2px solid #e0d9b4;
    margin: 4em auto; /* Increased from 3em to 4em */
    width: 60%;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .section-divider {
        margin: 3em auto; /* Added mobile-specific margin */
    }
}

/* ===== Zigzag section styles ===== */
.zigzag-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em; /* Minskat från 3em till 2em */
    padding: 3em 2em;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.zigzag-section .zigzag-text {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 450px; /* Ökad från 400px för bättre proportion */
    text-align: center;
    margin: 0;
    padding: 0 2em; /* Minskad från 4em för att flytta texten närmare bilden */
}

.zigzag-section .zigzag-img {
    flex: 1 1 350px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zigzag-section .zigzag-img img {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 0.5em;
}

.zigzag-section .zigzag-img .placeholder-img {
    width: 100%;
    max-width: 340px;
    height: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, #f6edbe, #e0d9b4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A4A4A;
    font-size: 1.1em;
    text-align: center;
}

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

.zigzag-text h2 {
    margin-top: 0;
}

.zigzag-text p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* ===== Instagram section styles ===== */
.instagram-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1em 2em 1em; /* Reduced top padding to 0, kept other padding */
    background: #fff;
}

.instagram-content {
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Button styles ===== */
.btn, .btn-small {
    display: inline-block;
    background: #0b260a;
    color: #f6edbe;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1em;
    transition: background-color 0.3s ease;
    border: 1px solid #f6edbe;
    font-family: "p22-underground-sc", sans-serif;
    font-weight: bold;
}

.btn:hover, .btn-small:hover {
    background: #f6edbe;
    color: #0b260a;
}

.btn:disabled {
    background-color: #cccccc !important;
    border-color: #bbbbbb !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== Card styles ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 1.5rem;
    padding: 2em;
}

.card {
    background: #fff;
    padding: 1em;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

/* ===== Form styles ===== */
.form-section {
    background-color: #fff;
    padding: 2em;
    margin: 2em auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.form-section h2 {
    text-align: center;
    color: #0b260a;
}

.form-section p {
    text-align: center;
    margin-bottom: 2em;
}

form p {
    margin-bottom: 1em;
}

form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #4A4A4A;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #0b260a;
    outline: none;
}

.hidden {
    display: none;
}

/* ===== Text-img styles ===== */
.text-img {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2em;
    gap: 2em;
}

.text-img img {
    flex: 1 1 300px;
    max-width: 100%;
    border-radius: 8px;
}

.text-img div {
    flex: 1 1 300px;
}

/* ===== Footer styles ===== */
.footer-logo {
    width: 120px;
    margin-bottom: 1em;
}

.footer-logo-large {
    height: 140px;
    display: block;
    align-items: center;
    margin: 0 auto 1em auto;
}

footer {
    background: #0b260a;
    color: #f6edbe;
    text-align: center;
    padding: 2em;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3em;
    flex-wrap: wrap;
    margin-top: 1em;
}

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

.contact-item h4 {
    margin-bottom: 0.5em;
    color: #f6edbe;
}

/* Ensure footer links stay light and visible even after being clicked */
footer a,
footer a:link,
footer a:visited {
    color: #f6edbe; /* light visible color */
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    color: #ffffff; /* slightly brighter on hover/focus */
    text-decoration: underline;
    outline: none;
}

/* ===== Responsive design ===== */
@media (max-width: 900px) {
    .zigzag-section {
        flex-direction: column !important;
        gap: 1.5em;
        padding: 1em;  /* Reduced padding */
        margin-bottom: 0;
    }

    /* Adjust divider spacing on mobile */
    .section-divider {
        margin: 2em auto; /* Reduced margin */
    }

    nav {
        gap: 1.5em;
        flex-direction: column;
    }

    nav a {
        font-size: 1.1em;
    }

    .logo {
        font-size: 2.5em;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5em;
    }

    .zigzag-section .zigzag-text {
        padding: 0; /* Remove padding on mobile */
        margin: 0 auto; /* Center on mobile */
    }

    .zigzag-section {
        padding-bottom: 1em !important;
    }
}

/* Reduce spacing below Sortiment section on mobile */
@media (max-width: 900px) {
    #sortiment.zigzag-section {
        margin-bottom: 0 !important;
        padding-bottom: 1em !important;
    }
}

@media (max-width: 600px) {
    .hero-picture {
        height: 250px;
    }
    
    .section {
        padding: 2em 1em;
    }
    
    .section h2 {
        font-size: 2em;
    }
}

/* ===== Utility styles ===== */
.inline-style-1 { margin-top: 1.5em; }
.inline-style-2 { margin-top: 1em; }
.inline-style-3 { height: 60px; width: auto; }

.recaptcha-wrapper {
    margin: 1em 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha {
    display: inline-block;
}

@media (min-width: 901px) {
    .section,
    .zigzag-section,
    .instagram-section {
        padding-left: 6em;
        padding-right: 6em;
    }
    .section-divider {
        width: calc(100% - 12em);
        max-width: 1200px;
    }
}