/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.hero-section {
  background-image: url("../images/Images/Desktop/index-hero-1-desktop.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 76px 80px 48px 80px;
  position: relative;
  transition: background-image 0.8s ease-in-out;
}

.hero-content-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  flex-direction: column;
}

.hero-title {
  color: var(--neutral-02);
  max-width: 988px;
}

.hero-secondary-title {
  margin-top: 8px;
  color: var(--white);
  min-height: 54px;
}

.hero-button {
  background-color: var(--accent-primary-hovered);
}

.hero-pages-counter {
  margin-top: auto;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.page-counter-container {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: var(--medium);
  color: var(--neutral-07);
  cursor: pointer;
}

.page-counter-container.active {
  color: var(--white);
}

.hero-badge {
  position: absolute;
  top: 58px;
  right: 104px; /* 104 px from the right edge        */
  width: 200px;
  height: 200px;
  transform: rotate(15deg); /* keep the tilt                     */
  opacity: 0; /* start hidden, animation fades in  */
}

.page-counter-container {
  position: relative;
  border: none;
  /* remove default border */
  width: 40px;
  height: 40px;
}

.page-counter-container svg {
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--neutral-07);
  stroke-width: 3;
}

.progress-ring-circle {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-dasharray: 113.1;
  /* 2πr with r=18 */
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0s linear;
}

.page-counter-container .dot-number {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: var(--medium);
  color: var(--neutral-07);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.page-counter-container.active .dot-number {
  color: white;
}

/* Fade-slide animation */
@keyframes fadeSlideUp {
  /* purely vertical slide, no rotation and no horizontal shift */
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgeSlideUpDesktop {
  0% {
    opacity: 0;
    transform: translateY(50px) rotate(15deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(15deg);
  }
}

.animate-hero {
  /* this class is added by hero.js on every new slide */
  opacity: 0;
  animation: fadeSlideUp 1.6s ease-out forwards;
}

.hero-title.animate-hero {
  animation-delay: 0.3s;
}

.hero-secondary-title.animate-hero {
  animation-delay: 0.7s;
}

.hero-button.animate-hero {
  animation-delay: 0.5s;
}

.hero-badge.animate-hero {
  animation: badgeSlideUpDesktop 1.6s ease-out forwards;
}

.hero-section {
  position: relative;
  overflow: hidden;
  /* Prevent zoomed background from overflowing */
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.05);
  transition: transform 7s ease;
}

.page-counter-container {
  position: relative;
  border: none;
  /* remove default border */
  width: 40px;
  height: 40px;
}

.page-counter-container svg {
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--neutral-07);
  stroke-width: 3;
}

.progress-ring-circle {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-dasharray: 113.1;
  /* 2πr with r=18 */
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0s linear;
}

.page-counter-container .dot-number {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: var(--medium);
  color: var(--neutral-07);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.page-counter-container.active .dot-number {
  color: white;
}

/* Fade-slide animation */
@keyframes fadeSlideUp {
  /* vertical slide only – NO rotation, NO horizontal shift */
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero {
  opacity: 0;
  animation: fadeSlideUp 1.6s ease-out forwards;
}

.hero-title.animate-hero {
  animation-delay: 0.3s;
}

.hero-secondary-title.animate-hero {
  animation-delay: 0.7s;
}

.hero-button.animate-hero {
  animation-delay: 0.5s;
}

.hero-badge.animate-hero {
  animation: badgeSlideUpDesktop 1.6s ease-out forwards;
}

.hero-section {
  position: relative;
  overflow: hidden;
  /* Prevent zoomed background from overflowing */
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.05);
  transition: transform 7s ease;
}

/*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

.meat-category-sesction {
  padding: 64px 80px 84px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/Textures/paper-texture.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.meat-category-main-container {
  width: 100%;
  max-width: 1280px; /* keeps it from stretching, but lets it shrink */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-direction: column;
}

.meat-category-title-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 24px 0px;
  border-top: solid 3px var(--border-primary);
  border-bottom: solid 3px var(--border-primary);
}

.meat-category-main-title-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.meat-category-ilustration {
  width: 120px;
  height: auto;
}

.meat-cateogry-title {
  color: var(--primary);
  max-width: 310px;
}

.meat-category-secondary-title {
  max-width: 444px;
  color: var(--grey-333);
}

.meat-categories-grid-container {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.single-meat-category {
  width: 100%; /* drop the hard 410px */
  max-width: 410px; /* optional – lets it grow on large screens */
  border: solid 2px var(--border-primary);
  padding: 12px 12px 24px 12px;
  background-color: var(--beige-02);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
}

.meat-category-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.meat-category-picture {
  width: 100%;
  display: block;
}

.meat-category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    rgba(240, 238, 233, 0.05) 0%,
    rgba(240, 238, 233, 0.4) 100%
  );
  transition: opacity 0.3s ease;
}

/* Hover effect */
.single-meat-category:is(:hover, :focus-visible, :focus-within)
  .meat-category-overlay {
  opacity: 1;
}

.single-meat-category:is(:hover, :focus-visible, :focus-within)
  .category-button {
  display: flex;
}

.category-button {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--beige-03);
  border: solid 2px var(--border-beige);
  padding: 12px 20px;
  z-index: 2;
  align-items: center;
  justify-content: center;
  width: 222px;
  color: var(--primary);
  height: 48px;
  gap: 4px;
}

.meat-cateogry-btn-icon {
  filter: var(--icons-primary-filter);
}

/*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/
.blog-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 0px;
}

.blog-main-container {
  width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-direction: column;
}

.blog-title-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 24px 0px;
  border-top: solid 3px var(--border-primary);
  border-bottom: solid 3px var(--border-primary);
}

.blog-title {
  max-width: 650px;
  color: var(--primary);
}

.blog-secondary-title {
  max-width: 440px;
  color: var(--grey-333);
}

.recipies-main-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.recipie {
  background-color: var(--beige-02);
  border: solid 2px var(--border-primary);
  padding: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.recipie.big {
  width: 600px !important;
  height: 580px;
  flex-direction: column;
}

.recipie.small {
  width: 100%;
  height: 278px;
}

.recipie-big-main-info-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  flex-direction: column;
  margin-top: auto;
}

.small-recipies-container {
  width: 656px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-direction: column;
}

.recipie-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.recipie-badge {
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-image: url("../images/Textures/texture-darkgrey-small.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  text-transform: uppercase;
}

.recipie-badge.red {
  background-image: url("../images/Textures/texture-red-small.jpg");
}

.recipe-badges-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.recipe-title {
  border-bottom: solid 2px var(--primary);
  padding-bottom: 12px;
}

.info-container-recipie {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.time-container-recipie {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.recipie-big-info-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
}

.recipie-separator-line {
  width: 2px;
  height: 48px;
  background-color: var(--black);
}

.chef-profile-picture {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.recipie-chef-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.chef-info-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.recipie-date {
  color: var(--quertanary);
}

.recipie-image-small {
  width: 238px;
  height: 238px;
  object-fit: cover;
}

.recipe-small-general-info-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  flex-direction: column;
}

.recipie-small-main-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.recipe-title-small {
  border-bottom: solid 2px var(--primary);
  padding-bottom: 12px;
  margin-top: 4px;
}

.recipie-chef-container.small {
  margin-top: 8px;
}

@media (width < 1320px) {
  /*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

  .hero-section {
    padding: 76px 64px 48px 64px;
  }

  .hero-title {
    color: var(--neutral-02);
    max-width: 800px;
  }

  .hero-secondary-title {
    margin-top: 8px;
    color: var(--white);
    min-height: 54px;
  }

  .hero-button {
    background-color: var(--accent-primary-hovered);
  }

  .hero-badge {
    right: 48px;
    width: 180px;
    height: 180px;
  }

  /*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

  .meat-category-sesction {
    padding: 64px 0px 84px 0px;
  }

  .meat-category-main-container {
    width: 1000px;
  }

  .meat-category-secondary-title {
    max-width: 444px;
    color: var(--grey-333);
  }

  .meat-categories-grid-container {
    width: 1000px;
  }

  .single-meat-category {
    width: 316px;
  }

  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .blog-main-container {
    width: 1000px;
    gap: 40px;
  }

  .blog-title {
    max-width: 600px;
    font-size: 32px !important;
    line-height: 40px !important;
  }

  .blog-secondary-title {
    max-width: 400px;
  }

  .recipies-main-container {
    flex-direction: column;
  }

  .recipie {
    width: 100%;
  }

  .recipie.big {
    width: 100% !important;
    height: 300px;
    flex-direction: row;
  }

  .recipie.small {
    width: 100%;
  }

  .small-recipies-container {
    width: 100%;
  }

  .recipie-image {
    width: 238px;
    height: 238px;
  }

  .recipe-title {
    border-bottom: solid 2px var(--primary);
    padding-bottom: 12px;
    width: 100%;
    font-size: 20px !important;
    line-height: 28px !important;
  }

  .recipie-big-info-container {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }

  .recipie.big .recipie-separator-line {
    display: none;
  }
}

@media (width < 1100px) {
  /*-----------------------------------*\
    #HERO SECTION
  \*-----------------------------------*/

  .hero-section {
    padding: 76px 48px 48px 48px;
  }

  .hero-title {
    color: var(--neutral-02);
    max-width: 700px;
    font-size: 48px !important;
    line-height: 56px !important;
  }

  .hero-secondary-title {
    margin-top: 8px;
    color: var(--white);
    min-height: 54px;
  }

  .hero-button {
    background-color: var(--accent-primary-hovered);
  }

  .hero-badge {
    right: 32px;
    width: 160px;
    height: 160px;
  }

  /*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

  .meat-category-sesction {
    padding: 64px 48px 84px 48px;
  }

  .meat-category-main-container {
    width: 100%;
  }

  .meat-category-secondary-title {
    max-width: 444px;
    color: var(--grey-333);
  }

  .meat-categories-grid-container {
    width: 100%;
  }

  .single-meat-category {
    width: 100%;
  }

  .meat-category-ilustration {
    width: 120px;
    height: auto;
  }

  .meat-cateogry-title {
    color: var(--primary);
    max-width: 300px;
    font-size: 36px !important;
    line-height: 42px !important;
    flex-shrink: 0;
  }

  .meat-category-secondary-title {
    width: unset;
    color: var(--grey-333);
  }

  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .blog-section {
    padding: 64px 48px;
  }

  .blog-main-container {
    width: 100%;
    gap: 40px;
  }

  .blog-title {
    max-width: 500px;
  }

  .blog-secondary-title {
    max-width: 360px;
  }
}

@media (width < 960px) {
  /*-----------------------------------*\
      #HERO SECTION
    \*-----------------------------------*/

  .hero-section {
    padding: 196px 48px 48px 48px;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    color: var(--neutral-02);
    max-width: 700px;
    font-size: 40px !important;
    line-height: 48px !important;
    text-align: center;
  }

  .hero-secondary-title {
    margin-top: 8px;
    color: var(--white);
    min-height: 54px;
    text-align: center;
  }

  .hero-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-button {
    background-color: var(--accent-primary-hovered);
  }

  .hero-badge {
    top: 48px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(0deg); /* centre + no tilt  */
  }

  /* mobile-specific keyframes:
     keep translateX(-50%) for the whole animation so it NEVER jumps */
  @keyframes badgeSlideUpMobile {
    0% {
      opacity: 0;
      transform: translate(-50%, 50px) rotate(0deg);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, 0) rotate(0deg);
    }
  }

  /* override the animation only in this breakpoint */
  .hero-badge.animate-hero {
    animation: badgeSlideUpMobile 1.6s ease-out forwards;
  }
}

@media (width < 900px) {
  /*-----------------------------------*\
      #HERO SECTION
    \*-----------------------------------*/
  .hero-section {
    padding: 196px 32px 48px 32px;
  }

  /*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

  .meat-category-sesction {
    padding: 64px 32px 84px 32px;
  }

  .meat-category-main-container {
    width: 100%;
  }

  .meat-categories-grid-container {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .single-meat-category {
    width: 100%;
  }

  .meat-category-ilustration {
    width: 100px;
  }

  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .blog-section {
    padding: 64px 32px;
  }
}

@media (width < 800px) {
  /*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

  .meat-category-title-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }

  .meat-category-main-title-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    width: 100%;
  }

  .meat-category-ilustration {
    width: 100px;
    height: auto;
  }

  .meat-category-secondary-title {
    width: 100%;
    color: var(--grey-333);
    max-width: unset;
  }

  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .blog-title-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .blog-title {
    width: 100%;
    max-width: unset;
    font-size: 32px !important;
    line-height: 40px !important;
  }

  .blog-secondary-title {
    width: 100%;
    max-width: unset;
  }
}

@media (width < 700px) {
  /*-----------------------------------*\
      #HERO SECTION
    \*-----------------------------------*/
  .hero-section {
    padding: 196px 20px 48px 20px;
  }

  /*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

  .meat-category-sesction {
    padding: 64px 20px 84px 20px;
  }

  .meat-cateogry-title {
    font-size: 28px !important;
    line-height: 36px !important;
    flex-shrink: 0;
  }

  .meat-category-secondary-title {
    width: unset;
    font-size: 14px !important;
    line-height: 22px !important;
  }

  .meat-category-ilustration {
    width: 80px;
    height: auto;
  }

  .category-button {
    padding: 12px;
    width: 100%;
    height: auto;
    text-align: center;
  }

  .meat-cateogry-btn-icon {
    display: none;
  }

  .meat-category-name {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .blog-section {
    padding: 64px 20px;
  }

  .recipies-main-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .recipie {
    width: 100%;
    max-width: 352px;
    height: auto;
    min-height: 650px;
    padding: 20px 16px;
  }

  .recipie.big {
    width: 100% !important;
    max-width: 352px;
    height: auto;
    min-height: 650px;
    flex-direction: column;
    padding: 20px 16px;
  }

  .recipie.small {
    width: 100%;
    max-width: 352px;
    height: auto;
    min-height: 650px;
    padding: 20px 16px;
    flex-direction: column;
  }

  .recipie-small-main-container {
    flex-direction: column;
  }

  .small-recipies-container {
    width: 100%;
  }

  .recipie-image {
    width: 100%;
    height: 320px;
    max-height: 320px;
  }

  .recipie-image-small {
    width: 100%;
    height: 320px;
    max-height: 320px;
  }

  .recipe-title {
    border-bottom: solid 2px var(--primary);
    padding-bottom: 12px;
    width: 100%;
  }

  .recipe-badges-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
  }
}

@media (width < 550px) {
  /*-----------------------------------*\
      #HERO SECTION
    \*-----------------------------------*/
  .hero-title {
    font-size: 32px !important;
    line-height: 40px !important;
    text-align: center;
  }

  .hero-secondary-title {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  /*-----------------------------------*\
    #MEAT CATEGORY SECTION
  \*-----------------------------------*/
  .meat-cateogry-title-container {
    gap: 20px;
  }

  .category-button {
    padding: 8px;
    width: 100%;
    max-width: 100px;
    height: auto;
    text-align: center;
    font-size: 12px !important;
  }

  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .blog-title-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .blog-title {
    width: 100%;
    max-width: unset;
    font-size: 28px !important;
    line-height: 36px !important;
  }

  .blog-secondary-title {
    width: 100%;
    max-width: unset;
    font-size: 14px !important;
    line-height: 22px !important;
  }

  .meat-cateogry-title {
    color: var(--primary);
    max-width: 240px;
    font-size: 28px !important;
    line-height: 32px !important;
    flex-shrink: 0;
  }
}

@media (width < 370px) {
  /*-----------------------------------*\
    #MEAT CATEGORY SECTION
  \*-----------------------------------*/

  .meat-cateogry-title {
    font-size: 28px !important;
    line-height: 36px !important;
    flex-shrink: 0;
  }

  .meat-category-ilustration {
    width: 60px;
  }

  .meat-categories-grid-container {
    width: 100%;
    grid-template-columns: repeat(1, 1fr);
  }

  .category-button {
    max-width: 200px;
  }
}

@media (width < 350px) {
  /*-----------------------------------*\
  #MEAT CATEGORY SECTION
\*-----------------------------------*/

  .meat-cateogry-title-container {
    gap: 10px;
  }

  .meat-cateogry-title {
    font-size: 22px !important;
    line-height: 30px !important;
    flex-shrink: 0;
    max-width: 260px;
  }

  .meat-category-ilustration {
    display: none;
  }
  /*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

  .recipie-image {
    width: 100%;
    height: 300px;
    max-height: 300px;
  }

  .recipie-image-small {
    width: 100%;
    height: 300px;
    max-height: 300px;
  }
}
