/* Jade Wok 萬里香 — Professional Restaurant CSS
   Red/gold Chinese aesthetic. Mobile-first. Clean & elegant.
*/

:root {
  --red:            #c8102e;
  --red-dark:       #a11228;
  --red-deep:       #7a0e20;
  --gold:           #d4af37;
  --gold-light:     #e8d5a3;
  --gold-dark:      #b8962e;
  --black:          #1a1a1a;
  --gray-900:       #222;
  --gray-800:       #333;
  --gray-700:       #555;
  --gray-600:       #777;
  --gray-500:       #999;
  --gray-400:       #bbb;
  --gray-300:       #ddd;
  --gray-200:       #eee;
  --gray-100:       #f7f7f7;
  --white:          #fff;
  --cream:          #faf8f4;
  --shadow:         0 4px 20px rgba(200,16,46,0.12);
  --shadow-lg:      0 8px 30px rgba(200,16,46,0.2);
  --shadow-xl:      0 12px 40px rgba(0,0,0,0.15);
  --radius:         10px;
  --radius-lg:      16px;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; }

a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-dark); }

/* ━━━ BUTTONS ━━━ */
.jw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.jw-btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.jw-btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.jw-btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.jw-btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.jw-btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.jw-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.jw-btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.jw-btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ━━━ HEADER ━━━ */
.jw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.jw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.logo-sep { color: var(--gray-600); font-weight: 300; }
.logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.jw-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-order {
  position: relative;
  color: var(--gold);
  font-weight: 600;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ━━━ HERO ━━━ */
.jw-hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--black) 0%, var(--red-deep) 50%, var(--red-dark) 100%);
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(212,175,55,0.3);
}
.jw-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 8px;
}
.hero-details {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ━━━ INFO SECTION ━━━ */
.info-section {
  padding: 60px 0;
  background: var(--cream);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 8px;
}
.info-main { color: var(--gray-700); font-size: 0.95rem; }
.info-highlight {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.05rem;
}
.info-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 4px;
}
.info-phone {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}
.info-phone:hover { color: var(--red-dark); }
.info-link {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ━━━ SECTION TAG ━━━ */
.section-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 8px;
  padding: 4px 12px;
  background: rgba(200,16,46,0.08);
  border-radius: 100px;
}

/* ━━━ ABOUT ━━━ */
.about-section {
  padding: 80px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--gray-700);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-text h2 { margin-bottom: 20px; }
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.highlight-card {
  padding: 24px 20px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.highlight-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.highlight-icon { font-size: 1.75rem; display: block; margin-bottom: 8px; }
.highlight-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--gray-900);
}
.highlight-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ━━━ POPULAR ━━━ */
.popular-section {
  padding: 80px 0;
  background: var(--cream);
  text-align: center;
}
.popular-section h2 { margin-bottom: 40px; }
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.popular-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.popular-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.popular-body h4 { margin-bottom: 4px; }
.popular-body p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 8px; }
.popular-price {
  display: inline-block;
  font-weight: 700;
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ━━━ MAP ━━━ */
.map-section {
  padding: 60px 0 0;
  text-align: center;
}
.map-sub {
  color: var(--gray-600);
  margin-bottom: 32px;
}
.map-wrapper {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}
.map-wrapper iframe { display: block; }

/* ━━━ CTA ━━━ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 100%);
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ━━━ FOOTER ━━━ */
.jw-footer {
  background: var(--black);
  color: var(--gray-500);
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand .logo-zh { margin-right: 6px; }
.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-top: 6px;
}
.footer-info p, .footer-hours p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-info a { color: var(--gold); }
.footer-hours strong { color: var(--white); }
.footer-bottom {
  margin-top: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-900);
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--gold); }

/* ━━━ TOAST ━━━ */
.jw-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
}
.jw-toast.show { transform: translateX(-50%) translateY(0); }

/* ━━━ MENU PAGE ━━━ */
.menu-hero {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, var(--black) 0%, var(--red-deep) 100%);
  text-align: center;
}
.menu-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.menu-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
}
.menu-hero .menu-note {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-top: 8px;
}
.menu-body {
  padding: 40px 0 80px;
  background: var(--cream);
}
.menu-category {
  margin-bottom: 48px;
}
.category-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.category-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}
.category-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--gray-600);
}
.price-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
}
.category-note {
  width: 100%;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
}
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.menu-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.item-info { flex: 1; }
.item-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
}
.item-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-style: italic;
  margin-left: 8px;
}
.spicy-badge {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  margin-left: 8px;
}
.item-price {
  font-weight: 700;
  color: var(--red);
  font-size: 1rem;
  white-space: nowrap;
  margin-right: 12px;
}
.item-add {
  flex-shrink: 0;
}

/* Menu navigation */
.menu-nav-bar {
  position: sticky;
  top: 68px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  overflow-x: auto;
}
.menu-nav-inner {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.menu-nav-link {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 100px;
  transition: var(--transition);
  text-decoration: none;
}
.menu-nav-link:hover {
  color: var(--red);
  background: rgba(200,16,46,0.08);
}

/* ━━━ ORDER PAGE ━━━ */
.order-hero {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, var(--black) 0%, var(--red-deep) 100%);
  text-align: center;
}
.order-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}
.order-hero p { color: rgba(255,255,255,0.7); }
.order-body {
  padding: 40px 0 80px;
  background: var(--cream);
}
.order-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}
.cart-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.cart-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.empty-cart {
  text-align: center;
  padding: 40px 20px;
}
.empty-cart .empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-cart p { color: var(--gray-500); margin-bottom: 16px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.cart-item-price {
  font-weight: 700;
  color: var(--red);
  font-size: 1rem;
}
.remove-btn {
  font-size: 0.8rem;
  color: var(--gray-500);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}
.remove-btn:hover { color: var(--red); }

/* Order summary sidebar */
.summary-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 100px;
}
.summary-section h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 12px;
  border-top: 2px solid var(--gray-300);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}
.delivery-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #856404;
}

/* Checkout form */
.checkout-form {
  margin-top: 24px;
}
.checkout-form h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.radio-group {
  display: flex;
  gap: 16px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}
.radio-group input { width: auto; }

/* Confirmation */
.confirm-hero {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  text-align: center;
}
.confirm-hero h1 { color: var(--white); }
.confirm-hero .confirm-check { font-size: 4rem; margin-bottom: 16px; }
.confirm-hero .confirm-ref {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
}
.confirm-body {
  padding: 40px 0 80px;
  background: var(--cream);
}

/* ━━━ RESPONSIVE ━━━ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .jw-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 2px solid var(--gold);
  }
  .jw-nav.open { display: flex; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .order-layout { grid-template-columns: 1fr; }
  .summary-section { position: static; }
  .menu-items-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
}
