/* ═══════════════════════════════════════
   Shanghai You Garden — Style
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --primary: #8B1A1A;
    --primary-dark: #6B0F0F;
    --gold: #C9954C;
    --gold-light: #D4A96A;
    --cream: #FDF8F0;
    --warm-white: #FEFCF8;
    --dark: #1A1A1A;
    --text: #2C2C2C;
    --text-muted: #6B6B6B;
    --border: #E8E0D4;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* ── Skip Link ── */
.skip-link {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
    overflow: hidden; z-index: 10000;
    background: var(--primary); color: #fff; padding: 12px 24px;
    font-size: 0.9rem; font-weight: 500;
}
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ═══ HEADER ═══ */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; min-height: 72px;
}

.logo a {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--dark);
}
.logo img { width: 48px; height: 48px; object-fit: contain; }
.logo-name {
    font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
    color: var(--primary); line-height: 1.2;
}
.logo-name span {
    display: block; font-family: var(--sans); font-size: 0.65rem;
    font-weight: 400; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase;
}

nav ul {
    display: flex; gap: 8px; list-style: none; align-items: center;
}
nav a {
    font-size: 0.88rem; font-weight: 400; color: var(--text);
    padding: 8px 16px; border-radius: 6px; transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--primary); background: rgba(139,26,26,0.05); }
nav a.active { font-weight: 500; }

.nav-cta a {
    background: var(--primary); color: #fff !important; padding: 10px 20px;
    border-radius: 6px; font-weight: 500;
}
.nav-cta a:hover { background: var(--primary-dark); }

/* Hamburger */
.hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    flex-direction: column; gap: 5px; z-index: 1001;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--dark);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══ HERO ═══ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-top: 72px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.25) 40%, rgba(26,26,26,0.65) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 40px 24px; max-width: 800px;
}
.hero-eyebrow {
    display: inline-block; font-family: var(--sans); font-size: 0.75rem;
    font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
    border: 1px solid rgba(201,149,76,0.4); padding: 8px 24px; border-radius: 30px;
}
.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p {
    color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 550px;
    margin: 0 auto 36px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
    display: inline-block; background: var(--primary); color: #fff; padding: 14px 32px;
    border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: var(--transition);
    border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
    display: inline-block; border: 1px solid rgba(255,255,255,0.5); color: #fff;
    padding: 14px 32px; border-radius: 6px; font-size: 0.9rem; font-weight: 400;
    transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

.btn-gold {
    display: inline-block; background: var(--gold); color: #fff; padding: 14px 32px;
    border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.btn-gold:hover { background: var(--gold-light); color: #fff; transform: translateY(-1px); }

/* ═══ SECTIONS ═══ */
section { padding: 80px 0; }

.section-eyebrow {
    display: block; font-family: var(--sans); font-size: 0.72rem;
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 16px auto 0; font-size: 1rem; }

/* ═══ SIGNATURE DISHES ═══ */
.dishes-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.dish-card {
    background: var(--card-bg); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid var(--border);
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dish-card .dish-img {
    width: 100%; height: 280px; object-fit: cover;
    transition: transform 0.5s ease;
}
.dish-card:hover .dish-img { transform: scale(1.03); }
.dish-card .dish-img-wrap { overflow: hidden; }
.dish-card-body { padding: 20px; }
.dish-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.dish-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ═══ ABOUT STRIP ═══ */
.about-strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-strip img {
    width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius);
}
.about-text .section-eyebrow { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }

/* ═══ CUISINE CATEGORIES ═══ */
.cuisine-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cuisine-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    height: 320px; cursor: pointer;
}
.cuisine-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.cuisine-card:hover img { transform: scale(1.08); }
.cuisine-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 30px 24px 24px; color: #fff;
}
.cuisine-card-overlay h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.cuisine-card-overlay p { font-size: 0.82rem; color: rgba(255,255,255,0.8); }

/* ═══ MENU PAGE ═══ */
.page-hero {
    padding: 120px 0 50px; background: var(--cream); text-align: center;
    margin-top: 72px;
}
.page-hero .section-eyebrow { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

.menu-section { padding: 60px 0 80px; }
.menu-category { margin-bottom: 50px; }
.menu-category-title {
    font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
    color: var(--dark); padding-bottom: 14px;
    border-bottom: 2px solid var(--primary); margin-bottom: 24px;
}
.menu-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px;
}
.menu-list-item {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 12px 16px; border-radius: 4px; transition: var(--transition);
}
.menu-list-item:hover { background: var(--cream); }
.menu-list-item span { font-size: 0.92rem; }
.menu-price { font-family: var(--serif); color: var(--primary); font-weight: 500; white-space: nowrap; }

/* ═══ LOCATIONS PAGE ═══ */
.locations-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 30px;
}
.location-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.location-card-body { padding: 30px; }
.location-card-body h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 16px; }
.location-info { list-style: none; }
.location-info li {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.location-info li:last-child { border-bottom: none; }
.location-info .label { font-weight: 500; min-width: 80px; color: var(--dark); }
.location-map {
    width: 100%; height: 250px; border: none; border-top: 1px solid var(--border);
}

/* ═══ ABOUT PAGE ═══ */
.about-hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.timeline { margin-top: 40px; }
.timeline-item {
    display: flex; gap: 24px; padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.timeline-year {
    font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
    color: var(--primary); min-width: 80px;
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.media-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.media-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.media-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ═══ CTA BANNER ═══ */
.cta-banner {
    background: var(--primary); padding: 60px 0; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.4); }

/* ═══ FOOTER ═══ */
footer {
    background: var(--dark); color: rgba(255,255,255,0.8); padding: 60px 0 20px;
}
.footer-top {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-logo img { width: 44px; height: 44px; object-fit: contain; }
.footer-logo-name {
    font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
    color: #fff; line-height: 1.2;
}
.footer-logo-name span {
    display: block; font-family: var(--sans); font-size: 0.6rem;
    font-weight: 400; color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase;
}
footer h4 {
    font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
    margin-bottom: 16px;
}
footer p, footer a { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.8; }
footer a:hover { color: var(--gold); }
.footer-links a { display: block; padding: 3px 0; }

.footer-bottom {
    text-align: center; padding-top: 24px; color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-partner { margin-top: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-partner a { color: var(--gold); }
.footer-partner a:hover { color: #fff; }

/* ═══ PRIVACY PAGE ═══ */
.privacy-content { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.privacy-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--primary); }
.privacy-content p, .privacy-content li { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; }
.privacy-content ul { padding-left: 24px; margin: 12px 0; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        padding: 80px 30px 30px; transition: right 0.3s ease; z-index: 1000;
    }
    nav.open { right: 0; }
    nav ul { flex-direction: column; gap: 4px; }
    nav a { display: block; padding: 12px 16px; font-size: 1rem; }

    .dishes-grid { grid-template-columns: 1fr 1fr; }
    .about-strip { grid-template-columns: 1fr; gap: 30px; }
    .about-strip img { height: 300px; }
    .cuisine-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .about-hero-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .hero { min-height: 85vh; }
}

@media (max-width: 600px) {
    .dishes-grid { grid-template-columns: 1fr; }
    .cuisine-grid { grid-template-columns: 1fr; }
    .menu-list { grid-template-columns: 1fr; }
    section { padding: 50px 0; }
    .hero { min-height: 75vh; }
    .hero-btns { flex-direction: column; align-items: center; }
}
