/**
 * Modern Eco-Luxury Design System
 * Bold minimalism, cinematic visuals, 2025 trends
 */

:root {
    /* ===== SIMPLE COLOR PALETTE - White, Black, Blue, Green ===== */
    
    /* Primary Colors - Green */
    --primary-900: #0E6655;
    --primary-800: #138D75;
    --primary-700: #16A085;        /* Primary green */
    --primary-600: #16A085;
    --primary-500: #1ABC9C;
    --primary-400: #48C9B0;
    --primary-300: #76D7C4;
    --primary-200: #A3E4D7;
    --primary-100: #D1F2EB;
    --primary-50: #E8F8F5;
    
    /* Secondary Colors - Blue */
    --water-900: #1B4F72;
    --water-800: #2874A6;
    --water-700: #2980B9;
    --water-600: #3498DB;          /* Primary blue */
    --water-500: #5DADE2;
    --water-400: #85C1E9;
    --water-300: #AED6F1;
    --water-200: #D6EAF8;
    --water-100: #EBF5FB;
    --water-50: #F4F8FB;
    
    /* Neutral Grays */
    --gray-900: #1A1A1A;
    --gray-800: #2D2D2D;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #A3A3A3;
    --gray-300: #D4D4D4;
    --gray-200: #E5E5E5;
    --gray-100: #F5F5F5;
    --gray-50: #FAFAFA;
    --white: #FFFFFF;
    
    /* Semantic Colors */
    --success: var(--primary-500);
    --success-light: var(--primary-100);
    --warning: var(--gold-500);
    --error: #DC2626;
    --error-light: #FEE2E2;
    --info: var(--water-500);
    
    /* ===== TYPOGRAPHY ===== */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 5rem);
    --text-7xl: clamp(4.5rem, 3.5rem + 5vw, 6.5rem);
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* ===== SPACING SCALE ===== */
    --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 */
    --space-32: 8rem;     /* 128px */
    
    /* ===== BORDERS & RADIUS ===== */
    --radius-xs: 0.25rem;   /* 4px */
    --radius-sm: 0.5rem;    /* 8px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.5rem;    /* 24px */
    --radius-2xl: 2rem;     /* 32px */
    --radius-full: 9999px;
    
    --border-width: 1px;
    --border-width-thick: 2px;
    --border-width-thicker: 3px;
    
    /* ===== SHADOWS - Elevated Design ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 32px 64px -12px rgba(0, 0, 0, 0.15), 0 16px 32px -8px rgba(0, 0, 0, 0.08);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Colored Shadows */
    --shadow-primary: 0 10px 30px -10px rgba(26, 95, 60, 0.3);
    --shadow-water: 0 10px 30px -10px rgba(0, 102, 204, 0.3);
    --shadow-gold: 0 10px 30px -10px rgba(212, 160, 23, 0.3);
    
    /* ===== GRADIENTS ===== */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
    --gradient-water: linear-gradient(135deg, var(--water-600) 0%, var(--water-400) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 100%);
    --gradient-nature: linear-gradient(135deg, var(--primary-600) 0%, var(--water-600) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--gold-500) 0%, var(--primary-400) 50%, var(--water-500) 100%);
    
    /* Overlay Gradients */
    --overlay-dark: linear-gradient(180deg, rgba(10, 31, 20, 0.8) 0%, rgba(10, 31, 20, 0.4) 100%);
    --overlay-water: linear-gradient(180deg, rgba(10, 50, 66, 0.7) 0%, rgba(10, 50, 66, 0.3) 100%);
    
    /* ===== TRANSITIONS & ANIMATIONS ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== LAYOUT ===== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --container-padding: clamp(1rem, 4vw, 2rem);
    
    /* ===== Z-INDEX SCALE ===== */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ===== BACKDROP BLUR ===== */
    --blur-sm: blur(4px);
    --blur-md: blur(8px);
    --blur-lg: blur(16px);
    --blur-xl: blur(24px);
    
    /* ===== BREAKPOINTS ===== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--primary-900);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

h5 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

h6 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
    line-height: var(--leading-relaxed);
}

/* ===== LINKS ===== */
a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-500);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===== BUTTONS - Modern Design ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    border: var(--border-width-thick) solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-primary), var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-600);
    border-color: var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    text-decoration: none;
    color: var(--primary-500);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: var(--white);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    text-decoration: none;
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ===== CARDS - Elevated Design ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: var(--border-width) solid var(--gray-200);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: var(--border-width) solid var(--gray-200);
    background: var(--gray-50);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

/* ===== GRADIENTS & EFFECTS ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: var(--gradient-primary);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.rounded-full { border-radius: var(--radius-full); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --text-6xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
        --text-5xl: clamp(2rem, 1.75rem + 1.25vw, 2.5rem);
    }
    
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-3xl); }
    
    .btn {
        padding: var(--space-3) var(--space-6);
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
}

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

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
    }
}

