/* ========================================
   SABOR RICO BAKERY — Custom Styles
   Premium Dark Luxury Theme
   Plum + Amber Color Palette
======================================== */

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

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

body {
    background-color: #1A0A12;
    color: #F5D0E0;
    font-family: 'Lato', system-ui, sans-serif;
}

::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #F5D0E0;
}

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

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

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

.nav-link:hover {
    color: #E8B830;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(26, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
    color: #E8A0C0;
}

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

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Hamburger animation */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

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

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(74, 24, 53, 0.4) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(212, 160, 23, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ---------- Menu Cards ---------- */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 160, 23, 0.05);
}

/* ---------- Gallery ---------- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 10, 18, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ---------- Gold Accent Line ---------- */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A017, #E8B830);
    margin-top: 16px;
    border-radius: 1px;
}

/* ---------- Input Focus States ---------- */
input:focus,
textarea:focus {
    background-color: rgba(45, 16, 32, 0.8);
}

/* ---------- Button Ripple Effect ---------- */
button, a[class*="px-8"] {
    position: relative;
    overflow: hidden;
}

button::after, a[class*="px-8"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

button:hover::after, a[class*="px-8"]:hover::after {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: #1A0A12;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6B2250;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    @media (min-width: 768px) {
        #hero h1 {
            font-size: 3.5rem;
        }
    }
    
    @media (min-width: 1024px) {
        #hero h1 {
            font-size: 4rem;
        }
    }
}

/* ---------- Print Styles ---------- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, #contact, .gallery-item {
        display: none;
    }
}
