/* ========================================
   Aunt Smart — Custom Styles
   Classic & Elegant Bakery Site
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: rgba(212, 168, 75, 0.25);
    color: #251430;
}

/* ========================================
   Navbar
   ======================================== */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(245, 243, 237, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled.scrolled {
    background: rgba(245, 243, 237, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 44, 90, 0.08);
    box-shadow: 0 1px 20px rgba(74, 44, 90, 0.06);
}

/* ========================================
   Hero
   ======================================== */
.hero-section {
    position: relative;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(37, 20, 48, 0.88) 0%,
        rgba(74, 44, 90, 0.82) 50%,
        rgba(58, 32, 72, 0.78) 100%
    );
}

/* ========================================
   Floating Cards
   ======================================== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-fresh {
    animation-delay: 0s;
}

.card-local {
    animation-delay: -2s;
}

.card-family {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

.card-fresh { --rot: 2deg; }
.card-local { --rot: -1deg; }
.card-family { --rot: 1deg; }

/* ========================================
   Reveal Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

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

/* Always visible for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

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

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

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

/* ========================================
   Print
   ======================================== */
@media print {
    .nav-scrolled, .floating-card, #mobile-menu { display: none !important; }
    body { background: white; color: black; }
    .hero-section { min-height: auto; }
}
