/* ============================================
   VESPERA JEWELS - Custom Styles
   Using CSS Variables for Theme Customization
   ============================================ */

/* Default Theme Variables */
:root {
    /* Colors - Can be customized via CMS */
    --color-primary-bg: #FAFAF8;
    --color-white-bg: #FFFFFF;
    --color-dark-bg: #0F0F0F;
    --color-accent: #C5A467;
    --color-accent-dark: #B8924A;
    --color-text-primary: #1A1A1A;
    --color-text-medium: #333333;
    --color-text-secondary: #8A8A8A;
    --color-border: #E8E4DE;
    
    /* Hero */
    --hero-bg-color: #000000;
    --hero-overlay-opacity: 0.4;
    --hero-text-color: #FFFFFF;
    
    /* Derived Colors */
    --gold: #C5A467;
    --gold-dark: #B8924A;
    --dark-bg: var(--color-dark-bg);
    --cream: #FAFAF8;
    --textDark: #1A1A1A;
    --textMedium: #333333;
    --textLight: #8A8A8A;
    --border: #E8E4DE;
}

html {
    scroll-behavior: smooth;
}

/* Logo Styles */
.logo-img {
    height: 56px;
    width: auto;
}

.hero-logo {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.footer-logo {
    height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .hero-logo {
        height: 110px;
    }
    .logo-img {
        height: 42px;
    }
}

/* Navigation */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Desktop Navigation Links - Gold Color (Hardcoded) */
.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #C5A467 !important;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #C5A467;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #E2B94D !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation Links - Gold Color (Hardcoded) */
.nav-link-mobile {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #C5A467 !important;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid #E8E4DE;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-link-mobile:hover {
    color: #E2B94D !important;
    padding-left: 8px;
}

/* Buttons */
.gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #C5A467 0%, #B8924A 100%);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gold-btn:hover {
    background: linear-gradient(135deg, #B8924A 0%, #A07D3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 164, 103, 0.4);
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    color: #333333;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid #C5A467;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.outline-btn:hover {
    background: #C5A467;
    color: white;
}

/* Background Colors */
.bg-cream {
    background-color: #FAFAF8;
}

.bg-white {
    background-color: #FFFFFF;
}

.bg-darkBg {
    background-color: var(--color-dark-bg);
}

/* Text Colors */
.text-textDark {
    color: #1A1A1A;
}

.text-textMedium {
    color: #333333;
}

.text-textLight {
    color: #8A8A8A;
}

.text-gold {
    color: #C5A467;
}

/* Border Colors */
.border-border {
    border-color: #E8E4DE;
}

.border-gold {
    border-color: #C5A467;
}

/* Featured Cards */
.featured-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Watch Cards */
.watch-card {
    background: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Filter Buttons */
.filter-btn {
    padding: 10px 24px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid #E8E4DE;
    color: #8A8A8A;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #C5A467;
    color: #C5A467;
    background: rgba(197, 164, 103, 0.05);
}

/* FAQ Accordion */
.faq-item {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    cursor: pointer;
}

.faq-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    color: #C5A467;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

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

/* Process Steps */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #C5A467;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #C5A467;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C5A467 0%, #B8924A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
}

/* Process Steps Card */
.process-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #FAFAF8;
}

.process-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.process-card:hover .process-card-image img {
    transform: scale(1.05);
}

.process-card-number {
    display: none;
}

.process-card-title {
    padding: 14px 16px 18px;
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #C5A467 !important;
    text-align: center;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Process Steps Stagger */
.process-card:nth-child(1) { transition-delay: 0.05s; }
.process-card:nth-child(2) { transition-delay: 0.1s; }
.process-card:nth-child(3) { transition-delay: 0.15s; }
.process-card:nth-child(4) { transition-delay: 0.2s; }
.process-card:nth-child(5) { transition-delay: 0.25s; }
.process-card:nth-child(6) { transition-delay: 0.3s; }
.process-card:nth-child(7) { transition-delay: 0.35s; }
.process-card:nth-child(8) { transition-delay: 0.4s; }
.process-card:nth-child(9) { transition-delay: 0.45s; }
.process-card:nth-child(10) { transition-delay: 0.5s; }
.process-card:nth-child(11) { transition-delay: 0.55s; }
.process-card:nth-child(12) { transition-delay: 0.6s; }
.process-card:nth-child(13) { transition-delay: 0.65s; }

/* Responsive adjustments for process cards */
@media (min-width: 768px) {
    .process-card:nth-child(n+5) {
        /* Cards in row 2 and beyond get extra margin top for stagger effect */
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Product Grid Stagger */
.product-card:nth-child(1), .featured-card:nth-child(1) { transition-delay: 0.05s; }
.product-card:nth-child(2), .featured-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3), .featured-card:nth-child(3) { transition-delay: 0.15s; }
.product-card:nth-child(4), .featured-card:nth-child(4) { transition-delay: 0.2s; }
.product-card:nth-child(5) { transition-delay: 0.25s; }
.product-card:nth-child(6) { transition-delay: 0.3s; }
.product-card:nth-child(7) { transition-delay: 0.35s; }
.product-card:nth-child(8) { transition-delay: 0.4s; }

/* Watch Card Stagger */
.watch-card:nth-child(1) { transition-delay: 0.05s; }
.watch-card:nth-child(2) { transition-delay: 0.1s; }
.watch-card:nth-child(3) { transition-delay: 0.15s; }
.watch-card:nth-child(4) { transition-delay: 0.2s; }
.watch-card:nth-child(5) { transition-delay: 0.25s; }
.watch-card:nth-child(6) { transition-delay: 0.3s; }

/* Mobile Menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FFFFFF;
}

#mobileMenu.open {
    max-height: 500px;
}

/* Form Focus */
input:focus,
textarea:focus,
select:focus {
    border-color: #C5A467 !important;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

::-webkit-scrollbar-thumb {
    background: #E8E4DE;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C5A467;
}

/* Hidden Category */
.hidden-category {
    display: none !important;
}

/* Modal */
#productModal {
    display: none;
}

#productModal.active {
    display: block;
}

#productModal .bg-white {
    background-color: #FFFFFF;
}

#productModal .text-textDark {
    color: #1A1A1A;
}

#productModal .text-textLight {
    color: #8A8A8A;
}

/* Form Success */
#formSuccess.visible {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Hero gradient overlay - dynamically controlled */
#home .absolute.inset-0::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, var(--hero-overlay-opacity)) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* Footer */
footer.bg-darkBg {
    background-color: var(--color-dark-bg);
}

/* Step Cards */
.step-card {
    position: relative;
}

/* Brand Promise Icons */
.brand-promise-icon {
    border-color: #C5A467;
}

/* Three Highlights Section */
.highlight-card {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
}

.highlight-icon-bg {
    background-color: #FAFAF8;
}

/* Brand Promises Section */
.promise-section {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
}

/* Contact Form */
#contactForm {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
    border-color: #E8E4DE;
}

#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
    border-color: #C5A467 !important;
}

/* Form Success */
#formSuccess {
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
}

/* Social Links */
.social-link {
    border-color: #E8E4DE;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #C5A467;
    color: #C5A467;
}

/* WhatsApp CTA Button - Floating Hero Bottom */
.whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 22px 52px;
    background: #E2B94D !important;
    color: #1A1A1A !important;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 60px;
    box-shadow: 
        0 8px 32px rgba(226, 185, 77, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: none;
}

.whatsapp-cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(226, 185, 77, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.3);
    background: #D4A83E !important;
}

.whatsapp-cta-btn svg {
    color: #1A1A1A;
    flex-shrink: 0;
}

.whatsapp-cta-btn span {
    color: #1A1A1A;
    font-weight: 800;
}

@media (max-width: 640px) {
    .whatsapp-cta-btn {
        padding: 16px 36px;
        font-size: 14px;
        gap: 12px;
    }
    
    .whatsapp-cta-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Footer */
footer {
    border-color: #333333;
}

footer h4 {
    color: white;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #C5A467;
}

footer p,
footer li {
    color: #9CA3AF;
}

/* ============================================
   PARTNER CASES SECTION
   ============================================ */

/* Partner Case Card */
.partner-case-card {
    background: #FAFAF8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image Carousel */
.partner-image-carousel {
    position: relative;
    overflow: hidden;
    background: #E8E4DE;
    aspect-ratio: 4 / 3;
    max-height: 320px;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-track img {
    width: 100%;
    height: 320px;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.partner-image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background-color: white !important;
}

.carousel-btn svg {
    color: #333333;
}

/* Carousel Indicators */
.carousel-indicators .indicator {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .indicator.active {
    background-color: #C5A467 !important;
    transform: scale(1.3);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10000;
}

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

.lightbox-close svg {
    color: white;
    width: 24px;
    height: 24px;
}

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

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

.lightbox-nav svg {
    color: white;
    width: 28px;
    height: 28px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Mobile Responsive for Carousel */
@media (max-width: 768px) {
    .carousel-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
    }
    
    .carousel-track img {
        height: 240px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

/* Partner Cases Animation */
.partner-case-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.partner-case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Partner Case Image Zoom on Hover */
.partner-image-carousel img {
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.partner-image-carousel:hover img {
    transform: scale(1.05);
}

.partner-image-carousel .carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.partner-image-carousel .carousel-track::-webkit-scrollbar {
    display: none;
}

.partner-image-carousel .carousel-track img {
    scroll-snap-align: start;
}
