/* === Custom Styles for Elaine's Flowers === */

:root {
    --gold: #C8A96E;
    --gold-light: #E8D5A8;
    --navy: #112240;
    --navy-light: #2D5287;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: rgba(200, 169, 110, 0.3);
    color: var(--navy);
}

/* Gold button style */
.btn-gold {
    background: linear-gradient(135deg, #C8A96E 0%, #E8D5A8 50%, #C8A96E 100%);
    background-size: 200% 200%;
    transition: all 0.4s ease;
}

.btn-gold:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(200, 169, 110, 0.4);
}

.btn-gold-group {
    background: white;
    transition: all 0.4s ease;
}

.btn-gold-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(17, 34, 64, 0.08);
}

.nav-scrolled .nav-link {
    color: #1a3258 !important;
}

.nav-scrolled .font-serif {
    color: #1a3258 !important;
}

/* Mobile menu */
.mobile-menu-link {
    position: relative;
}

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

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

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Hamburger animation */
#menu-icon span {
    transition: all 0.3s ease;
}

#menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-icon.active span:nth-child(2) {
    opacity: 0;
}

#menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1rem;
}

/* Gallery grid adjustments */
.grid-cols-2 .relative:nth-child(2) {
    grid-row: span 2;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
