/* ============================================
   SKODEN COFFEE — 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: #C2704E;
    color: #FAF8F5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4cfc8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C2704E;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-link {
    position: relative;
}

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

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

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

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

#bar1.open {
    transform: rotate(45deg) translate(4px, 4px);
}
#bar2.open {
    opacity: 0;
    width: 0;
}
#bar3.open {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   HERO
   ============================================ */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-images {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-scroll-indicator {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   IMAGE TRANSITIONS
   ============================================ */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .aspect-\[4\/3\] {
        aspect-ratio: 4/3;
    }
}

/* ============================================
   FOCUS STYLES
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C2704E;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    #navbar,
    .animate-scroll-indicator {
        display: none;
    }
    body {
        background: white;
        color: #141210;
    }
    section {
        page-break-inside: avoid;
    }
}
