/* =============================================================
   0. Fonts (self-hosted — no external request at runtime)
   ============================================================= */
@font-face {
    font-family: "Google Sans Flex";
    src: url("/assets/fonts/google-sans-flex.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* =============================================================
   1. Design tokens
   ============================================================= */
:root {
    --color-bg: #F7F6F3;
    --color-surface: #F1F0EC;
    --color-surface-alt: #E7E5DF;
    --color-text: #14181F;
    --color-text-muted: #5B6472;
    --color-primary: #14233D;
    --color-primary-dark: #0B1526;
    --color-accent: #F2760F;
    --color-accent-dark: #CC5F09;
    --color-accent-soft: #FCE3CC;
    --color-border: #E1DFD8;
    --color-white: #FFFFFF;

    --gradient-brand: linear-gradient(135deg, #1B3A5C 0%, #F97316 100%);

    --font-body: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --shadow-card: 0 2px 12px rgba(20, 24, 31, 0.06);
    --shadow-card-hover: 0 12px 28px rgba(20, 24, 31, 0.12);

    --container-max: 1200px;

    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset / base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
    line-height: 1.1;
    margin: 0 0 var(--space-3);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 700; }

p { margin: 0 0 var(--space-3); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

.icon { flex-shrink: 0; }

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

/* Scroll-reveal: fades/slides content in as it enters the viewport (see main.js) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-bounce);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group .reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-bounce);
}

.reveal-group.is-visible .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group.is-visible .reveal-item:nth-child(1) { transition-delay: 0.03s; }
.reveal-group.is-visible .reveal-item:nth-child(2) { transition-delay: 0.07s; }
.reveal-group.is-visible .reveal-item:nth-child(3) { transition-delay: 0.11s; }
.reveal-group.is-visible .reveal-item:nth-child(4) { transition-delay: 0.15s; }
.reveal-group.is-visible .reveal-item:nth-child(5) { transition-delay: 0.19s; }
.reveal-group.is-visible .reveal-item:nth-child(6) { transition-delay: 0.23s; }
.reveal-group.is-visible .reveal-item:nth-child(7) { transition-delay: 0.27s; }
.reveal-group.is-visible .reveal-item:nth-child(8) { transition-delay: 0.31s; }
.reveal-group.is-visible .reveal-item:nth-child(9) { transition-delay: 0.35s; }
.reveal-group.is-visible .reveal-item:nth-child(10) { transition-delay: 0.39s; }
.reveal-group.is-visible .reveal-item:nth-child(11) { transition-delay: 0.43s; }
.reveal-group.is-visible .reveal-item:nth-child(12) { transition-delay: 0.47s; }

/* =============================================================
   3. Layout / utilities
   ============================================================= */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.section-heading-block {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-6);
}

.section-heading {
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.section-sub {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.section-heading:only-child { margin-bottom: var(--space-4); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gradient-brand);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px var(--space-4);
    border-radius: var(--radius-full);
    border: none;
    white-space: nowrap;
    transition: filter 0.25s ease, transform 0.3s var(--ease-bounce);
}

.btn:hover { filter: brightness(0.95); transform: translateY(-2px) scale(1.02); }

.btn--lg { padding: 15px var(--space-5); font-size: 1rem; }

.btn--ghost {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover { background: var(--color-surface); }

.btn--sm { padding: 8px var(--space-3); font-size: 0.8rem; }

/* Higher specificity than `.primary-nav > a` (which would otherwise win and
   force this back to --color-text) — the CTA must stay white like every
   other .btn on the site, not inherit the plain nav-link color. */
.primary-nav > a.site-header__cta,
.primary-nav > a.site-header__cta:hover {
    color: var(--color-white);
    flex-shrink: 0;
}

.page-content { padding-block: var(--space-6); }

.lede {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 68ch;
}

.content-notice {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: var(--color-text-muted);
}

/* =============================================================
   4. Header / nav
   ============================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: var(--space-3) 0;
    background: var(--color-primary);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 10px 10px 10px 20px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 30px rgba(20, 24, 31, 0.12);
}

.site-header__logo {
    position: relative;
    z-index: 101;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    height: 36px;
    width: auto;
}

/* The source asset is solid white on transparent — invert() flips it to a
   dark mark for use on a light surface (the transparent background is
   untouched by the filter). On the mobile full-screen nav the surface
   behind the header logo turns dark, so the inversion is switched back off
   to show the logo in its natural white. */
.brand-logo--on-light { filter: invert(1); }
body.nav-open .brand-logo--on-light { filter: none; }

.primary-nav {
    display: none;
    align-items: center;
    gap: var(--space-5);
}

.primary-nav > a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.primary-nav > a:hover { color: var(--color-primary); }

.nav-dropdown { position: relative; }

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

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

.nav-dropdown summary::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown summary:hover { color: var(--color-primary); }

.nav-dropdown__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: var(--space-1) var(--space-4);
    padding: var(--space-3);
}

/* Specificity has to beat `.nav-dropdown__panel a` (desktop) and its mobile
   equivalent further down, both of which also match this link. */
.nav-dropdown__panel a.nav-dropdown__all {
    grid-column: 1 / -1;
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
    color: var(--color-accent-dark);
    font-weight: 700;
}

.nav-toggle {
    position: relative;
    z-index: 101;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.nav-toggle__bar {
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .primary-nav {
        display: flex;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
    }
    .nav-dropdown__panel {
        position: absolute;
        top: calc(100% + var(--space-2));
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-card-hover);
        min-width: 320px;
    }
    .nav-dropdown__panel a {
        padding: var(--space-1) var(--space-2);
        border-radius: var(--radius-sm);
        color: var(--color-text);
        font-weight: 500;
    }
    .nav-dropdown__panel a:hover { background: var(--color-surface); color: var(--color-primary); }
}

@media (max-width: 767.98px) {
    .primary-nav {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 100;
        background: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-4);
        padding: var(--space-6) var(--space-5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .primary-nav > a,
    .nav-dropdown summary {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--color-white);
    }

    .nav-dropdown { text-align: center; }
    .nav-dropdown__panel {
        grid-template-columns: 1fr;
        margin-top: var(--space-2);
    }
    .nav-dropdown__panel a {
        font-size: 1.05rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        padding-block: var(--space-1);
    }
    .nav-dropdown__panel a:hover { color: var(--color-white); }

    .nav-dropdown__panel a.nav-dropdown__all {
        border-top-color: rgba(255, 255, 255, 0.16);
        color: var(--color-accent);
    }

    .primary-nav > a:hover, .nav-dropdown summary:hover { color: var(--color-accent); }

    body.nav-open { overflow: hidden; }

    .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle.is-open .nav-toggle__bar { background: var(--color-white); }
    .nav-toggle.is-open { background: rgba(255, 255, 255, 0.08); }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero { background: var(--color-bg); }

.hero__frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: var(--color-primary);
}

.hero--compact .hero__frame { min-height: 340px; }

@media (max-width: 640px) {
    .hero__frame { min-height: 420px; }
    .hero--compact .hero__frame { min-height: 300px; }
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: var(--space-6) var(--space-4);
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__icon .icon { width: 32px; height: 32px; }

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-3);
    font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero__subtitle {
    font-weight: 500;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 56ch;
    margin-inline: auto;
}

.hero__cta { margin-top: var(--space-5); }
.hero__cta .icon { width: 18px; height: 18px; }

/* =============================================================
   6. Buttons / CTA
   ============================================================= */
.cta-block {
    background: var(--color-primary);
    color: var(--color-white);
    padding-block: var(--space-7);
    margin-top: var(--space-6);
}

.cta-block__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
}

.cta-block__text h2 { color: var(--color-white); }
.cta-block__text p { color: rgba(255, 255, 255, 0.8); margin: 0; }

@media (min-width: 700px) {
    .cta-block__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .cta-block__button { flex-shrink: 0; }
}

/* =============================================================
   6b. Stat row
   ============================================================= */
.stat-row-section {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--space-2));
    margin-bottom: var(--space-6);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-row__item {
    background: var(--color-white);
    padding: var(--space-5) var(--space-3);
    text-align: center;
}

.stat-row__value {
    display: block;
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.stat-row__label {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

/* =============================================================
   6c. Story section (dark, blueprint illustration + copy)
   ============================================================= */
.story {
    background: var(--color-primary);
    color: var(--color-white);
    padding-block: var(--space-7);
    margin-top: var(--space-6);
}

.story__grid {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 860px) {
    .story__grid { grid-template-columns: 1fr 1fr; }
}

.story__art svg { width: 100%; height: auto; display: block; }

.story__heading {
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.story__content p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 52ch;
}

.story__cta {
    margin-top: var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.24);
}

.story__cta:hover { background: rgba(255, 255, 255, 0.16); }

/* =============================================================
   7. Trust bar
   ============================================================= */
.trust { background: var(--color-primary); color: var(--color-white); padding-block: var(--space-5); }

.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
}

.trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    font-size: 1rem;
}

/* =============================================================
   8. Trade grid / cards
   ============================================================= */
.trade-grid-section, .tasks-section, .price-note, .process, .related-trades {
    padding-block: var(--space-6);
}

.trade-grid-section--hub { padding-block: var(--space-4); }

/* Homepage only — the Shop section sits between two visually similar
   sections (Fagområder above, Guides below) using the same card-grid
   pattern, so without this it reads as one continuous list rather than a
   distinct part of the site. */
.trade-grid-section--divider {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-eyebrow {
    margin: 0 0 var(--space-1);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-dark);
}

.trade-grid-section__more { text-align: center; margin-top: var(--space-5); }

.trade-grid-section__heading {
    text-align: left;
    margin-bottom: var(--space-4);
}

/* =============================================================
   8b. Shop (Wattoo categories)
   ============================================================= */
.hub-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    max-width: 480px;
    margin: 0 auto var(--space-6);
    padding: 12px var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-card);
}

.hub-search .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-text-muted); }

.hub-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
}

.hub-search input::placeholder { color: var(--color-text-muted); }

.shop-category-section {
    padding-block: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.shop-category-section:last-of-type { border-bottom: none; }

.shop-category-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.shop-category-heading h2 {
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 1.375rem;
    transition: color 0.2s ease;
}

.shop-category-heading:hover h2 { color: var(--color-accent-dark); }

.shop-category-heading__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.shop-category-heading:hover .shop-category-heading__arrow {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.shop-category-heading__arrow .icon { width: 16px; height: 16px; }

.shop-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-bounce);
}

/* The `display: inline-flex` above beats the UA stylesheet's own
   `[hidden] { display: none }` at equal specificity — without this,
   hub-search.js setting chip.hidden=true on a filtered-out chip has no
   visible effect. */
.shop-chip[hidden] { display: none; }

.shop-chip .icon { width: 13px; height: 13px; color: var(--color-text-muted); transition: color 0.2s ease; }

.shop-chip:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.shop-chip:hover .icon { color: var(--color-white); }

.hub-no-results {
    text-align: center;
    color: var(--color-text-muted);
    padding-block: var(--space-6);
}

/* Fixed column counts (not auto-fill) so a count that's a multiple of the
   column count always fills the last row instead of leaving 1-2 orphans. */
/* Deliberately skips a 3-column tier: every curated trade count on the site
   (12 popular, 8 related) divides evenly by 2 and 4 but not 3, so a 3-column
   step would reintroduce the short-last-row problem this is fixing. */
.trade-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

@media (min-width: 560px) {
    .trade-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .trade-grid { grid-template-columns: repeat(4, 1fr); }
}

/* The homepage shop teaser is a fixed, complete set of exactly 5 categories
   (not a curated/truncated count like the 12 popular trades), so it gets
   its own column count rather than leaving a lone 5th card orphaned in the
   standard 4-column grid. */
@media (min-width: 560px) {
    .trade-grid--shop { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .trade-grid--shop { grid-template-columns: repeat(5, 1fr); }
}

.trade-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    /* Grid/flex items default to min-width: auto, which refuses to shrink
       below the content's intrinsic width — with a long, unbroken uppercase
       name (e.g. "VARMEPUMPE (LUFT-TIL-VAND)") that pushed the card past its
       column instead of wrapping. min-width: 0 lets it shrink and wrap. */
    min-width: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-bounce), border-color 0.3s ease;
}

/* Same reasoning as .shop-chip[hidden] above — the explicit `display: flex`
   would otherwise beat hub-search.js setting a filtered-out card's hidden
   property. */
.trade-card[hidden] { display: none; }

.trade-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.trade-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-primary);
    transition: background 0.25s ease, color 0.25s ease;
}

.trade-card:hover .trade-card__icon {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.trade-card__name {
    font-weight: 700;
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    /* Danish compound words (badeværelsesrenovering, kloakrenovering) are a
       single unbroken word with no space to wrap at — without this, a word
       longer than the available width overflows into the arrow badge next
       to it instead of breaking. hyphens:auto (the page is lang="da") picks
       proper syllable break points; overflow-wrap is the fallback for
       browsers that ignore hyphens. */
    overflow-wrap: break-word;
    hyphens: auto;
}

.trade-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.trade-card__arrow .icon { width: 16px; height: 16px; }

.trade-card:hover .trade-card__arrow {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* =============================================================
   9. Process steps
   ============================================================= */
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.process__item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
}

.process__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-3);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 800;
}

.process__cta { text-align: center; margin-top: var(--space-6); }

.process__item h3 { margin-bottom: var(--space-1); text-transform: uppercase; font-size: 1.05rem; letter-spacing: -0.005em; }
.process__item p { margin: 0; color: var(--color-text-muted); }

/* =============================================================
   10. Tasks list + price note (trade landing pages)
   ============================================================= */
.tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-2) var(--space-4);
}

.tasks-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    color: var(--color-text);
}

.tasks-list__item .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--color-accent-dark); }

.price-note__box {
    max-width: 760px;
    margin-inline: auto;
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.price-note__box h2 { margin-bottom: var(--space-2); }
.price-note__box p { margin: 0; color: var(--color-text-muted); }

.trade-article { margin-bottom: var(--space-2); }

/* =============================================================
   10b. Guides
   ============================================================= */
.guide-article { max-width: 720px; margin-inline: auto; }
.guide-article h2 { margin-top: var(--space-6); }

.guide-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.guide-cta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
}

.guide-cta-inline p { margin: 0; font-weight: 700; }

.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

@media (min-width: 560px) {
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .guide-grid { grid-template-columns: repeat(4, 1fr); }
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    min-width: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-bounce), border-color 0.3s ease;
}

.guide-card[hidden] { display: none; }

.guide-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.guide-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-card__title {
    font-weight: 700;
    overflow-wrap: break-word;
    hyphens: auto;
}

.guide-card__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* =============================================================
   11. Breadcrumb
   ============================================================= */
.breadcrumb {
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: var(--space-1);
    color: var(--color-border);
}

.breadcrumb a:hover { color: var(--color-primary); }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq {
    margin-top: var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-4);
}

.faq__heading { margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: -0.01em; }

.faq__list { max-width: 760px; margin-inline: auto; }

.faq__item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    transition: background 0.2s ease, color 0.2s ease;
}

.faq__question {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.faq__question::-webkit-details-marker { display: none; }

.faq__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.faq__toggle .icon { width: 13px; height: 13px; }

.faq__item[open] .faq__toggle {
    transform: rotate(45deg);
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.faq__answer { margin: var(--space-2) 0 0; color: var(--color-text-muted); }

.faq__item[open] { background: var(--color-primary); color: var(--color-white); }
.faq__item[open] .faq__answer { color: rgba(255, 255, 255, 0.8); }
.faq__item[open] .faq__toggle { border-color: var(--color-accent); }

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: var(--space-6);
}

.site-footer__inner {
    display: grid;
    gap: var(--space-6) var(--space-5);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__logo {
    display: inline-flex;
    margin: 0 0 var(--space-3);
}

.site-footer__logo .brand-logo { height: 24px; }

.site-footer__tagline { max-width: 48ch; color: rgba(255, 255, 255, 0.7); }

.site-footer__disclosure {
    max-width: 44ch;
    margin-top: var(--space-3);
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-3);
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.site-footer__nav a:hover { color: var(--color-white); }

.site-footer__giant {
    position: relative;
    padding-block: var(--space-6) var(--space-4);
}

.site-footer__wordmark .brand-logo {
    height: auto;
    width: min(100%, 640px);
}

.site-footer__totop {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--color-white);
    transition: background 0.2s ease;
}

.site-footer__totop:hover { background: rgba(255, 255, 255, 0.16); }
.site-footer__totop .icon { width: 18px; height: 18px; transform: rotate(-90deg); }

.site-footer__bottom {
    padding-block: var(--space-4);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom p { margin: 0 0 var(--space-2); }

@media (min-width: 640px) {
    .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
    .site-footer__inner {
        grid-template-columns: 1.1fr repeat(5, 1fr);
        align-items: start;
    }
    .site-footer__brand { grid-column: auto; }
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
    font-size: 0.85rem;
}

.site-footer__legal a, .site-footer__legal-btn { color: var(--color-text-muted); }
.site-footer__legal a:hover, .site-footer__legal-btn:hover { color: var(--color-white); }

.site-footer__legal-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =============================================================
   14. Mobile bottom tab bar
   ============================================================= */
.mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px rgba(20, 24, 31, 0.06);
}

.mobile-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-block: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mobile-tabbar__item .icon { width: 20px; height: 20px; }

.mobile-tabbar__item.is-active { color: var(--color-accent-dark); }

/* The CTA is the one item that links off-site, so it must never read as
   just another (possibly "active") tab — instead of coloring it like the
   others, it's raised into its own circular button, permanently prominent
   regardless of which page is current. */
.mobile-tabbar__item--cta {
    color: var(--color-accent-dark);
    font-weight: 700;
}

.mobile-tabbar__cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -30px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    box-shadow: 0 6px 14px rgba(242, 118, 15, 0.45), 0 0 0 4px var(--color-white);
    transition: transform 0.2s var(--ease-bounce);
}

.mobile-tabbar__item--cta:active .mobile-tabbar__cta-circle { transform: scale(0.94); }

.mobile-tabbar__item--cta .mobile-tabbar__cta-circle .icon { width: 22px; height: 22px; }

@media (min-width: 768px) {
    .mobile-tabbar { display: none; }
}

body.has-tabbar { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 768px) {
    body.has-tabbar { padding-bottom: 0; }
}

/* =============================================================
   15. Cookie consent banner
   ============================================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(20, 24, 31, 0.1);
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}

body.has-tabbar .cookie-banner {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--space-4);
}

@media (min-width: 768px) {
    body.has-tabbar .cookie-banner { bottom: 0; }
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    flex: 1 1 320px;
}

.cookie-banner__text a { color: var(--color-primary); font-weight: 600; }

.cookie-banner__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

/* =============================================================
   16. Legal pages (about / privacy / cookies / 404)
   ============================================================= */
.legal-article { max-width: 720px; margin: 0 auto var(--space-7); }
.legal-article section { margin-bottom: var(--space-5); }
.legal-article h2 { margin-bottom: var(--space-2); }
.legal-article ul { margin: 0 0 var(--space-3); padding-left: var(--space-4); color: var(--color-text-muted); }
.legal-article li { margin-bottom: var(--space-1); }

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3) 0 var(--space-5);
    font-size: 0.9rem;
}

.cookie-table th, .cookie-table td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.cookie-table th { color: var(--color-text-muted); font-weight: 600; }

.section-hub h1 { margin-top: var(--space-3); }
