/* home.css — page-specific styles only. Shared styles are in shared.css */

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 90vh;
  background: url("https://images.unsplash.com/photo-1604908176997-4319d99b0e4a")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(35%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 700px;
}

.hero-badge {
  background: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 500;
  display: inline-block;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.05;
}

.highlight_main {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.highlight {
  color: var(--primary);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

.hero h2 span {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  color: white;
  font-family: cursive;
  font-weight: 300;
}

/* ================= SPECIAL SECTION ================= */

.special {
  padding: 80px 0;
  background: var(--white);
}

.special-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
}

.special-image {
  position: relative;
  flex: 1;
  min-width: 0;
}

.special-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  height: clamp(300px, 50vw, 500px);
  object-fit: cover;
  transition: var(--transition);
}

.special-image img:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.chef-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  padding: 6px 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: white;
  font-family: cursive;
  letter-spacing: 0.5px;
}

.special-content {
  flex: 1;
  min-width: 0;
}

.special-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.2;
}

.special-content p {
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #444;
  margin-bottom: 16px;
  line-height: 1.7;
}

.price {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.current {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  color: var(--primary);
}

.old {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 1rem;
}

/* ================= MENU SECTION ================= */

.menu-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
}

.section-header p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--gray);
  margin-top: 8px;
}

.divider {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 16px auto;
  border-radius: 2px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.menu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.menu-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
}

.menu-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.menu-price {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.featured-list {
  min-height: 200px;
  display: grid;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.featured-list-items {
  font-size: 0.98rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
  word-break: break-word;
  min-width: 0;
}
.featured-list-items::before {
  content: "•";
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1rem;
}
.Home-items-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  margin: 4px 0;
  padding: 0;
  flex: 1;
  list-style: none;
  width: 100%;
}

.Home-list-items {
  font-size: 0.78rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
  word-break: break-word;
  min-width: 0;
}

.Home-list-items::before {
  content: "•";
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.6rem;
  margin-top: 2px;
}

.Home-items-list:has(li:nth-child(4)) {
  grid-template-columns: repeat(2, 1fr);
}

/* Full Menu Button */
.full-menu-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.full_menu {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 28px;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
  display: inline-block;
}

.full_menu:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   RESPONSIVE — Home-specific
   ============================================= */

@media (max-width: 1024px) {
  .special-wrapper {
    gap: 40px;
  }

  .special-content h2 {
    font-size: 2rem;
  }
}

/* ---- Small Tablet / Large Mobile (max 768px) ---- */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links,
  .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 60px 0 50px;
    align-items: flex-start;
  }

  /* Special */
  .special {
    padding: 60px 0;
  }

  .special-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .special-image img {
    height: 280px;
  }

  .special-content h2 {
    font-size: 1.75rem;
  }

  /* Menu */
  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .menu-card img {
    height: 180px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ---- Mobile (max 480px) ---- */
@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: 50px 0 40px;
  }

  .special {
    padding: 50px 0;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .full-menu-wrapper {
    justify-content: center;
  }
}

/* ================= ADD TO CART BUTTONS (home page) ================= */

.btn-dark {
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.btn-dark:hover {
  background: black;
}

.btn-dark.large {
  padding: 14px 36px;
  font-size: 16px;
}

.add-to-cart {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Plus Jakarta Sans", sans-serif;
  flex: 1;
}

.btn-add:hover {
  background: var(--primary-dark);
}

.btn-add.added {
  background: #1a5e02;
}

.card-qty-wrap {
  display: none;
  align-items: center;
  gap: 6px;
}

.card-qty-wrap.visible {
  display: flex;
}

.card-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.card-qty-btn:hover {
  background: var(--primary);
  color: white;
}

.card-qty-num {
  font-weight: 700;
  font-size: 14px;
  min-width: 18px;
  text-align: center;
}

/* ================= TOAST ================= */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e1e1e;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  transition: transform 0.3s ease;
  white-space: nowrap;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}
