/* Custom styles for Greensboro Nutrition */

:root {
    --burgundy-700: #800020;
    --burgundy-900: #4d0014;
    --blush-400: #f28d71;
    --blush-600: #e54020;
    --cream: #FDF8F0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1);
}

/* Custom selection color */
::selection {
    background-color: rgba(128, 0, 32, 0.2);
    color: #4d0014;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
}

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

.hero-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float-reverse 5s ease-in-out infinite;
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(128, 0, 32, 0.3);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #800020 0%, #d44060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Geometric pattern background */
.geo-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(128, 0, 32, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(242, 141, 113, 0.05) 0%, transparent 50%);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
}

/* Subtle hover underline for links */
a:not([class]) {
    position: relative;
}

/* Form input transitions */
input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Map styling */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}
