/*
 * Base design tokens — Decurtins Media und Management GmbH
 * Source: docs/brand-guide.md
 *
 * This file defines the variable foundation only (no resets, no component
 * styles). Every other stylesheet should consume these tokens rather than
 * hard-coding hex values, pixel sizes, or font names.
 */

:root {

    /* ---------------------------------------------------------------- *
     * Color — primitives
     * Raw brand values as specified in the CI. Not for direct use in
     * components; reference the semantic tokens below instead.
     * ---------------------------------------------------------------- */
    --color-black: #000000;
    --color-black-rgb: 0, 0, 0;
    --color-charcoal: #575756;
    --color-charcoal-rgb: 87, 87, 86;
    --color-red: #dc3545;
    --color-red-rgb: 220, 53, 69;

    --color-white: #ffffff;
    --color-white-rgb: 255, 255, 255;
    --color-gray-light: #ffffff; /*f8f9fa*/
    --color-gray-dark: #343a40;
    --color-gray-dark-rgb: 52, 58, 64;

    --color-ink: #212529;
    --color-ink-muted: #6c757d;
    --color-border-subtle: #dee2e6;

    /* Derived interaction states for the accent (color-mix keeps these
       tied to --color-red instead of hand-picked hex values). */
    --color-red-hover: color-mix(in srgb, var(--color-red) 85%, black);
    --color-red-active: color-mix(in srgb, var(--color-red) 70%, black);
    --color-red-subtle: color-mix(in srgb, var(--color-red) 10%, white);

    /* ---------------------------------------------------------------- *
     * Color — semantic
     * What components should actually reference.
     * ---------------------------------------------------------------- */
    --color-brand-primary: var(--color-black);
    /* logos, bold headings */
    --color-brand-secondary: var(--color-charcoal);
    /* hero backgrounds */
    --color-brand-accent: var(--color-red);
    /* highlights, dividers, heading period */

    --color-bg: var(--color-white);
    /* standard sections */
    --color-bg-alt: var(--color-gray-light);
    /* light-gray separation sections f8f9fa */
    --color-surface: #f8f9fa;
    /* the brand's light gray (the "alternate" background), kept for
       boxes and tiles: a very subtle fill that lifts them off the white
       page. Independent of --color-bg-alt, so the sections can stay white
       while boxes still stand out */
    --color-bg-dark: var(--color-gray-dark);
    /* footer, deep backgrounds */
    --color-bg-brand: var(--color-brand-secondary);
    /* hero backgrounds */

    --color-text: var(--color-ink);
    /* standard body text */
    --color-text-inverse: var(--color-white);
    /* text on dark backgrounds */
    --color-text-muted: var(--color-ink-muted);
    /* subtitles, footer info */
    --color-text-on-brand: var(--color-white);
    /* text on secondary/dark brand fills */

    --color-link: var(--color-brand-accent);
    --color-link-hover: var(--color-red-hover);
    --color-link-active: var(--color-red-active);

    --color-border: var(--color-border-subtle);
    /* neutral card/input borders */
    --color-border-strong: var(--color-ink);
    /* outlined pill buttons, 1px solid #212529 */
    --color-focus-ring: var(--color-brand-accent);
    /* keyboard-focus indicator */


    /* ---------------------------------------------------------------- *
     * Typography — families
     * ---------------------------------------------------------------- */
    --font-heading: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Montserrat', var(--font-heading);
    /* "Big-Fat Titles" */
    --font-accent: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    /* italic quotes */

    /* ---------------------------------------------------------------- *
     * Typography — size scale (base 16px / 1rem, ~1.25 ratio)
     * ---------------------------------------------------------------- */
    --font-size-xs: 0.75rem;
    /* 12px — fine print */
    --font-size-sm: 0.875rem;
    /* 14px — captions, meta */
    --font-size-base: 1rem;
    /* 16px — body */
    --font-size-md: 1.125rem;
    /* 18px — lead paragraphs */
    --font-size-lg: 1.25rem;
    /* 20px — h6 */
    --font-size-xl: 1.5rem;
    /* 24px — h5 */
    --font-size-2xl: 1.875rem;
    /* 30px — h4 */
    --font-size-3xl: 2.25rem;
    /* 36px — h3 */
    --font-size-4xl: 3rem;
    /* 48px — h2 */
    --font-size-5xl: 3.75rem;
    /* 60px — h1 */
    --font-size-6xl: 4.5rem;
    /* 72px — display / "Big-Fat Titles" */

    /* ---------------------------------------------------------------- *
     * Typography — weights (Raleway variable range, per brand guide)
     * ---------------------------------------------------------------- */
    --font-weight-thin: 100;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* ---------------------------------------------------------------- *
     * Typography — line-height & letter-spacing
     * ---------------------------------------------------------------- */
    --line-height-tight: 1.1;
    /* display / big-fat titles */
    --line-height-heading: 1.25;
    /* h1–h6 */
    --line-height-base: 1.6;
    /* body copy */
    --line-height-relaxed: 1.75;
    /* long-form / quotes */

    --letter-spacing-tight: -0.02em;
    /* large display type */
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.04em;
    /* uppercase section headings */
    --letter-spacing-wider: 0.08em;
    /* small uppercase labels/eyebrows */


    /* ---------------------------------------------------------------- *
     * Spacing scale (4px unit, 8px grid) — mirrors the site's existing
     * mt/mb-* utility steps (0–10) so both layers stay in sync.
     * ---------------------------------------------------------------- */
    --space-0: 0;
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.5rem;
    /* 24px */
    --space-6: 2rem;
    /* 32px */
    --space-7: 3rem;
    /* 48px */
    --space-8: 4rem;
    /* 64px */
    --space-9: 6rem;
    /* 96px */
    --space-10: 8rem;
    /* 128px */


    /* ---------------------------------------------------------------- *
     * UI elements — flat, sharp-cornered, high-contrast corporate look
     * ---------------------------------------------------------------- */
    --radius-none: 0;
    /* structure: the floating nav bar, full-width sections, layout grids, cards — always sharp */
    --radius-sm: 2px;
    /* micro-radius that takes the harsh edge off interactive components
       (buttons, form fields) and media (photos, logo tiles). Never on
       structural elements — see --radius-none */
    --radius-pill: 9999px;
    /* secondary nav / filter buttons */
    --radius-base: var(--radius-none);

    --shadow-none: none;
    /* flat design — no elevation on images, text, containers */
    --shadow-focus: 0 0 0 3px rgba(var(--color-red-rgb), 0.35);
    /* accessibility focus ring, not a decorative shadow */

    --border-width-thin: 1px;
    --border-width-base: 2px;
    --border-button: var(--border-width-thin) solid var(--color-border-strong);

    --divider-color: var(--color-brand-accent);
    --divider-width-sm: var(--border-width-thin);
    --divider-width-lg: var(--border-width-base);

    --image-filter-grayscale: grayscale(100%);
    /* standard layout images & partner logos */


    /* ---------------------------------------------------------------- *
     * Motion
     * ---------------------------------------------------------------- */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);

    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 500ms;
    --duration-reveal: 700ms;

    --reveal-offset: 24px;
    --reveal-stagger-step: 80ms;

    --marquee-item-width-logo: 10rem;
    --marquee-duration-logos: 120s;

    --marquee-item-width-testimonial: 24rem;
    --marquee-gap-testimonial: var(--space-7);
    /* space between two testimonial cards; the marquee's track width
       (layout.css) and loop distance (motion.css) are computed from it */
    --marquee-duration-testimonials: 100s;


    /* ---------------------------------------------------------------- *
     * Navigation — the header floats inset from the viewport edges:
     * left/right by the same amount as the page content's own side
     * padding, top by half of that
     * ---------------------------------------------------------------- */
    --nav-height: 4.5rem;
    /* 72px */
    --nav-inset: var(--space-6);
    /* left/right distance: 32px on mobile; 64px from 768px up, below */
    --nav-top: calc(var(--nav-inset) / 2);
    /* top distance: 16px on mobile, 32px from 768px up */

    /* The one side gutter for the whole page: every section's content
       (and the footer/back-to-top) keeps this distance from the
       viewport edges, so nothing is wider than the floating navbar. */
    --page-gutter: var(--nav-inset);

    /* ---------------------------------------------------------------- *
     * Page rhythm — one fluid scale for the whole site, growing
     * smoothly from phone to desktop (clamp(min, fluid, max)).
     * The page is white end to end, so whitespace alone separates
     * the sections: generous, and the same everywhere.
     * ---------------------------------------------------------------- */
    --section-space: clamp(3.5rem, 2rem + 5vw, 6.5rem);
    /* top and bottom of every section: 56px phone -> 104px desktop,
       so 112px -> 208px of white between two sections */
    --section-head-space: clamp(2rem, 1.25rem + 2.25vw, 3.5rem);
    /* section title -> its content: 32px -> 56px */
    --layout-gap: clamp(3rem, 2rem + 3.5vw, 6rem);
    /* between the big columns of a section (tabs | diagram,
       form | address) or when they stack: 48px -> 96px */
    --grid-gap: clamp(1.5rem, 1rem + 1.75vw, 3rem);
    /* between cards / items of a grid: 24px -> 48px */
}

@media (min-width: 768px) {
    :root {
        --nav-inset: var(--space-8);
    }
}
