/* Custom styles for Creekmore's Eats and Sweets */

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

/* Custom font imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;500;700&display=swap');

/* Base styles */
body {
    font-family: 'Lato', sans-serif;
    background-color: #FAF7F5;
    color: #1A1A1A;
    overflow-x: hidden;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

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

@media (max-width: 1024px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-image-side {
        min-height: 50vh;
    }
}

/* Navigation */
.nav-scrolled {
    background-color: rgba(250, 247, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.nav-scrolled .nav-logo {
    color: #1A1A1A !important;
}

/* Menu cards */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Buttons */
.btn-primary {
    background-color: #E07A5F;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #D4694E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1A1A1A;
    border: 2px solid #1A1A1A;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #1A1A1A;
    color: white;
}

/* Decorative elements */
.divider-line {
    width: 60px;
    height: 2px;
    background-color: #E07A5F;
}

/* Section padding */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

/* Hamburger animation */
.hamburger-line {
    transition: all 0.3s ease;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Image hover effects */
.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.5s ease;
}

.image-hover:hover img {
    transform: scale(1.05);
}

/* Testimonial cards */
.testimonial-card {
    background-color: white;
    border-left: 3px solid #E07A5F;
}

/* Form inputs */
.form-input {
    border: 1px solid #EDE6DF;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #E07A5F;
}

/* Footer links */
.footer-link {
    color: #535353;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #E07A5F;
}

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

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

::-webkit-scrollbar-thumb {
    background: #E07A5F;
    border-radius: 4px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-asymmetric {
        min-height: auto;
    }
    
    .hero-image-side {
        min-height: 40vh;
    }
    
    .font-serif {
        font-size: 2.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
}
