.rest-page {
  background: var(--cream-soft);
}

.rest {
  overflow: hidden;
}

.rest-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.rest-num {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
}

/* ——— Hero ——— */
.rest-hero {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(8rem, 16vw, 11rem) clamp(1.15rem, 4vw, 2rem) clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.rest-hero__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1;
  color: var(--olive);
}

.rest-hero__title em {
  font-weight: 500;
  color: var(--burgundy);
}

.rest-hero__lede {
  margin: 0 auto;
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ——— Blocos numerados ——— */
.rest-block {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.75rem) clamp(1.15rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid rgba(85, 49, 62, 0.14);
}

.rest-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  color: var(--olive);
}

.rest-block__body > p {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Pares: ingrediente baiano → prato italiano */
.rest-pairs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rest-pair {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--burgundy-deep);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.rest-pair:nth-child(2) { transition-delay: 0.1s; }
.rest-pair:nth-child(3) { transition-delay: 0.2s; }
.rest-pair:nth-child(4) { transition-delay: 0.3s; }

.rest-pairs.is-visible .rest-pair {
  opacity: 1;
  transform: none;
}

.rest-pair img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.rest-pair:hover img {
  transform: scale(1.05);
}

.rest-pair::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 14, 0) 30%, rgba(20, 15, 14, 0.55) 62%, rgba(20, 15, 14, 0.9) 100%);
  pointer-events: none;
}

.rest-pair__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.25rem 1.2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.rest-pairs__from {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.rest-pairs__from::after {
  content: " →";
  letter-spacing: 0;
}

.rest-pairs__to {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.05;
  color: #fffaf3;
}

.rest-pair__dish {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.7);
}

/* ——— O menu ——— */
.rest-menu__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rest-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.6rem;
  background: var(--cream);
  border: 1px solid rgba(85, 49, 62, 0.16);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.rest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(42, 21, 28, 0.14);
}

.rest-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.rest-card--dark {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: rgba(255, 250, 243, 0.82);
}

.rest-card__when {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.rest-card--dark .rest-card__when {
  color: var(--gold-bright);
}

.rest-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--olive);
}

.rest-card--dark .rest-card__name {
  color: #fffaf3;
}

.rest-card__text {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
}

.rest-card__go {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.rest-card__go::after {
  content: " →";
}

.rest-card--dark .rest-card__go {
  color: var(--gold-bright);
}

.rest-note {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.rest-note strong {
  font-style: normal;
  font-weight: 600;
  color: var(--olive);
}

/* ——— O espaço ——— */
.rest-espaco {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2rem);
  min-height: clamp(26rem, 62vw, 40rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.15rem, 4vw, 3rem);
  color: rgba(255, 250, 243, 0.86);
}

.rest-espaco__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.rest-espaco::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 14, 0) 35%, rgba(20, 15, 14, 0.72) 100%);
  pointer-events: none;
}

.rest-espaco__card {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  padding: 1.75rem 1.75rem 1.9rem;
  background: rgba(20, 15, 14, 0.58);
  border: 1px solid rgba(228, 174, 104, 0.3);
  backdrop-filter: blur(6px);
}

.rest-espaco__card .rest-num {
  color: var(--gold-bright);
}

.rest-espaco__card .rest-block__title {
  margin-bottom: 0.9rem;
  color: #fffaf3;
}

.rest-espaco__card p:last-child {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ——— Onde estamos ——— */
.rest-onde {
  border-top: none;
}

.rest-onde__address {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  color: var(--olive);
}

.rest-link {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(85, 49, 62, 0.4);
}

.rest-link:hover {
  border-bottom-color: var(--burgundy);
}

/* ——— CTA final ——— */
.rest-cta {
  padding: clamp(4rem, 8vw, 6rem) 1.25rem;
  background: var(--olive);
  text-align: center;
}

.rest-cta__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  color: #fffaf3;
}

.rest-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.8rem;
  background: var(--gold);
  color: var(--nero);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.3s var(--ease-out);
}

.rest-cta__btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.rest-cta__btn:focus-visible {
  outline: 2px solid #fffaf3;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .rest-pair {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .rest-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  .rest-menu__cards,
  .rest-pairs {
    grid-template-columns: minmax(0, 1fr);
  }

  .rest-cta__btn {
    width: 100%;
    justify-content: center;
  }
}
