/* ==== CSS Variables ==== */
:root {
  --color-primary: #2d5f4f;
  --color-primary-dark: #234639;
  --color-primary-light: rgba(45, 95, 79, 0.1);
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb; /* gray-50 */
  --color-text: #1f2937; /* gray-800 */
  --color-text-muted: #4b5563; /* gray-600 */
  --color-border: #e5e7eb;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==== Base Styles ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul { list-style: none; }

/* ==== Typography Utilities ==== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-white { color: #fff; }
.text-muted { color: var(--color-text-muted); }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

/* ==== Layout Utilities ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm { max-width: 800px; }
.container-md { max-width: 900px; }
.container-lg { max-width: 1000px; }

.section { padding: 4rem 0; }
.bg-alt { background-color: var(--color-bg-alt); }
.bg-primary { background-color: var(--color-primary); color: #fff; }
.bg-primary-light { background-color: var(--color-primary-light); }

.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ==== Components ==== */

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-outline-white {
  border-color: #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background-color: #fff;
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease forwards;
}

.hero-content p {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  margin-top: 2rem;
  animation: fadeUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

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

/* Page Hero */
.page-hero {
  height: 400px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}

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

.icon-box {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary);
  font-size: 2rem;
  transition: transform var(--transition-normal);
}

.card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

/* Prose/Content */
.prose {
  margin-bottom: 3rem;
}
.prose p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

/* Footer */
footer {
  background-color: var(--color-text);
  color: #fff;
  padding: 4rem 0 2rem;
}
footer h3 {
  color: #fff;
}
footer a {
  color: #9ca3af;
}
footer a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #9ca3af;
}

/* Utilities for decorative blocks */
.rounded-lg { border-radius: 0.5rem; }
.overflow-hidden { overflow: hidden; }

/* Image zoom effect */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.5s ease;
}
.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* Menu Specific */
.menu-section {
  background: #fff;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.menu-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.menu-item-price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.125rem;
  margin-left: 1rem;
  white-space: nowrap;
}
.menu-item-allergens {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* Margin/Padding Utility Helpers (mimicking tailwind but limited) */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

/* Responsive Adjustments */
@media (max-width: 640px) {
  .hero { height: 400px; }
  .page-hero { height: 300px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .section { padding: 2rem 0; }
  
  footer .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .menu-item-header {
    flex-direction: column;
  }
  .menu-item-price {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
