:root {
    color-scheme: light;
    --vf-background: #fbfaf7;
    --vf-foreground: #1d2a38;
    --vf-surface: #f3f1ec;
    --vf-card: #fff;
    --vf-ink: #1b2b3c;
    --vf-ink-deep: #152537;
    --vf-accent: #e0a458;
    --vf-muted: #69788a;
    --vf-border: #e2e0da;
    --vf-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --vf-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body.vf-site {
    margin: 0;
    background: var(--vf-background);
    color: var(--vf-foreground);
    font-family: var(--vf-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.vf-site h1,
.vf-site h2,
.vf-site h3,
.vf-site h4 {
    color: var(--vf-foreground);
    font-family: var(--vf-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.vf-site h1 {
    font-size: clamp(2.5rem, 1.8rem + 3.4vw, 3.85rem);
}

.vf-site h2 {
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.45rem);
}

.vf-site h3 {
    font-size: 1.3rem;
}

.vf-site h4 {
    font-size: 1.05rem;
}

.vf-site p {
    margin: 0 0 1rem;
}

.vf-site a {
    color: inherit;
    text-underline-offset: 3px;
}

.vf-site a:hover {
    color: var(--vf-accent);
}

.vf-skip-link {
    position: absolute;
    z-index: 100;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    transform: translateY(-150%);
    border-radius: 0.5rem;
    background: var(--vf-card);
}

.vf-skip-link:focus {
    transform: translateY(0);
}

.vf-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--vf-border);
    background: rgb(251 250 247 / 92%);
    backdrop-filter: blur(12px);
}

.vf-header-inner {
    display: flex;
    width: min(100% - 2.5rem, 1150px);
    min-height: 4.5rem;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.vf-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.vf-logo img {
    display: block;
    width: 180px;
    height: auto;
}

.vf-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
}

.vf-desktop-nav a,
.vf-mobile-nav summary,
.vf-mobile-nav nav a {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--vf-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}

.vf-desktop-nav a:hover,
.vf-desktop-nav .vf-home-link,
.vf-mobile-nav summary:hover,
.vf-mobile-nav nav a:hover {
    background: #e9e7e1;
    color: var(--vf-foreground);
}

.vf-mobile-nav {
    display: none;
}

.vf-hero {
    color: #f6f5f1;
    background: linear-gradient(155deg, #1b2b3c 0%, #23384c 55%, #2a4358 100%);
}

.vf-hero-inner {
    display: grid;
    width: min(100% - 2.5rem, 1150px);
    min-height: 430px;
    margin: 0 auto;
    padding: 5.25rem 0;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.vf-hero h1,
.vf-hero .vf-eyebrow {
    color: #f6f5f1;
}

.vf-hero h1 {
    max-width: 720px;
    margin: 0 0 1.2rem;
    font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem);
    line-height: 1.07;
}

.vf-hero h1 span {
    color: var(--vf-accent);
}

.vf-eyebrow {
    margin: 0 0 1rem;
    color: var(--vf-muted);
    font-family: var(--vf-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vf-lead {
    max-width: 690px;
    margin: 0;
    color: rgb(246 245 241 / 78%);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.7;
}

.vf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.vf-button {
    display: inline-flex;
    min-height: 2.5rem;
    padding: 0.65rem 1.15rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(100deg, #eab35f, #d9884a);
    color: var(--vf-ink) !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 150ms ease, filter 150ms ease;
}

.vf-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.vf-button-outline {
    border-color: rgb(255 255 255 / 28%);
    background: transparent;
    color: #f6f5f1 !important;
    font-weight: 500;
}

.vf-button-outline:hover {
    background: rgb(255 255 255 / 8%);
}

.vf-button-dark {
    background: linear-gradient(155deg, #1b2b3c 0%, #2a4358 100%);
    color: #f6f5f1 !important;
}

.vf-standards {
    display: grid;
    gap: 0.65rem;
}

.vf-chip {
    display: flex;
    min-height: 3.65rem;
    padding: 0.65rem 1rem;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 6%);
    font-size: 0.78rem;
}

.vf-chip > span {
    width: 1.25rem;
    color: var(--vf-accent);
    font-size: 1.1rem;
    text-align: center;
}

.vf-chip p {
    margin: 0;
    line-height: 1.45;
}

.vf-chip strong {
    font-weight: 600;
}

.vf-section {
    width: min(100% - 2.5rem, 1150px);
    margin: 0 auto;
    padding: 5.5rem 0;
}

.vf-section-grid {
    display: grid;
    gap: clamp(2.5rem, 8vw, 7rem);
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.vf-section-grid h2 {
    max-width: 390px;
}

.vf-muted {
    color: var(--vf-muted);
}

.vf-prose {
    font-size: 0.94rem;
    line-height: 1.75;
}

.vf-prose p:last-child {
    margin-bottom: 0;
}

.vf-prose a {
    text-decoration-thickness: 1px;
}

.vf-card {
    border: 1px solid var(--vf-border);
    border-radius: 1.25rem;
    background: var(--vf-card);
    box-shadow: 0 1px 2px rgb(20 32 45 / 5%), 0 12px 32px -18px rgb(20 32 45 / 35%);
}

.vf-network-card {
    width: min(100%, 800px);
    margin: 3.25rem auto 0;
    padding: 1.8rem 2rem;
}

.vf-network-card h3 {
    margin-bottom: 0.6rem;
}

.vf-network-card p:not(.vf-eyebrow) {
    max-width: 720px;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

.vf-people-section {
    padding: 5.25rem 0 4.5rem;
    background: var(--vf-surface);
}

.vf-people-inner {
    width: min(100% - 2.5rem, 950px);
    margin: 0 auto;
}

.vf-people-inner > .vf-eyebrow,
.vf-people-inner > h2 {
    margin-left: 2.25rem;
}

.vf-person-card {
    display: grid;
    margin-top: 1.7rem;
    padding: 2.1rem;
    gap: 2.5rem;
    grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.8fr);
}

.vf-person img {
    display: block;
    width: min(100%, 175px);
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
}

.vf-person h3 {
    margin: 1rem 0 0.35rem;
    font-size: 1rem;
}

.vf-person p {
    margin-bottom: 0.45rem;
}

.vf-small {
    font-size: 0.78rem;
}

.vf-person-bio {
    font-size: 0.82rem;
}

.vf-quote {
    margin: 1.35rem 0 0;
    padding: 1.25rem;
    border-left: 2px solid var(--vf-accent);
    border-radius: 1rem;
    background: var(--vf-surface);
    color: var(--vf-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.vf-quote h4 {
    margin-bottom: 0.75rem;
    color: var(--vf-foreground);
    font-size: 0.82rem;
}

.vf-quote p:last-child {
    margin-bottom: 0;
}

.vf-product {
    padding-top: 5.5rem;
    padding-bottom: 5rem;
}

.vf-product h2 {
    max-width: 720px;
    margin-bottom: 1.2rem;
}

.vf-product .vf-prose {
    max-width: 820px;
    font-size: 0.86rem;
}

.vf-policy-card {
    width: min(100%, 800px);
    margin: 2.5rem auto 0;
    padding: 1.5rem 1.75rem;
}

.vf-policy-card h3 {
    font-size: 1rem;
}

.vf-footer {
    margin-top: 1rem;
    padding: 3.5rem 0 0;
    background: linear-gradient(155deg, #1b2b3c 0%, #23384c 55%, #2a4358 100%);
    color: #f6f5f1;
}

.vf-footer-inner {
    display: grid;
    width: min(100% - 2.5rem, 1150px);
    margin: 0 auto;
    padding-bottom: 2.5rem;
    gap: 3rem;
    grid-template-columns: 1.45fr 1fr 1fr;
}

.vf-footer h2 {
    margin-bottom: 0.75rem;
    color: #f6f5f1;
    font-size: 1.15rem;
}

.vf-footer p {
    font-size: 0.8rem;
}

.vf-footer .vf-eyebrow {
    color: rgb(246 245 241 / 70%);
}

.vf-footer-links {
    line-height: 2;
}

.vf-footer a {
    color: rgb(246 245 241 / 86%);
    text-decoration: none;
}

.vf-footer a:hover {
    color: var(--vf-accent);
}

.vf-iso-mark {
    display: block;
    width: min(100%, 390px);
    height: auto;
    margin-top: 1.2rem;
}

.vf-kallekullen img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 55px;
    margin-top: 0.8rem;
    object-fit: contain;
}

.vf-footer-bottom {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: rgb(246 245 241 / 65%);
    font-size: 0.72rem;
    text-align: center;
}

/* Secondary pages imported from the existing Verksamhetsfokus site. */
.vf-inner-page {
    min-height: 60vh;
}

.vf-page-title-band {
    padding: 4.5rem 1.25rem;
    background: linear-gradient(155deg, #1b2b3c 0%, #23384c 55%, #2a4358 100%);
}

.vf-page-title-band h1 {
    width: min(100%, 820px);
    margin: 0 auto;
    color: #f6f5f1;
}

.vf-inner-hero {
    padding: 4.5rem max(calc((100vw - 1150px) / 2), 1.25rem);
    background: linear-gradient(155deg, #1b2b3c 0%, #23384c 55%, #2a4358 100%);
    color: #f6f5f1;
}

.vf-inner-hero .vf-eyebrow,
.vf-inner-hero h1 {
    color: #f6f5f1;
}

.vf-inner-hero h1 {
    margin-bottom: 0;
}

.vf-page-content {
    width: min(100% - 2.5rem, 820px);
    margin: 0 auto;
    padding: 3.5rem 0 5rem;
    font-size: 0.96rem;
    line-height: 1.75;
}

.vf-page-content > * {
    max-width: 100%;
}

.vf-page-content p,
.vf-page-content li {
    color: var(--vf-muted);
}

.vf-page-content h1,
.vf-page-content h2,
.vf-page-content h3,
.vf-page-content h4 {
    margin: 2rem 0 0.9rem;
}

.vf-page-content h1 {
    font-size: 2rem;
}

.vf-page-content h2 {
    font-size: 1.55rem;
}

.vf-page-content h3 {
    font-size: 1.2rem;
}

.vf-page-content ul,
.vf-page-content ol {
    padding-left: 1.4rem;
}

.vf-page-content li {
    padding-left: 0.2rem;
    margin-bottom: 0.5rem;
}

.vf-page-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--vf-border);
}

.vf-page-content img {
    max-width: 100%;
    height: auto;
}

.vf-page-content .vf-ink,
.vf-page-content .vf-hero {
    width: 100vw;
    max-width: 100vw;
    margin: -3.5rem calc(50% - 50vw) 3rem;
    padding: 4.5rem max(calc((100vw - 1150px) / 2), 1.25rem) !important;
    color: #f6f5f1;
    background: linear-gradient(155deg, #1b2b3c 0%, #23384c 55%, #2a4358 100%);
}

.vf-page-content .vf-ink h1,
.vf-page-content .vf-ink h2,
.vf-page-content .vf-ink h3,
.vf-page-content .vf-ink p,
.vf-page-content .vf-hero h1,
.vf-page-content .vf-hero h2,
.vf-page-content .vf-hero p {
    color: #f6f5f1;
}

.vf-page-content .vf-card {
    margin: 1.5rem 0;
    padding: 1.5rem;
}

.vf-page-content .vf-step {
    display: grid;
    gap: 0.8rem 1.5rem;
    grid-template-columns: 3rem 1fr;
}

.vf-page-content .vf-step-number {
    color: var(--vf-accent);
    font-family: var(--vf-display);
    font-weight: 600;
}

.vf-page-content .vf-step h2,
.vf-page-content .vf-step p {
    grid-column: 2;
    margin: 0;
}

.vf-page-content .vf-step .vf-step-number {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.vf-page-content .vf-prose {
    font-size: inherit;
}

.vf-page-content .vf-note {
    padding: 1.25rem;
    border: 1px solid rgb(224 164 88 / 45%);
    border-radius: 0.85rem;
    background: rgb(224 164 88 / 12%);
}

.vf-page-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.vf-page-content .wp-block-button__link {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: var(--vf-accent);
    color: var(--vf-ink);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.vf-page-content .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.vf-page-content .wp-block-column {
    min-width: 0;
    flex: 1 1 16rem;
}

@media (max-width: 900px) {
    .vf-header-inner {
        gap: 1rem;
    }

    .vf-desktop-nav a {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    .vf-hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    }
}

@media (max-width: 700px) {
    .vf-header-inner {
        width: min(100% - 2rem, 1150px);
        min-height: 4.25rem;
    }

    .vf-logo img {
        width: 160px;
    }

    .vf-desktop-nav {
        display: none;
    }

    .vf-mobile-nav {
        position: relative;
        display: block;
    }

    .vf-mobile-nav summary {
        display: block;
        cursor: pointer;
        list-style: none;
    }

    .vf-mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .vf-mobile-nav nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        display: grid;
        width: min(90vw, 280px);
        padding: 0.6rem;
        border: 1px solid var(--vf-border);
        border-radius: 0.85rem;
        background: var(--vf-background);
        box-shadow: 0 10px 30px rgb(20 32 45 / 15%);
    }

    .vf-hero-inner {
        width: min(100% - 2rem, 1150px);
        padding: 3.5rem 0;
        gap: 2.5rem;
        grid-template-columns: 1fr;
    }

    .vf-hero h1 {
        font-size: clamp(2.4rem, 11vw, 3.3rem);
    }

    .vf-standards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vf-chip {
        padding: 0.6rem;
        gap: 0.5rem;
        font-size: 0.72rem;
    }

    .vf-section,
    .vf-people-inner,
    .vf-footer-inner {
        width: min(100% - 2rem, 1150px);
    }

    .vf-section {
        padding: 3.75rem 0;
    }

    .vf-section-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .vf-people-section {
        padding: 3.75rem 0;
    }

    .vf-people-inner > .vf-eyebrow,
    .vf-people-inner > h2 {
        margin-left: 0;
    }

    .vf-person-card {
        padding: 1.25rem;
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .vf-person img {
        width: min(100%, 190px);
    }

    .vf-footer-inner {
        gap: 1.75rem;
        grid-template-columns: 1fr;
    }

    .vf-inner-hero {
        padding: 3.5rem 1rem;
    }

    .vf-page-content {
        width: min(100% - 2rem, 820px);
        padding: 2.5rem 0 3.5rem;
    }

    .vf-page-content .vf-ink,
    .vf-page-content .vf-hero {
        margin: -2.5rem -1rem 2rem;
        padding: 3.5rem 1rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .vf-site *,
    .vf-site *::before,
    .vf-site *::after {
        transition-duration: 0.01ms !important;
    }
}
