/* ============================================
   Rap Snacks — Custom Styles
   Classic & Elegant | Terracotta + Sand
   ============================================ */

/* Base */
*, *::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-color: #d44a28;
    color: #fff;
}

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

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

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

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    border-bottom-color: #e8e4dd;
    box-shadow: 0 1px 20px rgba(36, 31, 26, 0.06);
}

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

.mobile-link {
    opacity: 1;
    transform: none;
}

/* Menu toggle animation */
.menu-line {
    display: block;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuToggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 246, 240, 0.97) 0%, rgba(253, 248, 238, 0.95) 100%);
    z-index: 0;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

/* ============================================
   Typography
   ============================================ */
.font-serif {
    letter-spacing: -0.01em;
}

/* ============================================
   Buttons
   ============================================ */
button, a[type="submit"] {
    position: relative;
    overflow: hidden;
}

button::after, a[type="submit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

button:hover::after, a[type="submit"]:hover::after {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus, textarea:focus {
    border-color: #e06344 !important;
    box-shadow: 0 0 0 3px rgba(224, 99, 68, 0.1);
}

/* ============================================
   Image hover effects
   ============================================ */
img {
    display: block;
    max-width: 100%;
}

/* ============================================
   Decorative divider
   ============================================ */
section > div > div:first-child > .flex.items-center {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        letter-spacing: 0;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    nav, #contact, footer, .reveal-on-scroll {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
