:root {
    --primary: #071f5e;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.section {
    padding: 80px 0;
}

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

.bg-dark {
    background: var(--dark);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: #fac400;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
    display: none; /* default: hidden, shown on small screens */
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 80vh;
    padding-top: var(--nav-height);
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url("assets/hero.jpg") center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

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

.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
}

/* Grid & cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

/* List in tjänster */
#tjanster ul {
    padding-left: 20px;
}

/* Galleri */
.gallery-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    transition: transform 0.2s;
}

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

/* Kontakt */
#kontakt .contact-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

#kontakt a {
    color: #fff;
    text-decoration: underline;
}

/* Basic responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    /* Show hamburger, hide normal horizontal menu */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        right: 0;
        left: 0;
        margin: 0;
        padding: 10px 20px 15px;
        background: #fac400; /* same as navbar bg */
        list-style: none;
        flex-direction: column;
        gap: 8px;
        display: none; /* hidden until toggled */
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .nav-links li a {
        display: block;
        padding: 6px 0;
    }

    /* When menu is open, show it */
    .nav-links.nav-open {
        display: flex;
    }
}

/* Lightbox for gallery images */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Make gallery images look clickable */
.gallery-item {
    cursor: pointer;
}
