@charset "UTF-8";

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index: -1;
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .page-header__title {
    font-size: 3.75rem;
  }
}

.page-header__subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .page-header__subtitle {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   History Section
   ========================================================================== */

.history__intro {
  max-width: 48rem;
  margin: 0 auto 5rem;
  text-align: justify;
  line-height: 2;
  color: rgba(74, 64, 58, 0.8);
}

@media (min-width: 768px) {
  .history__intro {
    text-align: center;
  }
}

.history__intro--text {
  max-width: 610px;
  margin-inline: auto;
}

.history__timeline {
  position: relative;
  margin-top: 5rem;
}

.history__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(212, 163, 115, 0.3);
  transform: translateX(-50%);
}

.history__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .history__item {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
  }
}

.history__item:last-child {
  margin-bottom: 0;
}

.history__content {
  width: 100%;
}

@media (min-width: 768px) {
  .history__content {
    width: 42%;
    text-align: right;
  }

  .history__item--reverse .history__content {
    order: 3;
    text-align: left;
  }
}

.history__year {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: rgba(212, 163, 115, 0.5);
  margin-bottom: 0.5rem;
}

.history__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.history__desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(74, 64, 58, 0.7);
}

.history__dot {
  width: 1rem;
  height: 1rem;
  background-color: var(--color-primary);
  border: 4px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .history__item--reverse .history__dot {
    order: 2;
  }
}

.history__visual {
  width: 100%;
}

@media (min-width: 768px) {
  .history__visual {
    width: 42%;
  }

  .history__item--reverse .history__visual {
    order: 1;
  }
}

.history__img-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.history__img-wrapper--old {
  transform: rotate(2deg);
  filter: sepia(0.8);
}

.history__img--nofilter {
  filter: none;
}

.history__img-wrapper--new {
  transform: rotate(-2deg);
}

.history__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Baker Profile Section
   ========================================================================== */
.baker-profile {
  background-color: rgba(235, 229, 206, 0.2);
}

.baker-profile__card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .baker-profile__card {
    flex-direction: row;
    align-items: stretch;
  }
}

.baker-profile__img-col {
  width: 100%;
  height: 400px;
}

@media (min-width: 1024px) {
  .baker-profile__img-col {
    width: 50%;
    height: auto;
    min-height: 500px;
  }
}

.baker-profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 470px;
  margin-inline: auto;
}

.baker-profile__content-col {
  width: 100%;
  padding: 2rem;
}

@media (min-width: 768px) {
  .baker-profile__content-col {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .baker-profile__content-col {
    width: 50%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.baker-profile__header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.baker-profile__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.baker-profile__role {
  font-size: 0.875rem;
  color: rgba(74, 64, 58, 0.6);
  padding-bottom: 0.25rem;
}

.baker-profile__bio {
  color: rgba(74, 64, 58, 0.8);
  line-height: 2;
}

.baker-profile__bio p {
  margin-bottom: 1.5rem;
}

.baker-profile__quote {
  border-left: 4px solid var(--color-primary);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  background-color: var(--color-background);
  color: rgba(74, 64, 58, 0.9);
}

.baker-profile__icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  color: var(--color-primary);
}

/* ==========================================================================
   Ingredients Section
   ========================================================================== */
.ingredients__intro {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: rgba(74, 64, 58, 0.8);
  line-height: 2;
}

.ingredients__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ingredients__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ingredient-card {
  position: relative;
  height: 24rem;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}

.ingredient-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ingredient-card:hover .ingredient-card__img {
  transform: scale(1.1);
}

.ingredient-card__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  transition: background-color 0.3s ease;
}

.ingredient-card:hover .ingredient-card__overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

.ingredient-card__icon {
  color: var(--color-primary);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.ingredient-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ingredient-card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.5s ease;
}

.ingredient-card:hover .ingredient-card__desc {
  opacity: 1;
  transform: translateY(0);
}