/* ===================================
   UNIVERSAL THEME SYSTEM
   6 Preset Themes + CSS Variables
   =================================== */

/* THEME 1: Gold Luxury (Default/Catering) */
[data-theme="gold-luxury"] {
    --primary: #c5a059;
    --primary-dark: #a67c32;
    --primary-light: #dfc18d;
    --primary-rgb: 197, 160, 89;
    --background: #0f1113;
    --surface: #1a1d21;
    --surface-light: #25292e;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #c5a059 0%, #dfc18d 50%, #c5a059 100%);
    --accent: #e8d5a8;
    --mode: dark;
}

/* THEME 2: Ocean Blue */
[data-theme="ocean-blue"] {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #93c5fd;
    --primary-rgb: 59, 130, 246;
    --background: #0c1222;
    --surface: #141e33;
    --surface-light: #1e2d4a;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    --accent: #bfdbfe;
    --mode: dark;
}

/* THEME 3: Forest Green */
[data-theme="forest-green"] {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #86efac;
    --primary-rgb: 34, 197, 94;
    --background: #0a1a14;
    --surface: #112920;
    --surface-light: #1a3d2e;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
    --accent: #bbf7d0;
    --mode: dark;
}

/* THEME 4: Royal Purple */
[data-theme="royal-purple"] {
    --primary: #a855f7;
    --primary-dark: #7c3aed;
    --primary-light: #c4b5fd;
    --primary-rgb: 168, 85, 247;
    --background: #13111d;
    --surface: #1e1a2e;
    --surface-light: #2a2440;
    --text: #ffffff;
    --text-muted: #a5a0b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #a855f7 0%, #c084fc 50%, #a855f7 100%);
    --accent: #e9d5ff;
    --mode: dark;
}

/* THEME 5: Crimson Red */
[data-theme="crimson-red"] {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #fca5a5;
    --primary-rgb: 239, 68, 68;
    --background: #1a0808;
    --surface: #2a1010;
    --surface-light: #3a1818;
    --text: #ffffff;
    --text-muted: #b8a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    --accent: #fecaca;
    --mode: dark;
}

/* THEME 6: Minimal White (Light Mode) */
[data-theme="minimal-white"] {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-rgb: 37, 99, 235;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-light: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #2563eb 100%);
    --accent: #dbeafe;
    --mode: light;
}

/* Light mode scrollbar overrides */
[data-theme="minimal-white"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="minimal-white"] .hero-overlay {
    background: linear-gradient(180deg,
        rgba(248, 250, 252, 0.7) 0%,
        rgba(248, 250, 252, 0.4) 50%,
        rgba(248, 250, 252, 0.95) 100%) !important;
}

[data-theme="minimal-white"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="minimal-white"] .package-image::after {
    background: linear-gradient(transparent, #fff) !important;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
    padding: var(--section-padding) 0;
    background: var(--surface);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Gallery Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    animation: fadeInUp 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover { background: rgba(var(--primary-rgb),0.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Gallery placeholder for empty state */
.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    border-radius: 16px;
}

.gallery-placeholder svg {
    width: 60px; height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ===================================
   BEFORE/AFTER SLIDER
   =================================== */
.before-after-section {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.ba-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: ew-resize;
    border: 1px solid var(--border);
    user-select: none;
    -webkit-user-select: none;
}

.ba-before, .ba-after {
    position: absolute;
    inset: 0;
}

.ba-before img, .ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary);
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.5);
    transition: transform 0.15s;
}

.ba-slider-handle:hover { transform: translate(-50%, -50%) scale(1.1); }

.ba-slider-handle svg {
    width: 24px; height: 24px;
    color: #fff;
}

.ba-label {
    position: absolute;
    bottom: 15px;
    z-index: 5;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ba-label-before {
    left: 15px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.ba-label-after {
    right: 15px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.ba-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.ba-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    border-radius: 16px;
}

@media (max-width: 768px) {
    .ba-grid { grid-template-columns: 1fr; }
    .ba-container {
        aspect-ratio: 4 / 3;
    }
    .ba-featured .ba-container {
        min-height: 240px;
    }
    .ba-slider-handle {
        width: 40px;
        height: 40px;
    }
    .ba-slider-handle svg {
        width: 18px;
        height: 18px;
    }
    .ba-label {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--surface);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    cursor: pointer;
    gap: 15px;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.faq-question h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.faq-item.active .faq-question h4 {
    color: var(--primary);
}

.faq-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle svg {
    width: 18px; height: 18px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
}

.faq-item.active .faq-toggle svg {
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 28px 22px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* ===================================
   LANGUAGE TOGGLE
   =================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px;
    margin-right: 10px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}
