/* ============================================================
   Redovisning — Base styles
   "Nordic Ledger": deep forest green, warm copper accents,
   Source Serif 4 headings, Outfit body. Clean precision with
   thin ruled lines, numbered elements, generous whitespace.
   ============================================================ */

/* --- Reset --- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body), system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

address {
    font-style: normal;
}

/* --- Skip link (a11y) --- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Container --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    font-family: var(--font-body), system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: color-mix(in srgb, var(--color-accent) 80%, #000);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(0,0,0,0.15);
}

.btn-outline-dark:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    color: #fff;
}

.btn-lg {
    padding: 0.9375rem 2.5rem;
    font-size: 0.9375rem;
}

/* --- Sections (shared) --- */

.section {
    padding: 4.5rem 0;
}

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

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
    .section-title {
        font-size: 2.125rem;
    }
}

/* --- Page Hero (subpages) --- */

.page-hero {
    background-color: var(--color-primary);
    color: #fff;
    padding: 4rem 0 3.5rem;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
}

.page-hero h1 {
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-hero-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.0625rem;
    max-width: 600px;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 5.5rem 0 5rem;
    }
    .page-hero h1 {
        font-size: 3rem;
    }
}

/* --- CTA Block: deep green with copper rule --- */

.section-cta-block {
    background-color: var(--color-primary);
    text-align: center;
    padding: 4.5rem 0;
    position: relative;
}

.cta-rule {
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto 2rem;
}

.cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 600;
}

.cta-content p {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .section-cta-block {
        padding: 6rem 0;
    }

    .cta-content h2 {
        font-size: 2.25rem;
    }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
