:root {
    --bg: #000000;
    --ink: #f2f2f2;
    --muted: #b9c0c0;
    --accent: #ff6600;
    --accent-2: #ff9933;
    --panel: rgba(0, 0, 0, .60);
    --line: #1f2729;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    line-height: 1.5;
    background: linear-gradient(180deg, #000 0%, #1f0a00 45%, #000 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    opacity: .9
}

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

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(140%) blur(8px);
    background: rgba(0, 0, 0, .88);
    border-bottom: 1px solid var(--accent)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .2px
}

.brand .logo {
    width: 44px;
    height: 44px
}

.brand .logo svg {
    width: 44px;
    height: 44px;
    display: block
}

.brand .word {
    font-size: 18px
}

.brand .word b {
    color: var(--accent)
}

.menu {
    display: flex;
    gap: 18px;
    align-items: center
}

.menu a {
    padding: 6px 10px;
    border-radius: 10px
}

.menu a.active,
.menu a:hover {
    background: rgba(255, 102, 0, .14)
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #140900;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 14px
}

/* Hero */
.hero {
    padding: 80px 0 40px
}

h1 {
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.12;
    margin: 0 0 10px
}

.tag {
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 20px)
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px
}

.badge {
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f0f0f, #070707)
}

.hero-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    /* ca 62% / 38% */
    gap: 22px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px
}

/* Sections */
section {
    padding: 56px 0
}

h2 {
    font-size: clamp(22px, 2.4vw, 36px);
    margin: 0 0 14px
}

p {
    margin: 0 0 12px
}

.grid {
    display: grid;
    gap: 18px
}

.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid.cols-4 {
    grid-template-columns: repeat(4, 1fr)
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px
}

.kicker {
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 12px;
    margin-bottom: 6px
}

.list {
    display: grid;
    gap: 8px;
    padding-left: 18px
}

/* Contact */
.contact .card {
    padding: 0
}

.contact .card>div {
    padding: 18px
}

form {
    display: grid;
    gap: 10px
}

input,
textarea {
    width: 100%;
    background: #0e0e0e;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 12px;
    padding: 12px
}

textarea {
    min-height: 120px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0e0e0e;
    color: var(--ink);
    font-weight: 600
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #140900;
    border-color: transparent
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
    background: #000
}

.footer-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 2fr 1fr 1fr 1fr
}

.small {
    font-size: 14px
}

/* Legal bar at absolute bottom */
.site-legal {
    margin-top: auto;
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    background: #000
}

/* Responsive */
@media (max-width:960px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:640px) {
    .menu {
        display: none
    }

    .grid.cols-4,
    .grid.cols-3,
    .grid.cols-2 {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center
    }
}

/* --- Additions to match cleaned index.html --- */

/* Accessible hidden label helper (moved from inline <style>) */
.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;
}

/* Blog thumbnails (moved from inline) */
.thumb {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* “Alla artiklar” button container under blog cards */
.archive-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

/* Space below the buttons in the hero panel before the small sentence */
.panel .cta-row+.small {
    margin-top: 12px;
}

/* Restore top margins that were previously inline on section notes */
#tjanster .wrap>p.small,
#process .wrap>p.small,
#blogg .wrap>p.small {
    margin-top: 10px;
}

/* Restore the slightly tighter top margin in FAQ note */
#faq .wrap>p.small {
    margin-top: 8px;
}

/* Optional: restore top spacing above grids that used inline margin-top */
.wrap>.grid {
    margin-top: 14px;
}

/* Header search */
.site-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.site-search input[type="search"] {
    height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0e0e0e;
    color: #0e0e0e;
    color: var(--ink);
    width: 180px;
    outline: none;
}

.site-search input[type="search"]::placeholder {
    color: var(--muted);
}

.site-search .btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #140900;
    cursor: pointer;
}

.site-search .btn-search:hover {
    opacity: .95;
}

/* Keep header items from wrapping oddly on mid widths */
.nav {
    gap: 12px;
}

/* Hide search on very small screens (like your menu) */
@media (max-width: 640px) {
    .site-search {
        display: none;
    }
}

/* More space above each article H2 */
.panel h2 {
    margin-top: 34px;
    /* add more space above */
}

/* Optional: tighten the very first H2 so it doesn’t create a huge gap */
.panel h2:first-of-type {
    margin-top: 20px;
}
.center-text {
    text-align: center;
}