.recipes-page {
  background: #fffaf0;
}

.recipes-page .site-nav {
  gap: clamp(14px, 2vw, 29px);
}

.recipes-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0;
  color: white;
  background:
    radial-gradient(circle at 86% 10%, rgba(221, 163, 42, 0.3), transparent 27%),
    linear-gradient(135deg, #0c3823, #061d13 72%);
}

.recipes-hero::after {
  position: absolute;
  right: -7%;
  bottom: -0.23em;
  content: "RECEITAS";
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(7rem, 17vw, 19rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.8;
  pointer-events: none;
}

.recipes-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(570px, 1.18fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.recipes-hero-copy .eyebrow {
  color: #f2c65f;
}

.recipes-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 27px;
  color: white;
  font-size: clamp(3.35rem, 3.8vw, 5.3rem);
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.23);
}

.recipes-hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.recipes-hero-gallery {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  transform: rotate(1.2deg);
}

.recipes-hero-gallery figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: #183e29;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.27);
}

.recipes-hero-gallery .recipes-hero-main {
  grid-row: 1 / 3;
}

.recipes-hero-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recipes-hero-gallery figure::after {
  position: absolute;
  inset: 55% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(6, 29, 19, 0.85));
}

.recipes-hero-gallery figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: white;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 850;
}

.recipes-intro {
  color: white;
  background: var(--red-600);
}

.recipes-moments {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.recipes-moments span {
  padding: 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  text-align: center;
}

.recipes-moments span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.recipes-moments strong {
  display: block;
  margin-bottom: 4px;
  color: white;
  font-family: var(--serif);
  font-size: 1.13rem;
}

.recipes-catalog {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 12%, rgba(221, 163, 42, 0.17), transparent 24%),
    radial-gradient(circle at 96% 86%, rgba(23, 74, 46, 0.12), transparent 28%),
    #fffaf0;
}

.recipes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 42px;
}

.recipes-heading h2 {
  margin-bottom: 0;
}

.recipes-heading > p {
  max-width: 470px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.recipe-card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 500px 390px 390px;
  grid-auto-rows: 390px;
  gap: 18px;
}

.recipe-card {
  position: relative;
  grid-column: span 4;
  display: block;
  overflow: hidden;
  padding: 0;
  color: white;
  border: 0;
  border-radius: 25px;
  background: #0b3320;
  box-shadow: 0 20px 54px rgba(47, 34, 18, 0.14);
  text-align: left;
  cursor: pointer;
}

.recipe-card-featured {
  grid-column: span 6;
}

.recipe-card-featured + .recipe-card {
  grid-column: span 6;
}

.recipe-card-featured .recipe-card-photo {
  object-position: center 42%;
}

.recipe-card-featured + .recipe-card .recipe-card-photo {
  object-position: center 46%;
}

.recipe-card-wide {
  grid-column: span 8;
}

.recipe-card-photo,
.recipe-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.recipe-card-photo {
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.recipe-card-shade {
  background:
    linear-gradient(180deg, rgba(5, 26, 16, 0.05), transparent 35%),
    linear-gradient(0deg, rgba(5, 26, 16, 0.94), transparent 62%);
}

.recipe-card:hover .recipe-card-photo,
.recipe-card:focus-visible .recipe-card-photo {
  transform: scale(1.055);
}

.recipe-card:focus-visible {
  outline: 4px solid #f2c65f;
  outline-offset: 3px;
}

.recipe-card-product {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  max-width: calc(100% - 34px);
  padding: 7px 13px 7px 7px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.recipe-card-product img {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}

.recipe-card-product small,
.recipe-card-product strong {
  display: block;
}

.recipe-card-product small {
  grid-column: 2;
  align-self: end;
  margin-bottom: 2px;
  color: var(--red-600);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recipe-card-product strong {
  min-width: 0;
  grid-column: 2;
  align-self: start;
  max-width: 150px;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  line-height: 1.18;
}

.recipe-card-copy {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 24px;
  left: 25px;
}

.recipe-card-copy small,
.recipe-card-copy strong,
.recipe-card-copy i {
  display: block;
}

.recipe-card-copy small {
  margin-bottom: 7px;
  color: #f2c65f;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recipe-card-copy strong {
  max-width: 680px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.9rem);
  line-height: 1.01;
}

.recipe-card-copy i {
  margin-top: 11px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.recipe-library {
  margin-top: clamp(72px, 8vw, 110px);
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid rgba(39, 34, 28, 0.14);
}

.recipe-library-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.recipe-library-heading h3 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
}

.recipe-library-heading > p {
  max-width: 470px;
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.65;
}

.recipe-library-tools {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(39, 34, 28, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 42px rgba(47, 34, 18, 0.08);
}

.recipe-search {
  height: 48px;
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(30, 91, 59, 0.22);
  border-radius: 13px;
  background: #fffdf8;
}

.recipe-search svg {
  width: 21px;
  fill: none;
  stroke: var(--green-700);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.recipe-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.recipe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.recipe-filters button {
  min-height: 39px;
  padding: 8px 13px;
  color: var(--green-900);
  border: 1px solid rgba(30, 91, 59, 0.15);
  border-radius: 999px;
  background: #f8f1e4;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.recipe-filters button:hover,
.recipe-filters button:focus-visible,
.recipe-filters button.is-active {
  color: white;
  border-color: var(--green-700);
  background: var(--green-700);
}

.recipe-library-count {
  margin: 23px 0 15px;
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 900;
}

.recipe-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.recipe-library-card {
  min-width: 0;
  min-height: 248px;
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(39, 34, 28, 0.1);
  border-radius: 19px;
  background: white;
  box-shadow: 0 13px 34px rgba(47, 34, 18, 0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.recipe-library-card[hidden] {
  display: none;
}

.recipe-library-card:hover,
.recipe-library-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(30, 91, 59, 0.4);
  box-shadow: 0 20px 44px rgba(47, 34, 18, 0.14);
}

.recipe-library-card:focus-visible {
  outline: 3px solid #e3af39;
  outline-offset: 3px;
}

.recipe-library-media {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px 12px;
  background:
    radial-gradient(circle at 25% 22%, rgba(227, 175, 57, 0.28), transparent 29%),
    linear-gradient(145deg, #f4ead4, #fffaf0);
}

.recipe-library-media img {
  width: 100%;
  height: 100%;
  max-height: 190px;
  object-fit: contain;
  transition: transform 300ms ease;
}

.recipe-library-media.has-prepared-photo {
  padding: 0;
}

.recipe-library-media.has-prepared-photo img {
  max-height: none;
  object-fit: cover;
}

.recipe-library-card:hover .recipe-library-media img {
  transform: scale(1.045);
}

.recipe-library-number {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  padding: 6px 8px;
  color: white;
  border-radius: 999px;
  background: var(--green-700);
  box-shadow: 0 8px 18px rgba(8, 53, 32, 0.2);
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
}

.recipe-library-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
}

.recipe-library-cheese {
  margin-bottom: 9px;
  color: var(--red-600);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-library-title {
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.08;
}

.recipe-library-summary {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recipe-library-meta {
  margin-top: auto;
  padding-top: 13px;
  color: #8b7250;
  font-size: 0.64rem;
  font-weight: 800;
}

.recipe-library-link {
  margin-top: 7px;
  color: var(--red-600);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.recipe-library-empty {
  margin: 16px 0 0;
  padding: 38px;
  border: 1px dashed rgba(30, 91, 59, 0.3);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.recipes-editorial-note {
  max-width: 800px;
  margin: 34px auto 0;
  color: #867d70;
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.recipes-cta {
  background: #f1e4ca;
}

.recipes-cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: clamp(34px, 5vw, 62px);
  color: white;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(8, 47, 29, 0.96), rgba(12, 70, 42, 0.92)),
    url("assets/receitas/fondue-gruyere.webp") center / cover;
  box-shadow: 0 28px 72px rgba(9, 41, 26, 0.2);
}

.recipes-cta-panel .eyebrow {
  color: #f2c65f;
}

.recipes-cta-panel h2 {
  max-width: 850px;
  margin-bottom: 0;
  color: white;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
}

body.recipe-dialog-open {
  overflow: hidden;
}

.recipe-dialog {
  width: min(1320px, calc(100vw - 36px));
  max-width: none;
  height: min(92dvh, 920px);
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: white;
  box-shadow: 0 40px 120px rgba(4, 21, 13, 0.44);
}

.recipe-dialog::backdrop {
  background: rgba(5, 23, 15, 0.78);
  backdrop-filter: blur(8px);
}

.recipe-dialog-close {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(39, 34, 28, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
  font-size: 1.7rem;
  cursor: pointer;
}

.recipe-dialog-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
}

.recipe-dialog-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e7dbc2;
}

.recipe-dialog-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-dialog-photo.is-product-image {
  padding: clamp(48px, 8vw, 110px);
  object-fit: contain;
  background:
    radial-gradient(circle at 30% 24%, rgba(227, 175, 57, 0.22), transparent 28%),
    linear-gradient(145deg, #f5ead4, #fffaf0);
}

.recipe-dialog-product {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 17px 10px 10px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(13px);
}

.recipe-dialog-product img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}

.recipe-dialog-product small,
.recipe-dialog-product strong {
  display: block;
}

.recipe-dialog-product small {
  margin-bottom: 4px;
  color: var(--red-600);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recipe-dialog-product strong {
  font-family: var(--serif);
  font-size: 1.16rem;
}

.recipe-dialog-content {
  min-height: 0;
  padding: clamp(42px, 5vw, 72px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.recipe-dialog-content h2 {
  max-width: 720px;
  margin-bottom: 15px;
  font-size: clamp(2.7rem, 4.8vw, 5.3rem);
}

.recipe-dialog-summary {
  max-width: 680px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.recipe-dialog-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(39, 34, 28, 0.12);
  border-bottom: 1px solid rgba(39, 34, 28, 0.12);
}

.recipe-dialog-meta span {
  display: grid;
  gap: 3px;
}

.recipe-dialog-meta small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-dialog-meta strong {
  color: var(--green-900);
  font-size: 0.95rem;
}

.recipe-dialog-columns {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
}

.recipe-dialog-columns h3 {
  margin-bottom: 16px;
  color: var(--green-900);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.recipe-dialog-columns ul,
.recipe-dialog-columns ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-dialog-columns li {
  position: relative;
  padding-left: 20px;
  color: #625b52;
  font-size: 0.78rem;
  line-height: 1.5;
}

.recipe-dialog-columns ul li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #dda32a;
}

.recipe-dialog-columns ol li {
  min-height: 34px;
  padding-left: 43px;
}

.recipe-dialog-columns ol li::before {
  position: absolute;
  top: -3px;
  left: 0;
  content: attr(data-step);
  color: var(--red-600);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
}

.recipe-tip {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 4px solid #dda32a;
  border-radius: 0 13px 13px 0;
  background: #fff5de;
}

.recipe-tip strong {
  color: var(--green-900);
  font-size: 0.78rem;
}

.recipe-tip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.recipe-dialog-content > .text-button {
  margin-top: 26px;
}

@media (max-width: 1100px) {
  .recipes-hero-grid {
    grid-template-columns: 1fr;
  }

  .recipes-hero-gallery {
    min-height: 520px;
  }

  .recipe-card-grid {
    grid-template-rows: none;
    grid-auto-rows: 350px;
  }

  .recipe-dialog-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .recipe-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .recipes-hero-copy h1 {
    font-size: clamp(3.45rem, 12vw, 5.3rem);
  }

  .recipes-hero-gallery {
    min-height: 440px;
  }

  .recipes-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .recipe-library-heading,
  .recipe-library-tools {
    grid-template-columns: 1fr;
  }

  .recipe-filters {
    justify-content: flex-start;
  }

  .recipe-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 340px;
  }

  .recipe-card,
  .recipe-card-featured,
  .recipe-card-featured + .recipe-card,
  .recipe-card-wide {
    grid-column: span 1;
  }

  .recipe-dialog {
    width: min(760px, calc(100vw - 22px));
    height: min(94dvh, 980px);
  }

  .recipe-dialog-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .recipe-dialog-media {
    min-height: 370px;
  }

  .recipe-dialog-content {
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .recipes-hero {
    padding: 54px 0;
  }

  .recipes-hero-gallery {
    min-height: 460px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.15fr 0.85fr;
    gap: 9px;
    transform: none;
  }

  .recipes-hero-gallery .recipes-hero-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .recipes-hero-gallery figure {
    border-radius: 17px;
  }

  .recipes-moments {
    grid-template-columns: 1fr;
    padding: 15px 0;
  }

  .recipes-moments span {
    padding: 12px 10px;
  }

  .recipes-moments span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .recipe-card-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 340px;
  }

  .recipe-library-grid {
    grid-template-columns: 1fr;
  }

  .recipe-library-card {
    min-height: 224px;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .recipe-library-tools {
    padding: 10px;
  }

  .recipe-filters {
    gap: 6px;
  }

  .recipe-filters button {
    min-height: 36px;
    padding: 7px 11px;
  }

  .recipe-card-product {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .recipe-card-product img {
    width: 45px;
    height: 45px;
  }

  .recipe-card-copy strong {
    font-size: 1.8rem;
  }

  .recipes-cta-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .recipes-cta-panel .button {
    width: 100%;
  }

  .recipe-dialog-media {
    min-height: 310px;
  }

  .recipe-dialog-product {
    grid-template-columns: 58px 1fr;
    right: 13px;
    bottom: 13px;
    left: 13px;
  }

  .recipe-dialog-product img {
    width: 58px;
    height: 58px;
  }

  .recipe-dialog-content {
    padding: 32px 22px 42px;
  }

  .recipe-dialog-content h2 {
    font-size: 2.65rem;
  }

  .recipe-dialog-columns {
    grid-template-columns: 1fr;
  }
}
