/* ========================================
   Hutch Hollow Camps — Custom Styles
   ======================================== */

/* 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 {
    background-color: #B85C38;
    color: #FDFBF8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #DCC8A8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8955A;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 200, 168, 0.3);
}

#navbar.scrolled {
    background: rgba(250, 246, 240, 0.95);
    box-shadow: 0 1px 20px rgba(26, 22, 20, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #B85C38;
    transition: width duration-300;
}

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

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

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ========================================
   Hero
   ======================================== */
.hero-content {
    opacity: 1;
}

.hero-image {
    opacity: 1;
}

.hero-image .floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .products-header,
    .about-content,
    .about-images,
    .product-card,
    .craft-header,
    .craft-step,
    .craft-quote,
    .visit-header,
    .visit-info,
    .visit-form {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Products
   ======================================== */
.product-card {
    opacity: 1;
}

.product-card:hover .group img {
    transform: scale(1.05);
}

/* ========================================
   Craft Section
   ======================================== */
.craft-step {
    opacity: 1;
}

.craft-step:hover .w-20 {
    border-color: rgba(228, 112, 74, 0.6);
}

.craft-step:hover .font-serif {
    color: #ee9e7e;
}

/* ========================================
   Buttons
   ======================================== */
button, a {
    cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #B85C38;
    outline-offset: 2px;
}

/* ========================================
   Form
   ======================================== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23806236' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-image {
        order: -1;
    }
    
    .hero-image .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    #navbar .max-w-7xl {
        px-4;
    }
    
    #hero {
        padding-top: 6rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
}
