@import url('https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:ital,opsz,wght@0,9..144,700;0,9..144,900&family=Montserrat:wght@500;600;700&display=swap');

:root {
    --mms-cream: #F2E6C9;
    --mms-rust: #8B5A2B;
    --mms-rust-deep: #4A2E1F;
    --mms-gold: #C89A4B;
    --mms-gold-soft: #C89A4B;
    --mms-text: #2B2B2B;
    --mms-ease: cubic-bezier(0.33, 1, 0.68, 1);
    --mms-shadow-nav: 0 1px 0 rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .card,
    .nav-link::after {
        transition-duration: 0.01ms !important;
    }

    .card:hover,
    .feature-card:hover {
        transform: none;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: #000;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    outline: 2px solid var(--mms-rust);
    outline-offset: 4px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.88);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms var(--mms-ease), background 200ms ease;
    z-index: 1500;
}
.back-to-top:hover { background: rgba(26, 26, 26, 0.96); color: #fff; }
.back-to-top:focus-visible {
    outline: 2px solid var(--mms-gold-soft);
    outline-offset: 4px;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* —— Unified Cafe MM'S’s Café look (all pages) —— */
body.site-mms {
    background: var(--mms-cream);
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Sliding photos carousel (Home) ===== */
.photo-slider-section {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #fff 0%, #fbf7f2 100%);
}

.photo-slider {
    --gap: 16px;
    --perView: 3;
    --slideRadius: 22px;
    --shadow: 0 22px 55px rgba(26, 26, 26, 0.12);
    max-width: 1180px;
    margin: 0 auto;
}

.photo-slider__viewport {
    border-radius: var(--slideRadius);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.65);
    outline: none;
}

.photo-slider__viewport:focus-visible {
    outline: 2px solid var(--mms-rust);
    outline-offset: 6px;
}

.photo-slider__track {
    display: flex;
    gap: var(--gap);
    padding: var(--gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.photo-slider__track::-webkit-scrollbar {
    display: none;
}

.photo-slide {
    flex: 0 0 calc((100% - (var(--gap) * (var(--perView) - 1))) / var(--perView));
    scroll-snap-align: center;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #f3ede5;
    transform: translateZ(0);
}

.photo-slide img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 700ms var(--mms-ease);
}

.photo-slide:hover img,
.photo-slide.is-focused img {
    transform: scale(1.05);
}

.photo-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 1rem;
}

.photo-slider__btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 26, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: #2B2B2B;
    font-size: 1.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: transform 200ms var(--mms-ease), background 200ms ease, border-color 200ms ease;
}

.photo-slider__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(26, 26, 26, 0.22);
    background: #fff;
}

.photo-slider__btn:focus-visible {
    outline: 2px solid var(--mms-rust);
    outline-offset: 4px;
}

.photo-slider__dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 26, 0.25);
    background: transparent;
    padding: 0;
}

.photo-slider__dot.is-active {
    background: var(--mms-rust);
    border-color: var(--mms-rust);
    width: 22px;
}

@media (max-width: 992px) {
    .photo-slider { --perView: 2; }
    .photo-slide img { height: 240px; }
}

@media (max-width: 640px) {
    .photo-slider { --perView: 1; }
    .photo-slide img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .photo-slider__track,
    .photo-slide img,
    .photo-slider__btn {
        transition: none !important;
    }
    .photo-slide:hover img { transform: none; }
}

.site-mms .navbar {
    background: rgba(242, 234, 225, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none !important;
    border-bottom: 1px solid rgba(26, 26, 26, 0.07);
    transition: box-shadow 0.35s var(--mms-ease), background-color 0.35s var(--mms-ease);
}

.site-mms .navbar.scrolled {
    background: rgba(242, 234, 225, 0.98) !important;
    box-shadow: var(--mms-shadow-nav) !important;
}

.site-mms .nav-logo a {
    text-decoration: none;
    display: block;
}

.site-mms .nav-brand-img {
    height: clamp(65px, 9vw, 95px);
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    object-fit: contain;
    margin: -10px 0; /* pulls the logo closer if it has built-in padding */
}

.site-mms .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2d2d2d !important;
}

.site-mms .nav-link:hover,
.site-mms .nav-link.active {
    color: #8B5A2B !important;
}

.site-mms .nav-link::after {
    background: linear-gradient(90deg, #8B5A2B, #4A2E1F);
}

.site-mms .hamburger span {
    background: #000;
}

.site-mms .nav-menu.active {
    background-color: #F2E6C9 !important;
}

.site-mms .nav-logo a:focus-visible,
.site-mms .nav-link:focus-visible {
    outline: 2px solid var(--mms-rust);
    outline-offset: 4px;
    border-radius: 2px;
}

.site-mms .hamburger:focus-visible {
    outline: 2px solid var(--mms-rust);
    outline-offset: 6px;
    border-radius: 2px;
}

.site-mms .btn-primary {
    background: linear-gradient(145deg, #9e4528, var(--mms-rust));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(139, 58, 30, 0.28);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s var(--mms-ease), box-shadow 0.4s var(--mms-ease), color 0.4s ease;
}

.site-mms .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s var(--mms-ease);
    z-index: -1;
}

.site-mms .btn-primary:hover::before {
    left: 100%;
}

.site-mms .btn-primary:hover {
    background: linear-gradient(145deg, #b05232, #a34424);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(139, 58, 30, 0.4);
}

.site-mms .btn-secondary {
    border-color: var(--mms-rust);
    color: var(--mms-rust);
    transition: background 0.25s var(--mms-ease), color 0.25s var(--mms-ease), transform 0.25s var(--mms-ease);
}

.site-mms .btn-secondary:hover {
    background: var(--mms-rust);
    color: #fff;
}

/* Inner page heroes — same cream as home mock */
.site-mms .about-hero,
.site-mms .menu-hero,
.site-mms .gal-hero,
.site-mms .contact-hero,
.site-mms .loc-hero {
    background: #F2E6C9 !important;
    color: #000 !important;
}

.site-mms .about-hero h1,
.site-mms .menu-hero h1,
.site-mms .gal-hero h1,
.site-mms .contact-hero h1,
.site-mms .loc-hero h1 {
    color: #8B5A2B !important;
    text-shadow: none !important;
}

.site-mms .about-hero p,
.site-mms .loc-hero .lead,
.site-mms .loc-hero p {
    color: rgba(26, 26, 26, 0.75) !important;
    opacity: 1 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: #C89A4B;
    color: white;
}

.btn-primary:hover {
    background: #8B5A2B;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #C89A4B;
    border-color: #C89A4B;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C89A4B;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #C89A4B;
}

.nav-link:focus-visible {
    outline: 2px solid #C89A4B;
    outline-offset: 4px;
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #C89A4B, #8B5A2B);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.35rem;
    margin: -0.35rem;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F2E6C9 0%, #D8C7A3 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #8B5A2B;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--mms-rust);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #C89A4B, #8B5A2B);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.4s var(--mms-ease), box-shadow 0.4s var(--mms-ease);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 58, 30, 0.12);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4A2E1F 0%, #2B2B2B 100%);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #C89A4B;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #C89A4B;
}

.footer a:focus-visible {
    outline: 2px solid #C89A4B;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .site-mms .nav-brand-img {
        height: 48px;
        margin: -4px 0;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        flex-direction: column;
        align-items: center; /* keep underlines tight to the text */
        gap: 0.5rem;         /* remove massive desktop gap */
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 1.5rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Dietary Badges */
.diet-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    vertical-align: middle;
    margin-left: 8px;
}
.diet-badge.vegan { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.diet-badge.gf { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }
.diet-badge.sf { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }
.diet-badge.chef { background: #FFF8E1; color: #F57F17; border: 1px solid #FFECB3; }

/* Animation fade in */
.fade-in, .feature-card, .menu-card, .gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--mms-ease), transform 0.8s var(--mms-ease);
}
.fade-in.show, .feature-card.show, .menu-card.show, .gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--mms-ease), transform 0.8s var(--mms-ease); }
.reveal-up.show { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--mms-ease), transform 0.8s var(--mms-ease); }
.reveal-left.show { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--mms-ease), transform 0.8s var(--mms-ease); }
.reveal-right.show { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s var(--mms-ease), transform 0.8s var(--mms-ease); }
.reveal-scale.show { opacity: 1; transform: scale(1); }

.glass-panel {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(139, 58, 30, 0.08);
}

/* Staggered Row Animation */
.menu-panel .menu-row, .menu-panel .menu-note, .menu-panel .menu-cat-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s var(--mms-ease), transform 0.5s var(--mms-ease);
}
.menu-panel.show .menu-row, .menu-panel.show .menu-note, .menu-panel.show .menu-cat-title {
    opacity: 1;
    transform: translateY(0);
}

/* Delay generator for up to 12 items */
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(1) { transition-delay: 0.1s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(2) { transition-delay: 0.15s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(3) { transition-delay: 0.2s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(4) { transition-delay: 0.25s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(5) { transition-delay: 0.3s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(6) { transition-delay: 0.35s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(7) { transition-delay: 0.4s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(8) { transition-delay: 0.45s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(9) { transition-delay: 0.5s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(10) { transition-delay: 0.55s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(11) { transition-delay: 0.6s; }
.menu-panel.show > .menu-wrap > .menu-block > *:nth-child(12) { transition-delay: 0.65s; }

/* Subline delay override */
.menu-panel.show .menu-subline { transition-delay: 0.3s; }


/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .hamburger,
    .social-contact a {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}