/**
 * RUH-E-KHUSHBU — Design Tokens (CSS Custom Properties)
 * Source of truth: Design.md
 * Cormorant Garamond for EN display, Inter for EN UI,
 * Noto Serif Bengali for BN display, Noto Sans Bengali for BN body/UI.
 */

:root {
    /* ─── Colors (Design.md §2) ─────────────────────────── */
    --color-emerald: #064E3B;        /* Primary brand, buttons, key surfaces */
    --color-forest: #0B3027;         /* Header/footer, deep backgrounds, hover */
    --color-gold: #C6A15B;           /* Logo accents, highlights, premium details */
    --color-gold-hover: #B38E48;     /* Hover for gold elements */
    --color-ivory: #F5F0E5;          /* Main page background, light sections */
    --color-champagne: #DCCBA5;      /* Secondary highlights, subtle surfaces */
    --color-white: #FFFFFF;          /* Card surfaces, product image bgs */

    /* Semantic */
    --color-text: #17352C;           /* Main body text */
    --color-text-muted: #64736B;     /* Muted, secondary text */
    --color-surface: #FFFFFF;        /* Neutral card/image surfaces */
    --color-border: rgba(11, 48, 39, 0.14);  /* Borders/dividers */
    --color-divider: rgba(11, 48, 39, 0.12);

    /* Status */
    --color-success: #064E3B;
    --color-error: #ba1a1a;
    --color-error-bg: #ffdad6;
    --color-warning: #C6A15B;

    /* ─── Shadows (Design.md §4) ────────────────────────── */
    --shadow-soft: 0 12px 32px rgba(11, 48, 39, 0.08);
    --shadow-card: 0 8px 24px rgba(11, 48, 39, 0.07);
    --shadow-sm: 0 2px 8px rgba(11, 48, 39, 0.05);
    --shadow-header: 0 1px 8px rgba(11, 48, 39, 0.09);
    --shadow-elevated: 0 16px 48px rgba(11, 48, 39, 0.12);

    /* ─── Radii (Design.md §4) ──────────────────────────── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-btn: 10px;
    --radius-card: 16px;
    --radius-full: 9999px;

    /* ─── Spacing Scale (Design.md §4: 4px base) ────────── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* ─── Layout ────────────────────────────────────────── */
    --container-width: 1200px;
    --gutter: 24px;
    --gutter-mobile: 20px;

    /* ─── Typography (Design.md §3) ─────────────────────── */
    --font-display-en: "Cormorant Garamond", Georgia, serif;
    --font-body-en: "Inter", Arial, sans-serif;
    --font-bn: "Noto Sans Bengali", sans-serif;
    --font-display-bn: "Noto Serif Bengali", serif;

    /* Type Scale — fluid with clamp() */
    --text-hero: clamp(36px, 5vw, 64px);
    --text-h1: clamp(28px, 4vw, 44px);
    --text-h2: clamp(24px, 3.5vw, 36px);
    --text-h3: clamp(18px, 2.5vw, 24px);
    --text-h4: clamp(17px, 2vw, 22px);
    --text-body: clamp(15px, 1.6vw, 18px);
    --text-body-sm: 14px;
    --text-caption: 12px;
    --text-label: 14px;
    --text-label-sm: 12px;
    --text-btn: clamp(14px, 1.4vw, 16px);

    /* Line Heights */
    --lh-tight: 1.3;
    --lh-normal: 1.5;
    --lh-relaxed: 1.65;
    --lh-bengali: 1.75;  /* Bengali needs generous line-height */

    /* ─── Transitions ───────────────────────────────────── */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 160ms;
    --duration-normal: 220ms;
    --duration-slow: 400ms;
    --transition-colors: color var(--duration-normal) var(--ease-default),
                         background-color var(--duration-normal) var(--ease-default),
                         border-color var(--duration-normal) var(--ease-default);

    /* ─── Z-Index Scale ─────────────────────────────────── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-header: 700;
    --z-mobile-nav: 800;
    --z-overlay: 9998;
    --z-modal: 9999;
    --z-toast: 10000;

    /* ─── Touch Targets ─────────────────────────────────── */
    --touch-min: 44px;
}

/* ─── Dark Section Overrides ────────────────────────────── */
[data-theme="dark"],
.section-dark {
    --color-text: #F5F0E5;
    --color-text-muted: #BFC9C3;
    --color-border: rgba(245, 240, 229, 0.14);
}
