/* 
   Cordero Sinanglaoan - Elegant Design System 
   Theme: Modern Traditional Filipino
*/

:root {
    --color-primary: #B08968;
    /* Warm Bronze */
    --color-primary-dark: #7F5539;
    --color-accent: #B08968;
    --color-accent-light: #F4F1ED;
    --color-bg: #FAFAF9;
    /* Soft Cream */
    --color-bg-secondary: #F4F1ED;
    --color-text-main: #2C2C2C;
    /* Deep Charcoal */
    --color-text-muted: #6B705C;
    --color-white: #ffffff;
    --color-border: #E6E1DC;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
    --container-width: 1200px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.06);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.8;
    /* Increased line-height for elegance */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 500;
    /* Lighter weight often looks more elegant for Serif */
    margin-bottom: 0.6em;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-primary);
    transition: var(--transition-medium);
}

.navbar.scrolled .nav-logo-img {
    height: 40px;
    width: 40px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.nav-menu li a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-white);
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-menu li a {
    color: var(--color-text-main);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition-medium);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--color-primary) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 1px;
    /* Elegant thin line */
    margin: 6px auto;
    transition: var(--transition-medium);
    background-color: var(--color-white);
}

.navbar.scrolled .bar {
    background-color: var(--color-text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('Cordero pics/Hero backgroud.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
    margin-bottom: var(--spacing-xl);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-md);
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 6rem);
    /* Slightly smaller minimum for tiny screens */
    margin-bottom: 15px;
    color: var(--color-white);
    letter-spacing: -0.02em;
    font-weight: 400;
}

.hero-tagline {
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary,
.btn-call {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 0;
    /* Sharp corners for elegance */
    transition: var(--transition-medium);
    margin: 10px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-5px);
}

.btn-call {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-call:hover {
    background-color: var(--color-white);
    color: var(--color-text-main);
    transform: translateY(-5px);
}

/* Featured Gallery Grid */
.featured-gallery {
    margin-bottom: 120px;
    /* Generous spacing */
    padding: var(--spacing-lg) 0;
    background-color: transparent;
}

.gallery-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gallery-scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Tablet and below - 2 columns */
@media (max-width: 1024px) {
    .gallery-scroll-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Mobile - 1 column */
@media (max-width: 600px) {
    .gallery-scroll-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.gallery-card {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-medium);
    border: 1px solid rgba(212, 175, 55, 0.1);
    /* Gold tint border */
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    opacity: 0.95;
    /* Slight dim for mood, full opacity on hover could be added */
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    background-color: var(--color-bg-secondary);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-heading);
}

/* Featured Dishes Carousel */
.featured-dishes {
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding: 0 var(--spacing-md);
}

.carousel-container {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.dish-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.dish-carousel::-webkit-scrollbar {
    display: none;
}

.dish-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
    transition: var(--transition-medium);
}

.dish-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 20px;
    transition: var(--transition-medium);
    border: none;
}

.dish-item:hover img {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.dish-caption {
    text-align: center;
}

.dish-caption h3 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

@media (max-width: 768px) {
    .featured-dishes {
        padding: 0 var(--spacing-sm);
    }

    .dish-item {
        flex: 0 0 260px;
        /* Consistent width on mobile */
        padding: 5px;
    }

    .dish-item img {
        aspect-ratio: 1 / 1;
        /* Square images look better in a mobile scroll */
    }

    .carousel-btn {
        display: none;
        /* Rely on touch swipe for mobile */
    }

    .dish-carousel {
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
        mask-image: none;
        /* Remove masks on mobile for better performance */
    }
}

/* Category Grid Navigation */
.category-nav-section {
    margin-bottom: 80px;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile - Single column for easier touch */
@media (max-width: 600px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cat-teaser {
        height: 250px;
        /* Slightly taller for better visibility */
    }
}

.cat-teaser {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
    /* Ensure touch targets are at least 44x44px */
    min-height: 44px;
}

.cat-teaser img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-teaser:hover {
    transform: translateY(-5px);
}

.cat-teaser:hover img {
    transform: scale(1.1);
}

.cat-teaser-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Flat dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.cat-teaser-overlay h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cat-teaser-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.cat-teaser:hover .btn-text {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Categories (Accordion/Tab Logic) */
.menu-category {
    display: none;
    animation: fadeIn 0.5s ease;
    scroll-margin-top: 100px;
    padding: 40px;
    border-radius: 16px;
    background-color: var(--color-bg-secondary);
}

.menu-category.active,
.menu-category.list-view {
    display: block;
}

/* Specific Style for Menu Page (List View) */
.menu-wrapper.list-style .menu-category {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    /* Reduced from 80px */
    /* Space between categories */
}

/* Staggered Animation for Menu Items */
.menu-item-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-item-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vertical List Style Menu */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.menu-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    background-color: transparent;
    padding: 40px 30px;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    /* Adjusted round corners */
}

.menu-item-box:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.item-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
}

.item-price-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

.item-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 600px;
    font-style: italic;
}

/* Tiered Prices Grid (S/M/L) */
.tiered-prices-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    flex-wrap: nowrap;
    /* Forced single row */
}

.price-tier {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-tier .tier-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.price-tier .tier-val {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.category-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.category-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.separator {
    height: 1px;
    width: 100px;
    background-color: var(--color-primary);
    margin: 0 auto;
}



@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animation - Progressive Enhancement */
.js-enabled .reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.js-enabled .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .menu-item-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .item-prices {
        text-align: left;
        width: 100%;
    }
}



/* Menu Layout */
.menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* Reduced from 180px for less scroll */
    padding: 0 15%;
    /* 15% horizontal padding */
}

@media (max-width: 1024px) {
    .menu-wrapper {
        padding: 0 5%;
    }
}

.category-header {
    text-align: center;
    margin-bottom: 20px;
    /* Reduced from 40px */
}

.category-header h2 {
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-top: 20px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 3px;
}

.separator {
    height: 2px;
    width: 60px;
    background-color: var(--color-accent);
    margin: 0 auto 30px;
}

/* Story Section */
.story-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--color-bg-secondary);
    position: relative;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.story-content p {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.85;
}

.chef-sign {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary-dark);
    margin-top: 30px;
    letter-spacing: 0.1em;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background-color: var(--color-bg-secondary);
    color: var(--color-text-main);
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-primary);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 10;
    transition: opacity 0.3s;
}

.scroll-down-arrow:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.footer-socials {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-socials a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-primary);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    margin-top: 30px;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Catering Services - Editorial Spotlight Layout */
.catering-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.catering-spotlight {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 80px;
}

@media (min-width: 769px) {
    .service-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        border: 1px solid var(--color-border);
        padding: 40px;
        background-color: var(--color-white);
        transition: var(--transition-medium);
        border-radius: 12px;
        /* Adjusted round corners */
    }

    .service-row:hover {
        border-color: var(--color-primary);
        box-shadow: var(--shadow-soft);
    }

    .service-row.reverse {
        direction: rtl;
    }

    .service-row.reverse>* {
        direction: ltr;
        /* Reset text direction for content */
    }
}

.service-img-wrapper {
    position: relative;
    height: 400px;
    /* Reduced height for cropped look */
    border-radius: 2px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.service-row:hover .service-img {
    transform: scale(1.03);
}

.service-text-wrapper {
    padding: 20px;
}

.service-title {
    font-size: 2.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.service-separator {
    width: 60px;
    height: 2px;
    background-color: var(--color-primary);
    margin-bottom: 30px;
}

.service-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    /* Reduced from 30px to sit closer to toggle */
}

.learn-more-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-fast);
}

.learn-more-toggle:hover {
    color: var(--color-primary-dark);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.4s ease;
    margin-bottom: 0;
}

.service-details.visible {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 30px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--color-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.service-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: transparent;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-dark);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: var(--transition-medium);
}

.service-btn:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Responsive Media Queries */
@media (min-width: 1025px) {
    .menu-wrapper {
        padding: 0 15%;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .menu-wrapper {
        padding: 0 5%;
    }
}

/* Tablet Specific Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --spacing-lg: 50px;
        --spacing-xl: 70px;
    }

    .nav-menu {
        gap: 25px;
    }

    .nav-menu li a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 4.5rem);
    }

    .category-header h2 {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Small Tablets & Large Phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --spacing-lg: 40px;
        --spacing-xl: 60px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
    }

    .nav-logo-img {
        height: 45px;
        width: 45px;
    }

    .category-header h2 {
        font-size: 2rem;
    }

    .service-title {
        font-size: 2rem;
    }

    .story-content p {
        font-size: 1.3rem;
    }
}

/* Standard Mobile Styles (Max 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 40px;
        --spacing-xl: 60px;
    }

    .nav-logo {
        gap: 10px;
    }

    .nav-logo-img {
        height: 40px;
        width: 40px;
    }

    .hero {
        background-attachment: scroll;
        /* Fix for mobile parallax jitters */
        min-height: 100vh;
        margin-bottom: 0;
    }

    /* Adjust spacing below hero for main and menu pages */
    .catering-section {
        padding-top: 50px;
    }

    .featured-dishes {
        padding-top: 50px;
    }

    .category-header {
        padding-top: 20px;
    }

    .category-header h2 {
        padding-top: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .btn-primary,
    .btn-call {
        padding: 12px 25px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 280px;
        margin: 10px auto !important;
        display: block;
    }

    .hero-contact-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        padding: 40px 20px;
    }

    /* Mobile: Stack Editorial Layout */
    .service-row,
    .service-row.reverse {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
        text-align: center;
        border: 1px solid var(--color-border);
        padding: 30px 10px;
        /* Reduced to widen content */
        background-color: var(--color-white);
        border-radius: 12px;
    }

    .service-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
        /* Reduced margin for mobile */
    }

    .learn-more-toggle {
        justify-content: center;
        margin-bottom: 15px;
    }

    .service-img-wrapper {
        order: -1 !important;
        /* Always image first on mobile */
        height: 260px;
        /* Reduced to balance width */
        width: 100%;
    }

    .service-text-wrapper {
        padding: 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .category-header h2 {
        font-size: 1.8rem !important;
        /* Force smaller size for section headers */
    }

    .service-title {
        font-size: 1.8rem;
        /* Reduced to fit two words on one line */
        margin-bottom: 15px;
    }

    .service-separator {
        margin: 0 auto 20px;
    }

    .service-features li {
        justify-content: center;
        gap: 10px;
        /* Tighter gap for better alignment */
    }

    .catering-spotlight {
        gap: 60px;
        /* Reduced gap between boxes */
    }

    /* Specific button override for Catering Section (Light Background) */
    .service-btn {
        width: 100%;
    }

    .menu-list {
        margin-top: 30px;
        gap: 30px;
    }

    .menu-item-box {
        padding: 25px 10px;
    }

    .item-name {
        font-size: 1.3rem;
        /* Reduced for better mobile fit */
    }

    .tiered-prices-grid {
        gap: 15px;
    }

    .story-content p {
        font-size: 1.2rem;
        /* Slightly smaller for mobile */
        line-height: 1.6;
    }

    .footer-logo span {
        font-size: 1.2rem;
    }

    .footer-socials {
        flex-direction: column;
        gap: 15px;
    }
}

/* Very Small Screens (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 20px;
        --spacing-lg: 30px;
        --spacing-xl: 40px;
    }

    html {
        font-size: 15px;
        /* Slightly smaller base font */
    }

    .container {
        padding: 0 15px;
        /* Wider content area on mobile */
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 10px;
    }

    .hero-tagline {
        font-size: clamp(0.7rem, 2vw, 0.9rem);
        margin-bottom: 30px;
    }

    .nav-logo-img {
        height: 35px;
        width: 35px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        padding: 120px 40px;
        z-index: 999;
        overflow-y: auto;
        gap: 25px;
        align-items: center;
        justify-content: flex-start;
        animation: fadeIn 0.3s ease forwards;
    }

    .nav-menu.active li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.4s ease forwards;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.active li a {
        color: var(--color-text-main) !important;
        font-size: 1.8rem;
        font-family: var(--font-heading);
        text-transform: none;
        letter-spacing: 0.05em;
        display: inline-block;
        padding: 10px 0;
    }

    .nav-menu.active li a::after {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar {
        background-color: var(--color-text-main) !important;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .container {
        padding: 0 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--color-border);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* Facebook Feed Section */
.updates-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-secondary);
}

.fb-updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.fb-update-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
}

.fb-update-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.fb-post-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.fb-post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fb-post-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.fb-post-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fb-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
}

.update-feed-footer {
    text-align: center;
}

.fb-feed-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.fb-page-wrapper {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-bg);
}

/* Page Specific Overrides */
.main-content {
    padding-top: 0;
}

.menu-page-title {
    font-size: clamp(3.5rem, 15vw, 7rem) !important;
}

/* --- Ordering System Styles --- */

/* Menu Item Box Layout */
.menu-item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    transition: var(--transition-medium);
    margin-bottom: 20px;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

/* Tiered Prices Grid (S/M/L) - Absolute Single Row */
.tiered-prices-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Force single row */
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.price-tier {
    flex: 0 0 auto !important;
    /* Prevent expansion/wrapping */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

@media (max-width: 480px) {
    .tiered-prices-grid {
        gap: 10px !important;
        /* Tighter gap for mobile */
    }

    .tier-val {
        font-size: 0.85rem !important;
    }

    .tier-label {
        font-size: 0.6rem !important;
    }
}

.price-tier {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tier-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.tier-val {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
}

/* Single Price Styling */
.item-price-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* Action Area & Roll Down */
.action-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-add-initial {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-add-initial:hover {
    background-color: var(--color-primary-dark);
}

.quantity-drawer {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quantity-drawer.open {
    max-height: 300px;
    /* Sufficient height for steppers and roll-up button */
}

/* Stepper Design */
.stepper-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.size-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 250px;
    padding: 8px 0;
}

.stepper-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2px;
    background: var(--color-bg-secondary);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.qty-btn:hover {
    color: var(--color-primary-dark);
}

.qty-input {
    width: 35px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-main);
}

.btn-rollup {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-rollup:hover {
    color: var(--color-primary);
}

/* Floating Order Bar */
.order-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-primary);
    padding: 15px 30px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.order-floating-bar.active {
    transform: translateY(0);
}

body.has-order-bar {
    padding-bottom: 100px;
}

.price-tier .tier-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.price-tier .tier-val {
    font-weight: 600;
    font-size: 1rem;
    /* Reduced from 1.2rem */
    color: var(--color-primary);
}

/* Item Main Price */
.item-price-main {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

/* Floating Order Bar - Mobile Optimized */
.order-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-primary);
    padding: 15px 30px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    /* iOS Safe Area */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-floating-bar.active {
    transform: translateY(0);
}

/* Prevent content from being hidden behind bar */
body.has-order-bar {
    padding-bottom: 100px;
}

.order-info {
    display: flex;
    flex-direction: column;
}

.order-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.btn-order-now {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
    /* Slight rounding */
}

.btn-order-now:hover {
    background-color: var(--color-primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .order-floating-bar {
        padding: 15px 20px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .order-total {
        font-size: 1.1rem;
    }

    .btn-order-now {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .menu-item-box {
        padding: 20px 15px;
    }
}