/* ============================================
   The Ranch Store — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

/* Circles */
.shape-circle-1 {
    width: 420px;
    height: 420px;
    border: 3px solid rgba(245, 166, 35, 0.5);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(245, 166, 35, 0.3);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite;
}

/* Squares */
.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(245, 166, 35, 0.25);
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    bottom: 10%;
    right: 10%;
    transform: rotate(20deg);
    animation: spin 15s linear infinite reverse;
}

/* Triangle */
.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 166, 35, 0.2);
    top: 20%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

/* Dots pattern */
.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.4) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 20%;
    right: 5%;
    opacity: 0.3;
}

/* Stripe */
.shape-stripe-1 {
    width: 300px;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    top: 0;
    left: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Always visible for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.2s ease;
}

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

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

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }

    .shape-square-1 {
        width: 80px;
        height: 80px;
    }

    .shape-dots {
        width: 120px;
        height: 120px;
    }
}
