/* ============================================================
   FlavorDash - Premium Food Delivery Website
   Complete CSS Stylesheet
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --primary: #ff6b35;
  --primary-light: #ff8c5a;
  --primary-dark: #e55a2b;
  --secondary: #fbbf24;
  --accent: #06d6a0;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;

  /* Backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a1f2e;
  --bg-card: #1c2333;
  --bg-card-hover: #252d40;

  /* Text */
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders & Glass */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.25);
  --shadow-glow-accent: 0 0 30px rgba(6, 214, 160, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b35, #ff416c);
  --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #fbbf24 100%);
  --gradient-cool: linear-gradient(135deg, #06d6a0, #3b82f6);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 80px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--navbar-height);
}

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

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

ul {
  list-style: none;
}

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

input,
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.star-rating {
  color: var(--secondary);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 1001;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .logo-icon {
  font-size: 1.8rem;
  margin-right: 6px;
}

/* Checkbox hack for mobile menu */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cart {
  position: relative;
  font-size: 1.3rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-cart:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite reverse;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Search Bar */
.hero-search {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px;
  margin-bottom: 44px;
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.hero-search .search-icon {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero-search input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 14px 0;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search .btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Hero Image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.hero-image-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-primary);
  padding: 5px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Floating elements around hero image */
.floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 30px;
  right: -10px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 60px;
  left: -20px;
  animation-delay: 1.5s;
}

.floating-card.card-3 {
  bottom: 180px;
  right: -30px;
  animation-delay: 3s;
}

.floating-card .float-icon {
  font-size: 1.6rem;
}

.floating-card .float-text {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.floating-card .float-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== PARTNERS BAR ===== */
.partners {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--glass-bg);
}

.partners-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 28px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-item {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.partner-item:hover {
  opacity: 0.8;
  color: var(--text-secondary);
}

.partner-item .p-icon {
  font-size: 1.6rem;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
  padding: 100px 0;
  background: var(--bg-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
  transition: var(--transition-bounce);
}

.category-card:hover .category-icon {
  transform: scale(1.15);
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== POPULAR DISHES SECTION ===== */
.popular-dishes {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.dish-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

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

/* Emoji-based dish images for cards without photos */
.dish-image-emoji {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dish-image-emoji .emoji-icon {
  font-size: 4.5rem;
  z-index: 1;
  transition: var(--transition-bounce);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.dish-card:hover .emoji-icon {
  transform: scale(1.15) rotate(-5deg);
}

.dish-image-emoji.bg-burger {
  background: linear-gradient(135deg, #ff8c42, #d4651e);
}
.dish-image-emoji.bg-pizza {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.dish-image-emoji.bg-sushi {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}
.dish-image-emoji.bg-indian {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.dish-image-emoji.bg-salad {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.dish-image-emoji.bg-dessert {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}
.dish-image-emoji.bg-noodles {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.dish-image-emoji.bg-bowl {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.dish-badge.popular {
  background: var(--gradient-primary);
  color: white;
}

.dish-badge.new {
  background: var(--gradient-cool);
  color: white;
}

.dish-badge.sale {
  background: var(--gradient-purple);
  color: white;
}

.dish-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  transition: var(--transition);
  cursor: pointer;
}

.dish-wishlist:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.dish-info {
  padding: 20px;
}

.dish-restaurant {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.dish-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.dish-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dish-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dish-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-light);
}

.dish-price .old-price {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.btn-add-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  border: none;
  cursor: pointer;
}

.btn-add-cart:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-hover),
    var(--primary),
    var(--border-hover),
    transparent
  );
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:nth-child(1) .step-number {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.15),
    rgba(255, 107, 53, 0.05)
  );
  border: 2px solid rgba(255, 107, 53, 0.3);
}

.step-card:nth-child(2) .step-number {
  background: linear-gradient(
    135deg,
    rgba(6, 214, 160, 0.15),
    rgba(6, 214, 160, 0.05)
  );
  border: 2px solid rgba(6, 214, 160, 0.3);
}

.step-card:nth-child(3) .step-number {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(139, 92, 246, 0.05)
  );
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.step-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SPECIAL OFFERS ===== */
.offers {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offer-card {
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

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

.offer-card.offer-primary {
  background: var(--gradient-primary);
}

.offer-card.offer-cool {
  background: var(--gradient-cool);
}

.offer-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.offer-card::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.offer-discount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.offer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.offer-text {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 300px;
  position: relative;
  z-index: 1;
}

.offer-code {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

.offer-emoji {
  position: absolute;
  right: 30px;
  bottom: 30px;
  font-size: 5rem;
  opacity: 0.3;
  z-index: 0;
}

/* ===== RESTAURANTS SECTION ===== */
.restaurants {
  padding: 100px 0;
  background: var(--bg-primary);
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.restaurant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.restaurant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.restaurant-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.restaurant-cover .cover-emoji {
  font-size: 4rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: var(--transition-bounce);
}

.restaurant-card:hover .cover-emoji {
  transform: scale(1.1);
}

.restaurant-cover.cover-burger {
  background: linear-gradient(135deg, #ff8c42 0%, #b85c1e 100%);
}
.restaurant-cover.cover-pizza {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
}
.restaurant-cover.cover-sushi {
  background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
}
.restaurant-cover.cover-indian {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}
.restaurant-cover.cover-mexican {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}
.restaurant-cover.cover-dessert {
  background: linear-gradient(135deg, #ec4899 0%, #9d174d 100%);
}

.restaurant-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary);
}

.restaurant-info {
  padding: 20px;
}

.restaurant-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.restaurant-cuisine {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.restaurant-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.restaurant-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-stats .rating {
  color: var(--secondary);
  font-weight: 700;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.04) 0%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-stars {
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.avatar-1 {
  background: var(--gradient-primary);
}
.avatar-2 {
  background: var(--gradient-cool);
}
.avatar-3 {
  background: var(--gradient-purple);
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CTA / NEWSLETTER SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.cta-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  position: relative;
  z-index: 1;
}

.cta-text {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.cta-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.cta-form input {
  flex: 1;
  padding: 14px 24px;
  background: transparent;
  color: white;
  font-size: 0.95rem;
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form .btn-cta {
  padding: 14px 32px;
  background: white;
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cta-form .btn-cta:hover {
  background: var(--text-primary);
  transform: scale(1.03);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-feature .check-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-item .contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-light);
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scroll-triggered fade-in using CSS */
.fade-in-section {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
  :root {
    --container-max: 960px;
  }

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

  .hero-image-wrapper {
    width: 380px;
    height: 380px;
  }

  .dishes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Tablets */
@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  /* Mobile Menu */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 32px;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-slow);
    z-index: 999;
  }

  .menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  .menu-toggle:checked ~ .hamburger .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle:checked ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

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

  /* Mobile Overlay */
  .menu-toggle:checked ~ .nav-overlay {
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }

  .floating-card {
    display: none;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 8px;
  }

  .hero-search .search-icon {
    display: none;
  }

  .hero-search input {
    padding: 14px 16px;
    text-align: center;
  }

  .hero-search .btn {
    width: 100%;
    border-radius: var(--radius-md);
  }

  /* Categories */
  .categories {
    padding: 60px 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-card {
    padding: 24px 16px;
  }

  .category-icon {
    font-size: 2.2rem;
  }

  /* Dishes */
  .popular-dishes {
    padding: 60px 0;
  }

  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* How It Works */
  .how-it-works {
    padding: 60px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-grid::before {
    display: none;
  }

  .step-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
  }

  /* Offers */
  .offers {
    padding: 60px 0;
  }

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

  .offer-card {
    padding: 36px 28px;
  }

  /* Restaurants */
  .restaurants {
    padding: 60px 0;
  }

  .restaurant-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Testimonials */
  .testimonials {
    padding: 60px 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 0;
  }

  .cta-card {
    padding: 50px 28px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .cta-form input {
    text-align: center;
  }

  .cta-form .btn-cta {
    border-radius: var(--radius-md);
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 40px;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
  }

  .partners-grid {
    gap: 24px;
  }

  .partner-item {
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-stat .stat-value {
    font-size: 1.4rem;
  }

  .hero-image-wrapper {
    width: 220px;
    height: 220px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 20px 12px;
  }

  .category-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .category-name {
    font-size: 0.85rem;
  }

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

  .dish-image,
  .dish-image-emoji {
    height: 180px;
  }

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

  .offer-discount {
    font-size: 2.2rem;
  }

  .offer-title {
    font-size: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 0.95rem;
  }

  .partners {
    padding: 30px 0;
  }

  .partners-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===== SCROLL-TO-TOP BUTTON (CSS-only with :target) ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transition: var(--transition);
  z-index: 100;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(255, 107, 53, 0.4);
}

/* ===== DECORATIVE ELEMENTS ===== */
.bg-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-decoration.dec-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.06) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
}

.bg-decoration.dec-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(6, 214, 160, 0.04) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .scroll-top,
  .hero-search,
  .cta-section {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-title {
    color: black;
  }
}
