/**
 * ========================================================
 * VARIABLES.CSS - Design System Tokens
 * ========================================================
 *
 * This file contains all CSS custom properties (variables) that define
 * the design system for Spirit Skin Slim Bloom website.
 *
 * Organization:
 * 1. Colors (Primary, Secondary, Neutral, Semantic, Gradients)
 * 2. Typography (Fonts, Sizes, Line Heights, Letter Spacing)
 * 3. Spacing (8px base grid system)
 * 4. Component Tokens (Buttons, Cards, Forms)
 * 5. Borders & Shadows
 * 6. Breakpoints (stored as comments, used in responsive.css)
 * 7. Transitions & Animations
 * 8. Z-index Scale
 *
 * Usage: Reference these variables throughout other CSS files
 * Example: color: var(--color-primary);
 *
 * ========================================================
 */

:root {
    /* ========================================================
       1. COLOR PALETTE
       ========================================================
       Brand colors chosen to evoke:
       - Tranquility and healing (sage green)
       - Warmth and comfort (cream tones)
       - Luxury and premium quality (rose gold, gold)
       ======================================================== */

    /* Primary Colors */
    --color-primary: #8BA888;           /* Sage green - main brand color, calming, natural */
    --color-primary-light: #A3BDA0;     /* Lighter sage for hover states */
    --color-primary-dark: #6F8A6C;      /* Darker sage for active states */
    --color-primary-rgb: 139, 168, 136; /* RGB values for rgba() usage */

    /* Secondary Colors */
    --color-secondary: #F5F0E8;         /* Warm cream - soft, inviting backgrounds */
    --color-secondary-light: #FAF8F5;   /* Lighter cream variant */
    --color-secondary-dark: #E8E0D4;    /* Darker cream for contrast */

    /* Accent Colors */
    --color-accent: #B76E79;            /* Rose gold - luxury accent for CTAs */
    --color-accent-light: #C98B94;      /* Lighter rose for hover */
    --color-accent-dark: #9A5A63;       /* Darker rose for active */
    --color-accent-rgb: 183, 110, 121;  /* RGB values for rgba() usage */

    --color-gold: #C9A962;              /* Gold - premium touches, special highlights */
    --color-gold-light: #D4BC7D;        /* Lighter gold for hover */
    --color-gold-dark: #B08F4A;         /* Darker gold for active */

    /* Neutral Colors */
    --color-white: #FFFFFF;             /* Pure white */
    --color-off-white: #FDFCFA;         /* Slightly warm white */
    --color-cream: #FAF8F5;             /* Light cream background */
    --color-light-gray: #E8E6E3;        /* Borders, dividers */
    --color-medium-gray: #9A9590;       /* Secondary text, placeholders */
    --color-dark-gray: #5C5856;         /* Body text secondary */
    --color-charcoal: #2D2B2A;          /* Primary text color */
    --color-near-black: #1A1918;        /* Darkest text, high contrast */

    /* Semantic Colors */
    --color-success: #6B9080;           /* Success states, positive feedback */
    --color-success-light: #E8F5E9;     /* Success background */
    --color-error: #C45B56;             /* Error states, validation */
    --color-error-light: #FDEDED;       /* Error background */
    --color-warning: #D4A84B;           /* Warning states */
    --color-warning-light: #FFF8E7;     /* Warning background */
    --color-info: #6B8CAE;              /* Information states */
    --color-info-light: #E8F4FD;        /* Info background */

    /* Gradient Definitions */
    --gradient-hero: linear-gradient(
        135deg,
        rgba(139, 168, 136, 0.9) 0%,
        rgba(183, 110, 121, 0.7) 100%
    );

    --gradient-hero-overlay: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );

    --gradient-card-hover: linear-gradient(
        180deg,
        transparent 0%,
        rgba(139, 168, 136, 0.05) 100%
    );

    --gradient-button-primary: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );

    --gradient-gold: linear-gradient(
        135deg,
        var(--color-gold-light) 0%,
        var(--color-gold) 50%,
        var(--color-gold-dark) 100%
    );

    --gradient-cream: linear-gradient(
        180deg,
        var(--color-white) 0%,
        var(--color-secondary) 100%
    );


    /* ========================================================
       2. TYPOGRAPHY SYSTEM
       ========================================================
       Font pairings for elegant, readable design:
       - Cormorant Garamond: Display headings (elegant serif)
       - Outfit: Body text (modern, clean sans-serif)
       - Playfair Display: Accent/quotes (decorative serif)
       ======================================================== */

    /* Font Families */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes - Fluid Typography using clamp() */
    /* Formula: clamp(min, preferred, max) */
    --font-size-h1: clamp(2.5rem, 5vw, 4rem);           /* 40px - 64px */
    --font-size-h2: clamp(2rem, 4vw, 3rem);             /* 32px - 48px */
    --font-size-h3: clamp(1.5rem, 3vw, 2rem);           /* 24px - 32px */
    --font-size-h4: clamp(1.25rem, 2.5vw, 1.5rem);      /* 20px - 24px */
    --font-size-h5: clamp(1.125rem, 2vw, 1.25rem);      /* 18px - 20px */
    --font-size-h6: clamp(1rem, 1.5vw, 1.125rem);       /* 16px - 18px */
    --font-size-body: 1rem;                              /* 16px base */
    --font-size-body-lg: 1.125rem;                       /* 18px */
    --font-size-small: 0.875rem;                         /* 14px */
    --font-size-tiny: 0.75rem;                           /* 12px */
    --font-size-label: 0.8125rem;                        /* 13px */

    /* Line Heights */
    --line-height-tight: 1.2;      /* Headings */
    --line-height-snug: 1.4;       /* Subheadings */
    --line-height-normal: 1.6;     /* Body text */
    --line-height-loose: 1.8;      /* Large text blocks, improved readability */
    --line-height-relaxed: 2;      /* Extra spacing for emphasis */

    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;    /* Tight for large headings */
    --letter-spacing-normal: 0;          /* Default */
    --letter-spacing-wide: 0.05em;       /* Slightly wide for emphasis */
    --letter-spacing-wider: 0.1em;       /* Wide for labels */
    --letter-spacing-widest: 0.15em;     /* All caps text */


    /* ========================================================
       3. SPACING SYSTEM
       ========================================================
       Based on 8px grid for consistent rhythm
       Named from 3xs (4px) to 4xl (128px)
       ======================================================== */

    --space-3xs: 0.25rem;    /* 4px */
    --space-2xs: 0.5rem;     /* 8px */
    --space-xs: 0.75rem;     /* 12px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    --space-3xl: 6rem;       /* 96px */
    --space-4xl: 8rem;       /* 128px */

    /* Section Spacing */
    --section-padding-y: clamp(4rem, 10vw, 8rem);
    --section-padding-x: clamp(1rem, 5vw, 2rem);

    /* Container Widths */
    --container-max: 1280px;
    --container-narrow: 800px;
    --container-wide: 1440px;
    --container-padding: clamp(1rem, 5vw, 2rem);


    /* ========================================================
       4. COMPONENT TOKENS
       ========================================================
       Design tokens for reusable components
       ======================================================== */

    /* Button Tokens */
    --btn-padding-y: 0.875rem;
    --btn-padding-x: 1.75rem;
    --btn-padding-y-sm: 0.625rem;
    --btn-padding-x-sm: 1.25rem;
    --btn-padding-y-lg: 1.125rem;
    --btn-padding-x-lg: 2.25rem;
    --btn-font-size: 0.9375rem;
    --btn-font-weight: 500;
    --btn-border-radius: 6px;
    --btn-border-width: 2px;
    --btn-transition: all 0.3s ease;

    /* Card Tokens */
    --card-padding: 1.5rem;
    --card-padding-lg: 2rem;
    --card-border-radius: 8px;
    --card-border-radius-lg: 16px;
    --card-bg: var(--color-white);
    --card-border: 1px solid var(--color-light-gray);

    /* Form Input Tokens */
    --input-padding-y: 0.875rem;
    --input-padding-x: 1rem;
    --input-font-size: 1rem;
    --input-border-radius: 6px;
    --input-border-width: 1px;
    --input-border-color: var(--color-light-gray);
    --input-border-color-focus: var(--color-primary);
    --input-bg: var(--color-white);
    --input-placeholder: var(--color-medium-gray);

    /* Navigation Tokens */
    --nav-height: 80px;
    --nav-height-scrolled: 64px;
    --nav-link-padding: 0.5rem 1rem;
    --nav-link-font-size: 0.9375rem;


    /* ========================================================
       5. BORDERS & SHADOWS
       ========================================================
       Consistent border radii and shadow depths
       ======================================================== */

    /* Border Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Box Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.16);

    /* Colored Shadows */
    --shadow-primary: 0 4px 20px rgba(139, 168, 136, 0.25);
    --shadow-accent: 0 4px 20px rgba(183, 110, 121, 0.25);
    --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.25);

    /* Inner Shadows */
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-inner-lg: inset 0 4px 8px rgba(0, 0, 0, 0.1);


    /* ========================================================
       6. BREAKPOINTS (Reference Only)
       ========================================================
       CSS doesn't support variables in media queries
       These values are used in responsive.css

       --breakpoint-xs: 320px    (Small mobile)
       --breakpoint-sm: 480px    (Mobile)
       --breakpoint-md: 768px    (Tablet)
       --breakpoint-lg: 1024px   (Desktop)
       --breakpoint-xl: 1280px   (Large desktop)
       --breakpoint-2xl: 1440px  (Extra large)
       ======================================================== */


    /* ========================================================
       7. TRANSITIONS & ANIMATIONS
       ========================================================
       Consistent timing for smooth interactions
       ======================================================== */

    /* Transition Durations */
    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
    --transition-slower: 700ms;

    /* Timing Functions */
    --ease-default: ease;
    --ease-in: ease-in;
    --ease-out: ease-out;
    --ease-in-out: ease-in-out;
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Combined Transitions */
    --transition-base: all var(--transition-normal) var(--ease-smooth);
    --transition-transform: transform var(--transition-normal) var(--ease-smooth);
    --transition-opacity: opacity var(--transition-normal) var(--ease-smooth);
    --transition-colors: color var(--transition-fast) var(--ease-smooth),
                         background-color var(--transition-fast) var(--ease-smooth),
                         border-color var(--transition-fast) var(--ease-smooth);


    /* ========================================================
       8. Z-INDEX SCALE
       ========================================================
       Layering system for consistent stacking
       ======================================================== */

    --z-below: -1;
    --z-base: 0;
    --z-above: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-header: 400;
    --z-overlay: 500;
    --z-modal: 600;
    --z-popover: 700;
    --z-tooltip: 800;
    --z-toast: 900;
    --z-maximum: 9999;
}


/* ========================================================
   DARK MODE SUPPORT (Future Enhancement)
   ========================================================
   Uncomment and customize when implementing dark mode
   ======================================================== */

/*
@media (prefers-color-scheme: dark) {
    :root {
        --color-text: var(--color-off-white);
        --color-bg: var(--color-near-black);
        --color-secondary: #2A2826;
    }
}
*/
