/* Custom Styles for Early Bird Cafe */

:root {
    --charcoal: #2C2C2C;
    --coral: #E8635C;
    --coral-dark: #D4554E;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F2;
    --stone-200: #E8E8E4;
}

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--stone-50);
    overflow-x: hidden;
}

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

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Selection */
::selection {
    background-color: var(--coral);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Navbar */
#navbar {
    background: rgba(250, 250, 248, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(44, 44, 44, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--coral);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-desc {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-cta {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-image-wrapper {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Indicator */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

/* Input Focus Effects */
input:focus,
textarea:focus {
    border-bottom-color: var(--coral) !important;
}

input:focus + label,
textarea:focus + label {
    color: var(--coral);
}

/* Image Hover */
img {
    will-change: transform;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    #hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    .scroll-indicator,
    #contactForm {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
