@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/montserrat/montserrat-300.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/montserrat/montserrat-400.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/montserrat/montserrat-500.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/montserrat/montserrat-600.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/montserrat/montserrat-700.woff2") format("woff2");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/open-sans/open-sans-400.woff2") format("woff2");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/open-sans/open-sans-600.woff2") format("woff2");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/open-sans/open-sans-700.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter/inter-600.woff2") format("woff2");
}

:root {
    --text: #303030;
    --bg: #f8ffff;
    --bg-alt: #e6f2f1;
    --primary: #449e9e;
    --accent: #ff948d;
    --accent-green: #327576;
    --border: #cde8e5;
    --white: #ffffff;
    --max-width: 1280px;
    --font-body: "Open Sans", system-ui, sans-serif;
    --font-heading: "Montserrat", system-ui, sans-serif;
    --font-nav: "Montserrat", system-ui, sans-serif;
    --text-body: 20px;
    --text-lead: 24px;
    --line-height-body: 1.4;
    --line-height-heading: 1.2;
    --line-height-ui: 1.4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    letter-spacing: 0;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.site-shell {
    width: 100%;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

.btn:hover {
    background: #ff7b73;
    opacity: 1;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin: 0;
}

p {
    margin: 0 0 20px;
}

p:last-child {
    margin-bottom: 0;
}

.text-block {
    max-width: 680px;
    margin-inline: auto;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    letter-spacing: 0;
}

.text-block__divider {
    display: block;
    width: 80px;
    height: 6px;
    margin-inline: auto;
    background: var(--primary);
    border-radius: 3px;
}

.text-block__divider:first-child {
    margin-bottom: 40px;
}

.text-block__divider:last-child {
    margin-top: 40px;
}

.text-block p:not(:last-child) {
    margin-bottom: 20px;
}

.text-block__lead {
    font-size: var(--text-lead);
    font-weight: 400;
}

.text-block p:not(.text-block__lead) {
    font-size: var(--text-body);
}

.container {
    width: min(100% - 64px, var(--max-width));
    margin-inline: auto;
}

.container--narrow {
    width: min(100% - 64px, 1040px);
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--bg);
    padding: 16px 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header__logo img {
    width: 106px;
    height: auto;
    display: block;
}

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

.site-nav a {
    font-family: var(--font-nav);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    padding: 8px 4px;
}

.site-nav a.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: 0;
    border-radius: 40px;
    background: var(--accent);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    width: fit-content;
}

.btn--wide {
    padding-inline: 32px;
}

.btn:disabled,
.btn.is-loading {
    cursor: wait;
    opacity: 0.85;
}

.btn.is-loading {
    pointer-events: none;
}

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(48, 48, 48, 0.25);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

.btn.is-loading .btn__spinner {
    display: inline-block;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.mb-0 {
    margin-bottom: 0;
}

.section.mb-0 {
    padding-bottom: 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--primary {
    background: var(--primary);
    color: var(--white);
}

.section__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 976px) {
    .section__grid--2 {
        grid-template-columns: 480px 1fr;
        gap: 120px;
    }

    .section__grid--2.section__grid--reverse {
        grid-template-columns: 1fr 480px;
    }

    .section__grid--reverse .section__text {
        order: 1;
    }

    .section__grid--reverse .section__image {
        order: 2;
    }
}

.section__text {
    min-width: 0;
    max-width: min(680px, 100%);
}

.section__image {
    min-width: 0;
    max-width: 100%;
}

.section__image {
    max-width: 100%;
}

.section__image picture {
    display: block;
    max-width: 100%;
}

.section__image img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-inline: auto;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: var(--line-height-heading);
    letter-spacing: 0;
    margin-bottom: 40px;
}

.section__text {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.section__text p {
    font-size: var(--text-body);
    margin-bottom: 20px;
}

.text-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hero (home) — positions relative to hero__inner (max 1280px) */
.hero {
    position: relative;
    background: var(--primary);
    color: var(--white);
    overflow: hidden;
    padding: 0;
}

.hero__inner {
    position: relative;
    width: min(100% - 64px, var(--max-width));
    margin-inline: auto;
}

.hero__content {
    display: flex;
    position: relative;
    z-index: 2;
    max-height: 590px;
    height: 38vw;
    flex-direction: column;
    justify-content: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.3125rem);
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0;
    margin-top: 0;
}

.hero__image-wrap {
    position: absolute;
    top: -93px;
    right: -11.5%;
    width: 59.0278%;
    max-width: 850px;
    aspect-ratio: 1;
    pointer-events: none;
}

.hero__image-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

@media (min-width: 976px) and (max-width: 1574px) {
    .hero__image-circle {
        border-radius: 50% 0 0 50%;
    }
}

.hero__image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.hero__badge {
    position: absolute;
    left: 83%;
    top: 53%;
    z-index: 3;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    padding: 16px;
}

.hero__badge-line {
    margin: 0;
}

.hero__badge strong {
    font-weight: 700;
}

/* Quote */
.quote {
    position: relative;
    width: min(878px, 100%);
    max-width: 878px;
    margin-left: max(0px, calc(50% - 340px));
    margin-right: auto;
}

.quote__mark {
    position: absolute;
    right: calc(100% + 32px);
    top: 0;
    margin-top: 10px;
    width: 116px;
    height: auto;
    flex-shrink: 0;
    display: block;
    color: var(--accent-green);
}

.quote--home .quote__mark {
    color: var(--accent);
}

.quote__text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.92px;
    max-width: none;
}

.quote--home .quote__text {
    font-style: italic;
}

.quote__byline {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 700;
    line-height: var(--line-height-body);
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .quote {
        width: auto;
        max-width: 680px;
        margin-inline: auto;
    }

    .quote__mark {
        position: static;
        width: 69px;
        margin-top: 0;
        margin-inline: auto;
        margin-bottom: 16px;
    }

    .quote {
        text-align: center;
    }
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.card {
    background: var(--white);
    border: 1px solid #dce8e7;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(48, 48, 48, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card__image {
    height: 259px;
    overflow: hidden;
}

.card__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: var(--line-height-heading);
    letter-spacing: -0.56px;
}

.card__text {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--line-height-ui);
    letter-spacing: 0;
}

/* Signup panel (home) */
.panels {
    display: flex;
    justify-content: center;
}

.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(48, 48, 48, 0.08);
    padding: 33px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 750px;
}

.panel--hidden {
    display: none;
}

.panel__decor {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.15;
}

.panel__label {
    font-size: 18px;
    text-transform: uppercase;
    color: rgba(48, 48, 48, 0.7);
    margin-bottom: 8px;
}

.panel__title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: 0;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
}

.form-group input[type="email"] {
    height: 50px;
    padding: 13px 17px;
    border: 1px solid #d1d5dc;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text);
}

.form-group .hint {
    font-size: 16px;
    color: rgba(48, 48, 48, 0.7);
}

.form-group--checkbox {
    margin-bottom: 24px;
}

.form-group__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(48, 48, 48, 0.9);
    cursor: pointer;
}

.form-group__checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-group__checkbox input[type="checkbox"].is-invalid {
    outline: 2px solid #b42318;
    outline-offset: 2px;
}

.form-group input[type="email"].is-invalid {
    border-color: #b42318;
}

.form-group input[type="email"]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-group input[type="email"].is-invalid:focus-visible {
    outline-color: #b42318;
}

.mailchimp-form {
    background: transparent;
    width: 100%;
    clear: none;
    font: inherit;
}

.mailchimp-form__honeypot {
    position: absolute;
    left: -5000px;
}

.mailchimp-form__responses {
    margin-bottom: 16px;
}

.mailchimp-form .response {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--line-height-body);
}

#mce-error-response {
    color: #b42318;
}

#mce-success-response {
    color: var(--accent-green);
}

/* Footer */
.site-footer__top {
    background: var(--primary);
    color: var(--white);
    padding: 64px 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 32px;
    align-items: start;
}

.site-footer__grid > :last-child {
    width: max-content;
}

.site-footer__heading {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.44px;
    margin-bottom: 16px;
}

.site-footer__text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.31px;
    max-width: 420px;
}

.site-footer__social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.site-footer__social img {
    width: 32px;
    height: 32px;
}

.site-footer__bottom {
    border-top: 2px solid var(--border);
    padding: 26px 0 24px;
    background: var(--white);
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.site-footer__address {
    font-size: 16px;
    line-height: 1.5;
}

.site-footer__logos {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__logos img {
    height: 50px;
    width: auto;
}

.site-footer__logos img:first-child {
    height: 50px;
}

.site-footer__logos a[href*="arvsfonden"] img {
    height: 40px;
}

/* Responsive */
@media (max-width: 975px) {
    .section__grid--2,
    .cards,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .section__grid--2,
    .section__grid--2.section__grid--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .section__grid--2 .section__image,
    .section__grid--2.section__grid--reverse .section__image {
        order: 1;
    }

    .section__grid--2 .section__text,
    .section__grid--2.section__grid--reverse .section__text {
        order: 2;
        width: 100%;
        max-width: min(680px, 100%);
        margin-inline: auto;
    }

    .section__image {
        display: flex;
        justify-content: center;
    }

    .section__image picture {
        width: 100%;
        max-width: min(480px, 100%);
    }

    .container,
    .container--narrow {
        width: min(100% - 32px, var(--max-width));
    }

    /* Hero-mobil — Figma Senaste node 232:452 */
    .hero__image-wrap {
        position: absolute;
        top: -144px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 506px;
        max-width: none;
        aspect-ratio: 1;
        height: auto;
        margin: 0;
        pointer-events: none;
    }

    .hero__image-circle {
        border-radius: 50%;
        overflow: hidden;
    }

    .hero__image-circle picture {
        display: block;
        position: relative;
        top: 10%;
        height: 100%;
    }

    .hero__image {
        border-radius: 0;
        object-position: center;
    }

    .hero__badge {
        left: calc(50% - 170px);
        top: 209px;
        right: auto;
        bottom: auto;
        z-index: 3;
        width: 135px;
        height: 135px;
        font-size: 12px;
        padding: 12px;
    }

    .hero__inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 40px;
        max-width: none;
        height: 503px;
        min-height: 503px;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 40px 0 0;
    }

    .hero__content {
        position: relative;
        z-index: 2;
        order: 1;
        max-width: none;
        padding: 0 0 40px;
        height: auto;
        text-align: center;
    }

    .hero__title {
        color: var(--white);
        font-size: 40px;
    }

    .hero__subtitle {
        color: var(--white);
        font-size: 20px;
        font-weight: 500;
    }

    .site-header {
        padding: 8px 0;
    }

    .site-header__logo img {
        width: 92px;
    }

    .site-nav a {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 48px 0;
    }
}
