/* =========================================================
   Designed Systems
   =========================================================

   Struktur:
   1. Tokens
   2. Base
   3. Layout      — .container, .section
   4. Typografi   — eyebrow, h1-h3, .intro, .list
   5. Komponenter — .button, .cards, .facts, .about-grid
   6. Sektioner   — header, hero, focus, approach, about, contact, footer
   7. Mobil

   Alle sektioner bruger samme mønster:
   <section class="section section--navn">
     <div class="container">
       <p class="eyebrow">…</p>
       <h2>…</h2>
       … indhold …
     </div>
   </section>
   ========================================================= */


@font-face {
    font-family: 'Century';
    src: url('../fonts/century_gothic.woff') format('woff');
    font-display: swap;
}


/* ---------- 1. Tokens ---------- */

:root {
    /* Flader, lysest til mørkest */
    --bg-soft: #f3f2ff;
    --bg: #ecebff;
    --bg-deeper: #dddafe;
    --line: #d2cff2;

    /* Accent */
    --accent-soft: #9a95f3;
    --accent: #5650e8;
    --accent-deep: #4039bd;

    /* Tekst */
    --ink: #17181d;
    --muted: #606473;
    --on-dark: #ffffff;

    /* Mørk flade til header og footer */
    --dark: rgba(0, 0, 0, 0.80);

    /* Mål og afstande */
    --max-width: 1180px;
    --measure: 62ch;
    --pad-section: 100px;
    --gap: 22px;
    --radius: 10px;
}


/* ---------- 2. Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Century", Arial, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}


/* ---------- 3. Layout ---------- */

/* Én container. Alt indhold starter ved samme venstrekant. */
.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

/* Én sektionsrytme. Baggrund sættes af modifier-klassen. */
.section {
    padding: var(--pad-section) 0;
}


/* ---------- 4. Typografi ---------- */

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h2 {
    margin: 0 0 44px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h3 {
    margin: 28px 0 10px;
    font-size: 1.25rem;
}

/* Violet fremhævning i overskrifter. Samme mønster i h1 og h2. */
h1 span,
h2 span {
    color: var(--accent);
}

.intro {
    max-width: var(--measure);
    margin: 32px 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* Punktopstilling — samme udseende i Tilgang og Kontakt. */
.list {
    max-width: 78ch;
    margin: 0;
    padding: 0;
    list-style: none;
}
.list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.list li:last-child {
    margin-bottom: 0;
}

.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}


/* ---------- 5. Komponenter ---------- */

.button {
    display: inline-block;
    padding: 13px 20px;
    background: var(--accent);
    color: var(--on-dark);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background: var(--accent-deep);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card-number {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted);
}

/* Meritter — tabuleret liste i én ramme. */
.facts {
    max-width: var(--measure);
    margin: 40px 0 0;
    padding: 28px;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.facts li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.facts li:first-child {
    padding-top: 0;
}

.facts li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.facts span {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: start;
}

.about-portrait {
    margin: 0;
}

.about-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius);
    background: var(--bg);
}

.about-portrait figcaption {
    margin-top: 16px;
    line-height: 1.5;
}

.about-portrait figcaption strong {
    display: block;
    font-weight: 700;
}

.about-portrait figcaption span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.about-text p {
    max-width: var(--measure);
    margin: 0 0 22px;
    color: var(--muted);
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.email {
    display: inline-block;
    margin-top: 36px;
    color: var(--accent-deep);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    text-decoration: none;
}

.email:hover {
    text-decoration: underline;
}

.offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    margin-top: 56px;
    padding: 36px;
    background: var(--on-dark);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.offer .intro {
    margin: 0 0 16px;
    color: var(--ink);
}

.offer-meta {
    max-width: var(--measure);
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.offer-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    white-space: nowrap;
}

.offer-action .email {
    margin: 0;
    font-size: 1rem;
}

.section--contact h2 {
    margin-bottom: 32px;
}

/* ---------- 6. Sektioner ---------- */

.site-header {
    background: var(--dark);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--on-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.nav-link {
    color: var(--on-dark);
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-soft);
}

/* Fladerne skifter ved hver sektion, så kanterne er synlige. */
.section--hero {
    background: var(--bg);
}

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

.section--approach {
    background: var(--accent-deep);
    color: var(--on-dark);
}

.section--approach .eyebrow {
    color: var(--bg-deeper);
}

.section--approach .list li::before {
    background: var(--accent-soft);
}

.section--about {
    background: var(--bg-soft);
   /* border-top: 1px solid var(--line);*/
}

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

footer {
    padding: 28px 0;
    background: var(--dark);
    color: var(--bg-soft);
    font-size: 0.85rem;
}


/* ---------- 7. Mobil ---------- */

@media (max-width: 800px) {

    :root {
        --pad-section: 70px;
    }

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

    .cards,
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    .about-grid {
        gap: 40px;
    }

    .about-portrait {
        max-width: 320px;
    }

        .offer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;

        align-items: end;
    }

    .offer-action {
        white-space: normal;
    }
}