/* ============================================
   1790 Resident Baker — Custom Styles
   ============================================ */

/* Base */
*, *::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: rgba(200, 134, 14, 0.3);
    color: #f0f3f9;
}

/* ============================================
   Hero Orbs
   ============================================ */
.hero-orb {
    filter: blur(80px);
}

.orb-1 {
    background: radial-gradient(circle, #e9a81e 0%, transparent 70%);
}

.orb-2 {
    background: radial-gradient(circle, #4168a1 0%, transparent 70%);
}

.orb-3 {
    background: radial-gradient(circle, #c8860e 0%, transparent 70%);
}

/* ============================================
   Scroll Dot Animation
   ============================================ */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ============================================
   Scroll Strip Animation
   ============================================ */
@keyframes scrollStrip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll-strip {
    display: flex;
    gap: 1rem;
    animation: scrollStrip 30s linear infinite;
    width: max-content;
}

.animate-scroll-strip:hover {
    animation-play-state: paused;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reduced Motion
   ============================================ */
@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;
    }
    
    .animate-scroll-strip {
        animation: none;
    }
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 6rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Navbar Scrolled State
   ============================================ */
.nav-scrolled {
    background: rgba(6, 15, 28, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 168, 30, 0.1);
}

.nav-scrolled #navbar {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Form Focus Styles
   ============================================ */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(233, 168, 30, 0.3);
}

/* ============================================
   Date Input Styling
   ============================================ */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* ============================================
   Smooth Scroll Offset for Fixed Nav
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Image Loading
   ============================================ */
img {
    image-rendering: auto;
    loading: lazy;
}
