/* 
  Global Design System - Food Business App 
  Theme: Warm Hospitality, Authentic, Appetizing
*/

:root {
  /* Color Palette - Warm Food */
  --bg-body: #FDFBF7;
  /* Warm Cream */
  --bg-card: #ffffff;
  --primary-color: #d35400;
  /* Burnt Orange/Saffron - Very Appetizing */
  --primary-hover: #e67e22;
  --secondary-color: #2c3e50;
  /* Dark Slate for Text */
  --accent-color: #f1c40f;
  /* Golden Yellow for Stars/Highlights */

  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
  --text-light: #ecf0f1;

  /* Typography */
  --font-family: 'Open Sans', sans-serif;
  /* Clean, Readable */
  --font-heading: 'Merriweather', serif;
  /* Classic Hospitality Feel */
  --font-brand: 'Playball', cursive;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows - Soft & Elegant */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-weight: 700;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* Buttons - Classic & Solid */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 4px;
  /* Less rounded, more classic */
  font-family: var(--font-family);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(211, 84, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  transition: 0.4s;
  padding: 15px 5%;
}

.nav-logo {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  color: var(--primary-color);
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  font-family: var(--font-heading);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Underline Effect for Nav Links - Tricolor Gradient */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  /* Saffron, White, Green Gradient */
  background: linear-gradient(90deg, var(--color-saffron) 33%, #fff 33%, #fff 66%, var(--color-green) 66%);
  transition: width 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Tricolour Border Top for Cards/Sections */
.tricolor-top {
  border-top: 4px solid;
  border-image: linear-gradient(to right, var(--color-saffron), #fff, var(--color-green)) 1;
}


/* Tricolour Border Top for Cards/Sections */
.tricolor-top {
  border-top: 4px solid;
  border-image: linear-gradient(to right, var(--color-saffron), #fff, var(--color-green)) 1;
}


.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* Cards - Restaurant Style */
.glass-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: 0.4s;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Menu Item Cards */
.menu-item-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.4s;
  border: 1px solid #eee;
}

.menu-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.menu-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.menu-details {
  padding: 20px;
  text-align: center;
}

.menu-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.menu-price {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 10px 0;
}

/* Layout Utils */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.grid {
  display: grid;
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Hero Section Specifics */
.hero-content {
  z-index: 2;
}

.hero-title {
  color: var(--secondary-color);
  text-shadow: none;
  /* Clean text */
}

/* Section Headings */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
  color: var(--secondary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}


@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    /* Desktop full menu */
  }

  .menu-toggle {
    display: block !important;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero {
    padding: 100px 0 40px !important;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Mobile Side Menu Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: white;
  z-index: 2000;
  padding: 80px 30px;
  transition: 0.4s;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .nav-link {
  font-size: 1.2rem;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.overlay.active {
  display: block;
}

/* App Bottom Navigation (Premium Native Feel) */
.app-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  /* Ensure it's above everything */
  height: 70px;
}

.app-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748b;
  /* Slate-500 */
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.app-bottom-nav-item i {
  font-size: 1.4rem;
  color: #94a3b8;
  /* Slate-400 */
  transition: transform 0.3s;
}

.app-bottom-nav-item.active {
  color: var(--primary-color);
}

.app-bottom-nav-item.active i {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.app-bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 0 0 4px 4px;
}

.app-bottom-nav-item:active {
  transform: scale(0.9);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px !important;
    /* Space for the bottom nav */
  }

  .app-bottom-nav {
    display: flex !important;
  }

  /* Restore toggle visibility */
  #mobile-toggle-btn,
  #sidebar-toggle-btn,
  .mobile-toggle {
    display: flex !important;
  }

  .mobile-nav:not(.app-bottom-nav) {
    display: flex;
  }
}