/* Grundlayout */
* {
    box-sizing: border-box;
}

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

/* Topbar / header */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d0d7e2;
}

.topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.logo img {
    height: 90px;
    width: auto;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f3a7b;
}

.tagline {
    font-size: 0.9rem;
    color: #4b5a73;
}

/* Navigation */

.main-nav {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #0f3a7b;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    color: #0b2a57;
    border-bottom-color: #f5c400;
}

/* Hero */

.hero {
    .hero {
    background: linear-gradient(135deg, #0f3a7b, #1663c7);
}background: linear-gradient(135deg, #0f3a7b, #1663c7);
    color: white;
    padding: 40px 16px 32px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
    scroll-margin-top: 110px;
}

.hero-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    max-width: 640px;
}

.hero h1 {
    font-size: 1.9rem;
    margin: 0 0 10px 0;
}

.hero p {
    margin: 0 0 18px 0;
    font-size: 1rem;
}

/* Knappar */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: #f5c400;
    color: #1f2933;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: #ffd84b;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: #0f3a7b;
    border: 1px solid #d0d7e2;
}

.btn-secondary:hover {
    background: #f3f5fb;
    transform: translateY(-1px);
}

/* Sektioner */

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px 40px 16px;
}

.section-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 20px 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15, 58, 123, 0.06);
    border: 1px solid #e0e4f0;
    scroll-margin-top: 110px; /* justera värdet vid behov */
}

.section-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f3a7b;
}

.section-card p {
    margin-top: 0;
}

/* Tjänster – grid */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.service-card {
    border-radius: 12px;
    padding: 14px 14px 16px 14px;
    background: #f8f9fe;
    border: 1px solid #dde3f3;
    box-shadow: 0 2px 6px rgba(15, 58, 123, 0.04);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #0f3a7b;
}

.service-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #425063;
}

/* Kontaktsektion */

.section-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kontakt-info p {
    margin: 4px 0;
}

/* Footer */

.site-footer {
    text-align: center;
    padding: 16px 10px 22px 10px;
    font-size: 0.85rem;
    color: #4b5a73;
    border-top: 1px solid #d0d7e2;
    background: #f3f5fb;
}

/* Responsivitet */

@media (max-width: 720px) {
    .logo img {
        height: 60px;
    }
    .topbar-inner {
        padding: 4px 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 28px;
        padding-bottom: 22px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }
}
