/* ============================================
   Summit Nutrition — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* Selection Color */
::selection {
    background-color: #e8d1c8;
    color: #8c3832;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.4s forwards;
}

.hero-desc {
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.hero-cta {
    animation: slideUp 0.8s ease-out 0.8s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.about-image,
.about-content,
.products-header,
.product-card,
.process-header,
.process-step,
.visit-content,
.visit-image,
.cta-content,
.contact-content,
.contact-form {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered product card animations */
.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.3s; }
.product-card:nth-child(5) { transition-delay: 0.4s; }
.product-card:nth-child(6) { transition-delay: 0.5s; }

/* Staggered process step animations */
.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.45s; }

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 247, 0.95);
    box-shadow: 0 1px 0 rgba(180, 170, 160, 0.2);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    opacity: 0;
    transform: translateY(32px);
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    opacity: 0;
    transform: translateY(32px);
}

/* ============================================
   Buttons & Links
   ============================================ */
a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #c4baa6;
}

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

/* ============================================
   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;
    }
    
    .hero-subtitle,
    .hero-title,
    .hero-desc,
    .hero-cta {
        opacity: 1;
        transform: none;
    }
    
    .about-image,
    .about-content,
    .products-header,
    .product-card,
    .process-header,
    .process-step,
    .visit-content,
    .visit-image,
    .cta-content,
    .contact-content,
    .contact-form {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #b85c4e;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    .hero-cta,
    #contact-form {
        display: none;
    }
    
    body {
        color: #1c1917;
        background: white;
    }
}
