/* ========================================
Variables
======================================== */
:root {
    /* Typography */
    --font-manrope: "Manrope", sans-serif;
    --font-glammel: "GlammelFont", sans-serif;

    /* Colors — brand */
    --color-brand-red: #e1251b;
    --color-brand-gold: #d3b96c;
    --color-brand-green: #0f3d2c;
    --color-brand-blue: #0c1f2e;

    /* Colors — semantic (light mode) */
    --color-primary: #000000;
    --color-secondary: #6c757d;
    --color-background: #ffffff;
    --color-surface: #f5f5f5;
    --color-surface-warm: #efe9df;
    --color-border: #e5e5e5;
    --color-text: #000000;
    --color-text-muted: #6c757d;

    /* Font sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --overlay-transition-duration: 400ms;
    --overlay-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 85px;
    --header-padding-y: 10px;
    --header-bar-height: calc(var(--header-height) - (var(--header-padding-y) * 2));
        --header-logo-height: 2.7rem;
    --mega-menu-link-count: 6;
    --mega-menu-link-row-height: 3.5rem;
    --mega-menu-list-padding-y: 2rem;
    --mega-menu-panel-height: calc(
        (var(--mega-menu-list-padding-y) * 2)
        + (var(--mega-menu-link-row-height) * var(--mega-menu-link-count))
        + (1px * (var(--mega-menu-link-count) - 1))
    );
    --layout-gutter-x: 40px;
    --page-layout-offset: 38px;

    /* Layout grid (12-column fractions of parent width) */
    --layout-col-1: calc(100% * 1 / 12);
    --layout-col-2: calc(100% * 2 / 12);
    --layout-col-3: calc(100% * 3 / 12);
    --layout-col-4: calc(100% * 4 / 12);
    --layout-col-5: calc(100% * 5 / 12);
    --layout-col-6: calc(100% * 6 / 12);
    --layout-col-7: calc(100% * 7 / 12);
    --layout-col-8: calc(100% * 8 / 12);
    --layout-col-9: calc(100% * 9 / 12);
    --layout-col-10: calc(100% * 10 / 12);
    --layout-col-11: calc(100% * 11 / 12);
    --layout-col-12: 100%;

    /* Default readable content measure */
    --layout-content-width: var(--layout-col-10);

    /* Z-index */
    --z-header: 1000;
    --z-menu: 1050;
    --z-overlay: 1100;
    --z-loader: 2000;

    /* Button system (light mode) */
    --button-custom-radius: 0.25rem;
    --button-custom-transition: var(--transition-base);
    --button-custom-white: #ffffff;

    /* Primary = black (not brand-red) */
    --button-custom-primary: var(--color-primary);
    --button-custom-primary-hover: color-mix(in srgb, var(--color-primary) 88%, #fff);
    --button-custom-primary-active: color-mix(in srgb, var(--color-primary) 80%, #fff);
    --button-custom-primary-soft: color-mix(in srgb, var(--color-primary) 8%, #fff);
    --button-custom-primary-soft-hover: color-mix(in srgb, var(--color-primary) 14%, #fff);

    /* Secondary = muted gray */
    --button-custom-secondary: var(--color-secondary);
    --button-custom-secondary-hover: color-mix(in srgb, var(--color-secondary) 88%, #000);
    --button-custom-secondary-active: color-mix(in srgb, var(--color-secondary) 80%, #000);
    --button-custom-secondary-soft: color-mix(in srgb, var(--color-secondary) 12%, #fff);
    --button-custom-secondary-soft-hover: color-mix(in srgb, var(--color-secondary) 20%, #fff);

    /* Brand red */
    --button-custom-brand-red: var(--color-brand-red);
    --button-custom-brand-red-hover: color-mix(in srgb, var(--color-brand-red) 88%, #000);
    --button-custom-brand-red-active: color-mix(in srgb, var(--color-brand-red) 80%, #000);
    --button-custom-brand-red-soft: color-mix(in srgb, var(--color-brand-red) 10%, #fff);
    --button-custom-brand-red-soft-hover: color-mix(in srgb, var(--color-brand-red) 18%, #fff);

    /* Brand gold — light fill needs dark ink */
    --button-custom-brand-gold: var(--color-brand-gold);
    --button-custom-brand-gold-hover: color-mix(in srgb, var(--color-brand-gold) 86%, #000);
    --button-custom-brand-gold-active: color-mix(in srgb, var(--color-brand-gold) 78%, #000);
    --button-custom-brand-gold-ink: var(--color-brand-blue);
    --button-custom-brand-gold-soft: color-mix(in srgb, var(--color-brand-gold) 22%, #fff);
    --button-custom-brand-gold-soft-hover: color-mix(in srgb, var(--color-brand-gold) 34%, #fff);

    /* Brand green */
    --button-custom-brand-green: var(--color-brand-green);
    --button-custom-brand-green-hover: color-mix(in srgb, var(--color-brand-green) 88%, #000);
    --button-custom-brand-green-active: color-mix(in srgb, var(--color-brand-green) 80%, #000);
    --button-custom-brand-green-soft: color-mix(in srgb, var(--color-brand-green) 10%, #fff);
    --button-custom-brand-green-soft-hover: color-mix(in srgb, var(--color-brand-green) 18%, #fff);

    /* Brand blue */
    --button-custom-brand-blue: var(--color-brand-blue);
    --button-custom-brand-blue-hover: color-mix(in srgb, var(--color-brand-blue) 88%, #fff);
    --button-custom-brand-blue-active: color-mix(in srgb, var(--color-brand-blue) 80%, #fff);
    --button-custom-brand-blue-soft: color-mix(in srgb, var(--color-brand-blue) 10%, #fff);
    --button-custom-brand-blue-soft-hover: color-mix(in srgb, var(--color-brand-blue) 18%, #fff);
}

@media (min-width: 768px) {
    :root {
        --header-logo-height: 2.75rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --layout-content-width: var(--layout-col-8);
        --header-logo-height: 3rem;
    }
}

@media (min-width: 1400px) {
    :root {
        --header-logo-height: 3.25rem;
    }
}

@media (max-width: 1023.98px) {
    :root {
        /* Match Bootstrap .container-fluid side padding */
        --layout-gutter-x: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        --page-layout-offset: 24px;
    }
}
