/* ============================================
   DESIGN SYSTEM - Messe Enterrement
   Inspired by kennykennyjohnny brand design
   ============================================ */

:root {
    /* Typography - Inspired by Kenny's Brand */
    --font-size: 16px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    
    /* Brand Colors - Slate Palette (Kenny's Design) */
    --primary: #1e293b; /* Slate 800 */
    --primary-foreground: #f1f5f9; /* Slate 100 */
    
    /* Backgrounds */
    --background: #ffffff;
    --background-alt: #f8fafc; /* Slate 50 */
    --foreground: #1e293b;
    
    /* Card & Surfaces */
    --card: #ffffff;
    --card-foreground: #1e293b;
    
    /* Secondary - Slate Shades */
    --secondary: #475569; /* Slate 600 */
    --secondary-foreground: #f8fafc;
    
    /* Muted colors */
    --muted: #f1f5f9; /* Slate 100 */
    --muted-foreground: #64748b; /* Slate 500 */
    
    /* Accent colors - Gold accent from Kenny's palette */
    --accent: #f1f5f9; /* Slate 100 */
    --accent-foreground: #1e293b;
    --accent-gold: #b45309; /* Amber 700 */
    
    /* Semantic colors */
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --success: #22c55e;
    --success-foreground: #ffffff;
    
    /* Borders - Subtle slate borders */
    --border: #e2e8f0; /* Slate 200 */
    --border-light: #f1f5f9; /* Slate 100 */
    
    /* Input */
    --input: transparent;
    --input-background: #f8fafc; /* Slate 50 */
    --input-border: #cbd5e1; /* Slate 300 */
    --switch-background: #94a3b8; /* Slate 400 */
    
    /* Ring */
    --ring: #64748b; /* Slate 500 */
    
    /* Radius - Rounded corners like Kenny's design */
    --radius: 0.75rem; /* 12px */
    --radius-xs: 0.125rem; /* 2px */
    --radius-sm: 0.5rem; /* 8px */
    --radius-md: 0.75rem; /* 12px */
    --radius-lg: 1rem; /* 16px */
    --radius-xl: 1.5rem; /* 24px */
    --radius-2xl: 2rem; /* 32px */
    
    /* Shadows - Soft shadows for elegance */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing (from Kenny's design) */
    --spacing: 0.25rem;
    
    /* Text sizes (from Kenny's design) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-5xl: 3rem;
    
    /* Letter spacing */
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

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

a:hover {
    opacity: 0.8;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--muted);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary);
}

.btn-ghost:hover {
    background-color: var(--accent);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f0c050 100%);
    color: var(--primary);
    box-shadow: var(--shadow-medium);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.card-content {
    margin-bottom: 1rem;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Inputs */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--foreground);
    outline: none;
}

.input:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 2, 19, 0.1);
    background-color: var(--background);
}

.input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    border-radius: calc(var(--radius-sm) * 1.5);
    background-color: var(--accent);
    color: var(--accent-foreground);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-subtle);
}

.badge-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.badge-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f0c050 100%);
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.badge-success {
    background-color: var(--success);
    color: var(--success-foreground);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 800px;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-sm {
    padding: 2rem 0;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 1.5rem;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: var(--font-weight-normal);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-fast);
}

.header-logo:hover {
    transform: translateY(-1px);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--background);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right var(--transition-base);
        z-index: 1000;
        overflow-y: auto;
    }

    .header-links.active {
        right: 0;
    }

    .header-link,
    .header-links .btn {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
        text-align: left;
        font-size: 1.125rem;
    }

    .header-links .btn {
        margin-top: 1rem;
        text-align: center;
        border: 1px solid var(--border);
    }

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

.header-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.header-link:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(233, 235, 239, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 236, 240, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #050318 100%);
    color: var(--primary-foreground);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-foreground);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger animation delays for groups */
.animate-fadeInUp:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.animate-fadeInUp:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.animate-fadeInUp:nth-child(3) { animation-delay: 0.3s; opacity: 0; }

/* Premium lock overlay */
.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.premium-overlay:hover {
    background: rgba(255, 255, 255, 0.98);
}

.lock-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.premium-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.premium-subtext {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
