/* Custom styles for Starbucks Alpharetta */

:root {
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--font-sans);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f2;
}
::-webkit-scrollbar-thumb {
    background: #7dbf96;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4fa372;
}

/* Navbar */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(125, 191, 150, 0.2);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(11, 54, 33, 0.08);
}

/* Mobile menu bars animation */
#menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Reveal animations - 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);
    }
}

/* Fallback: always show content even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Geometric accent shapes */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

/* Smooth hover for cards */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(125, 191, 150, 0.2);
    transition: color 0.2s ease;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    color: #2d8a56;
}

/* Ensure hero text is readable */
#hero h1 {
    text-shadow: 0 1px 0 rgba(254, 253, 248, 0.5);
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2d8a56;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Map container responsive */
iframe {
    max-width: 100%;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
    }
}
