/* =========================================================
   Recipe Index — Styles
   ========================================================= */

/* Hero */
.recipes-page .recipe-index-hero {
  background-color: #eef5f0;
  border-bottom: 1px solid #c8dfd0;
  margin-top: 220px;
  padding: 2rem 2rem 3rem;
  text-align: center;
}

.recipes-page .recipe-index-hero h1 {
  color: #1a2e24;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.recipes-page .recipe-index-hero h1 em {
  color: #3d6b55;
  font-style: italic;
}

.recipes-page .recipe-index-hero p {
  color: #3d5045;
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  margin: 0 auto;
  max-width: 560px;
}

/* Section wrapper */
.recipe-index-section {
  background-color: #f5faf7;
  min-height: 60vh;
  padding: 3rem 2rem 5rem;
}

/* Filters */
.recipe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 auto 3rem;
  max-width: 900px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #3d6b55;
  border-radius: 2rem;
  color: #3d5045;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.2rem;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #3d6b55;
  border-color: #3d6b55;
  color: #fff;
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1100px;
}

/* Recipe Card */
.recipe-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(26, 46, 36, 0.07);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.recipe-card:hover {
  box-shadow: 0 6px 24px rgba(26, 46, 36, 0.13);
  transform: translateY(-3px);
}

.recipe-card a {
  color: inherit;
  display: block;
  text-decoration: none;
}

.recipe-card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.recipe-card__image-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  width: 100%;
}

.recipe-card:hover .recipe-card__image-wrap img {
  transform: scale(1.04);
}

.recipe-card__body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.recipe-card__category {
  color: #3d6b55;
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.recipe-card__title {
  color: #1a2e24;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

/* Hidden cards (filtered out) */
.recipe-card.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-index-section {
    padding: 2rem 1.2rem 4rem;
  }
}
