/* Custom CSS for Grant Nutrition */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Clip Path for Hero Background */
.clip-path-diagonal {
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: #0A192F;
    border-radius: 5px;
}

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

/* Typography Enhancements */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
}

p, a, span, input, textarea, button {
    font-family: 'Montserrat', sans-serif;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #98D4C8;
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clip-path-diagonal {
        clip-path: none;
        display: none;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 5rem;
    }
}

@media (min-width: 1025px) {
    h1 {
        font-size: 6rem;
    }
}
