/* ========================================
   Mayflower Family Restaurant
   Classic & Elegant — Terracotta + Sand
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #d4c9b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8aa96;
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo-icon {
    color: rgba(250, 246, 240, 0.9);
    transition: color 0.5s ease;
}

.nav-logo-text {
    color: rgba(250, 246, 240, 0.95);
    transition: color 0.5s ease;
}

.nav-logo-subtext {
    color: rgba(250, 246, 240, 0.6);
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-logo-icon {
    color: #c44d2b;
}

#navbar.scrolled .nav-logo-text {
    color: #332e27;
}

#navbar.scrolled .nav-logo-subtext {
    color: #9e8e7a;
}

.nav-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #e4a34a;
}

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

#navbar.scrolled .nav-link {
    color: #64584a;
}

#navbar.scrolled .nav-link:hover {
    color: #c44d2b;
}

.nav-cta-btn {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(250, 246, 240, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(250, 246, 240, 0.3);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background: rgba(250, 246, 240, 0.15);
    border-color: rgba(250, 246, 240, 0.6);
    color: #fff;
}

#navbar.scrolled .nav-cta-btn {
    color: #c44d2b;
    border-color: #c44d2b;
}

#navbar.scrolled .nav-cta-btn:hover {
    background: #c44d2b;
    color: #fff;
}

.nav-mobile-btn {
    color: rgba(250, 246, 240, 0.9);
    transition: color 0.5s ease;
    padding: 8px;
}

#navbar.scrolled .nav-mobile-btn {
    color: #332e27;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: #332e27;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #c44d2b;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #332e27;
    background: #f5d99a;
    padding: 16px 32px;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(228, 163, 74, 0.3);
}

.btn-primary:hover {
    background: #eebe66;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(228, 163, 74, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.85);
    border: 1px solid rgba(250, 246, 240, 0.35);
    padding: 15px 28px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(250, 246, 240, 0.12);
    border-color: rgba(250, 246, 240, 0.7);
    color: #fff;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(250, 246, 240, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: rgba(250, 246, 240, 0.9);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- About Section --- */
.about-image-col {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text-col {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.feature-point {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Menu Section --- */
.menu-header-elem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.menu-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.menu-note-elem {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* --- Gallery --- */
.gallery-header-elem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* --- Quote Section --- */
.quote-mark-elem {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.quote-text-elem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.quote-attr-elem {
    opacity: 0;
    transition: opacity 0.8s ease 0.4s;
}

/* --- Visit Section --- */
.visit-info-col {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visit-map-col {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visit-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Hero Elements --- */
.hero-elem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c44d2b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(196, 77, 43, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a83d20;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(196, 77, 43, 0.4);
}

/* --- Intersection Observer States --- */
.is-visible .about-image-col,
.is-visible .about-text-col,
.is-visible .visit-info-col,
.is-visible .visit-map-col {
    opacity: 1;
    transform: translate(0, 0);
}

.is-visible .feature-point {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .feature-point:nth-child(1) { transition-delay: 0.1s; }
.is-visible .feature-point:nth-child(2) { transition-delay: 0.25s; }

.is-visible .menu-header-elem {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .menu-card {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .menu-card:nth-child(1) { transition-delay: 0.1s; }
.is-visible .menu-card:nth-child(2) { transition-delay: 0.25s; }
.is-visible .menu-card:nth-child(3) { transition-delay: 0.4s; }

.is-visible .menu-note-elem {
    opacity: 1;
}

.is-visible .gallery-header-elem {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .gallery-item {
    opacity: 1;
    transform: scale(1);
}

.is-visible .gallery-item:nth-child(1) { transition-delay: 0.1s; }
.is-visible .gallery-item:nth-child(2) { transition-delay: 0.2s; }
.is-visible .gallery-item:nth-child(3) { transition-delay: 0.3s; }
.is-visible .gallery-item:nth-child(4) { transition-delay: 0.4s; }
.is-visible .gallery-item:nth-child(5) { transition-delay: 0.5s; }

.is-visible .quote-mark-elem,
.is-visible .quote-text-elem,
.is-visible .quote-attr-elem {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

/* --- Hero Animation Sequence --- */
.hero-animated .hero-elem:nth-child(1) { transition-delay: 0.1s; }
.hero-animated .hero-elem:nth-child(2) { transition-delay: 0.25s; }
.hero-animated .hero-elem:nth-child(3) { transition-delay: 0.4s; }
.hero-animated .hero-elem:nth-child(4) { transition-delay: 0.55s; }
.hero-animated .hero-elem:nth-child(5) { transition-delay: 0.7s; }
.hero-animated .hero-elem:nth-child(6) { transition-delay: 0.85s; }

/* --- Responsive --- */
@media (max-width: 767px) {
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}
