/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.card-float-2 {
    animation: float 5s ease-in-out infinite 0.5s;
}

.card-float-3 {
    animation: float 4.5s ease-in-out infinite 1s;
}

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

.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; }

/* Section Header Animation */
.section-header .reveal {
    /* handled by JS */
}

/* Nav transition */
nav.scrolled {
    background: rgba(254, 252, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Menu card hover */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:hover {
    transform: translateY(-6px);
}

/* Feature item hover */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

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

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

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

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

/* Selection */
::selection {
    background: rgba(192, 96, 60, 0.15);
    color: #5c2c20;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(192, 96, 60, 0.1);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Quote section */
.quote-section blockquote {
    font-style: italic;
}

/* Contact form wrapper */
.contact-form-wrapper {
    transition: box-shadow 0.3s ease;
}

/* Reduced motion */
@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .card-float-1,
    .card-float-2,
    .card-float-3 {
        animation: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .card-float-1,
    .card-float-2,
    .card-float-3 {
        display: none;
    }

    #hero > div:last-child {
        display: none;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h1 > span {
        font-size: 2.5rem !important;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
