/**
 * Topi Trails - Premium Luxury Design System
 * Enhanced CSS for luxury travel experience
 */

/* ===================================
   TYPOGRAPHY - LUXURY FEEL
   =================================== */

/* Elegant serif headings - REAL Google Fonts loaded */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Premium body text - REAL Google Font */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #292524;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global luxury theme shell */
.lux-theme {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98) 0%, rgba(245, 240, 232, 0.95) 45%, rgba(238, 231, 222, 0.9) 100%);
    color: #1c1917;
}

.lux-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.5px, transparent 0.5px);
    background-size: 6px 6px;
    opacity: 0.25;
    z-index: -1;
}

/* Luxury accent text - REAL Google Font */
.luxury-accent {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Authority typography for headings */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

.font-accent {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Premium letter spacing */
.tracking-luxury {
    letter-spacing: 0.15em;
}

.tracking-luxury-wide {
    letter-spacing: 0.3em;
}

/* ===================================
   COLOR PALETTE - PREMIUM
   =================================== */

:root {
    --color-primary: #d97706;
    --color-primary-dark: #b45309;
    --color-primary-light: #fbbf24;
    
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-600: #57534e;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    
    --color-gold: #d4af37;
    --color-gold-light: #f4e5c2;
    --color-ivory: #f7f2ea;
    --color-sand: #eee6dc;
    --color-glass: rgba(255, 255, 255, 0.78);
    --color-glass-border: rgba(255, 255, 255, 0.6);
}

/* Premium gradient backgrounds */
.gradient-luxury {
    background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #44403c 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
}

/* ===================================
   BUTTONS - LUXURY STYLE
   =================================== */

.btn-luxury {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.btn-luxury::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-luxury:hover::before {
    transform: translateX(100%);
}

.btn-luxury-primary {
    background: var(--color-primary);
    color: white;
}

.btn-luxury-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(217, 119, 6, 0.5);
}

.btn-luxury-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-luxury-outline:hover {
    background: white;
    color: var(--color-stone-900);
    transform: translateY(-2px);
}

/* ===================================
   CARDS - PREMIUM DESIGN
   =================================== */

.card-luxury {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass surfaces for luxury feel */
.lux-theme .glass-surface,
.lux-theme .glass-card,
.lux-theme .glass-panel {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(28, 25, 23, 0.12);
}

.lux-theme .glass-card {
    border-radius: 18px;
    padding: 1.5rem;
}

/* Make common white surfaces feel glassy, without breaking contrast */
.lux-theme .bg-white {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
}

.lux-theme .bg-stone-50 {
    background-color: var(--color-ivory) !important;
}

/* Soft separators */
.lux-theme .border-stone-200 {
    border-color: rgba(214, 211, 209, 0.7) !important;
}

.lux-theme .border-stone-300 {
    border-color: rgba(214, 211, 209, 0.85) !important;
}

/* Inputs with refined luxury focus */
.lux-theme input,
.lux-theme select,
.lux-theme textarea {
    border-color: rgba(214, 211, 209, 0.85);
    background-color: rgba(255, 255, 255, 0.9);
}

.lux-theme input:focus,
.lux-theme select:focus,
.lux-theme textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

/* Buttons with subtle premium sheen */
.lux-theme .btn-luxury-primary,
.lux-theme .btn-luxury-outline {
    box-shadow: 0 12px 30px rgba(28, 25, 23, 0.18);
}

.card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-luxury-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.card-luxury-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-luxury:hover .card-luxury-image img {
    transform: scale(1.1);
}

/* Overlay gradients */
.overlay-gradient-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.overlay-gradient-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

/* ===================================
   SECTIONS - PREMIUM SPACING
   =================================== */

.section-luxury {
    padding: 7rem 0;
}

@media (max-width: 768px) {
    .section-luxury {
        padding: 4rem 0;
    }
}

/* Section headers */
.section-header-luxury {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--color-stone-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-stone-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
   DECORATIVE ELEMENTS
   =================================== */

/* Gold divider */
.divider-luxury {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 2rem auto;
}

/* Decorative corners */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
}

.corner-decoration::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* ===================================
   ANIMATIONS - SMOOTH & ELEGANT
   =================================== */

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

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Staggered animations */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

/* ===================================
   NAVIGATION - PREMIUM
   =================================== */

#navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(28, 25, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   FORMS - LUXURY INPUTS
   =================================== */

.input-luxury {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--color-stone-900);
    background: white;
    border: 2px solid var(--color-stone-200);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.input-luxury:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.input-luxury::placeholder {
    color: var(--color-stone-400);
}

/* ===================================
   BADGES & TAGS
   =================================== */

.badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%);
    color: #5a4a1f;
    border: none;
}

/* ===================================
   UTILITIES
   =================================== */

.text-shadow-luxury {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-luxury {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Premium hover effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ===================================
   RESPONSIVE IMAGES
   =================================== */

img {
    max-width: 100%;
    height: auto;
}

.img-luxury {
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===================================
   SCROLLBAR - CUSTOM LUXURY
   =================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 6px;
    border: 2px solid var(--color-stone-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .no-print {
        display: none !important;
    }
}
