/* ======================================================
   🥗 CloudKitchen — Tiffin Service (Modernized)
====================================================== */

/* --- General Layout & Container --- */
section {
  margin: 4rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Section Titles --- */
.section-title,
.faq-section h3,
.weekly-menu h3 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

/* ======================================================
   🌿 Tiffin Features
====================================================== */
.tiffin-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.feature {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 1.8rem 1.2rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.feature i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.feature h4 {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.9rem;
  color: #666;
}

/* ======================================================
   🍱 Tiffin Plans Section
====================================================== */
.plans-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.plan-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 2rem 1.4rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.plan-card.popular {
  border: 2px solid var(--color-primary);
}

.plan-card .badge {
  position: absolute;
  top: 10px;
  right: 15px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.plan-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--color-secondary);
}

.plan-card .subtitle {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Price Box */
.price-box {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price {
  color: var(--color-primary);
  font-size: 1.7rem;
  font-weight: 700;
}

.old-price {
  color: #aaa;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.discount-text {
  color: #16a34a;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.meal-badge {
  background: rgba(255, 102, 0, 0.1);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.duration {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Plan Feature List */
.plan-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.plan-card ul li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
}

.plan-card ul li i {
  color: var(--color-primary);
  margin-right: 8px;
}

/* Subscribe Button */
.subscribe-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  transform: translateY(-2px);
}

/* ======================================================
   🍛 Weekly Menu
====================================================== */
.weekly-menu {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  padding: 3rem 1rem;
  margin: 4rem auto;
  max-width: 1200px;
}

.weekly-menu .section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

/* === Layout === */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

.menu-text,
.menu-photo {
  width: 100%;
  height: 100%;
}

/* --- Left Column (Text Area) --- */
.menu-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.menu-box {
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1.8rem;
}

.menu-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 0.5rem;
}

.menu-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-box li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* --- Right Column (Image) --- */
.menu-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: #fff;
}

.menu-photo img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
}

/* ======================================================
   💬 FAQ Section
====================================================== */
.faq-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: 1.2rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.faq-question {
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.3rem;
}

.faq-answer {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ======================================================
   📱 Responsive Adjustments
====================================================== */

@media (max-width: 992px) {
  .plans-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .menu-photo {
    order: -1; /* Image on top for tablets */
  }

  .menu-photo img {
    max-height: 400px;
  }
}

@media (max-width: 600px) {
  .weekly-menu {
    padding: 2rem 1rem;
  }

  .menu-box {
    padding: 1.2rem;
  }

  .menu-box h4 {
    font-size: 1rem;
  }

  .menu-box li {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .plans-section {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 1.2rem;
  }
  .subscribe-btn {
    width: 100%;
  }
}
