 /*
 Theme Name: Stuwit Core Child
 Template: stuwit-core/theme
*/

/*
 * Projectkleuren en section-tokens.
 *
 * Fonts zijn gedefinieerd in het parent theme:
 *   tailwind/custom/fonts.css  → @font-face
 *   tailwind/tailwind-theme.css → --font-display / --font-sans
 *
 * Prose en heading-kleurlogica worden door de parent (base.css) geconsumeerd
 * via de --section-* tokens die hier per achtergrondklasse worden gezet.
 */

:root {
    /* Projectkleuren */
    --color-primary: #95a844;       /* groen */
    --color-secondary: #ffb300;     /* oranje */
    --color-dark: #212529;

    /* Basiskleuren voor algemene UI en borders */
    --color-foreground: #212529;
    --color-muted: #5a5a5a;
    --color-background: #f1f2ed;
    --color-surface: #f1f2ed;
    --color-border: rgba(0, 0, 0, 0.14);
    --color-heading-default: #212529;
    --color-heading-inverse: #FFF;

    /* Tekstkoppels per context */
    --text-surface-heading: #212529;
    --text-surface: #5a5a5a;
    --text-surface-invert-heading: #FFF;
    --text-surface-invert: rgba(245, 242, 235, 0.76);
    --text-on-image-heading: #FFF;
    --text-on-image: rgba(255, 250, 246, 0.88);

    /* Standaard section-tokens (lichte achtergrond als default) */
    --section-bg: var(--color-surface);
    --section-fg: var(--text-surface);
    --section-heading: var(--text-surface-heading);
    --section-muted: var(--text-surface);
    --section-border: var(--color-border);
    --section-border-strong: rgba(0, 0, 0, 0.24);
    --section-link: var(--color-primary);
    --section-eyebrow: var(--color-secondary);
    --section-eyebrow-accent: var(--color-secondary);
}

/* ============================================================
   Section-tokens per achtergrondklasse
   De parent (base.css) consumeert deze tokens voor prose, headings en eyebrow.
   ============================================================ */

.bg-surface {
    --section-bg: var(--color-surface);
    --section-fg: var(--text-surface);
    --section-heading: var(--text-surface-heading);
    --section-muted: var(--text-surface);
    --section-border: var(--color-border);
    --section-border-strong: rgba(0, 0, 0, 0.24);
    --section-link: var(--color-primary);
    --section-eyebrow: var(--color-secondary);
    --section-eyebrow-accent: var(--color-secondary);
    background-color: var(--section-bg);
    color: var(--section-fg);
}

.bg-primary {
    --section-bg: var(--color-primary);
    --section-fg: var(--text-surface-invert);
    --section-heading: var(--text-surface-invert-heading);
    --section-muted: var(--text-surface-invert);
    --section-border: rgba(255, 255, 255, 0.2);
    --section-border-strong: rgba(255, 255, 255, 0.45);
    --section-link: var(--text-surface-invert-heading);
    --section-eyebrow: var(--text-surface-invert);
    --section-eyebrow-accent: #FFFFFF;
    background-color: var(--section-bg);
    color: var(--section-fg);
}


.bg-surface-inverse {
    --section-bg: var(--color-dark);
    --section-fg: var(--text-surface-invert);
    --section-heading: var(--text-surface-invert-heading);
    --section-muted: var(--text-surface-invert);
    --section-border: rgba(255, 255, 255, 0.2);
    --section-border-strong: rgba(255, 255, 255, 0.45);
    --section-link: var(--text-surface-invert-heading);
    --section-eyebrow: var(--color-primary);
    --section-eyebrow-accent: var(--color-primary);
    background-color: var(--section-bg);
    color: var(--section-fg);
}

.bg-image {
    --section-fg: var(--text-on-image);
    --section-heading: var(--text-on-image-heading);
    --section-muted: rgba(255, 250, 246, 0.76);
    --section-link: var(--text-on-image-heading);
    --section-eyebrow: var(--text-on-image);
    --section-eyebrow-accent: #FFFFFF;
    color: var(--section-fg);
}

/* Buttons: override section-fg color inheritance on bg-* elements */
.btn.bg-primary,
.btn.bg-surface-inverse {
    color: white;
}

/* SVG fill utilities */
.fill-surface {
    fill: var(--color-surface);
}

.fill-surface-inverse {
    fill: var(--color-dark);
}

/* Project-specifiek: swiper progress kleur per achtergrond */
.projects-progress {
    background-color: rgba(149, 168, 68, 0.2);
}

.bg-primary .projects-progress,
.bg-surface-inverse .projects-progress {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-primary .projects-progress .swiper-pagination-progressbar-fill {
    background-color: var(--color-surface);
}
