/* Custom styles for Frank & Shirley's */

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

/* Hero animations */
.hero-title {
    animation: heroTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero-subtitle {
    animation: heroSubtitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-desc {
    animation: heroDescIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}
.hero-ctas {
    animation: heroCtasIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes heroTitleIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSubtitleIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDescIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCtasIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card tilt effect */
.card-tilt {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    will-change: transform;
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(58, 15, 11, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f5e0a0;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile menu animation */
#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); }
}

.mobile-link {
    display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #d44a29;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c43a1e;
}

/* Selection color */
::selection {
    background: #d44a29;
    color: #fdf8f0;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f5e0a0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: white !important;
}

/* Gallery image hover */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* Form success message */
#form-success {
    animation: fadeIn 0.4s ease;
}

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

/* Subtle pattern background for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212, 74, 41, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

#hero > *:not(.absolute) {
    position: relative;
    z-index: 2;
}
