/* =============================================
   CANTON MA — AUTHENTIC CHINESE FOOD
   styles.css — Red & Gold Traditional Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Barlow:wght@300;400;500&display=swap');

/* === RESET & ROOT ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red:      #c41e3a;
  --red-dark: #8b0000;
  --red-deep: #6b0000;
  --gold:     #d4af37;
  --gold2:    #f0d060;
  --gold-dim: rgba(212,175,55,0.15);
  --cream:    #fdf6e3;
  --ink:      #1a0a00;
  --dark:     #1c0a00;
  --gray:     #7a6a5a;
  --border:   rgba(212,175,55,0.2);
  --white:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 15px;
}

/* === NAVBAR ================================ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 56px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(196, 30, 58, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(139,0,0,0.4);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--cream);
  line-height: 1;
}

.logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(253,246,227,0.8);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: 9px 22px;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold2) !important;
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--cream);
}

/* === HERO ================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(139,0,0,0.5) 0%,
    rgba(26,10,0,0.7) 60%,
    rgba(26,10,0,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 32px;
}

.hero-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 8px;
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(212,175,55,0.8);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(253,246,227,0.7);
  max-width: 520px;
  margin: 0 auto 44px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

/* Decorative lanterns */
.hero-lanterns {
  position: absolute;
  top: 80px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  z-index: 1;
  padding: 0 80px;
}

.lantern {
  width: 14px;
  height: 28px;
  background: var(--red);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 0 18px rgba(196,30,58,0.8), 0 0 40px rgba(196,30,58,0.3);
  animation: sway 3s ease-in-out infinite;
  opacity: 0.7;
}

.lantern:nth-child(2) { animation-delay: 0.5s; animation-duration: 3.5s; }
.lantern:nth-child(3) { animation-delay: 1s; animation-duration: 2.8s; }

@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* === BUTTONS =============================== */
.btn-primary {
  background: var(--red);
  color: var(--cream);
  padding: 15px 36px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: 1px solid rgba(212,175,55,0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 13px;
  color: rgba(253,246,227,0.75);
  text-decoration: none;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(212,175,55,0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline {
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  padding: 14px 36px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--red);
  color: var(--cream);
}

/* === DIVIDER BAR =========================== */
.divider-bar {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(212,175,55,0.3);
  border-bottom: 1px solid rgba(212,175,55,0.3);
}

.divider-item {
  font-size: 13px;
  color: var(--cream);
  letter-spacing: 1px;
  white-space: nowrap;
}

.divider-dot {
  color: var(--gold);
  font-size: 10px;
  opacity: 0.7;
}

/* === STATS ================================= */
.stats-bar {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-suffix {
  font-size: 16px;
  color: var(--gold);
  margin-left: 2px;
}

.stat-label {
  font-size: 11px;
  color: rgba(253,246,227,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
}

.stat-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* === SECTION COMMONS ======================= */
.section-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 6px;
  margin-bottom: 8px;
  text-align: center;
  opacity: 0.8;
}

.section-tag {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
  text-align: center;
}

.section-h2 {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}

.section-h2 em {
  font-style: italic;
  color: var(--red);
}

.section-sub {
  font-size: 15px;
  color: var(--gray);
  margin-top: 16px;
  font-weight: 300;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 56px;
}

/* === MENU ================================== */
.menu-section {
  padding: 100px 64px;
  background: var(--cream);
}

.menu-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 48px;
  border-bottom: 2px solid rgba(196,30,58,0.15);
}

.tab-btn {
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font-family: 'Barlow', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
  min-height: 300px;
}

.menu-card {
  background: var(--white);
  border: 1px solid rgba(196,30,58,0.1);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(212,175,55,0.15);
}

.menu-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.menu-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.menu-card:hover .menu-img-wrap img {
  transform: scale(1.06);
}

.menu-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--cream);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-card-badge.gold-badge {
  background: var(--gold);
  color: var(--ink);
}

.menu-body {
  padding: 22px 24px;
}

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.menu-name {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.menu-name-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--red);
  opacity: 0.7;
  margin-bottom: 6px;
}

.menu-price {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--red);
}

.menu-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 300;
}

.menu-cta { text-align: center; }

/* === ABOUT ================================= */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--ink);
}

.about-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .section-tag { text-align: left; }
.about-content .section-h2 { text-align: left; color: var(--cream); }

.about-content p {
  font-size: 15px;
  color: rgba(253,246,227,0.65);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 16px;
  margin-top: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.value-item {
  background: rgba(212,175,55,0.06);
  border: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.value-item:hover { border-color: var(--gold); }

.value-icon { font-size: 24px; margin-bottom: 10px; }

.value-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 6px;
}

.value-desc {
  font-size: 11px;
  color: rgba(253,246,227,0.45);
  line-height: 1.6;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}

.about-img { overflow: hidden; }

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.95);
  transition: transform 0.5s;
}

.about-img:hover img { transform: scale(1.04); }
.main-img { grid-row: 1 / 3; }

/* === GALLERY =============================== */
.gallery-section {
  padding: 100px 64px;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 4px;
  margin-top: 56px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s;
  filter: brightness(0.9) saturate(0.95);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.1);
}

.gallery-item.tall { grid-row: 1 / 3; }
.gallery-item.wide { grid-column: 2 / 4; }

/* === TESTIMONIALS ========================== */
.testi-section {
  padding: 100px 64px;
  background: var(--red-deep);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(212,175,55,0.04) 40px,
    rgba(212,175,55,0.04) 41px
  );
}

.testi-section .section-h2 { color: var(--cream); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 40px 32px;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}

.testi-card:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
}

.testi-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testi-text {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.8;
  color: rgba(253,246,227,0.85);
  margin-bottom: 28px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
}

.testi-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}

.testi-source {
  font-size: 11px;
  color: rgba(212,175,55,0.6);
  margin-top: 3px;
}

/* === RESERVATION =========================== */
.reserve-section {
  position: relative;
  background: var(--ink);
  padding: 100px 64px;
  overflow: hidden;
}

.reserve-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(212,175,55,0.03) 0, rgba(212,175,55,0.03) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(212,175,55,0.03) 0, rgba(212,175,55,0.03) 1px, transparent 0, transparent 50%);
  background-size: 24px 24px;
}

.reserve-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.reserve-sub {
  font-size: 14px;
  color: rgba(253,246,227,0.55);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 300;
}

.reserve-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reserve-form input,
.reserve-form select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--cream);
  padding: 14px 16px;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  border-radius: 2px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.reserve-form input::placeholder { color: rgba(253,246,227,0.35); }
.reserve-form select option { background: var(--ink); color: var(--cream); }

.reserve-form input:focus,
.reserve-form select:focus {
  border-color: var(--gold);
}

.reserve-form .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  background: var(--red);
}

.form-success {
  font-size: 13px;
  color: var(--gold);
  text-align: center;
  min-height: 20px;
  margin-top: 4px;
}

.reserve-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.info-item {
  font-size: 13px;
  color: rgba(253,246,227,0.5);
  letter-spacing: 0.3px;
}

/* === FOOTER ================================ */
.footer {
  background: #0d0500;
  border-top: 2px solid var(--red);
  padding: 64px 64px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(253,246,227,0.45);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-socials a {
  text-decoration: none;
  color: rgba(253,246,227,0.4);
  font-size: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(212,175,55,0.15);
  padding: 5px 12px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 13px;
  color: rgba(253,246,227,0.4);
  line-height: 2;
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(253,246,227,0.3);
}

/* === ANIMATIONS ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.tall { grid-row: auto; }
  .gallery-item.wide { grid-column: auto; }
}

@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; }
  .about-img-grid { height: 320px; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 32px; padding: 40px 24px; }
  .stat-sep { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .hero-content { padding: 0 24px; }
  .hero-h1 { font-size: 44px; }
  .menu-section, .testi-section, .gallery-section, .reserve-section { padding: 72px 24px; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .menu-tabs { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-content { padding: 48px 24px; }
  .reserve-info { flex-direction: column; align-items: center; }
  .divider-bar { gap: 12px; padding: 12px 24px; }
  .hero-lanterns { display: none; }
}
