/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff8f0;
  color: #333;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.8rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  color: #d35400 !important;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.back-link {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: #d35400;
}

/* ===== HERO SECTION ===== */
.hero, .recipe-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  height: 60vh;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.hero h1, .recipe-hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ===== RECIPES GRID ===== */
.recipes {
  padding: 4rem 1.5rem;
}

.recipes h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #d35400;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ===== RECIPE CARD ===== */
.recipe-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.recipe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.3rem;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #d35400;
}

.card-content p {
  color: #555;
  font-size: 0.95rem;
}

/* ===== VIDEO WRAPPER ===== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== RECIPE PAGE FLEX LAYOUT ===== */
.recipe-flex {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.recipe-video, .recipe-content {
  flex: 1 1 300px;
}

.recipe-content {
  padding: 0 0.5rem;
}

/* ===== HEADINGS ===== */
h2 {
  color: #d35400;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== LISTS ===== */
ul li, ol li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e67e22, #cf6f17);
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer, .site-footer {
  background-color: #f0e6dc;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

footer a, .site-footer a {
  color: #d35400;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover, .site-footer a:hover {
  text-decoration: underline;
}

/* ===== RECIPE METHOD TEXT ===== */
.fst-italic {
  font-style: italic;
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero, .recipe-hero {
    height: 50vh;
  }
  .hero h1, .recipe-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero h1, .recipe-hero h1 {
    font-size: 2.2rem;
  }
  .recipe-card img {
    height: 200px;
  }
}
