/* ============================================
   Beyond Buttercream Bakery — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #d4af37;
    color: #0a1628;
}

/* ============================================
   Animations
   ============================================ */

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

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

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navigation
   ============================================ */

#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

/* Mobile Menu */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(0px, 0px);
    opacity: 0;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

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

/* ============================================
   Typography Refinements
   ============================================ */

h1, h2, h3 {
    font-weight: 300;
}

/* ============================================
   Form Styles
   ============================================ */

input:focus,
textarea:focus {
    border-color: #d4af37 !important;
}

input::placeholder,
textarea::placeholder {
    color: #d4d4d4;
    font-weight: 300;
}

/* ============================================
   Image Hover Containers
   ============================================ */

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Smooth Scroll Offset for Fixed Nav
   ============================================ */

section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Custom Scrollbar
   ============================================ */

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

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

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

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

/* ============================================
   Utility: Thin Divider Lines
   ============================================ */

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* ============================================
   Loading States
   ============================================ */

button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    #navbar,
    #mobile-menu,
    .reveal-on-scroll {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
