/* ===== Custom Styles for Good Roots Coffee Co. ===== */

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

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

body {
    overflow-x: hidden;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: #C06C44;
    border-radius: 50%;
    top: 15%;
    right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: #f5e6c8;
    top: 40%;
    left: -60px;
    transform: rotate(45deg);
    animation: floatSlow 25s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #C06C44;
    top: 60%;
    right: 5%;
    animation: floatSlow 18s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: #f5e6c8;
    border-radius: 50%;
    bottom: 10%;
    left: 10%;
    animation: floatSlow 22s ease-in-out infinite reverse;
}

.shape-rect-2 {
    width: 150px;
    height: 150px;
    background: #C06C44;
    bottom: 30%;
    right: -40px;
    transform: rotate(20deg);
    animation: floatSlow 15s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ===== Navbar Scroll Effect ===== */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(61, 43, 31, 0.08);
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    display: block;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu-link:hover {
    color: #C06C44;
    padding-left: 8px;
}

#mobileMenu.active {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== Scroll Reveal Animations (below-fold only) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s 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; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 3px solid #C06C44;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #d4b88a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C06C44;
}

/* ===== Selection ===== */
::selection {
    background: #C06C44;
    color: white;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-rect-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-triangle-1 {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 100px solid #C06C44;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-rect-2 {
        width: 80px;
        height: 80px;
    }
}
