/* =====================================================
   SMILE MOMO - PUBLIC MENU STYLES
   Red & White Professional Theme
   ===================================================== */

:root {
    --red-primary: #D32F2F;
    --red-dark: #B71C1C;
    --red-darker: #8E0000;
    --red-light: #EF5350;
    --red-lighter: #FFCDD2;
    --red-bg: #FFF5F5;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;   /* prevents horizontal shift on iOS */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

/* On scrolled white bg, keep logo full opacity */
.navbar.scrolled .nav-logo {
    filter: none;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    transition: var(--transition);
    /* NOTE: do NOT add transform here — it breaks position:fixed children (nav drawer) */
    will-change: background-color, box-shadow, padding;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 40px;
    box-shadow: 0 2px 20px rgba(211, 47, 47, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.navbar.scrolled .nav-brand {
    color: var(--red-primary);
}

.nav-brand i {
    font-size: 1.3rem;
    background: var(--red-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: calc(100vw - 280px);
    padding-bottom: 2px;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--red-primary);
    color: var(--white);
}

.navbar.scrolled .nav-links a {
    color: var(--gray-600);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    background: var(--red-primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-700);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--red-darker) 0%, var(--red-primary) 50%, var(--red-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--red-primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: var(--gray-50);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-badge {
    display: inline-block;
    background: var(--red-bg);
    color: var(--red-primary);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 4px;
    margin: 0 auto;
}

.section-header.light .section-line {
    background: rgba(255, 255, 255, 0.5);
}

/* ========== FEATURED SECTION ========== */
.featured-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.featured-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.featured-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.08);
}

.featured-img.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-lighter), var(--red-bg));
}

.featured-img.placeholder-img i {
    font-size: 3rem;
    color: var(--red-primary);
    opacity: 0.4;
}

.featured-info {
    padding: 25px;
}

.featured-category {
    font-size: 0.8rem;
    color: var(--red-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-info h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 8px 0;
    font-family: 'Poppins', sans-serif;
}

.featured-info p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.featured-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-primary);
}

/* ========== GROUPS SECTION (home page) ========== */
.groups-section {
    padding: 60px 0 80px;
    background: var(--off-white);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 10px;
}

/* ---- Card shell ---- */
.group-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.055);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease,
        box-shadow 0.35s ease, border-color 0.3s ease;
}

.group-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.group-card:hover {
    box-shadow: 0 18px 50px rgba(211, 47, 47, 0.16);
    transform: translateY(-6px);
    border-color: var(--red-lighter);
}

/* ---- Top colour area ---- */
.group-card-top {
    height: 105px;
    background: linear-gradient(145deg, var(--red-bg) 0%, #fce4e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease;
}

/* Category cover image */
.group-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    z-index: 0;
}

.group-card:hover .group-card-img {
    transform: scale(1.1);
}

/* Decorative blobs */
.group-card-top::before,
.group-card-top::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(211, 47, 47, 0.08);
    transition: background 0.35s ease;
}

.group-card-top::before {
    width: 90px;
    height: 90px;
    top: -28px;
    right: -22px;
}

.group-card-top::after {
    width: 55px;
    height: 55px;
    bottom: -18px;
    left: -14px;
}

.group-card:hover .group-card-top {
    background: linear-gradient(145deg, var(--red-primary) 0%, var(--red-dark) 100%);
}

.group-card:hover .group-card-top::before,
.group-card:hover .group-card-top::after {
    background: rgba(255, 255, 255, 0.1);
}

/* ---- Icon squircle ---- */
.group-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--red-primary);
    box-shadow: 0 4px 18px rgba(211, 47, 47, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.group-card:hover .group-card-icon {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    transform: scale(1.1) rotate(-4deg);
}

/* ---- Body ---- */
.group-card-body {
    padding: 15px 16px 17px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.group-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    transition: color 0.2s;
}

.group-card:hover .group-card-body h3 {
    color: var(--red-primary);
}

.group-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-item-count {
    font-size: 0.76rem;
    color: var(--gray-400);
    font-weight: 500;
}

.group-card-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--red-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-primary);
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.group-card:hover .group-card-arrow {
    background: var(--red-primary);
    color: var(--white);
    transform: translateX(3px);
}

/* ========== MENU PAGE (menu.php) ========== */
.menu-page-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--red-dark);
}

.navbar-solid {
    position: static;
    background: var(--red-dark) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    padding: 14px 30px;
}

/* Ensure text doesn't turn gray when sticky header scrolls */
.navbar-solid.scrolled .nav-brand {
    color: var(--white);
}

.navbar-solid .nav-links a,
.navbar-solid.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-solid .nav-links a:hover,
.navbar-solid .nav-links a.active,
.navbar-solid.scrolled .nav-links a:hover,
.navbar-solid.scrolled .nav-links a.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

/* Group hero bar */
.group-hero {
    background: #1a1a1a;
    padding: 36px 0 30px;
    position: relative;
    overflow: hidden;
}

.group-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.group-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.group-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.group-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    z-index: 2;
}

.group-hero-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
}

.breadcrumb-nav {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--white);
}

.bc-sep {
    margin: 0 4px;
    font-size: 0.6rem;
    opacity: 0.5;
}

.group-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 4px;
}

.group-hero-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Sub-category jump bar */
.cat-jump-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    position: sticky;
    top: 61px;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.cat-jump-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-jump-links::-webkit-scrollbar {
    display: none;
}

.cat-jump-btn {
    padding: 8px 22px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-sm);
}

.cat-jump-btn:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.cat-jump-btn.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.3);
}

/* Back button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--red-primary);
    color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--red-dark);
}

/* ========== MENU SECTION ========== */
.menu-section {
    padding: 60px 0 80px;
    background: var(--off-white);
}

/* Category Block */
.menu-category {
    margin-bottom: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.menu-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.menu-category:hover {
    box-shadow: var(--shadow-lg);
}

.category-header {
    background: linear-gradient(135deg, var(--red-darker) 0%, var(--red-dark) 45%, #c62828 100%);
    padding: 22px 32px;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='m0 10 10-10h-4l-10 10h4zm10 0 10-10h-4l-10 10h4zm10 0 10-10h-4l-10 10h4zm10 0 10-10h-4l-10 10h4z'/%3E%3C/g%3E%3C/svg%3E");
}

.category-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cat-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}

.category-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.cat-badge {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Menu List (restaurant style) */
.menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 24px 17px 16px;
    border-bottom: 1px solid var(--gray-100);
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-left-color 0.2s ease;
}

.menu-row:nth-child(odd) {
    border-right: 1px solid var(--gray-100);
}

.menu-row:last-child,
.menu-row:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.menu-row:hover {
    background: linear-gradient(90deg, var(--red-bg) 0%, #fffafa 100%);
    border-left-color: var(--red-primary);
}

.menu-row-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-row-details {
    flex: 1;
    min-width: 0;
}

.menu-row-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.menu-row-desc {
    font-size: 0.76rem;
    color: var(--gray-400);
    margin-top: 3px;
}

.special-badge {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.3);
    white-space: nowrap;
}

/* Veg / Non-Veg indicator (Indian menu standard) */
.item-dot {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-dot::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-veg {
    border: 2px solid #388E3C;
    background: #E8F5E9;
}

.dot-veg::after {
    background: #388E3C;
}

.dot-nonveg {
    border: 2px solid #C62828;
    background: #FFEBEE;
}

.dot-nonveg::after {
    background: #C62828;
}

.menu-row-dots {
    display: none;
}

.menu-row-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red-primary);
    white-space: nowrap;
    background: var(--red-bg);
    padding: 5px 13px;
    border-radius: 8px;
    min-width: 64px;
    text-align: center;
    border: 1px solid var(--red-lighter);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.menu-row:hover .menu-row-price {
    background: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}

/* Empty Menu */
.empty-menu {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}

.empty-menu i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-menu h3 {
    color: var(--gray-600);
    margin-bottom: 10px;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='m0 40 40-40h-8l-40 40h8zm40 0v-8l-40 40h8z'/%3E%3C/g%3E%3C/svg%3E");
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--gray-800);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-brand i {
    color: var(--red-light);
}

/* ========== NAV OVERLAY BACKDROP ========== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* ========== RESPONSIVE ========== */

/* ----- TABLET: ≤ 1024px ----- */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .navbar {
        padding: 18px 30px;
    }

    .navbar.scrolled {
        padding: 12px 30px;
    }

    .navbar-solid {
        padding: 14px 24px;
    }

    .hero-content h1 {
        font-size: 3.4rem;
    }

    /* --- Groups --- */
    .groups-section {
        padding: 50px 0 65px;
    }

    .groups-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .menu-section {
        padding: 45px 0 65px;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    .menu-row:nth-child(odd) {
        border-right: none;
    }
}

/* ----- MOBILE: ≤ 768px ----- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* --- Navbar --- */
    .navbar {
        padding: 13px 16px;
    }

    .navbar.scrolled {
        padding: 10px 16px;
    }

    .navbar-solid {
        padding: 11px 16px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand i {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    /* Hamburger button – always show on mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hamburger bars on solid red navbar should stay white */
    .navbar-solid .nav-toggle span,
    .navbar-solid.scrolled .nav-toggle span {
        background: var(--white);
    }

    /* Slide-in drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78vw;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 70px 16px 30px;
        box-shadow: -6px 0 32px rgba(0, 0, 0, 0.18);
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 3px;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 1000;
        max-width: 300px;
    }

    .nav-links.active {
        right: 0;
    }

    /* Override higher-specificity navbar-solid and scrolled rules so drawer links are readable */
    .nav-links a,
    .navbar-solid .nav-links a,
    .navbar.scrolled .nav-links a {
        color: var(--gray-700);
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 0.9rem;
        white-space: normal;
        display: block;
    }

    .nav-links a:hover,
    .nav-links a.active,
    .navbar-solid .nav-links a:hover,
    .navbar-solid .nav-links a.active,
    .navbar.scrolled .nav-links a:hover,
    .navbar.scrolled .nav-links a.active {
        background: var(--red-bg);
        color: var(--red-primary);
    }

    /* --- Hero --- */
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }

    .hero-tagline {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
        margin-bottom: 26px;
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 0.97rem;
    }

    .hero-scroll {
        bottom: 20px;
    }

    /* --- Section headers --- */
    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .section-badge {
        font-size: 0.78rem;
        padding: 5px 16px;
    }

    /* --- Groups --- */
    .groups-section {
        padding: 40px 0 55px;
    }

    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .group-card-top {
        height: 88px;
    }

    .group-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
        border-radius: 14px;
    }

    .group-card-body {
        padding: 12px 14px 14px;
    }

    .group-card-body h3 {
        font-size: 0.92rem;
    }

    /* --- Contact --- */
    .contact-section {
        padding: 45px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-card {
        padding: 26px 20px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 22px 0;
    }

    .footer-brand {
        font-size: 1.1rem;
    }

    /* --- Group hero (menu.php) --- */
    .group-hero {
        padding: 22px 0 18px;
    }

    .group-hero-inner {
        gap: 14px;
    }

    .group-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        border-radius: 14px;
    }

    .group-hero-title {
        font-size: 1.45rem;
    }

    .breadcrumb-nav {
        font-size: 0.74rem;
        margin-bottom: 4px;
    }

    /* --- Jump bar --- */
    .cat-jump-bar {
        top: 55px;
        padding: 9px 0;
    }

    .cat-jump-btn {
        padding: 6px 15px;
        font-size: 0.78rem;
    }

    .cat-jump-links {
        gap: 8px;
        padding: 0 16px;
    }

    /* --- Menu section --- */
    .menu-section {
        padding: 24px 0 44px;
    }

    .menu-category {
        margin-bottom: 20px;
        border-radius: var(--radius);
    }

    .category-header {
        padding: 14px 16px;
    }

    .category-header-inner {
        gap: 12px;
    }

    .cat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .category-header h2 {
        font-size: 1.1rem;
    }

    .cat-badge {
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    .menu-row:nth-child(odd) {
        border-right: none;
    }

    .menu-row {
        padding: 12px 13px 12px 10px;
        gap: 9px;
    }

    .menu-row-name {
        font-size: 0.86rem;
    }

    .menu-row-desc {
        font-size: 0.72rem;
    }

    .menu-row-price {
        font-size: 0.78rem;
        padding: 4px 10px;
        min-width: 55px;
    }

    .item-dot {
        width: 16px;
        height: 16px;
        border-radius: 3px;
    }

    .special-badge {
        font-size: 0.62rem;
        padding: 2px 6px;
    }
}

/* ----- SMALL MOBILE: ≤ 480px ----- */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .btn-hero {
        max-width: 100%;
        font-size: 0.92rem;
    }

    .section-header h2 {
        font-size: 1.45rem;
    }

    .group-hero-title {
        font-size: 1.25rem;
    }

    .group-hero-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        border-radius: 11px;
    }

    .group-hero-inner {
        gap: 12px;
    }

    .group-hero {
        padding: 18px 0 14px;
    }

    .featured-img {
        height: 165px;
    }

    .cat-jump-bar {
        top: 52px;
    }

    .cat-jump-links {
        padding: 0 12px;
    }

    .category-header {
        padding: 12px 14px;
    }

    .menu-row {
        padding: 11px 11px 11px 8px;
    }

    .menu-row-price {
        min-width: 50px;
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .menu-row-name {
        font-size: 0.82rem;
    }
}

/* ========== MOBILE PERFORMANCE ========== */
/* Disable expensive backdrop-filter on mobile — major scroll jank cause */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto; /* let iOS handle its own smooth scroll natively */
    }
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.99);
    }
    /* Remove hover scale effects that cause repaints on touch */
    .group-card:hover,
    .menu-row:hover {
        transform: none;
    }
    /* Ensure tap targets don't bounce */
    a, button {
        touch-action: manipulation;
    }
}