/* Base Styles - Foundation */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Custom Properties - Luxury Color Palette */
:root {
    /* Colors */
    --color-porcelain: #FCFCFC;
    --color-ivory: #FFF7E8;
    --color-champagne: #C7A74D;
    --color-charcoal: #1E1E1E;
    --color-soft-graphite: #3A3A3A;
    --color-emerald: #1BB59A;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #C7A74D 0%, #E4C975 100%);
    --gradient-hero: linear-gradient(135deg, rgba(252, 252, 252, 0.95) 0%, rgba(255, 247, 232, 0.9) 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    
    /* Borders */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-gold: 1px solid rgba(199, 167, 77, 0.25);
    
    /* Shadows */
    --shadow-subtle: 0 2px 8px rgba(30, 30, 30, 0.04);
    --shadow-card: 0 4px 16px rgba(30, 30, 30, 0.08);
    --shadow-elevated: 0 8px 32px rgba(30, 30, 30, 0.12);
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-medium: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* Base HTML elements */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-porcelain);
    overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-soft-graphite);
}

a {
    color: var(--color-champagne);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus {
    color: var(--color-charcoal);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
    color: var(--color-soft-graphite);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-charcoal);
    color: var(--color-porcelain);
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    z-index: var(--z-tooltip);
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-gold: 2px solid var(--color-champagne);
        --shadow-subtle: none;
        --shadow-card: 0 0 0 2px var(--color-champagne);
        --shadow-elevated: 0 0 0 3px var(--color-champagne);
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .skip-link,
    .whatsapp-float,
    .navbar {
        display: none !important;
    }
}