/* ===== RECIPE DETAIL PAGE STYLES ===== */

/* BREADCRUMB */
.recipe-back {
  display: block;
  margin-top: var(--nav-height);
  padding: 1rem 3rem;
  background: var(--warm-white);
  border-bottom: 0.5px solid var(--border);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--text-mid); text-decoration: none;
  transition: color .2s;
}
.recipe-back:hover { color: var(--terracotta); }

/* HERO */
.recipe-hero {
  position: relative;
  height: 62vh; min-height: 420px;
  overflow: hidden;
}
.recipe-hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.recipe-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,20,12,.7) 0%, rgba(30,20,12,.1) 55%, transparent 80%);
  display: flex; align-items: flex-end;
  padding: 3.5rem 3rem;
}
.recipe-hero-overlay .page-label { color: rgba(255,255,255,.8); margin-bottom: .6rem; }
.recipe-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300; color: #fff; line-height: 1.1;
}
.recipe-hero-title em { font-style: italic; color: var(--terracotta-light); }

/* META BAR */
.recipe-meta-bar {
  background: var(--cream);
  display: flex; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.meta-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 2.5rem; flex: 1;
  border-right: 0.5px solid var(--border);
  min-width: 110px;
}
.meta-item:last-child { border-right: none; }
.meta-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500; margin-bottom: .4rem;
}
.meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300; color: var(--text-dark);
  white-space: nowrap;
}

/* CONTENT LAYOUT */
.recipe-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1px; background: var(--border);
  margin: 3rem 3rem 4rem;
}

/* INGREDIENTS */
.recipe-ingredients {
  background: var(--cream);
  padding: 3rem 2.5rem;
}
.recipe-ingredients h2,
.recipe-steps h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 300; color: var(--text-dark);
  margin-bottom: 2rem;
  padding-bottom: .8rem; border-bottom: 0.5px solid var(--border);
}
.ingr-group { margin-bottom: 2rem; }
.ingr-group:last-child { margin-bottom: 0; }
.ingr-group h3 {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500; margin-bottom: .8rem;
}
.ingr-group ul { list-style: none; }
.ingr-group ul li {
  font-size: 14px; color: var(--text-mid); line-height: 1.7;
  padding: .38rem 0;
  border-bottom: 0.5px solid rgba(92,74,58,.07);
  display: flex; gap: .7rem; align-items: baseline;
}
.ingr-group ul li::before {
  content: '—'; color: var(--terracotta-light); flex-shrink: 0; font-size: 12px;
}

/* STEPS */
.recipe-steps {
  background: var(--warm-white);
  padding: 3rem;
}
.step-list { list-style: none; counter-reset: step-count; }
.step-list > li {
  counter-increment: step-count;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.2rem;
  margin-bottom: 2.2rem; align-items: start;
}
.step-list > li::before {
  content: counter(step-count);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 300; color: var(--terracotta);
  line-height: 1; padding-top: .1rem;
}
.step-list > li p { font-size: 15px; color: var(--text-mid); line-height: 1.9; }
.step-list > li strong { color: var(--text-dark); font-weight: 500; }

/* TIP */
.recipe-tip {
  margin-top: 2.5rem;
  background: var(--cream); padding: 1.6rem 2rem;
  border-left: 3px solid var(--sage);
}
.recipe-tip h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--text-dark); margin-bottom: .5rem;
}
.recipe-tip p { font-size: 13px; color: var(--text-mid); line-height: 1.85; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .recipe-content { grid-template-columns: 280px 1fr; margin: 2.5rem 2rem 4rem; }
}
@media (max-width: 968px) {
  .recipe-content { grid-template-columns: 1fr; margin: 2rem 2rem 4rem; }
  .recipe-hero { height: 55vw; min-height: 320px; }
  .recipe-hero-overlay { padding: 2.5rem 2rem; }
  .recipe-back { padding: 1rem 2rem; }
  .meta-item { padding: 1.2rem 1.5rem; }
}
@media (max-width: 640px) {
  .recipe-hero { min-height: 260px; }
  .recipe-content { margin: 1.5rem 1.2rem 3rem; }
  .recipe-ingredients { padding: 2rem 1.5rem; }
  .recipe-steps { padding: 2rem 1.5rem; }
  .recipe-back { padding: .8rem 1.2rem; font-size: 10px; }
  .meta-item { padding: 1rem .8rem; min-width: 90px; }
  .meta-value { font-size: 1.1rem; }
}
