/* ============================================
   Belle Fiore Estate — Custom Styles
   ============================================ */

/* Base Reset & Foundations */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(184, 134, 11, 0.3);
    color: #f0f3f9;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — JS adds .revealed
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal[data-delay="100"] { transition-delay: 0.1s; }
    .reveal[data-delay="200"] { transition-delay: 0.2s; }
    .reveal[data-delay="300"] { transition-delay: 0.3s; }
    .reveal[data-delay="400"] { transition-delay: 0.4s; }
}

/* ============================================
   Hero Orbs
   ============================================ */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(65, 104, 175, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-orb 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-orb 8s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulse-orb {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 13, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#mobileMenu.open .mobile-link {
    animation: fade-in-up 0.4s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu button active state */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ============================================
   Craft Cards
   ============================================ */
.craft-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.craft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.product-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #0a1628;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #060d18;
}

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

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

/* ============================================
   Focus Styles
   ============================================ */
:focus-visible {
    outline: 2px solid #b8860b;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .hero-orb {
        filter: blur(60px);
        opacity: 0.3;
    }
    
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    /* Floating card adjustment for mobile */
    .absolute.-bottom-8.-right-8 {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .absolute.-bottom-8.-right-8 {
        display: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, #mobileMenu, .hero-orb {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .font-serif {
        color: black !important;
    }
}
