/* Gabriella's Ice Cream — Custom Styles */

/* Base typography refinements */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(138, 31, 31, 0.08);
}

.nav-scrolled .nav-link {
    color: #1c1917 !important;
}

.nav-scrolled a {
    color: #1c1917 !important;
}

/* Line decoration */
.line-decoration::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #8a1f1f;
    margin-top: 16px;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8a1f1f;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Flavor card hover */
.flavor-card:hover .flavor-img {
    transform: scale(1.05);
}

.flavor-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text selection */
::selection {
    background: #fce7e7;
    color: #3d0c0c;
}

/* Hero split layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-split > div:first-child {
        order: 2;
        padding-top: 100px;
    }

    .hero-split > div:last-child {
        order: 1;
        min-height: 60vh;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* Hamburger animation */
#menu-line-1.open {
    transform: translateY(5px) rotate(45deg);
}

#menu-line-2.open {
    opacity: 0;
}

#menu-line-3.open {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8a1f1f;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #8a1f1f;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Form styles (for future use) */
input, textarea {
    font-family: 'Montserrat', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #8a1f1f;
}
