/* ========================================
   Modern Krazy Kitchen Design
   ======================================== */

:root {
  /* Color Palette - Refined & Elegant */
  --primary: #d4a574;
  --primary-dark: #b8925f;
  --accent: #e8c896;
  --accent-light: #f5e6d3;
  --background: #fdfcfa;
  --surface: #ffffff;
  --text-primary: #2c2416;
  --text-secondary: #6b5d4f;
  --text-muted: #9a8b7b;
  --overlay: rgba(44, 36, 22, 0.6);
  --overlay-light: rgba(44, 36, 22, 0.3);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
  transition: all var(--transition-medium);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
  animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 36, 22, 0.7) 0%,
    rgba(44, 36, 22, 0.5) 50%,
    rgba(44, 36, 22, 0.6) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.hero-info {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-icon {
  font-size: 1.2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}

/* Mama Sue Photo Badge */
.mama-sue-badge {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: gentleFloat 4s ease-in-out infinite;
  opacity: 0;
  animation: fadeInFloat 0.6s ease-out 0.4s forwards, gentleFloat 4s ease-in-out 1s infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.mama-sue-badge img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
  background: var(--surface);
}

.mama-sue-badge:hover img {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 0 0 3px var(--accent-light),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.mama-sue-badge:hover .badge-label {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--accent-light);
  color: var(--accent);
}

/* Speech Bubble */
.speech-bubble {
  position: absolute;
  top: 10px;
  left: -140px;
  background: white;
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 2px var(--accent-light);
  opacity: 0;
  animation: bubblePopIn 0.4s ease-out 1s forwards, bubbleBounce 2s ease-in-out 1.4s infinite;
  pointer-events: none;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -11px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid var(--accent-light);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  z-index: -1;
}

@keyframes bubblePopIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bubbleBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-5px); }
}

.mama-sue-badge:hover .speech-bubble {
  animation: bubbleBounce 0.5s ease-in-out;
  opacity: 1;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   Containers
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   Sections
   ======================================== */

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ========================================
   About Section
   ======================================== */

.about {
  background: linear-gradient(to bottom, var(--background), var(--accent-light));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  justify-items: center;
}

.about-card {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
}

.about-card:hover {
  transform: scale(1.05);
}

.card-icon {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  background: var(--surface);
  position: relative;
}

.card-icon::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  opacity: 0.4;
  z-index: -1;
  filter: blur(25px);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

.about-card:nth-child(1) .card-icon { animation-delay: 0s; }
.about-card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.about-card:nth-child(3) .card-icon { animation-delay: 1s; }

/* ========================================
   Menu Section
   ======================================== */

.menu {
  background: var(--surface);
}

.menu-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  background: var(--surface);
}

.featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.featured-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-card:hover .featured-image img {
  transform: scale(1.1);
}

.featured-content {
  padding: var(--spacing-md);
}

.featured-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.featured-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
}

.featured-price {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
}

.featured-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.menu-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  background: var(--surface);
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.menu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.menu-card h4 {
  padding: var(--spacing-sm);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.menu-note {
  text-align: center;
  margin-top: var(--spacing-lg);
  color: var(--text-secondary);
}

.menu-note p {
  margin-bottom: 0.5rem;
}

.note-small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   Philosophy Section
   ======================================== */

.philosophy {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  text-align: center;
}

.philosophy-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.philosophy-item {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.philosophy-item p {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.thai-text {
  margin-top: var(--spacing-md);
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery {
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.gallery-large {
  grid-column: span 2;
  height: 400px;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ========================================
   Reviews Section
   ======================================== */

.reviews {
  background: var(--surface);
}

.reviews-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--accent-light);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.summary-rating,
.summary-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-divider {
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.3;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.review-card {
  background: var(--surface);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 165, 116, 0.1);
  transition: all var(--transition-medium);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.reviewer {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.review-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rating-stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.review-body {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.reviews-footer {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.error-text {
  text-align: center;
  color: var(--text-muted);
  padding: var(--spacing-md);
}

/* ========================================
   Visit Section
   ======================================== */

.visit {
  background: linear-gradient(to bottom, var(--background), var(--accent-light));
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.visit-details {
  display: grid;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.detail-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.detail-item p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.visit-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* ========================================
   PDF Menu Modal
   ======================================== */

.menu-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.menu-modal.active {
  display: block;
}

.menu-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 90vh;
  margin: 5vh auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
}

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

.menu-modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.menu-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.menu-modal-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
  text-align: center;
}

.menu-modal-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.menu-modal-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.menu-pdf-container {
  flex: 1;
  overflow: hidden;
  padding: var(--spacing-sm);
  background: #f5f5f5;
}

.menu-pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: white;
}

.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   One-Page Menu Modal
   ======================================== */

.onepage-menu-container {
  height: 100%;
  overflow-y: auto;
  padding: var(--spacing-lg);
  background: var(--background);
}

@media print {
  .menu-modal-close {
    display: none !important;
  }
  .onepage-menu-container {
    overflow: visible;
  }
  @page {
    margin: 1cm;
  }
}

.onepage-header {
  text-align: center;
  padding-bottom: var(--spacing-lg);
  border-bottom: 3px solid var(--primary);
  margin-bottom: var(--spacing-lg);
}

.onepage-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: var(--spacing-sm);
}

.onepage-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.onepage-tagline {
  font-style: italic;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.onepage-info {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
}

.onepage-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.onepage-category {
  break-inside: avoid;
}

.onepage-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.onepage-dishes {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.onepage-dish {
  display: flex;
  gap: 0.75rem;
  break-inside: avoid;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-light);
  transition: all var(--transition-fast);
}

.onepage-dish:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.onepage-dish img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.onepage-dish-info {
  flex: 1;
  min-width: 0;
}

.onepage-dish-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.onepage-dish h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.thai-name {
  font-family: 'Kanit', sans-serif;
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0;
}

.dish-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.dish-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
  line-height: 1.4;
}

.dish-extra {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0.25rem 0 0 0;
}

.dish-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dish-badge.must-try {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.dish-badge.spicy,
.dish-badge.hot {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.dish-badge.fav {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.onepage-footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--accent);
  text-align: center;
}

.onepage-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.onepage-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--spacing-sm);
  line-height: 1.6;
}

.onepage-thanks {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .gallery-large {
    grid-column: span 1;
    height: 300px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .menu-featured,
  .about-grid,
  .philosophy-grid,
  .menu-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    height: 300px;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Adjust about card images for mobile */
  .card-icon {
    width: 240px;
    height: 240px;
  }

  /* Make Mama Sue badge smaller and reposition on mobile */
  .mama-sue-badge {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

  .mama-sue-badge img {
    width: 70px;
    height: 70px;
    border-width: 2px;
  }

  .badge-label {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
  }

  /* Adjust speech bubble for mobile */
  .speech-bubble {
    left: -110px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .speech-bubble::after {
    border-left-width: 8px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    right: -6px;
  }

  .speech-bubble::before {
    border-left-width: 9px;
    border-top-width: 7px;
    border-bottom-width: 7px;
    right: -9px;
  }
}

@media (max-width: 480px) {
  .card-icon {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--spacing-sm);
  }

  .container,
  .container-wide {
    padding: 0 var(--spacing-sm);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-info {
    gap: var(--spacing-xs);
  }

  .info-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* PDF Modal Mobile Adjustments */
  .menu-modal-content {
    width: 95%;
    height: 95vh;
    margin: 2.5vh auto;
  }

  .menu-modal-header h2 {
    font-size: 1.5rem;
  }

  .menu-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
