/*
 * Cultina Design Tokens
 * ---------------------
 * Single source of truth for spacing, radii, shadows, layout, motion.
 * COLORS are aliased to the Elementor Kit globals (--e-global-color-*):
 * the Kit (Site Settings) is the editable source of truth — a color change
 * in Elementor → Site Settings → Global Colors automatically propagates to
 * all theme CSS (nav widget, contact flap, form styling). The hex values
 * here are only fallbacks for contexts without the Kit CSS (login page,
 * editor previews before kit load).
 *
 * IMPORTANT: selector is `body`, not `:root` — Elementor defines the
 * --e-global-* variables on `.elementor-kit-<id>` (a body class). A :root
 * definition could not see them and would always resolve the fallback.
 *
 * Color names follow the Anima styleguide (additional/HTML/css/styleguide.css):
 * Lipstick, Citrus, Conifer, Mine Shaft, Gravel, Provincial Pink, Aqua
 * Squeeze, Rum Swizzle, Wild Sand, Butter.
 *
 * Naming convention: --cultina-<category>-<role>[-<modifier>].
 * Keep this file free of layout selectors so it can be cheaply imported anywhere.
 */

body {
    /* ----- color: brand (aliased to Elementor Kit globals) ---------------- */
    --cultina-color-primary:          var(--e-global-color-primary, #C2006A);              /* Lipstick */
    --cultina-color-primary-hover:    var(--e-global-color-cultina-primary-hover, #A8005B);
    --cultina-color-primary-active:   #8E004D;
    --cultina-color-secondary:        var(--e-global-color-secondary, #A2C617);            /* Citrus */
    --cultina-color-secondary-hover:  #8DAE12;
    --cultina-color-secondary-soft:   var(--e-global-color-accent, #C0DD51);               /* Conifer */

    /* ----- color: surfaces (aliased) -------------------------------------- */
    --cultina-color-surface:          #FFFFFF;
    --cultina-color-surface-cream:    var(--e-global-color-cultina-surface-cream, #FFF4C6); /* Butter */
    --cultina-color-surface-pink:     var(--e-global-color-cultina-surface-pink, #FFF7F0);  /* Provincial Pink */
    --cultina-color-surface-blue:     var(--e-global-color-cultina-surface-blue, #E8F5F9);  /* Aqua Squeeze */
    --cultina-color-surface-pale:     var(--e-global-color-cultina-surface-pale, #F8F9EA);  /* Rum Swizzle */
    --cultina-color-surface-mute:     var(--e-global-color-cultina-surface-mute, #F4F4F4);  /* Wild Sand */

    /* ----- color: text (aliased) ------------------------------------------ */
    --cultina-color-text:             var(--e-global-color-text, #313131);                  /* Mine Shaft */
    --cultina-color-text-muted:       var(--e-global-color-cultina-text-muted, #6E6E6E);
    --cultina-color-text-inverse:     #FFFFFF;
    --cultina-color-gravel:           var(--e-global-color-cultina-gravel, #4A4A4A);        /* Gravel — footer bg */

    /* ----- color: borders ------------------------------------------------- */
    --cultina-color-border:           #F4F4F4;
    --cultina-color-border-strong:    rgba(49, 49, 49, 0.12);

    /* ----- typography: family --------------------------------------------- */
    --cultina-font-family:            "Ubuntu", "Helvetica Neue", Arial, sans-serif;

    /* ----- typography: weights -------------------------------------------- */
    --cultina-font-weight-light:      300;
    --cultina-font-weight-regular:    400;
    --cultina-font-weight-medium:     500;
    --cultina-font-weight-bold:       700;

    /* ----- typography: scale (px reference from XD -> rem) ---------------- */
    --cultina-font-size-display:      6.875rem; /* 110px — hero / very large headlines */
    --cultina-font-size-h1:           3rem;     /*  48px — page H1 */
    --cultina-font-size-h1-alt:       2.75rem;  /*  44px — alt H1 */
    --cultina-font-size-h2:           2.25rem;  /*  36px — section H2 */
    --cultina-font-size-h3:           1.875rem; /*  30px — sub-section H3 */
    --cultina-font-size-h4:           1.75rem;  /*  28px — H4 / lead paragraph */
    --cultina-font-size-eyebrow:      1.5rem;   /*  24px — eyebrow / pull-quote */
    --cultina-font-size-strong:       1.25rem;  /*  20px — strong body / button label */
    --cultina-font-size-body:         1.125rem; /*  18px — base body */

    /* Fluid display heading: clamps from H1-size on small screens to full display at 1920+ */
    --cultina-font-size-display-fluid: clamp(3rem, 4vw + 1rem, 6.875rem);

    /* ----- typography: line-heights (matched to XD lineSpacing) ----------- */
    --cultina-line-height-display:    1.00;  /* 110/110 */
    --cultina-line-height-tight:      1.14;  /*  50/44  — h1 */
    --cultina-line-height-h2:         1.39;  /*  50/36  — uppercase h2 */
    --cultina-line-height-snug:       1.11;  /*  40/36  — medium h3 */
    --cultina-line-height-h4:         1.29;  /*  36/28  — lead / h4 */
    --cultina-line-height-eyebrow:    1.21;  /*  29/24  — eyebrow */
    --cultina-line-height-body:       1.445; /* 26/18 per Anima lh 26px */

    /* ----- spacing: 4-px scale ------------------------------------------- */
    --cultina-space-1:                0.25rem;  /*   4px */
    --cultina-space-2:                0.5rem;   /*   8px */
    --cultina-space-3:                0.75rem;  /*  12px */
    --cultina-space-4:                1rem;     /*  16px */
    --cultina-space-5:                1.5rem;   /*  24px */
    --cultina-space-6:                2rem;     /*  32px */
    --cultina-space-7:                3rem;     /*  48px */
    --cultina-space-8:                4rem;     /*  64px */
    --cultina-space-9:                6rem;     /*  96px */
    --cultina-space-10:               8rem;     /* 128px */
    --cultina-space-11:              10rem;     /* 160px */
    --cultina-space-12:              12rem;     /* 192px */

    /* ----- radius -------------------------------------------------------- */
    --cultina-radius-sm:              4px;
    --cultina-radius-md:              8px;
    --cultina-radius-lg:              16px;
    --cultina-radius-xl:              32px;
    --cultina-radius-pill:            9999px;

    /* ----- shadows ------------------------------------------------------- */
    --cultina-shadow-sm:              0 1px 2px rgba(49, 49, 49, 0.06);
    --cultina-shadow-md:              0 4px 12px rgba(49, 49, 49, 0.08);
    --cultina-shadow-lg:              0 16px 40px rgba(49, 49, 49, 0.12);

    /* ----- layout containers --------------------------------------------- */
    --cultina-container-max:          1440px; /* matches XD content max */
    --cultina-container-wide:         1680px; /* near-bleed sections */
    --cultina-container-narrow:        720px; /* legal / long-form */
    --cultina-container-padding-x:    max(1.5rem, 4vw);

    /* ----- breakpoints (mirror XD artboards) ----------------------------- */
    --cultina-bp-sm:                  430px;
    --cultina-bp-md:                 1024px;
    --cultina-bp-lg:                 1440px;
    --cultina-bp-xl:                 1920px;

    /* ----- z-index ------------------------------------------------------- */
    --cultina-z-base:                 1;
    --cultina-z-header:               100;
    --cultina-z-overlay:              500;
    --cultina-z-modal:                1000;
    --cultina-z-toast:                2000;

    /* ----- motion -------------------------------------------------------- */
    --cultina-ease-out:               cubic-bezier(0.16, 1, 0.3, 1);
    --cultina-ease-in-out:            cubic-bezier(0.4, 0, 0.2, 1);
    --cultina-duration-fast:          150ms;
    --cultina-duration-base:          300ms;
    --cultina-duration-slow:          500ms;

    /* ----- focus ring ---------------------------------------------------- */
    --cultina-focus-ring:             0 0 0 3px rgba(194, 0, 106, 0.4);
}
