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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #fce7eb;
    color: #7f1a34;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #7f1a34;
    color: #fefcfb;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #7f1a34;
}

.btn-primary:hover {
    background-color: #9a1e3c;
    border-color: #9a1e3c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 26, 52, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #fefcfb;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(254, 252, 251, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(254, 252, 251, 0.1);
    border-color: rgba(254, 252, 251, 0.8);
    transform: translateY(-2px);
}

/* === Navigation === */
#navbar {
    background-color: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(127, 26, 52, 0.08);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(127, 26, 52, 0.1);
}

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

#navbar.hero-bg .nav-logo-text {
    color: #fefcfb;
}

#navbar.scrolled .nav-logo-text {
    color: #3a0a16;
}

.nav-link {
    position: relative;
}

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

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

#navbar.hero-bg .nav-link {
    color: #fad0d9;
}

#navbar.hero-bg .nav-link:hover {
    color: #fce7eb;
}

#navbar.hero-bg .nav-link::after {
    background-color: #fad0d9;
}

#navbar.scrolled .nav-link {
    color: #7f1a34;
}

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

/* === Mobile Menu === */
.mobile-nav-link {
    color: #3a0a16;
    border-bottom: 1px solid rgba(127, 26, 52, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: #d44466;
    padding-left: 0.5rem;
}

/* === Marquee === */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Menu Cards === */
.menu-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(127, 26, 52, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(127, 26, 52, 0.06);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(127, 26, 52, 0.12);
}

/* === Menu Tabs === */
.menu-tab {
    background: transparent;
    color: #7f1a34;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: white;
    color: #3a0a16;
    box-shadow: 0 2px 10px rgba(127, 26, 52, 0.15);
}

.menu-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.5);
}

/* === Gallery === */
.gallery-item {
    height: 220px;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 300px;
    }
}

.gallery-item:first-child {
    height: 464px;
}

@media (min-width: 768px) {
    .gallery-item:first-child {
        height: 616px;
    }
}

/* === Scroll Reveal === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Contact Form === */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 68, 102, 0.15);
}

/* === Back to Top === */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* === Responsive Tweaks === */
@media (max-width: 640px) {
    .font-display {
        word-break: break-word;
    }

    .menu-card {
        border-radius: 1rem;
    }
}

/* === Focus Visible === */
*:focus-visible {
    outline: 2px solid #d44466;
    outline-offset: 2px;
}

/* === Loading State for Images === */
img {
    background-color: #fad0d9;
}
