:root {
  --cream: #F5E8D0;
  --light-cream: #FAF3E6;
  --dark: #000000;
  --text: #1A1A1A;
  --muted: #666666;
  --border: #E8E8E8;
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px; /* Account for fixed header when scrolling to anchors */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.4;
  overflow-x: hidden;
  padding-top: 100px; /* Offset for fixed header */
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  background: transparent;
  position: relative;
}

/* Ensure menu section containers don't create white boxes */
.menu-section .container {
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

/* Header - Simple white */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 20px 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Menu Toggle Button (shown when > 5 categories or on mobile) */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.btn {
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
}

.btn:focus-visible {
  outline: 3px solid rgba(0,0,0,0.4);
  outline-offset: 4px;
}

/* Category Sidebar (for > 5 categories) */
.category-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.category-sidebar.active {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.category-sidebar.active ~ .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

.sidebar-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
}

.sidebar-close span {
  width: 20px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
  display: block;
}

.sidebar-close span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-close span:nth-child(2) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav-link {
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-nav-link:hover {
  background: var(--light-cream);
  border-color: var(--border);
}

/* Hero Section - Clean white background */
.hero {
  background: white;
  padding: 60px 0 100px; /* Reduced top padding since body has padding-top */
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

/* Hero left content */
.hero-left {
  padding-right: 40px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 14px;
}

.stars {
  color: #FFB800;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-text {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 20px;
}

.hero-buttons button:last-child {
  margin-top: 0;
}

/* Hero right - Image with overlapping card */
.hero-image-container {
  position: relative;
  height: 520px;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.hero-overlay-card {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
}

.overlay-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.overlay-stars {
  color: #FFB800;
  font-size: 20px;
  margin-bottom: 16px;
}

.overlay-btn {
  width: 100%;
  margin-top: 12px;
}

/* Menu Sections - Alternating layout */
.menu-section {
  padding: 0 0 80px; /* Remove top padding - spacing handled by margin */
  position: relative;
  background: transparent;
  overflow: visible;
  z-index: 2;
  margin-top: 160px; /* Spacing between sections */
  margin-bottom: 0;
}

.menu-section:first-of-type {
  margin-top: 60px; /* Less spacing for first section after hero */
}

/* Animation Keyframes */
@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromBottomDesktop {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

.menu-container {
  position: relative;
  min-height: 620px; /* Minimum height to accommodate fixed image */
  margin: 40px auto; /* Top and bottom margin to prevent touching section edges */
  max-width: 1200px;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0;
}

/* Default: Image on LEFT, Card on RIGHT (overlapping) */
.menu-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 620px; /* Fixed height - taller than minimum card */
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 1;
  margin-top: 0;
  opacity: 0; /* Initially hidden for animation */
}

.menu-card {
  position: absolute;
  left: 25%;
  right: 0;
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Center vertically */
  width: auto;
  min-width: 550px;
  max-width: 70%;
  min-height: 400px; /* Minimum card height */
  height: auto; /* Flexible height to fit content */
  background: var(--cream);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 60px rgba(0,0,0,0.02);
  z-index: 10;
  margin-top: 30px;
  margin-bottom: 30px;
  opacity: 0; /* Initially hidden for animation */
}

/* ALTERNATE: Image on RIGHT, Card on LEFT (overlapping) */
.menu-section.alternate .menu-image {
  left: auto;
  right: 0;
}

.menu-section.alternate .menu-card {
  left: 0;
  right: 25%;
  width: auto;
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Center vertically */
  z-index: 10;
}

/* Menu category specific styles */
.category-title {
  font-size: 28px; /* Larger on desktop */
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  text-align: left; /* Left aligned on desktop */
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.menu-item {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.item-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
}

.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.coming-soon {
  background: var(--dark);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}

.unavailable-badge {
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
  text-transform: uppercase;
}

.item-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.order-btn-container {
  text-align: left; /* Left aligned on desktop */
}

/* REDUCED Section spacing for mobile */
/* Section spacing now handled by .menu-section margin-top */

/* Visit Section - Now uses same card layout as menu */
.visit-section {
  padding: 100px 0;
  position: relative;
}

.visit-container {
  position: relative;
  height: 500px;
  margin: 0 auto;
  max-width: 1200px;
}

.visit-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 65%;
  height: 100%;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  opacity: 0; /* Initially hidden for animation */
}

.visit-card-content {
  position: absolute;
  right: 0;
  bottom: 50px;
  width: 500px;
  background: var(--cream);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 60px rgba(0,0,0,0.02);
  opacity: 0; /* Initially hidden for animation */
}

.visit-card-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.visit-text {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.map-links {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  font-size: 14px;
}

.map-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.map-links a:hover {
  color: var(--dark);
}

.map-footer {
  font-size: 12px;
  color: #999;
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Brand Footer - Full width cream */
.brand-footer {
  background: var(--cream);
  padding: 100px 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.brand-left h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0 24px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  font-size: 24px;
}

.social-icons a {
  text-decoration: none;
  color: var(--text);
}

.brand-right h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hours {
  margin: 24px 0;
}

.hours p {
  margin-bottom: 8px;
}

.address {
  margin-top: 32px;
  line-height: 1.5;
}

/* Main Footer */
.main-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--dark);
}

/* Large screens - ensure flexible overlap */
@media (min-width: 1400px) {
  .menu-card {
    left: 30%;
    max-width: 65%;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .menu-section.alternate .menu-card {
    right: 30%;
    max-width: 65%;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Desktop Animations - Images fade from left/right, Cards fade from bottom */
@media (min-width: 1025px) {
  .menu-image.animate-in {
    animation: fadeInFromLeft 0.8s ease-in-out forwards;
  }
  
  .menu-section.alternate .menu-image.animate-in {
    animation: fadeInFromRight 0.8s ease-in-out forwards;
  }
  
  /* Preserve vertical centering transform for desktop cards */
  .menu-card.animate-in {
    animation: fadeInFromBottomDesktop 0.8s ease-in-out forwards;
    animation-delay: 1s;
  }
  
  .menu-section.alternate .menu-card.animate-in {
    animation: fadeInFromBottomDesktop 0.8s ease-in-out forwards;
    animation-delay: 1s;
  }
  
  .visit-image.animate-in {
    animation: fadeInFromLeft 0.8s ease-in-out forwards;
  }
  
  .visit-card-content.animate-in {
    animation: fadeInFromBottom 0.8s ease-in-out forwards;
    animation-delay: 1s;
  }
}

/* Mobile Animations - Both fade from bottom, no delay */
@media (max-width: 1024px) {
  .menu-image.animate-in,
  .visit-image.animate-in {
    animation: fadeInFromBottom 0.8s ease-in-out forwards;
  }
  
  .menu-card.animate-in,
  .visit-card-content.animate-in {
    animation: fadeInFromBottom 0.8s ease-in-out forwards;
    /* No delay on mobile - triggers when entering viewport */
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-left {
    padding-right: 0;
  }
  
  .hero h1 {
    font-size: 48px;
  }
  
  .menu-container,
  .visit-container {
    min-height: auto;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 30px 0;
  }
  
  .menu-image,
  .visit-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 400px;
    margin: 0 auto -60px; /* Negative margin for overlap */
    order: 1;
    left: auto !important;
    right: auto !important;
  }
  
  .menu-card,
  .visit-card-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: -60px 0 30px 0;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    order: 2;
    min-width: 0;
    padding: 30px 24px;
    z-index: 10; /* Ensure card is above image */
    box-sizing: border-box;
  }
  
  /* Reset alternate positioning on mobile - ensure consistency */
  .menu-section.alternate .menu-image,
  .menu-section.alternate .menu-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
  
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .hero {
    padding: 40px 0 60px; /* Reduced since body has padding-top */
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .menu-container,
  .visit-container {
    margin: 30px 0;
  }
  
  .menu-card,
  .visit-card-content {
    width: 100%;
    max-width: 100%;
    margin: -60px 0 30px 0;
    padding: 30px 20px;
    box-sizing: border-box;
  }
  
  .menu-item-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .item-image {
    width: 70px;
    height: 70px;
    align-self: flex-start;
  }
  
  .hero-overlay-card {
    width: 200px;
    height: 200px;
    right: -20px;
    bottom: -20px;
  }
  
  .category-title {
    text-align: center; /* Center on mobile */
    font-size: 20px; /* Smaller on mobile */
  }
  
  .order-btn-container {
    text-align: center; /* Center on mobile */
  }
  
  .menu-section {
    padding: 80px 0 60px;
  }
  
  
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 20px;
    align-items: stretch;
    z-index: 1000;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a,
  .nav-links .btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
  }
  
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .visit-section {
    padding: 60px 0;
  }
  
  .visit-card-content h2 {
    font-size: 28px;
  }
  
  .brand-footer {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .menu-image,
  .visit-image {
    height: 300px;
    margin-bottom: -40px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .menu-container {
    margin: 50px 0;
  }
  
  .menu-card,
  .visit-card-content {
    width: 100%;
    max-width: 100%;
    margin: -40px 0 30px 0;
    padding: 24px 16px;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box;
  }
  
  .category-title {
    font-size: 18px; /* Even smaller on small mobile */
  }
  
  .item-image {
    width: 60px;
    height: 60px;
  }
  
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-links {
    top: 60px;
  }
  
  .hero {
    padding: 60px 0 40px; /* Reduced since body has padding-top */
  }
  
  .hero-overlay-card {
    width: 160px;
    height: 160px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
  }
  
  .overlay-title {
    font-size: 14px;
  }
  
  .overlay-stars {
    font-size: 16px;
  }
  
  .overlay-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .category-title {
    font-size: 18px;
  }
  
  .menu-section {
    padding: 60px 0 40px;
  }
  
}

@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .menu-image,
  .visit-image {
    margin-bottom: -20px;
  }
  
  .menu-card,
  .visit-card-content {
    padding: 24px 12px;
    margin: -40px 0 30px 0;
    box-sizing: border-box;
  }
  
}
