/**
 * ATRAHI DESIGN - MODERN THEME CSS
 * Comprehensive UI Enhancement with Modern Class Definitions
 * Version 3.0.0 - Complete Theme Modernization
 * 
 * @package ATH_ATRAHI_DESIGN
 */

/* ==========================================================================
   ROOT VARIABLES - DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Primary Colors */
    --ath-gold: #b99d63;
    --ath-gold-light: #d4c49a;
    --ath-gold-dark: #9a8352;
    --ath-gold-50: rgba(185, 157, 99, 0.05);
    --ath-gold-100: rgba(185, 157, 99, 0.1);
    --ath-gold-200: rgba(185, 157, 99, 0.2);
    
    /* Neutral Colors */
    --ath-black: #000000;
    --ath-dark: #1a1a1a;
    --ath-dark-100: #2d2d2d;
    --ath-dark-200: #3d3d3d;
    --ath-gray-900: #111827;
    --ath-gray-800: #1f2937;
    --ath-gray-700: #374151;
    --ath-gray-600: #4b5563;
    --ath-gray-500: #6b7280;
    --ath-gray-400: #9ca3af;
    --ath-gray-300: #d1d5db;
    --ath-gray-200: #e5e7eb;
    --ath-gray-100: #f3f4f6;
    --ath-gray-50: #f9fafb;
    --ath-white: #ffffff;
    
    /* Semantic Colors */
    --ath-success: #10b981;
    --ath-warning: #f59e0b;
    --ath-error: #ef4444;
    --ath-info: #3b82f6;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.7rem, 0.8vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.9vw, 0.875rem);
    --text-base: clamp(0.9rem, 1vw, 1rem);
    --text-lg: clamp(1rem, 1.1vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1.3vw, 1.25rem);
    --text-2xl: clamp(1.4rem, 1.8vw, 1.5rem);
    --text-3xl: clamp(1.75rem, 2.5vw, 1.875rem);
    --text-4xl: clamp(2rem, 3vw, 2.25rem);
    --text-5xl: clamp(2.5rem, 4vw, 3rem);
    --text-6xl: clamp(3rem, 5vw, 3.75rem);
    --text-7xl: clamp(3.5rem, 6vw, 4.5rem);
    --text-8xl: clamp(4rem, 8vw, 6rem);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-4xl: 3rem;
    --radius-full: 9999px;
    
    /* Shadows - Modern Layered */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 10px 40px rgba(185, 157, 99, 0.25);
    --shadow-gold-lg: 0 20px 60px rgba(185, 157, 99, 0.35);
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-drawer: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    
    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    --container-padding: clamp(1rem, 4vw, 2rem);
    
    /* Header */
    --header-height: 80px;
    --topbar-height: 40px;
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ath-gray-700);
    background-color: var(--ath-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM
   ========================================================================== */

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ath-dark);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.heading-display {
    font-family: var(--font-display);
    font-weight: 600;
}

.text-display-xl {
    font-size: var(--text-8xl);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.text-display-lg {
    font-size: var(--text-7xl);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.text-display-md {
    font-size: var(--text-6xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.text-display-sm {
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-headline-lg {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.15;
}

.text-headline-md {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
}

.text-headline-sm {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.25;
}

.text-title-lg {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
}

.text-title-md {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.35;
}

.text-title-sm {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.4;
}

.text-body-lg {
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.7;
}

.text-body-md {
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
}

.text-body-sm {
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.5;
}

.text-caption {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-overline {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Text Colors */
.text-gold { color: var(--ath-gold); }
.text-dark { color: var(--ath-dark); }
.text-white { color: var(--ath-white); }
.text-muted { color: var(--ath-gray-500); }
.text-light { color: var(--ath-gray-400); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* ==========================================================================
   MODERN CONTAINER SYSTEM
   ========================================================================== */
.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); }
.container-fluid { max-width: 100%; }

/* ==========================================================================
   MODERN BUTTON SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.btn:hover::before {
    opacity: 1;
}

/* Button Sizes */
.btn-xs {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

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

.btn-md {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

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

/* Button Variants */
.btn-primary {
    background: var(--ath-gold);
    color: var(--ath-white);
    box-shadow: 0 4px 15px rgba(185, 157, 99, 0.35);
}

.btn-primary:hover {
    background: var(--ath-gold-dark);
    box-shadow: 0 6px 20px rgba(185, 157, 99, 0.45);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--ath-dark);
    color: var(--ath-white);
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.25);
}

.btn-secondary:hover {
    background: var(--ath-dark-100);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--ath-dark);
    border: 2px solid var(--ath-gray-200);
}

.btn-outline:hover {
    border-color: var(--ath-gold);
    color: var(--ath-gold);
}

.btn-outline-gold {
    background: transparent;
    color: var(--ath-gold);
    border: 2px solid var(--ath-gold);
}

.btn-outline-gold:hover {
    background: var(--ath-gold);
    color: var(--ath-white);
}

.btn-outline-white {
    background: transparent;
    color: var(--ath-white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: var(--ath-white);
    color: var(--ath-dark);
}

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

.btn-ghost:hover {
    background: var(--ath-gray-100);
}

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

.btn-ghost-gold:hover {
    background: var(--ath-gold-100);
}

/* Button with Icon */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
}

.btn-icon-lg {
    width: 52px;
    height: 52px;
}

/* Button Full Width */
.btn-full {
    width: 100%;
}

/* Button Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   MODERN CARD SYSTEM
   ========================================================================== */
.card {
    background: var(--ath-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-smooth);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

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

.card-outlined {
    border: 1px solid var(--ath-gray-200);
}

.card-outlined:hover {
    border-color: var(--ath-gold);
}

.card-filled {
    background: var(--ath-gray-50);
}

.card-dark {
    background: var(--ath-dark);
    color: var(--ath-white);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-gradient {
    background: linear-gradient(135deg, var(--ath-white) 0%, var(--ath-gray-50) 100%);
}

/* Card Parts */
.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-image-square {
    aspect-ratio: 1/1;
}

.card-image-portrait {
    aspect-ratio: 3/4;
}

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

.card-content-sm {
    padding: var(--space-4);
}

.card-content-lg {
    padding: var(--space-8);
}

.card-header {
    padding: var(--space-6);
    padding-bottom: 0;
}

.card-footer {
    padding: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--ath-gray-100);
}

/* Card Hover Effects */
.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-hover-glow:hover {
    box-shadow: var(--shadow-gold);
}

.card-hover-dark:hover {
    background: var(--ath-dark);
    color: var(--ath-white);
}

.card-hover-dark:hover .card-title {
    color: var(--ath-white);
}

.card-hover-dark:hover .card-desc {
    color: var(--ath-gray-400);
}

/* ==========================================================================
   MODERN BADGE SYSTEM
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-gold {
    background: var(--ath-gold-100);
    color: var(--ath-gold-dark);
}

.badge-dark {
    background: var(--ath-dark);
    color: var(--ath-white);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

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

/* ==========================================================================
   MODERN SECTION LAYOUTS
   ========================================================================== */
.section {
    padding: var(--space-20) 0;
    position: relative;
}

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

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

.section-dark {
    background: var(--ath-dark);
    color: var(--ath-white);
}

.section-dark .text-muted {
    color: var(--ath-gray-400);
}

.section-light {
    background: var(--ath-gray-50);
}

.section-gradient {
    background: linear-gradient(180deg, var(--ath-white) 0%, var(--ath-gray-50) 100%);
}

.section-gradient-dark {
    background: linear-gradient(180deg, var(--ath-dark) 0%, var(--ath-dark-100) 100%);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header-left {
    text-align: left;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--ath-gold-100);
    color: var(--ath-gold-dark);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--ath-dark);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-dark .section-title {
    color: var(--ath-white);
}

.section-subtitle {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--ath-gray-500);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: var(--ath-gray-400);
}

/* ==========================================================================
   MODERN GRID SYSTEM
   ========================================================================== */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Gap Utilities */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Responsive Grid */
@media (max-width: 639px) {
    .sm\:grid-1 { grid-template-columns: repeat(1, 1fr); }
    .sm\:grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) and (max-width: 767px) {
    .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lg\:grid-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .xl\:grid-2 { grid-template-columns: repeat(2, 1fr); }
    .xl\:grid-3 { grid-template-columns: repeat(3, 1fr); }
    .xl\:grid-4 { grid-template-columns: repeat(4, 1fr); }
    .xl\:grid-5 { grid-template-columns: repeat(5, 1fr); }
    .xl\:grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ==========================================================================
   FLEXBOX UTILITIES
   ========================================================================== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }

/* ==========================================================================
   SPACING UTILITIES
   ========================================================================== */
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }

/* ==========================================================================
   MODERN INPUT/FORM SYSTEM
   ========================================================================== */
.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--ath-dark);
    background: var(--ath-white);
    border: 2px solid var(--ath-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-smooth);
    outline: none;
}

.input:focus {
    border-color: var(--ath-gold);
    box-shadow: 0 0 0 4px var(--ath-gold-100);
}

.input::placeholder {
    color: var(--ath-gray-400);
}

.input-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.input-dark {
    background: var(--ath-dark-100);
    border-color: var(--ath-dark-200);
    color: var(--ath-white);
}

.input-dark::placeholder {
    color: var(--ath-gray-500);
}

.input-dark:focus {
    border-color: var(--ath-gold);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ath-dark);
    margin-bottom: var(--space-2);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--ath-gray-500);
    margin-top: var(--space-1);
}

/* ==========================================================================
   MODERN ICON SYSTEM
   ========================================================================== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-xs { width: 16px; height: 16px; }
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 40px; height: 40px; }
.icon-2xl { width: 48px; height: 48px; }

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    background: var(--ath-gray-100);
    color: var(--ath-gold);
    transition: all var(--duration-base) var(--ease-smooth);
}

.icon-box-sm {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
}

.icon-box-lg {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-2xl);
}

.icon-box-gold {
    background: var(--ath-gold-100);
    color: var(--ath-gold);
}

.icon-box-dark {
    background: var(--ath-dark);
    color: var(--ath-gold);
}

/* ==========================================================================
   MODERN DIVIDER/SEPARATOR
   ========================================================================== */
.divider {
    width: 100%;
    height: 1px;
    background: var(--ath-gray-200);
    margin: var(--space-8) 0;
}

.divider-gold {
    height: 3px;
    width: 60px;
    background: var(--ath-gold);
    border-radius: var(--radius-full);
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--ath-gray-200);
}

/* ==========================================================================
   MODERN IMAGE TREATMENTS
   ========================================================================== */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

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

.img-rounded-xl {
    border-radius: var(--radius-3xl);
}

.img-grayscale {
    filter: grayscale(100%);
    transition: filter var(--duration-base) var(--ease-smooth);
}

.img-grayscale:hover {
    filter: grayscale(0);
}

/* ==========================================================================
   MODERN OVERLAY SYSTEM
   ========================================================================== */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.overlay-gradient {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.overlay-gradient-top {
    background: linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.overlay-gold {
    background: rgba(185, 157, 99, 0.9);
}

.overlay-dark {
    background: rgba(26, 26, 26, 0.9);
}

/* ==========================================================================
   MODERN LIST STYLES
   ========================================================================== */
.list-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
}

.list-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 18px;
    height: 18px;
    background: var(--ath-gold-100);
    border-radius: var(--radius-full);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b99d63' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   MODERN ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--ath-gold-200);
    }
    50% {
        box-shadow: 0 0 40px var(--ath-gold-200), 0 0 60px var(--ath-gold-100);
    }
}

/* Animation Utilities */
.animate-fade-in { animation: fadeIn var(--duration-base) var(--ease-smooth); }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-smooth); }
.animate-fade-in-down { animation: fadeInDown var(--duration-slow) var(--ease-smooth); }
.animate-scale-in { animation: scaleIn var(--duration-base) var(--ease-spring); }
.animate-pulse { animation: pulse 2s var(--ease-smooth) infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-glow { animation: glow 3s ease-in-out infinite; }

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ==========================================================================
   MODERN SCROLL ANIMATIONS (Intersection Observer Ready)
   ========================================================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
                transform var(--duration-slow) var(--ease-smooth);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
}

.scroll-animate-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
}

.scroll-animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.95);
}

.scroll-animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-base) var(--ease-smooth),
                transform var(--duration-base) var(--ease-smooth);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MODERN HOVER EFFECTS
   ========================================================================== */
.hover-lift {
    transition: transform var(--duration-base) var(--ease-smooth),
                box-shadow var(--duration-base) var(--ease-smooth);
}

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

.hover-scale {
    transition: transform var(--duration-base) var(--ease-smooth);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s var(--ease-smooth);
}

.hover-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ath-gold);
    transition: width var(--duration-base) var(--ease-smooth);
}

.hover-underline:hover::after {
    width: 100%;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }

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

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-gold { box-shadow: var(--shadow-gold); }

.bg-white { background-color: var(--ath-white); }
.bg-light { background-color: var(--ath-gray-50); }
.bg-dark { background-color: var(--ath-dark); }
.bg-gold { background-color: var(--ath-gold); }
.bg-gold-light { background-color: var(--ath-gold-100); }

.border { border: 1px solid var(--ath-gray-200); }
.border-gold { border-color: var(--ath-gold); }
.border-transparent { border-color: transparent; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.select-none { user-select: none; }
.select-text { user-select: text; }

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

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 639px) {
    .sm\:hidden { display: none; }
    .sm\:block { display: block; }
    .sm\:text-center { text-align: center; }
    .sm\:flex-col { flex-direction: column; }
}

@media (min-width: 640px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
}

@media (min-width: 768px) {
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .xl\:hidden { display: none; }
    .xl\:block { display: block; }
    .xl\:flex { display: flex; }
    .xl\:grid-3 { grid-template-columns: repeat(3, 1fr); }
    .xl\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .no-print { display: none !important; }
    
    body {
        background: white;
        color: black;
    }
    
    a { text-decoration: underline; }
    
    .btn, .badge {
        border: 1px solid currentColor;
    }
}

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

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--ath-gold);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ath-dark);
    color: var(--ath-white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    z-index: var(--z-tooltip);
    transition: top var(--duration-fast) var(--ease-smooth);
}

.skip-link:focus {
    top: var(--space-4);
}
