/* ========================================
   Tailored Brews — Custom Styles
   Premium Dark Luxury Bakery
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #f5f5f5;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

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

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

.reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

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

#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 165, 116, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a574, #e2ad3c);
    transition: width 0.3s ease;
}

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

/* Gold Button */
.btn-gold {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #e2ad3c 50%, #d4a574 100%);
    background-size: 200% 200%;
    color: #0a0a0a;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.2);
}

.btn-gold:hover {
    background-position: 100% 100%;
    box-shadow: 0 6px 30px rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
    color: #0a0a0a;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-link {
    position: relative;
}

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

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

/* ========================================
   Image hover effects
   ======================================== */

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

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

input:focus,
textarea:focus {
    background-color: rgba(23, 23, 23, 0.8) !important;
}

input::placeholder,
textarea::placeholder {
    color: #525252;
}

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #781F24, #d4a574);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4a574, #781F24);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

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

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .btn-gold {
        background: #333 !important;
        color: white !important;
    }
}
