:root {
    --bg: #f6f1e6;
    --surface: rgba(255, 250, 240, 0.9);
    --text: #243126;
    --muted: #576659;
    --brand: #476b2c;
    --brand-dark: #2f4f1d;
    --brand-soft: #dce7cf;
    --accent: #c88b4a;
    --border: rgba(71, 107, 44, 0.18);
    --shadow: 0 18px 48px rgba(45, 66, 34, 0.14);
    --radius-lg: 28px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Reserve space for the scrollbar so the layout does not jump
       when the cookie dialog temporarily locks page scrolling. */
    scrollbar-gutter: stable;
}

/* Offset anchor jumps (e.g. #kontakt, #tjanster) so the sticky header
   does not cover the target the link points to. Value ≈ header height. */
[id] {
    scroll-margin-top: 9rem;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(220, 231, 207, 0.9), transparent 32%),
        radial-gradient(circle at top right, rgba(200, 139, 74, 0.12), transparent 28%),
        linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.7;
    font-size: 18px;
    /* Break overly long words (e.g. Swedish compound words) so they
       do not overflow their containers. */
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand-dark);
}

a:hover {
    color: var(--brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #163d8f;
    outline-offset: 3px;
}

.page-shell {
    overflow: clip;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 248, 241, 0.9);
    border-bottom: 1px solid rgba(71, 107, 44, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    margin-right: auto;
}

.brand-lockup img {
    width: clamp(112px, 18vw, 160px);
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem;
    box-shadow: 0 8px 20px rgba(53, 82, 39, 0.12);
}

.brand-text {
    min-width: 0;
}

.brand-text strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.1;
}

.brand-text span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(71, 107, 44, 0.24);
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 0.6rem 0.95rem;
    min-height: 48px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle-box,
.nav-toggle-box::before,
.nav-toggle-box::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: currentColor;
}

.nav-toggle-box {
    position: relative;
}

.nav-toggle-box::before,
.nav-toggle-box::after {
    position: absolute;
    left: 0;
}

.nav-toggle-box::before {
    top: -7px;
}

.nav-toggle-box::after {
    top: 7px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.main-nav {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.3rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(71, 107, 44, 0.08);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.3rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3rem 0.2rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid transparent;
}

.nav-list a:hover {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
}

.nav-list a[aria-current="page"] {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
}


.phone-link,
.cta-link,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 52px;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.phone-link {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.cta-link {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(47, 79, 29, 0.22);
}

.ghost-link {
    border: 1px solid rgba(71, 107, 44, 0.24);
    background: rgba(255, 255, 255, 0.75);
    color: var(--brand-dark);
}

.phone-link:hover,
.ghost-link:hover {
    background: #eef5e7;
    color: var(--text);
}

.cta-link:hover {
    color: #fffaf0;
}

.hero {
    padding: 2rem 0 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero-panel,
.card,
.contact-card,
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: clamp(1.5rem, 3vw, 3rem);
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -12% -28% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 139, 74, 0.14), transparent 68%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(220, 231, 207, 0.72);
    color: var(--brand-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    color: #1d2a1f;
}

h1 {
    font-size: clamp(2.25rem, 5.6vw, 4.4rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.85rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.lead {
    font-size: 1.16rem;
    color: var(--muted);
    max-width: 58ch;
    margin: 1rem 0 0;
}

.status-box {
    margin: 1.25rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.status-box.success {
    background: #e6f4df;
    border: 1px solid rgba(71, 107, 44, 0.25);
    color: #21411c;
}

.status-box.error {
    background: #fef0ea;
    border: 1px solid rgba(175, 87, 51, 0.24);
    color: #6f2e12;
}

.status-box.is-hidden {
    display: none;
}

.is-hidden {
    display: none !important;
}

.hero-points,
.contact-list,
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.hero-points li,
.contact-list li,
.benefit-list li {
    display: flex;
    align-items: start;
    gap: 0.7rem;
    color: var(--text);
}

.hero-points li::before,
.contact-list li::before,
.benefit-list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 0.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.hero-aside {
    display: grid;
    gap: 1.5rem;
}

.contact-card,
.card,
.form-card {
    padding: 1.35rem;
}

/* Hyphenate long words in cards and body text (Swedish hyphenation). */
.card,
.intro-copy,
.faq-grid,
.benefit-list {
    -webkit-hyphens: auto;
    hyphens: auto;
}

.contact-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.photo-card {
    overflow: hidden;
    padding: 0;
}

.photo-card img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.photo-card .caption {
    padding: 1.1rem 1.25rem 1.3rem;
}

.section {
    padding: 1.2rem 0;
}

.section-header {
    max-width: 64ch;
    margin-bottom: 1.2rem;
}

.service-grid,
.benefit-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-tag {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(220, 231, 207, 0.72);
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.trust-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 230, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.trust-panel img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
    min-height: 100%;
}

/* Founder/person portraits: let the image column shrink to the photo width so
   the panel padding is even on all sides (no leftover gap beside the photo). */
.person-panel {
    grid-template-columns: 1fr auto;
}

/* Cap to the images' natural width (~367px) so they are never upscaled,
   stay sharp, and both people render at the same size. */
.person-panel img {
    width: 360px;
    max-width: 100%;
    min-height: 0;
}

.contact-section {
    padding: 1.4rem 0 2.4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.4rem;
    align-items: start;
}

.contact-list a {
    word-break: break-word;
}

form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    color: #223523;
}

.required {
    color: #8a2b13;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(71, 107, 44, 0.26);
    border-radius: 16px;
    background: #fff;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    min-height: 56px;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.hint,
.disclaimer {
    color: var(--muted);
    font-size: 0.96rem;
}

.error {
    min-height: 1.3em;
    color: #8a2b13;
    font-size: 0.95rem;
    font-weight: 700;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.consent-row.has-error {
    border-color: #8a2b13;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(71, 107, 44, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.consent-row input {
    width: 1.45rem;
    height: 1.45rem;
    min-height: auto;
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-button {
    border: none;
    border-radius: 999px;
    min-height: 58px;
    padding: 0.95rem 1.5rem;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(47, 79, 29, 0.2);
}

.submit-button:hover {
    color: #fffaf0;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 52px;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(71, 107, 44, 0.24);
    background: rgba(255, 255, 255, 0.75);
    color: var(--brand-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ghost-button:hover {
    background: #eef5e7;
    color: var(--text);
}

.submit-button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.success-panel {
    padding: 1.2rem;
    border-radius: 22px;
    background: #e6f4df;
    border: 1px solid rgba(71, 107, 44, 0.25);
    color: #21411c;
}

.success-panel h3 {
    margin-bottom: 0.5rem;
}

.success-panel p {
    margin: 0 0 1rem;
}

.site-footer {
    border-top: 1px solid rgba(71, 107, 44, 0.12);
    padding: 2rem 0 2.3rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 1.6rem;
    padding-bottom: 1.6rem;
}

.footer-grid p {
    margin: 0 0 0.6rem;
}

.footer-brand {
    display: block;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-col h2 {
    font-size: 1.02rem;
    margin-bottom: 0.7rem;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-company {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(71, 107, 44, 0.12);
    padding-top: 1.2rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    font-weight: 700;
}

.cookie-preferences-button {
    border: 1px solid rgba(71, 107, 44, 0.24);
    border-radius: 999px;
    min-height: 44px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-preferences-button:hover {
    background: #eef5e7;
}

#cc-main {
    --cc-font-family: Georgia, "Times New Roman", serif;
    --cc-bg: #fffaf0;
    --cc-primary-color: #243126;
    --cc-secondary-color: #576659;
    --cc-btn-primary-bg: #476b2c;
    --cc-btn-primary-color: #fffaf0;
    --cc-btn-primary-hover-bg: #2f4f1d;
    --cc-btn-primary-hover-color: #fffaf0;
    --cc-btn-secondary-bg: #dce7cf;
    --cc-btn-secondary-color: #243126;
    --cc-btn-secondary-hover-bg: #eef5e7;
    --cc-btn-secondary-hover-color: #243126;
    --cc-toggle-on-bg: #476b2c;
    --cc-toggle-off-bg: #879286;
    --cc-cookie-category-block-bg: #f6f1e6;
    --cc-cookie-category-block-border: rgba(71, 107, 44, 0.18);
}

.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;
}

.brand-lockup > a {
    display: inline-flex;
    line-height: 0;
}

.breadcrumb {
    padding: 1.1rem 0 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.breadcrumb a {
    font-weight: 700;
}

.breadcrumb span {
    margin: 0 0.4rem;
}

.card-link {
    margin: 0.9rem 0 0;
    font-weight: 700;
}

.card-link a {
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1px;
}

.intro-copy {
    max-width: 70ch;
    margin: 0 0 1.4rem;
}

.intro-copy p {
    margin: 0 0 1rem;
}

.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.step-list li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.step-list li::before {
    content: counter(step);
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fffaf0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-flex;
    }

    /* Contact buttons stay visible on mobile (accessibility) – no need to
       open the hamburger to reach the phone / inquiry CTA. */
    .topbar-actions {
        flex-basis: 100%;
        order: 1;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 0.4rem;
    }

    .topbar-actions a {
        flex: 1 1 12rem;
        text-align: center;
    }

    /* Only the navigation links collapse behind the hamburger. */
    .main-nav {
        display: none;
        flex-basis: 100%;
        order: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        margin-top: 0.4rem;
        padding-top: 0.4rem;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .topbar-inner.is-nav-open .main-nav {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-list a {
        min-height: 52px;
        padding: 0.6rem 0.25rem;
        border-bottom: 1px solid rgba(71, 107, 44, 0.12);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .contact-grid,
    .trust-panel {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .benefit-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        font-size: 17px;
    }

    /* The mobile header is taller (logo row + contact buttons row), so push
       anchor targets further down to keep them clear of it. */
    [id] {
        scroll-margin-top: 12rem;
    }

    .container {
        width: min(var(--container), calc(100% - 1rem));
    }

    .hero {
        padding-top: 1rem;
    }

    .hero-panel,
    .card,
    .contact-card,
    .form-card {
        border-radius: 22px;
    }

    .service-grid,
    .benefit-grid,
    .faq-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .submit-row {
        align-items: stretch;
    }

    .submit-button,
    .submit-row .hint {
        width: 100%;
    }

    .site-footer .container {
        align-items: flex-start;
    }
}
