/* ===================================
   CHINA BUFFET - Modern Restaurant Site
   =================================== */

/* --- CSS Variables --- */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50: #fefce8;
    --cream-100: #fef9c3;
    --cream-200: #fef08a;
    --cream-300: #fde047;
    --cream-400: #facc15;
    
    --sand-50: #fafaf9;
    --sand-100: #f5f5f4;
    --sand-200: #e7e5e4;
    --sand-300: #d6d3d1;
    --sand-400: #a8a29e;
    --sand-500: #78716c;
    --sand-600: #57534e;
    --sand-700: #44403c;
    --sand-800: #292524;
    --sand-900: #1c1917;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sand-800);
    background-color: var(--cream-50);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mt-4 { margin-top: 1rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--emerald-600);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--emerald-700);
}

.btn-secondary {
    background: #ffffff;
    color: var(--sand-800);
    border: 2px solid var(--sand-200);
}

.btn-secondary:hover {
    border-color: var(--emerald-400);
    color: var(--emerald-700);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--emerald-100);
    color: var(--emerald-700);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--sand-900);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }

.text-emerald { color: var(--emerald-600); }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--sand-900);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--emerald-600);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sand-700);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.nav-links .btn {
    margin-left: 8px;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--sand-800);
    transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--sand-100);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(254, 252, 232, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sand-800);
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

/* --- Hero Section --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--emerald-50) 50%, var(--cream-100) 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--emerald-700);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--sand-900);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--sand-600);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--emerald-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--sand-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-300);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 420px;
    height: 500px;
    position: relative;
    z-index: 2;
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-float {
    position: absolute;
    bottom: -30px;
    left: -40px;
    z-index: 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 200px;
    height: 200px;
}

.hero-image-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald-700);
    box-shadow: var(--shadow-sm);
}

.decorative-pattern {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.4;
    color: var(--emerald-600);
    z-index: 1;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 500px;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid #ffffff;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    max-width: 480px;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--sand-600);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--sand-700);
}

.about-features svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Menu Section --- */
.menu {
    padding: 100px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header.light {
    color: #ffffff;
}

.section-header.light h2,
.section-header.light p {
    color: #ffffff;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--sand-600);
    font-size: 1.1rem;
}

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.menu-category {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.menu-category:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.menu-category.reverse {
    direction: rtl;
}

.menu-category.reverse > * {
    direction: ltr;
}

.category-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-category:hover .category-image img {
    transform: scale(1.05);
}

.category-content h3 {
    margin-bottom: 12px;
    color: var(--sand-900);
}

.category-content p {
    color: var(--sand-600);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.category-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-content li {
    font-size: 0.95rem;
    color: var(--sand-700);
    font-weight: 600;
}

.menu-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px 32px;
    background: var(--emerald-50);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
    color: var(--emerald-800);
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-note svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: var(--emerald-700);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #ffffff;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-800) 100%);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta h2 {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info h2 {
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--sand-600);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    color: var(--emerald-700);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--sand-900);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--sand-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item a {
    color: var(--emerald-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--emerald-500);
}

.contact-item .small {
    font-size: 0.85rem;
    color: var(--sand-500);
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

/* --- Footer --- */
.footer {
    background: var(--sand-900);
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--emerald-400);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-image-main {
        width: 340px;
        height: 420px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
        order: 1;
    }
    
    .hero-visual {
        justify-content: center;
        order: 2;
    }
    
    .hero-image-main {
        width: 280px;
        height: 340px;
    }
    
    .hero-image-float {
        width: 140px;
        height: 140px;
        bottom: -20px;
        left: -20px;
    }
    
    .decorative-pattern {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-img-secondary {
        right: 0;
        width: 160px;
        height: 160px;
    }
    
    .menu-category {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .menu-category.reverse {
        direction: ltr;
    }
    
    .category-image {
        height: 220px;
    }
    
    .category-content ul {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
