/* ============================================
   M Cafe — Custom Styles
   Deep Navy + Warm Gold | Clean Minimalist
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ---------- Smooth Scroll Offset for Fixed Nav ---------- */
section[id] {
    scroll-margin-top: 80px;
}

/* ---------- Navigation ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-logo {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo {
    color: #0a1628;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #0a1628;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    backdrop-filter: blur(10px);
}

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

/* ---------- Hero ---------- */
.hero-content {
    opacity: 1;
    transform: none;
}

.hero-images {
    opacity: 1;
    transform: none;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    animation: scrollDown 2s ease-in-out infinite;
}

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

/* ---------- Offering Cards ---------- */
.offering-card {
    transition: background 0.5s ease;
}

/* ---------- Gallery ---------- */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ---------- About Section ---------- */
.about-image {
    opacity: 1;
    transform: none;
}

.about-content {
    opacity: 1;
    transform: none;
}

/* ---------- Visually Hidden (Accessibility) ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---------- Selection ---------- */
::selection {
    background: #d4a853;
    color: #0a1628;
}

/* ---------- Subtle Line Decorations ---------- */
.divider-line {
    width: 60px;
    height: 1px;
    background: #d4a853;
}

/* ---------- Button Hover Effects ---------- */
a.group {
    position: relative;
}

/* ---------- Image Loading ---------- */
img {
    background-color: #f5f5f5;
}

/* ---------- Print Styles ---------- */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
