/* ========================
   recipes.css
======================== */

/* Page background */
body.recipes-page {
  background-color: #fff8f0;
  font-family: 'Alegreya', serif;
}

/* --- Hero Section --- */
header.hero .intro h1,
header.hero .intro p {
  color: #fff;
}


header.hero .intro h1 {
  margin-top: 25px;  /* remove extra space above title */
  margin-bottom: 10px; /* keep some space between title and text */
}


/* --- Art of Recipes Section --- */
.art-of-cakes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 10%;
  background-color: #fffaf0;
}

.art-of-cakes .text {
  flex: 1;
  min-width: 300px;
  margin-bottom: 30px;
}

.art-of-cakes .text h1 {
  font-size: 36px;
  color: #a47d5e;
  margin-bottom: 15px;
}

.art-of-cakes .text h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #56534c;
}

.art-of-cakes .text p.desc {
  line-height: 1.7;
  color: #333;
}

/* Images section */
.art-of-cakes .images {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.art-of-cakes .images img {
  width: 45%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
}

.art-of-cakes .images img:hover {
  transform: scale(1.08);
}

/* --- Sourdough Sections --- */
.sourdough-section {
  background-color: #fff8f0;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sourdough-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
}

.sourdough-section.reverse .sourdough-content {
  flex-direction: row-reverse;
}

.sourdough-img {
  width: 45%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.6s ease;
}

.sourdough-img:hover {
  transform: scale(1.05) translateY(-5px);
}

.sourdough-text {
  flex: 1;
}

.sourdough-text h2 {
  font-size: 28px;
  color: #a47d5e;
  margin-bottom: 20px;
}

.sourdough-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 15px;
}

/* --- Featured Recipes Section --- */
.breads-section {
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
  padding: 0 20px;
}

.breads-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #a47d5e;
}

.bread-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.bread-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bread-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bread-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.5s ease;
}

.bread-card img:hover {
  transform: scale(1.08);
}

.bread-card h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #56534c;
}

.bread-card p {
  font-size: 14px;
  color: #555;
}

/* --- Bread Inspiration Section --- */
.bread-inspiration {
  background-color: #f4e9dc;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bread-inspiration-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
}

/* Text */
.recipe-text {
  flex: 1;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}

.recipe-text h1 {
  font-size: 36px;
  color: #a47d5e;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInTitle 1.2s ease forwards;
  animation-delay: 0.6s;
}

.recipe-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  max-width: 550px;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.8s;
}

/* Image */
.recipe-image {
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateX(-60px);
  animation: fadeSlideIn 1.2s ease forwards;
  animation-delay: 0.2s;
}

.recipe-image img {
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.recipe-image img:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* --- Animations --- */
@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInTitle {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */
@media screen and (max-width: 900px) {
  .sourdough-content {
    flex-direction: column;
    text-align: center;
  }
  .sourdough-img {
    width: 100%;
  }
  .bread-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .bread-inspiration-content {
    flex-direction: column;
    text-align: center;
  }
  .recipe-text, .recipe-image {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .recipe-text h1 { font-size: 30px; }
  .recipe-text p { font-size: 16px; max-width: 90%; margin: 0 auto; }
}

@media screen and (max-width: 600px) {
  .bread-gallery {
    grid-template-columns: 1fr;
  }
  .bread-inspiration {
    padding: 50px 6%;
  }
  .recipe-text h1 { font-size: 26px; }
  .recipe-text p { font-size: 15px; line-height: 1.6; }
  .recipe-image img { width: 100%; border-radius: 8px; }
}

/* --- Footer --- */
body.recipes-page footer {
  display: block;
  padding: 70px 10%;
  background-color: #f3f1e9;
  text-align: center;
}

body.recipes-page footer a {
  color: #35332f;
}

body.recipes-page footer .main-nav a:hover {
  color: #a47d5e;
}

body.recipes-page .main-nav li:not(:last-of-type)::after {
  content: '~';
  flex: 1 1 auto;
  text-align: center;
}

body.recipes-page .main-nav li.dropdown:last-of-type::after {
  content: '';
}

/* --- Logo Styling --- */
/* Import Google Font */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* Logo styling */
.logo {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;    /* center horizontally */
  text-decoration: none;
  color: #35332f;
}

.logo-text {
  font-family: 'Pacifico', cursive; /* handwritten style */
  font-size: 24px;
}

.logo-img {
  width: 50px; /* adjust as needed */
  height: auto;
  margin: 5px 0; /* spacing between text and image */
}


