/**
 * Beach Luxe Vacations - CSS Variables
 * 
 * CENTRALIZED THEME CONFIGURATION
 * 
 * This file contains all theme variables in one place.
 * Modify these variables to customize the entire website appearance.
 * 
 * ============================================================================
 * FONT CUSTOMIZATION GUIDE
 * ============================================================================
 * 
 * Current fonts (Apple.com inspired):
 * - Display font: Plus Jakarta Sans (headlines, like SF Pro Display)
 * - Text font: Inter (body text, like SF Pro Text)
 * 
 * To change fonts:
 * 1. Update theme.json "fonts.google" with new Google Font URLs
 * 2. Update base.html font preloading (for performance)
 * 3. Update the font-family variables below
 * 
 * Popular alternatives:
 * - Display: Outfit, DM Sans, Manrope, Poppins
 * - Text: Inter, Nunito Sans, Source Sans Pro, Open Sans
 * - Luxury serif: Cormorant Garamond, Playfair Display, Lora
 * 
 * ============================================================================
 */

:root {
    /* ========================================================================
       FONTS
       ======================================================================== */
    
    /**
     * Primary Font Families
     * 
     * --font-family-display: For headlines, hero text, display sizes
     * --font-family-text: For body text, UI elements, smaller text
     * 
     * These follow Apple's approach of using different optical sizes:
     * - Display = SF Pro Display (optimized for large text)
     * - Text = SF Pro Text (optimized for body text)
     */
    /* Apple.com inspired fonts: Display + Text */
    --font-family-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-family-text: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-family-mono: 'SF Mono', 'Fira Code', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    
    /* Semantic Font Aliases (use these in components) */
    --font-heading: var(--font-family-display);
    --font-body: var(--font-family-text);
    --font-code: var(--font-family-mono);
    
    /* Font Weights - matching Apple's weight scale */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Legacy weight aliases */
    --font-normal: var(--font-weight-regular);
    --font-medium: var(--font-weight-medium);
    --font-semibold: var(--font-weight-semibold);
    --font-bold: var(--font-weight-bold);
    
    /* ========================================================================
       FONT SIZES
       ======================================================================== */
    
    /* Display Sizes (Hero, Headlines) - fluid scaling */
    --text-display-xl: clamp(3rem, 8vw, 5rem);      /* 48-80px */
    --text-display-lg: clamp(2.5rem, 6vw, 4rem);    /* 40-64px */
    --text-display-md: clamp(2rem, 5vw, 3rem);      /* 32-48px */
    --text-display-sm: clamp(1.75rem, 4vw, 2.5rem); /* 28-40px */
    
    /* Heading Sizes */
    --text-4xl: clamp(1.75rem, 3vw, 2.25rem);   /* 28-36px */
    --text-3xl: clamp(1.5rem, 2.5vw, 1.875rem); /* 24-30px */
    --text-2xl: clamp(1.25rem, 2vw, 1.5rem);    /* 20-24px */
    --text-xl: clamp(1.125rem, 1.5vw, 1.25rem); /* 18-20px */
    
    /* Body Sizes */
    --text-lg: 1.125rem;   /* 18px */
    --text-base: 1rem;     /* 16px */
    --text-sm: 0.875rem;   /* 14px */
    --text-xs: 0.75rem;    /* 12px */
    
    /* ========================================================================
       LINE HEIGHTS
       ======================================================================== */
    
    --leading-none: 1;
    --leading-tight: 1.1;     /* Headlines */
    --leading-snug: 1.25;     /* Subheadlines */
    --leading-normal: 1.5;    /* Body text */
    --leading-relaxed: 1.625; /* Long-form content */
    --leading-loose: 2;
    
    /* ========================================================================
       LETTER SPACING
       ======================================================================== */
    
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* ========================================================================
       COLORS - Beach Luxe Palette
       ======================================================================== */
    
    /* Primary Brand Colors */
    --color-primary: #026788;
    --color-primary-light: #50B0C3;
    --color-primary-dark: #015068;
    --color-secondary: #50B0C3;
    --color-accent: #3EA4AD;
    
    /* Gold Accent Colors */
    --color-gold: #D4AF37;
    --color-gold-light: #E5C65B;
    --color-gold-dark: #B8962D;
    
    /* Text Colors (Apple-inspired gray scale) */
    --color-text: #1d1d1f;
    --color-text-light: #515154;
    --color-text-muted: #86868b;
    
    /* Background Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-background: #ffffff;
    --color-surface: #f5f5f7;
    --color-border: #d2d2d7;
    
    /* Semantic Colors */
    --color-success: #34C759;
    --color-error: #FF3B30;
    --color-warning: #FF9500;
    --color-info: #007AFF;
    
    /* Gray Scale */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f5f5f7;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d2d2d7;
    --color-gray-400: #a1a1a6;
    --color-gray-500: #86868b;
    --color-gray-600: #6e6e73;
    --color-gray-700: #515154;
    --color-gray-800: #333336;
    --color-gray-900: #1d1d1f;
    
    /* ========================================================================
       SPACING
       ======================================================================== */
    
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */
    --space-24: 6rem;    /* 96px */
    
    /* ========================================================================
       BORDERS & RADIUS
       ======================================================================== */
    
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    --border-width: 1px;
    --border-color: var(--color-border);
    
    /* ========================================================================
       SHADOWS
       ======================================================================== */
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* ========================================================================
       TRANSITIONS
       ======================================================================== */
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    
    /* ========================================================================
       LAYOUT
       ======================================================================== */
    
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
    
    /* Header height for sticky positioning */
    --header-height: 64px;
    
    /* ========================================================================
       Z-INDEX LAYERS
       ======================================================================== */
    
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
}

/* ============================================================================
   DARK MODE (Optional - currently disabled)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment to enable dark mode:
        --color-text: #f5f5f7;
        --color-text-light: #a1a1a6;
        --color-text-muted: #6e6e73;
        --color-background: #000000;
        --color-surface: #1d1d1f;
        --color-border: #333336;
        */
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-normal: 0ms;
        --transition-slow: 0ms;
    }
}
