/* =========================================
   Cơm Lam — Asiatische Küche & Sushi Bar
   Design System: "The Ancestral Gallery"
   ========================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Surface Hierarchy */
  --surface:                #050505;
  --surface-dim:            #0a0a0a;
  --surface-container-lowest:#050505;
  --surface-container-low:  #0d0d0d;
  --surface-container:      #121212;
  --surface-container-high: #1a1a1a;
  --surface-container-highest:#353535;
  --surface-bright:         #222222;
  --surface-variant:        #1a1a1a;

  /* Brand Colors */
  --primary:                #D4AF37;
  --primary-container:      #D4AF37;
  --primary-fixed:          #ffe088;
  --primary-fixed-dim:      #D4AF37;
  --on-primary:             #000000;

  --secondary:              #D32F2F;
  --secondary-container:    #D32F2F;
  --tertiary:               #D32F2F;
  --tertiary-fixed-dim:     #FBB3C1;

  /* Text Colors */
  --on-surface:             #e5e2e1;
  --on-surface-variant:     #d0c5af;
  --on-background:          #e5e2e1;

  /* Outline */
  --outline:                #99907c;
  --outline-variant:        #4d4635;

  /* Fonts */
  --font-headline:          'Noto Serif', serif;
  --font-body:              'Inter', sans-serif;

  /* Border Radius */
  --radius-sm:              0.125rem;
  --radius-md:              0.375rem;
  --radius-lg:              0.5rem;
  --radius-xl:              0.75rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-body);
  outline: none;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Typography ---------- */
.font-headline { font-family: var(--font-headline); }
.font-body     { font-family: var(--font-body); }

.label-md {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Utility: Glass Morphism ---------- */
.glass-morphism {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(32, 32, 31, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.glass-button {
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.glass-button:hover {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

/* ---------- Utility: Bamboo Lattice Pattern ---------- */
.bamboo-lattice {
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.05;
}

/* ---------- Utility: Lantern Glow ---------- */
.lantern-glow {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}

/* ---------- Utility: Red Sun Logo ---------- */
.red-sun-logo {
  background: radial-gradient(circle, var(--secondary) 60%, transparent 60%);
}

/* ---------- Navigation ---------- */
.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 50%;
  overflow: hidden;
}

.nav-logo-text h1 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.05em;
  line-height: 1;
}

.nav-logo-text span {
  font-size: 0.625rem;
  color: rgba(229, 226, 225, 0.6);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(229, 226, 225, 0.8);
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-links { 
    display: none !important; /* Force hide unless mobile-active */
  }
  .nav-toggle { display: block; }
  
  /* Mobile Menu Drawer */
  .nav-links.mobile-active {
    display: flex !important;
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 5rem);
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    z-index: 100;
    animation: slideInLeft 0.4s ease forwards;
  }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  border: 1px solid rgba(77, 70, 53, 0.3);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  background: var(--surface-container-low);
}
.lang-switcher span { cursor: pointer; transition: color 0.3s ease; }
.lang-switcher .active-lang { color: var(--primary); }
.lang-switcher .divider { color: rgba(229, 226, 225, 0.2); cursor: default; }
.lang-switcher .inactive-lang { color: rgba(229, 226, 225, 0.4); }
.lang-switcher .inactive-lang:hover { color: var(--on-surface); }

/* ---------- Buttons ---------- */
.btn-primary {
  background-color: var(--primary);
  color: #000;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #fff;
}

.btn-ghost {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background-color: var(--primary);
  color: #000;
}

.btn-sm {
  background-color: var(--primary);
  color: #000;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-sm:hover { background: #fff; }
.btn-sm:active { transform: scale(0.95); }

/* ---------- Section ---------- */
.section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .label {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

/* ---------- Cards ---------- */
.dish-card {
  background: var(--surface-container-low);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(77, 70, 53, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dish-card-img {
  height: 16rem;
  overflow: hidden;
  position: relative;
}
.dish-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.dish-card:hover .dish-card-img img {
  transform: scale(1.1);
}

.dish-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--tertiary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.15em;
  border-radius: 9999px;
  text-transform: uppercase;
}
.dish-card-badge.gold {
  background: var(--primary);
  color: #000;
}

.dish-card-body {
  padding: 2rem;
}
.dish-card-body h3 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.dish-card-body p {
  color: rgba(229, 226, 225, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  background: var(--surface-container-lowest);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 5rem 3rem;
  max-width: 80rem;
  margin: 0 auto;
}
.footer-bottom {
  border-top: 1px solid rgba(229, 226, 225, 0.05);
  padding: 2.5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.6875rem;
  color: rgba(229, 226, 225, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ---------- Selection ---------- */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--primary);
}

/* ---------- Animations ---------- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .specialties-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bento-info-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-content h1 { font-size: 3.5rem !important; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  
  /* Website specific adjustments */
  .hero-content { padding: 0 1.5rem; }
  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0.75rem 1rem; }
  .nav-logo-text h1 { font-size: 1.125rem; }
  .nav-logo-text span { display: none; }
  .nav-actions .btn-sm { padding: 0.5rem 1rem; font-size: 0.625rem; }
  
  .section { padding: 3rem 1rem; }
  .section-header h2 { font-size: 1.75rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  
  /* Flex/Grid Stack */
  .responsive-stack { flex-direction: column !important; }
  .responsive-grid-1 { grid-template-columns: 1fr !important; }
  
  .specialties-grid { grid-template-columns: 1fr !important; }
  .bento-info-grid { grid-template-columns: 1fr !important; }
  .bento-main-card { min-height: 300px !important; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-ghost { width: 100%; text-align: center; padding: 0.875rem 1.5rem; font-size: 0.75rem; }
  .hero-actions { flex-direction: column; width: 100%; }
}
