/**
 * MAISON SELIN LONDON - DESIGN SYSTEM & DESIGN TOKENS
 * Single Source of Truth (SSOT)
 * 
 * Strict Guidelines:
 * - All font sizes in rem (1rem = 16px)
 * - Zero em-dashes (--)
 * - Quiet Luxury Aesthetic (warm stone, bronze, espresso, parchment)
 */

:root {
    /* ==========================================================================
       1. COLOR TOKENS
       ========================================================================== */
    --selin-espresso: #1C2620;         /* Deep Forest Espresso / Charcoal (Primary Text & Deep Contrast) */
    --selin-espresso-rgb: 28, 38, 32;
    
    --selin-bronze: #415647;           /* Deep Forest Olive / Signature Brand Accent */
    --selin-bronze-rgb: 65, 86, 71;
    --selin-bronze-hover: #384c3e;     /* Subtle Dark Accent / Primary Button Hover */
    --selin-bronze-hover-rgb: 56, 76, 62;
    
    --selin-sand: #EAE4D8;             /* Natural Limestone / Sand (Borders, Pill Backgrounds) */
    --selin-sand-rgb: 234, 228, 216;
    
    --selin-surface: #FAF8F4;          /* Soft Alabaster / Card Surface (Inner Cards) */
    --selin-surface-rgb: 250, 248, 244;
    
    --selin-bg: #F1EFE1;               /* Architectural Canvas / Primary Page Background */
    --selin-bg-rgb: 241, 239, 225;
    
    --selin-taupe: #8A7E72;            /* Secondary Body Copy & Muted Metadata */
    --selin-taupe-rgb: 138, 126, 114;
    
    --selin-sage: #4F5D4E;             /* Botanical Sage Green (Verified Badges & Zero-Downtime) */
    --selin-sage-rgb: 79, 93, 78;
    
    --selin-gold: #C5A059;             /* Warm Champagne Gold (5-Star Ratings & Prestige Icons) */
    --selin-gold-rgb: 197, 160, 89;
    
    --selin-border: rgba(28, 38, 32, 0.08); /* Crisp Hairline Divider Color */
    --selin-border-hover: rgba(65, 86, 71, 0.35);

    /* ==========================================================================
       2. TYPOGRAPHY TOKENS (Strictly rem units, baseline 1rem = 16px)
       ========================================================================== */
    --font-serif: 'Tenor Sans', 'Marcellus', 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Tenor Sans', Georgia, serif;

    /* Font Sizes */
    --font-size-3xs: 0.5625rem;  /*  9px - Monogram sub-captions */
    --font-size-2xs: 0.625rem;   /* 10px - Eyebrow badges, micro tags */
    --font-size-xs-sm: 0.6875rem;/* 11px - Metadata, date/time notes */
    --font-size-xs: 0.75rem;     /* 12px - Buttons, nav links, tags, inputs */
    --font-size-sm: 0.875rem;    /* 14px - Secondary descriptions, subheadings */
    --font-size-base: 1rem;      /* 16px - Standard editorial body text */
    --font-size-lg: 1.125rem;    /* 18px - Lead paragraphs, prominent quotes */
    --font-size-xl: 1.25rem;     /* 20px - Sub-headings H5 */
    --font-size-2xl: 1.5rem;     /* 24px - Section cards H4 */
    --font-size-3xl: 2rem;       /* 32px - Drawer & Modal H3 */
    --font-size-4xl: 2.625rem;   /* 42px - Major Section Titles H2 */
    --font-size-5xl: 3.5rem;     /* 56px - Hero Banner Headline H1 */

    /* Letter Spacing (Tracking) */
    --tracking-tighter: -0.02em;
    --tracking-normal: 0em;
    --tracking-wide: 0.08em;
    --tracking-wider: 0.12em;
    --tracking-widest: 0.16em;
    --tracking-luxury: 0.2em;
    --tracking-editorial: 0.24em;
    --tracking-monogram: 0.28em;

    /* Line Heights (Leading) */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.8;

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

    /* ==========================================================================
       3. ELEVATION & SHADOW TOKENS
       ========================================================================== */
    --shadow-hairline: 0 1px 2px rgba(28, 38, 32, 0.04);
    --shadow-sm: 0 2px 6px rgba(28, 38, 32, 0.05);
    --shadow-md: 0 4px 16px rgba(28, 38, 32, 0.07);
    --shadow-lg: 0 12px 32px rgba(28, 38, 32, 0.1);
    --shadow-xl: 0 20px 48px rgba(28, 38, 32, 0.14);
    --shadow-drawer: -10px 0 45px rgba(28, 38, 32, 0.18);

    /* ==========================================================================
       4. RADIUS & BORDER TOKENS
       ========================================================================== */
    --radius-sm: 0.5rem;        /* 8px */
    --radius-md: 0.75rem;       /* 12px */
    --radius-lg: 1rem;          /* 16px */
    --radius-xl: 1.25rem;       /* 20px */
    --radius-2xl: 1.5rem;       /* 24px */
    --radius-full: 9999px;      /* Pill / Circular */
    --radius-arch: 180px 180px 0 0; /* Architectural Arch */

    /* ==========================================================================
       5. TRANSITIONS & TIMING
       ========================================================================== */
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-luxury: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* ==========================================================================
       6. COMPONENT SEMANTIC TOKENS (Direct Two-Way Binding)
       Changing any token here cascades across every page and component site-wide!
       ========================================================================== */
    --card-radius: var(--radius-xl);              /* 1.25rem (20px) base card radius */
    --card-article-radius: 1.25rem;               /* Article / Blog Cards Border Radius */
    --card-product-radius: 1.25rem;               /* Couture Skincare & Product Cards Border Radius */
    --card-treatment-radius: 1.25rem;             /* Treatment Directory Cards Border Radius */
    --card-review-radius: 1.25rem;                /* Google Review Cards Border Radius */
    --card-gallery-radius: 1rem;                  /* Gallery Cards Border Radius */
    --card-concern-radius: 1.25rem;               /* Skin Concerns Cards Border Radius */
    --card-bg: var(--selin-surface);              /* Default Card Background */
    --card-border: 1px solid var(--selin-border); /* Card Divider Hairline */

    --btn-radius: var(--radius-full);             /* Primary & Secondary Button Radius */
    --btn-primary-bg: var(--selin-bronze);
    --btn-primary-hover-bg: var(--selin-espresso);
    --btn-primary-text: var(--selin-bg);

    --input-radius: var(--radius-full);           /* Form Inputs & Selects Radius */
    --input-bg: var(--selin-bg);
    --input-border: 1px solid var(--selin-border);

    --badge-radius: var(--radius-full);           /* Eyebrow & Category Badges */
}

/* ==========================================================================
   6. UTILITY CLASSES & COMPONENT PATTERNS
   ========================================================================== */

/* Hairline Borders */
.hairline-box {
    border: 1px solid var(--selin-border);
}
.hairline-t {
    border-top: 1px solid var(--selin-border);
}
.hairline-b {
    border-bottom: 1px solid var(--selin-border);
}

/* Paper Grain Texture */
.paper-grain {
    background-color: var(--selin-bg);
    background-image: radial-gradient(rgba(28, 38, 32, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Eyebrows & Badges */
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    background-color: rgba(var(--selin-sand-rgb), 0.8);
    border: 1px solid var(--selin-border);
    font-size: var(--font-size-xs-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    font-weight: var(--font-weight-semibold);
    color: var(--selin-bronze);
}

.eyebrow-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--selin-bronze);
    display: inline-block;
}

.eyebrow-classic {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-luxury);
    font-weight: var(--font-weight-semibold);
    color: var(--selin-bronze);
    display: block;
}

/* Buttons */
.btn-primary-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background-color: var(--selin-bronze);
    color: var(--selin-bg);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    font-weight: var(--font-weight-medium);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    transition: var(--transition-luxury);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: none;
}
.btn-primary-luxury:hover {
    background-color: var(--selin-espresso);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background-color: var(--selin-surface);
    color: var(--selin-espresso);
    border: 1px solid var(--selin-border);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-weight: var(--font-weight-medium);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition-luxury);
    cursor: pointer;
}
.btn-secondary-outlined:hover {
    background-color: rgba(var(--selin-sand-rgb), 0.6);
    border-color: var(--selin-bronze);
}

/* Architectural Arch */
.editorial-arch {
    border-radius: var(--radius-arch);
}

/* ==========================================================================
   7. SEMANTIC COMPONENT CLASSES (Bound to Tier 2 Tokens)
   ========================================================================== */

/* Article & Blog Cards (Changing --card-article-radius controls these instantly) */
.card-article {
    border-radius: var(--card-article-radius) !important;
}

/* Couture Skincare & Retail Product Cards (Changing --card-product-radius controls these) */
.card-product {
    border-radius: var(--card-product-radius) !important;
}

/* Treatment Directory Row Cards */
.card-treatment {
    border-radius: var(--card-treatment-radius) !important;
}

/* Google Review Cards */
.card-review {
    border-radius: var(--card-review-radius) !important;
}

/* Skin Concerns Cards */
.card-concern {
    border-radius: var(--card-concern-radius) !important;
}

/* Gallery Tiles */
.card-gallery {
    border-radius: var(--card-gallery-radius) !important;
}

/* ==========================================================================
   8. RESPONSIVE CATEGORY TABS & SCROLL-SPY NAVIGATION
   ========================================================================== */
#category-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#category-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    #category-tabs {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 0.625rem;
    }
}

.cat-scroll-section {
    scroll-margin-top: 11.25rem; /* 180px for sticky nav */
}

