/* ========================================
   Restaurant YuLan -- Design System
   ======================================== */

:root {
  /* Colors */
  --bg-primary: #0A0A0A;
  --bg-warm: #1A1714;
  --surface: #2A2520;
  --text-primary: #F5F0E8;
  --text-secondary: #C4B8A8;
  --text-muted: rgba(245, 240, 232, 0.4);
  --accent-gold: #C9A96E;
  --accent-gold-light: #E8D5A8;
  --sage: #8A9A8A;
  --border: rgba(245, 240, 232, 0.12);
  --overlay: rgba(10, 10, 10, 0.7);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-chinese: 'Noto Serif SC', serif;

  /* Spacing */
  --section-py: 120px;
  --container-max: 1200px;
  --nav-h: 80px;

  /* Animation */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-py) 0;
}

/* ===== SECTION HEADINGS ===== */
.section-label {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 16px;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-chinese {
  font-family: var(--font-chinese);
  font-size: 18px;
  color: var(--sage);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* ===== GOLD DIVIDER ===== */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 200px;
}

.gold-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.gold-divider__diamond {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s var(--ease-in-out);
}

.btn:hover::after {
  left: 100%;
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn--filled {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn--filled:hover {
  background: var(--accent-gold-light);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ===== CHINESE CORNER BRACKETS ===== */
.chinese-corner {
  position: relative;
}

.chinese-corner::before,
.chinese-corner::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent-gold);
  border-style: solid;
  opacity: 0.3;
  z-index: 2;
  transition: opacity 0.3s var(--ease), width 0.4s var(--ease-in-out), height 0.4s var(--ease-in-out);
}

.chinese-corner::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.chinese-corner::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}

.chinese-corner:hover::before,
.chinese-corner:hover::after {
  opacity: 0.7;
  width: 32px;
  height: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  .container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 64px;
  }

  .container {
    padding: 0 20px;
  }
}
