/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f0;
}
::-webkit-scrollbar-thumb {
    background: #c42d4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1213a;
}

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

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 33, 58, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #57534e;
}

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

/* ===== Mobile Menu ===== */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

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

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(108, 26, 44, 0.2);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-accent-card {
    animation: float 4s ease-in-out infinite;
}

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

/* ===== About ===== */
.about-img-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(108, 26, 44, 0.15);
}

.about-img-secondary {
    border-radius: 8px;
    border: 4px solid white;
    box-shadow: 0 15px 40px rgba(108, 26, 44, 0.2);
}

/* ===== Flavor Cards ===== */
.flavor-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.flavor-card:hover {
    transform: translateY(-6px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .flavor-card:hover {
        transform: none;
    }
    .hero-accent-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-accent-card {
        display: none;
    }
    .about-img-secondary {
        position: static;
        margin-top: 1rem;
        border: none;
        box-shadow: 0 10px 30px rgba(108, 26, 44, 0.15);
    }
}
