/**
 * AL Mart — Phase 0 design tokens (single source of truth).
 * Brand: keep logo colors (blue + orange); do not replace with third-party palettes.
 * Store locale: English (en). Currency: INR (format in PHP/JS; symbols optional via classes later).
 *
 * Load order: after Bootstrap + css/style.css, before css/theme-almart.css.
 */

:root {
    /* ----- Brand (logo-aligned) ----- */
    --almart-color-brand-blue-light: #1e90ff;
    --almart-color-brand-blue-deep: #0a2f6b;
    --almart-color-brand-orange: #ff7a00;
    --almart-color-brand-orange-deep: #d84315;

    /* Legacy aliases (existing stylesheets) */
    --almart-blue-light: var(--almart-color-brand-blue-light);
    --almart-blue-deep: var(--almart-color-brand-blue-deep);
    --almart-orange: var(--almart-color-brand-orange);
    --almart-orange-deep: var(--almart-color-brand-orange-deep);

    /* Bootstrap bridge (RGB kept for Bootstrap rgba() helpers) */
    --bs-primary: #1565c0;
    --bs-primary-rgb: 21, 101, 192;
    --bs-secondary: #ff6f00;
    --bs-secondary-rgb: 255, 111, 0;

    /* ----- Neutrals & surfaces ----- */
    --almart-color-text: #1f2a44;
    --almart-color-text-muted: #4c5876;
    --almart-color-surface: #ffffff;
    --almart-color-surface-muted: #f8f9ff;
    --almart-color-surface-tint: #f6f8ff;
    --almart-color-surface-carousel: #f7f8ff;
    --almart-color-surface-carousel-end: #f2f5ff;
    --almart-color-border: #e9ecff;
    --almart-color-border-strong: #d7ddf5;
    --almart-color-border-subtle: #eceffc;
    --almart-color-border-pill: #dbe2fb;
    --almart-color-border-pill-active: #bfcaf0;
    --almart-color-border-card: #e8ecfb;

    /* Footer / slate UI */
    --almart-color-footer-start: #0d2847;
    --almart-color-footer-end: #051525;
    --almart-color-footer-accent: #0a4a8c;
    --almart-color-slate-start: #37474f;
    --almart-color-slate-end: #263238;

    /* ----- Typography (matches Google Fonts in header.php) ----- */
    --almart-font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --almart-font-heading: 'Roboto', 'Open Sans', system-ui, sans-serif;
    --almart-font-weight-regular: 400;
    --almart-font-weight-medium: 500;
    --almart-font-weight-semibold: 600;
    --almart-font-weight-bold: 700;

    --almart-type-display-size: clamp(1.85rem, 4.2vw, 2.5rem);
    --almart-type-display-line: 1.2;
    --almart-type-h1-size: clamp(1.55rem, 3.2vw, 2rem);
    --almart-type-h1-line: 1.22;
    --almart-type-h2-size: clamp(1.35rem, 2.4vw, 1.65rem);
    --almart-type-h2-line: 1.28;
    --almart-type-h3-size: clamp(1.15rem, 2vw, 1.35rem);
    --almart-type-h3-line: 1.32;
    --almart-type-body-size: 1rem;
    --almart-type-body-line: 1.55;
    --almart-type-small-size: 0.875rem;
    --almart-type-small-line: 1.45;
    --almart-type-nav-size: 0.95rem;
    --almart-type-utility-size: 0.85rem;

    /* ----- Spacing (4px base) ----- */
    --almart-space-0: 0;
    --almart-space-1: 0.25rem;
    --almart-space-2: 0.5rem;
    --almart-space-3: 0.75rem;
    --almart-space-4: 1rem;
    --almart-space-5: 1.25rem;
    --almart-space-6: 1.5rem;
    --almart-space-8: 2rem;
    --almart-space-10: 2.5rem;
    --almart-space-12: 3rem;
    --almart-space-16: 4rem;

    /* Section vertical rhythm (Shaklee-like airy sections — tune in Phase 2+) */
    --almart-section-padding-y-sm: var(--almart-space-10);
    --almart-section-padding-y-lg: var(--almart-space-16);

    /* ----- Radius ----- */
    --almart-radius-sm: 0.35rem;
    --almart-radius-md: 0.5rem;
    --almart-radius-lg: 0.75rem;
    --almart-radius-xl: 1rem;
    --almart-radius-2xl: 1rem;
    --almart-radius-pill: 999px;

    /* ----- Elevation ----- */
    --almart-shadow-header: 0 10px 24px rgba(0, 0, 0, 0.08);
    --almart-shadow-card: 0 8px 22px rgba(17, 33, 76, 0.08);
    --almart-shadow-card-hover: 0 14px 30px rgba(13, 30, 74, 0.12);
    --almart-shadow-tile-hover: 0 10px 24px rgba(24, 39, 75, 0.08);
    --almart-shadow-pill: 0 4px 10px rgba(18, 40, 96, 0.05);
    --almart-shadow-icon: 0 8px 20px rgba(15, 33, 73, 0.16);

    /* ----- Motion ----- */
    --almart-duration-fast: 150ms;
    --almart-duration-base: 200ms;
    --almart-duration-slow: 300ms;
    --almart-duration-template: 0.5s;
    --almart-easing-standard: ease;
    --almart-easing-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ----- Z-index scale ----- */
    --almart-z-dropdown: 1000;
    --almart-z-header: 1200;
    --almart-z-overlay: 1040;
    --almart-z-modal: 1055;
    --almart-z-spinner: 99999;

    /* ----- Layout (header / logo — align with theme-almart.css) ----- */
    --almart-header-utility-min-height: 42px;
    --almart-header-main-min-height: 84px;
    --almart-logo-height-sm: 42px;
    --almart-logo-height-md: 48px;
    --almart-logo-height-lg: 52px;
    --almart-logo-max-width: 200px;
    --almart-auth-logo-max-height: 64px;

    /* ----- Breakpoints (reference only — use in media queries as raw px) ----- */
    --almart-bp-md: 768px;
    --almart-bp-lg: 992px;
    --almart-bp-xl: 1200px;

    /* ----- Locale (INR / EN) — use in templates; hooks for future i18n ----- */
    --almart-locale-lang: en;
    --almart-locale-currency: INR;
}

/* Optional utility: semantic headings without changing every template at once */
.almart-heading-display {
    font-family: var(--almart-font-heading);
    font-weight: var(--almart-font-weight-bold);
    font-size: var(--almart-type-display-size);
    line-height: var(--almart-type-display-line);
    color: var(--almart-color-text);
}

.almart-heading-1 {
    font-family: var(--almart-font-heading);
    font-weight: var(--almart-font-weight-bold);
    font-size: var(--almart-type-h1-size);
    line-height: var(--almart-type-h1-line);
    color: var(--almart-color-text);
}

.almart-heading-2 {
    font-family: var(--almart-font-heading);
    font-weight: var(--almart-font-weight-bold);
    font-size: var(--almart-type-h2-size);
    line-height: var(--almart-type-h2-line);
    color: var(--almart-color-text);
}

.almart-text-muted {
    color: var(--almart-color-text-muted);
}

.almart-section-y {
    padding-top: var(--almart-section-padding-y-sm);
    padding-bottom: var(--almart-section-padding-y-sm);
}

@media (min-width: 992px) {
    .almart-section-y {
        padding-top: var(--almart-section-padding-y-lg);
        padding-bottom: var(--almart-section-padding-y-lg);
    }
}
