/* Custom styles for My Donuts Eagle */

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

/* Custom selection color */
::selection {
    background-color: #f26b55;
    color: white;
}

/* Navbar transition states */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Hamburger animation */
body.menu-open #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open #line2 {
    opacity: 0;
}
body.menu-open #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 24px;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle hover lift on cards */
.group {
    transition: transform 0.3s ease;
}

/* Thin decorative line animation */
h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #f26b55;
    margin-top: 16px;
}

/* Navbar text color transition */
nav:not(.scrolled) a:not(.bg-charcoal-900) {
    color: #3d3d3d;
}

nav:not(.scrolled) .text-charcoal-700 {
    color: #3d3d3d;
}

nav.scrolled .text-charcoal-700 {
    color: #3d3d3d;
}

/* Map filter override for light mode area */
#visit iframe {
    filter: grayscale(1) invert(1) contrast(0.8) brightness(1.1);
}

/* Remove outline for keyboard navigation focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f26b55;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

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