/* ============================================================
   Café Paulista de Santos — Belle Époque Heritage
   Pure HTML / CSS / JS
   ============================================================ */

:root {
  --paper: #fcfaf7;
  --paper-2: #f7f1e7;
  --wood: #e8dcc6;
  --wood-soft: #f2ebe1;
  --gold: #c5a059;
  --gold-deep: #a68045;
  --gold-soft: #e6d3a6;
  --ink: #1c1917;
  --ink-2: #3a3531;
  --muted: #6b645d;
  --line: rgba(28, 25, 23, 0.1);
  --line-gold: rgba(197, 160, 89, 0.3);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --tight: 0.02em;
  --wide: 0.22em;
  --xwide: 0.4em;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--gold);
  color: #fff;
}

/* ----------  Layout  ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow {
  max-width: 820px;
}
.section {
  padding: 120px 0;
  position: relative;
}
.section--white {
  background: var(--paper);
}
.section--paper {
  background: var(--paper-2);
}
.section--wood {
  background: var(--wood-soft);
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  gap: 80px;
  align-items: center;
}
.grid--7-5 {
  grid-template-columns: 7fr 5fr;
}
.grid--5-7 {
  grid-template-columns: 5fr 7fr;
}
.grid--6-6 {
  grid-template-columns: 1fr 1fr;
}

/* ----------  Type  ---------- */
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: var(--tight);
  line-height: 1.1;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.display em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}
h2.serif {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-bottom: 24px;
}
h3.serif {
  font-size: 1.5rem;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--xwide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--gold {
  color: var(--gold-deep);
}

.lede {
  font-size: 1.07rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 36px;
}
.lede--center {
  margin-left: auto;
  margin-right: auto;
}

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-2);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin-top: 28px;
}

.footnote {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 40px;
  letter-spacing: var(--tight);
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn--sm {
  padding: 11px 20px;
  font-size: 10.5px;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 20px -10px rgba(166, 128, 69, 0.6);
}
.btn--gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn--gold span {
  transition: transform 0.35s var(--ease);
}
.btn--gold:hover span {
  transform: translateX(4px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 25, 23, 0.18);
}
.btn--ghost:hover {
  background: var(--wood-soft);
  border-color: var(--ink);
}

/* ----------  Nav  ---------- */
.nav {
  --nav-height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(28, 25, 23, 0.16);
}
.nav__bar {
  position: relative;
  z-index: 101;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  min-height: var(--nav-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #fff;
}
.nav__brand {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.nav__logo {
  height: 44px;
  width: auto;
  display: block;
}
.nav__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}
.nav__tag {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--wide);
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.nav__links a:hover {
  color: var(--gold-deep);
}
.nav__links a:hover::after {
  right: 0;
}

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 60%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  right: 0;
  top: 0;
  filter: sepia(0.15) saturate(0.95);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 18%,
    rgba(0, 0, 0, 0.85) 55%,
    #000 80%,
    #000 100%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 18%,
    rgba(0, 0, 0, 0.85) 55%,
    #000 80%,
    #000 100%,
    transparent 100%
  );
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--cream) 0%,
      rgba(252, 250, 247, 0.92) 30%,
      rgba(252, 250, 247, 0.55) 55%,
      rgba(252, 250, 247, 0.25) 80%,
      rgba(252, 250, 247, 0.55) 100%
    ),
    linear-gradient(180deg, rgba(252, 250, 247, 0.35) 0%, rgba(252, 250, 247, 0.75) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero__copy {
  animation: rise 1.1s var(--ease) both;
}
.hero__media {
  position: relative;
  height: 540px;
  animation: rise 1.4s 0.15s var(--ease) both;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Polaroid frames */
.polaroid {
  position: absolute;
  background: #fff;
  padding: 14px 14px 38px;
  box-shadow:
    0 30px 60px -20px rgba(28, 25, 23, 0.35),
    0 0 0 1px rgba(28, 25, 23, 0.04);
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.polaroid--rotate-r {
  top: 0;
  right: 0;
  width: 70%;
  aspect-ratio: 4/5;
  transform: rotate(2.5deg);
}
.polaroid--rotate-l {
  bottom: 0;
  left: 0;
  width: 55%;
  aspect-ratio: 4/3;
  transform: rotate(-4deg);
  border: 4px solid #fff;
}
.polaroid--small img {
  aspect-ratio: 4/3;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 9.5px;
  letter-spacing: 0.4em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero__scroll span {
  width: 1px;
  height: 36px;
  background: var(--gold);
  display: inline-block;
  animation: pulseDown 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ----------  History stats  ---------- */
.col-img .frame {
  position: relative;
  background: #fff;
  padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(28, 25, 23, 0.4);
}
.col-img .frame img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.col-img .frame figcaption {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 14px 4px 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  margin: 32px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-deep);
}
.stat__lbl {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* ----------  Gallery (azulejos)  ---------- */
.section__head {
  margin-bottom: 64px;
}
.section__head--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--wood);
}
.gallery__zoom {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery__zoom-icon {
  display: none;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.2s var(--ease),
    filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.gallery__item:hover img,
.gallery__zoom:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.02);
}
.gallery__zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.gallery__item--tall {
  grid-row: span 2;
}
.gallery__item--wide {
  grid-column: span 2;
}
.gallery--azulejos .gallery__item:nth-child(5),
.gallery--azulejos .gallery__item:nth-child(6),
.gallery--azulejos .gallery__item:nth-child(7) {
  grid-column: span 2;
}

/* ----------  Carousel  ---------- */
.carousel__nav {
  display: flex;
  gap: 12px;
}
.carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.carousel__btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.carousel {
  overflow: hidden;
  padding: 20px 0 40px;
  cursor: grab;
}
.carousel:active {
  cursor: grabbing;
}
.carousel__track {
  display: flex;
  gap: 32px;
  padding: 0 28px;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.dish {
  flex: 0 0 380px;
  background: #fff;
  padding: 22px;
  box-shadow:
    0 30px 60px -30px rgba(28, 25, 23, 0.18),
    0 0 0 1px rgba(28, 25, 23, 0.04);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.dish:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -30px rgba(28, 25, 23, 0.3);
}
.dish__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--wood);
}
.dish__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.dish:hover .dish__img img {
  transform: scale(1.04);
}
.dish h3 {
  margin: 8px 0 10px;
}
.dish__desc {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 18px;
  line-height: 1.55;
}
.dish__price {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 0.95rem;
}

/* ----------  Reviews  ---------- */
.reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.reviews__head h2 {
  color: var(--paper);
}
.reviews__rating {
  text-align: right;
}
.stars {
  letter-spacing: 4px;
  font-size: 1.2rem;
  color: var(--gold-soft);
}
.stars--gold {
  color: var(--gold);
}
.reviews__score {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
}
.reviews__score strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-soft);
  letter-spacing: 0;
  margin-right: 10px;
}
.reviews__score span {
  color: rgba(252, 250, 247, 0.55);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.18);
  padding: 32px;
  transition: all 0.35s var(--ease);
}
.review:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.review p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 18px 0 28px;
  color: var(--paper);
}
.review__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review__author strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
}
.review__author small {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(252, 250, 247, 0.45);
  text-transform: uppercase;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: grid;
  place-items: center;
}

/* ----------  FAQ  ---------- */
.faq {
  --faq-content-slot: 108px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq details {
  border-bottom: 1px solid var(--line-gold);
  padding: 22px 0 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 22px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq__icon {
  color: var(--gold-deep);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.faq details.is-open .faq__icon,
.faq details[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.faq details.is-open .faq__content,
.faq details[open] .faq__content {
  height: var(--faq-content-slot);
  opacity: 1;
  pointer-events: auto;
}
.faq details.is-open .faq__content--hours,
.faq details[open] .faq__content--hours {
  height: auto;
  padding-bottom: 6px;
}
.faq-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}
.faq-hours li {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 12px 24px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.faq-hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.faq-hours__day {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.faq-hours__time {
  font-size: 0.95rem;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}
.faq-hours__time--closed {
  color: var(--muted);
}
.faq__content > p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ----------  Visit / Map  ---------- */
.info {
  list-style: none;
  margin: 32px 0;
}
.info li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.info__lbl {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.info-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-hours__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: baseline;
}
.info-hours__row--closed span:last-child {
  color: var(--muted);
}
.col-map {
  background: var(--wood);
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(28, 25, 23, 0.3);
}
.col-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) saturate(0.9);
}

/* ----------  Footer  ---------- */
.footer {
  background: var(--paper);
  color: var(--ink);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-gold);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-gold);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink);
}
.footer__logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.16);
  box-shadow: 0 6px 20px -10px rgba(28, 25, 23, 0.25);
}
.footer__brand small {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer p {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.footer__list {
  list-style: none;
}
.footer__list li {
  font-size: 0.88rem;
  padding: 6px 0;
  color: var(--ink-2);
}
.footer__list a {
  color: var(--ink-2);
}
.footer__list a:hover {
  color: var(--gold-deep);
}
.footer__bottom {
  padding-top: 36px;
}
.footer-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}
.footer-credit__copy,
.footer-credit__agency {
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(107, 100, 93, 0.82);
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-credit__copy {
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-credit__agency {
  text-align: right;
  color: rgba(107, 100, 93, 0.62);
  font-size: 9px;
  letter-spacing: 0.05em;
  font-size: 0.7rem !important;
}
.footer-credit__label {
  color: rgba(107, 100, 93, 0.5);
  font-weight: 400;
}
.footer-credit a {
  font: inherit;
  color: var(--ink-2);
  text-decoration: none;
  margin-left: 0.3em;
  transition: color 0.2s var(--ease);
}
.footer-credit a span {
  color: #c79e4d;
}
.footer-credit a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .footer-credit {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .footer-credit__copy,
  .footer-credit__agency {
    white-space: normal;
    flex-shrink: 1;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.03em;
    line-height: 1.55;
  }
}

/* ----------  Floating WhatsApp  ---------- */
.fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 14px 30px -8px rgba(37, 211, 102, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.95);
  z-index: 200;
  transition: transform 0.3s var(--ease);
}
.fab:hover {
  transform: scale(1.08);
}
.fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRing 2s ease-out infinite;
}

/* ----------  Animations  ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseDown {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  position: relative;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink, #1c1917);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s var(--ease),
    top 0.3s var(--ease);
  transform-origin: center;
}
.nav__toggle span:nth-child(1) {
  top: 12px;
}
.nav__toggle span:nth-child(2) {
  top: 19px;
}
.nav__toggle span:nth-child(3) {
  top: 26px;
}
.nav.is-open .nav__toggle span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}
.nav__links-cta {
  display: none;
}

/* ----------  Responsive  ---------- */
@media (max-width: 960px) {
  .section {
    padding: 80px 0;
  }
  .nav__toggle {
    display: block;
  }
  .nav__cta {
    display: none;
  }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 24px 28px 32px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      visibility 0s linear 0.35s,
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease);
  }
  .nav.is-open .nav__links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      visibility 0s linear 0s,
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease);
  }
  .nav__links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav__links li:last-child {
    border-bottom: 0;
  }
  .nav__links a {
    display: block;
    margin-inline: -28px;
    padding: 14px 28px;
    font-size: 1.05rem;
  }
  .nav__links li:last-child a {
    padding-top: 20px;
  }
  .nav__links-cta {
    display: block;
  }
  body.nav-open {
    overflow: hidden;
  }
  .grid--7-5,
  .grid--6-6,
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero__bg img {
    width: 100%;
    opacity: 0.45;
  }
  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(252, 250, 247, 0.88) 0%,
      rgba(252, 250, 247, 0.72) 45%,
      rgba(252, 250, 247, 0.92) 100%
    );
  }
  .hero__media {
    height: 420px;
    margin-top: 20px;
  }
  .reviews {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery--azulejos .gallery__item--end-mobile {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery--azulejos .gallery__item--salao-panel img {
    object-position: left center;
    transform-origin: left center;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 27px;
  }
  .footer p {
    max-width: 36ch;
  }
  .dish {
    flex: 0 0 80vw;
  }
  .info li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .faq-hours li,
  .info-hours__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .faq-hours__time {
    text-align: left;
  }
  .hero__scroll {
    display: none;
  }
  h2.serif {
    font-size: 1.8rem;
  }
}
@media (max-width: 560px) {
  .nav {
    --nav-height: 72px;
  }
  .nav__bar {
    padding: 14px 18px;
  }
  .nav__links {
    padding: 20px 20px 28px;
  }
  .nav__links a {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    margin-bottom: 27px
  }

  .container.footer__grid > div:nth-child(4) > ul > li:nth-child(2) {
    margin-bottom: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
  .stat__num {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 20px;
  }
  .fab {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
}

/* ---------- Stacked historic polaroids (A Casa) ---------- */
.col-img--stack {
  position: relative;
  height: 580px;
}
.col-img--stack .polaroid--rotate-r {
  top: 0;
  right: 0;
  width: 72%;
  aspect-ratio: 3/4;
  transform: rotate(2.5deg);
  z-index: 1;
}
.col-img--stack .polaroid--rotate-r img {
  filter: sepia(0.2) contrast(1.05);
}
.col-img--stack .polaroid--rotate-l {
  bottom: 0;
  left: 0;
  width: 58%;
  aspect-ratio: 4/3;
  transform: rotate(-4deg);
  border: 4px solid #fff;
  z-index: 2;
}
@media (max-width: 960px) {
  .grid--5-7 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .col-img--stack {
    height: 460px;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ============================================================
   New preview sections — info strip, timeline, senadinho,
   owners, memória, centro histórico, final CTA
   ============================================================ */

/* Announcement ticker */
.announce {
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  overflow: hidden;
  border-bottom: 1px solid rgba(252, 250, 247, 0.08);
}
.announce .track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  padding: 11px 0;
  animation: marq 38s linear infinite;
  width: max-content;
}
.announce .track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0.86;
}
.announce .track span::before {
  content: "✦";
  color: var(--gold);
  font-size: 9px;
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .announce .track {
    animation: none;
  }
}

/* Timeline */
.timeline-wrap {
  margin-top: 80px;
}
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 24px;
  padding-top: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-gold);
}
.timeline__item {
  position: relative;
  padding: 0 18px 0 0;
}
.timeline__year {
  display: block;
  font-size: 2.2rem;
  color: var(--gold-deep);
  margin-bottom: 18px;
  line-height: 1;
}
.timeline__dot {
  position: absolute;
  top: 50px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.timeline__item--highlight .timeline__dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.18);
}
.timeline__item--highlight .timeline__year {
  color: var(--ink);
}
.timeline__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
  padding-top: 22px;
  max-width: 28ch;
}

/* Senadinho */
.senadinho__media {
  position: relative;
}
.senadinho__photo {
  position: relative;
  background: #fff;
  padding: 16px 16px 56px;
  box-shadow: 0 40px 80px -30px rgba(28, 25, 23, 0.4);
  transform: rotate(-1.2deg);
}
.senadinho__zoom {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  line-height: 0;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.senadinho__zoom:focus-visible {
  outline: 2px solid var(--gold, #a68045);
  outline-offset: 3px;
}
.senadinho__zoom img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: sepia(0.18) saturate(0.92);
  transition: transform 0.5s ease;
}
.senadinho__zoom:hover img {
  transform: scale(1.03);
}
.senadinho__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.senadinho__highlight {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin: 32px 0 28px;
  line-height: 1.35;
}

/* Owners */
.owners__media {
  position: relative;
}
.owners__photo {
  position: relative;
  background: #fff;
  padding: 18px 18px 60px;
  box-shadow: 0 50px 100px -40px rgba(28, 25, 23, 0.45);
  transform: rotate(1.5deg);
}
.owners__photo img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.owners__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.owners__stamp {
  position: absolute;
  top: -28px;
  left: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
  transform: rotate(-8deg);
  box-shadow: 0 20px 40px -10px rgba(166, 128, 69, 0.5);
}
.owners__stamp strong {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.owners__highlight {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-deep);
  margin: 32px 0 28px;
  line-height: 1.4;
}
.owners__names {
  display: grid;
  gap: 20px;
}

@media (min-width: 561px) {
  .owners__names {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.owners__name {
  padding: 18px 0;
  border-top: 1px solid var(--line-gold);
}
.owners__name strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.owners__name span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Gallery captions */
.gallery__item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
}

/* Menu categories */
.menu-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 40px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}
.menu-cat p:last-child {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 42ch;
}

/* Memória cultural */
.memoria__statement {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--gold-soft);
  border-left: 2px solid var(--gold);
  padding-left: 28px;
}
.memoria__statement em {
  color: #fff;
  font-style: italic;
}
.memoria__photo {
  margin-top: 80px;
  height: 460px;
  overflow: hidden;
}
.memoria__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.85);
}

/* Louça de prata — editorial warm section */
.louca {
  position: relative;
  padding: 120px 0;
  background: radial-gradient(circle at 18% 25%, rgba(197, 160, 89, 0.08), transparent 50%), var(--paper-2);
  color: var(--ink-2);
  overflow: hidden;
}
.louca::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-gold), var(--line-gold));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 80px;
  pointer-events: none;
}
.louca__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  position: relative;
}
.louca__media {
  margin: 0;
  position: relative;
}
.louca__zoom {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line-gold);
  cursor: zoom-in;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(28, 25, 23, 0.18),
    0 0 0 1px rgba(28, 25, 23, 0.04);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}
.louca__zoom:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 100px -30px rgba(28, 25, 23, 0.25),
    0 0 0 1px var(--line-gold);
}
.louca__zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
.louca__zoom img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.96);
}
.louca__caption {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.louca__text {
  max-width: 460px;
}
.louca__eyebrow {
  color: var(--gold-deep) !important;
}
.louca__title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 14px 0 28px;
  color: var(--ink);
}
.louca__body p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
}
.louca__highlight {
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 36px 0 36px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}
.louca__seal {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px;
  border: 1px solid var(--line-gold);
  background: var(--paper);
}
.louca__seal-tag {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.louca__seal-text {
  font-size: 0.92rem;
  color: var(--ink-2);
  font-style: italic;
}

/* Final CTA spacing */
.final-cta {
  padding: 100px 0;
}

/* Responsive */
@media (max-width: 960px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .timeline::before {
    display: none;
  }
  .timeline__item {
    border-left: 1px solid var(--line-gold);
    padding-left: 18px;
  }
  .timeline__dot {
    left: -7px;
    top: 6px;
  }
  .timeline__year {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .timeline__text {
    padding-top: 8px;
  }
  .menu-cats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .louca {
    padding: 80px 0;
  }
  .louca__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .louca__text {
    max-width: 100%;
  }
  .louca__zoom img {
    max-height: 560px;
  }

  .owners__stamp {
    width: 86px;
    height: 86px;
    top: -18px;
    left: -10px;
    font-size: 9px;
  }
  .owners__stamp strong {
    font-size: 1.15rem;
  }
  .memoria__photo {
    height: 280px;
    margin-top: 48px;
  }
}
@media (max-width: 560px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ========= CARDÁPIO — Experiência interativa ========= */
.cardapio-x {
  --cx-bg: #ffffff;
  --cx-ink: #1c1917;
  --cx-ink-dim: rgba(28, 25, 23, 0.62);
  --cx-gold: #a68045;
  --cx-gold-soft: rgba(166, 128, 69, 0.32);
  --cx-rule: rgba(28, 25, 23, 0.12);
  background: #ffffff;
  color: var(--cx-ink);
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.cardapio-x__intro {
  padding: 110px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cardapio-x__intro .eyebrow {
  color: var(--cx-gold);
}
.cardapio-x__title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin-top: 12px;
  color: var(--cx-ink);
}
.cardapio-x__lede {
  color: var(--cx-ink-dim);
  max-width: 62ch;
  margin: 18px auto 0;
}
/* Static cardápio stage — dish changes only by click */
.cardapio-x__shell {
  position: relative;
  z-index: 1;
  height: auto;
  padding: 16px 0 110px;
}
.cardapio-x__stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 40px;
  overflow: visible;
}

.cardapio-x__bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 0;
}

.cardapio-x__stage-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Center column: photo + description */
.cardapio-x__center-col {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Indexes */
.cardapio-x__index {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cardapio-x__index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cardapio-x__index li {
  border-bottom: 1px solid var(--cx-rule);
}

/* Left index — Entradas */
.cardapio-x__index--entradas {
  grid-column: 1;
  text-align: left;
  align-items: flex-start;
}
.cardapio-x__index--entradas .cardapio-x__item {
  flex-direction: row;
  justify-content: flex-start;
  padding-right: 4px;
  padding-left: 0;
  text-align: left;
}
.cardapio-x__index--entradas .cardapio-x__item.is-active {
  padding-left: 18px;
  padding-right: 0;
}
.cardapio-x__index--entradas .cardapio-x__nameline {
  align-items: flex-start;
}

/* Right index — Pratos Principais */
.cardapio-x__index--principais {
  grid-column: 3;
  text-align: right;
  align-items: flex-end;
}
.cardapio-x__index--principais .cardapio-x__item {
  flex-direction: row-reverse;
  justify-content: flex-start;
  padding-left: 4px;
  padding-right: 0;
  text-align: right;
}
.cardapio-x__index--principais .cardapio-x__item.is-active {
  padding-right: 18px;
  padding-left: 0;
}
.cardapio-x__index--principais .cardapio-x__nameline {
  align-items: flex-end;
}

.cardapio-x__item {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--cx-ink);
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  cursor: pointer;
  opacity: 0.42;
  transition:
    opacity 0.5s ease,
    padding-left 0.5s ease,
    padding-right 0.5s ease,
    color 0.5s ease;
}
.cardapio-x__item:hover,
.cardapio-x__item:focus-visible {
  opacity: 0.85;
  outline: none;
}
.cardapio-x__index--entradas .cardapio-x__item.is-active,
.cardapio-x__index--principais .cardapio-x__item.is-active {
  opacity: 1;
}

.cardapio-x__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--cx-gold);
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.5s ease,
    font-size 0.5s ease;
}
.cardapio-x__item.is-active .cardapio-x__num {
  transform: translateY(-1px);
}
.cardapio-x__nameline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cardapio-x__nameline .serif {
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--cx-ink);
}
.cardapio-x__sub {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cx-ink-dim);
}

.cardapio-x__group {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cx-gold);
  margin: 22px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--cx-rule);
  width: 100%;
}
.cardapio-x__index--entradas .cardapio-x__group {
  text-align: left;
}
.cardapio-x__index--principais .cardapio-x__group {
  text-align: right;
}
.cardapio-x__list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.cardapio-x__list li {
  border-bottom: 1px solid var(--cx-rule);
}
.cardapio-x__list:first-of-type {
  border-top: 1px solid var(--cx-rule);
}

/* Photo stage */
.cardapio-x__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 46vh;
  width: 100%;
  margin: 0 auto;
  transform: none;
}

.cardapio-x__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition:
    clip-path 1.05s cubic-bezier(0.65, 0, 0.2, 1),
    opacity 0.6s ease;
  will-change: clip-path, opacity, transform;
}
.cardapio-x__frame {
  background: var(--cx-bg);
}
.cardapio-x__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.cardapio-x__frame.is-active {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* Content */
.cardapio-x__content {
  position: relative;
  min-height: 250px;
  text-align: center;
  padding-top: 24px;
  width: 100%;
}
.cardapio-x__dish {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cardapio-x__dish.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cardapio-x__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cx-gold);
}
.cardapio-x__labels li {
  position: relative;
  padding-right: 14px;
}
.cardapio-x__labels li + li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cx-gold-soft);
  transform: translateY(-50%);
}
.cardapio-x__dish.is-active .cardapio-x__labels {
  animation: cxRise 0.7s 0.05s both;
}
.cardapio-x__dish-name {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  color: var(--cx-ink);
  margin: 0;
}
.cardapio-x__dish.is-active .cardapio-x__dish-name {
  animation: cxRise 0.8s 0.15s both;
}
.cardapio-x__dish-desc {
  color: var(--cx-ink-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 44ch;
  margin: 0;
  text-align: center;
}
.cardapio-x__dish.is-active .cardapio-x__dish-desc {
  animation: cxRise 0.8s 0.28s both;
}
.cardapio-x__dish-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--cx-gold);
  font-size: 1.08rem;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--cx-rule);
  max-width: 40ch;
  text-align: center;
}
.cardapio-x__dish.is-active .cardapio-x__dish-line {
  animation: cxRise 0.9s 0.4s both;
}

@keyframes cxRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Outro */
.cardapio-x__outro {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cardapio-x__closing {
  color: var(--cx-ink-dim);
  max-width: 52ch;
  font-size: 1rem;
}

/* Tablet — tighten desktop layout, keep three columns */
@media (min-width: 761px) and (max-width: 1080px) {
  .cardapio-x__stage {
    padding-top: 36px;
  }
  .cardapio-x__stage-inner {
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 24px;
  }
  .cardapio-x__photo {
    max-height: 44vh;
  }
  .cardapio-x__dish-name {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
  }
  .cardapio-x__nameline .serif {
    font-size: 1.1rem;
  }
  .cardapio-x__content {
    min-height: 240px;
  }
}

/* Mobile — keep the same click-driven stage */
@media (max-width: 760px) {
  .cardapio-x__intro {
    padding: 80px 20px 20px;
  }
  .cardapio-x__shell {
    padding: 0 0 72px;
  }
  .cardapio-x__stage {
    padding-top: 18px;
  }
  .cardapio-x__stage-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .cardapio-x__center-col {
    display: contents;
  }
  .cardapio-x__index {
    width: 100%;
    align-items: stretch;
  }
  .cardapio-x__index--entradas {
    order: 1;
    text-align: left;
  }
  .cardapio-x__photo {
    order: 2;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    max-height: min(72vw, 320px);
    width: min(100%, 320px);
  }
  .cardapio-x__content {
    order: 3;
    width: 100%;
    min-height: 0;
    padding-top: 0;
  }
  .cardapio-x__index--principais {
    order: 4;
    text-align: left;
    align-items: stretch;
    margin-top: 8px;
  }
  .cardapio-x__index--principais .cardapio-x__group {
    text-align: left;
  }
  .cardapio-x__index--principais .cardapio-x__item {
    flex-direction: row;
    text-align: left;
    padding-left: 0;
  }
  .cardapio-x__index--principais .cardapio-x__item.is-active {
    padding-left: 18px;
    padding-right: 0;
  }
  .cardapio-x__index--principais .cardapio-x__nameline {
    align-items: flex-start;
  }
  .cardapio-x__dish {
    position: relative;
    inset: auto;
    display: none;
    opacity: 0;
    transform: none;
    pointer-events: none;
  }
  .cardapio-x__dish.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .cardapio-x__dish-name {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
  .cardapio-x__item {
    padding: 16px 0;
  }
  .cardapio-x__nameline .serif {
    font-size: 1.08rem;
  }
  .cardapio-x__sub {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cardapio-x__frame {
    transition: opacity 0.25s ease;
    clip-path: none !important;
  }
  .cardapio-x__frame img {
    transform: none !important;
    transition: none !important;
  }
  .cardapio-x__dish,
  .cardapio-x__dish * {
    animation: none !important;
    transition: opacity 0.25s ease !important;
    transform: none !important;
  }
}

/* Reabertura — interview + video */
.owners__interview {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.owners__interview-text {
  max-width: 760px;
}
.owners__interview-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin: 10px 0 14px;
}
.owners__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 24px 60px -28px rgba(28, 25, 23, 0.35);
}
.owners__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 760px) {
  .owners__interview {
    margin-top: 48px;
    gap: 24px;
  }
}

/* ============== HISTÓRIA · Editorial historical gallery ============== */
.history-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.history-intro .quote {
  margin-top: 28px;
}

.history-gallery-wrap {
  margin-top: 56px;
}
.history-gallery {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
}
.history-gallery__stage {
  position: relative;
  display: grid;
  min-height: 520px;
}
.history-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 72px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0s linear 0.55s;
  pointer-events: none;
}
.history-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0s linear 0s;
}
.history-slide.is-leaving {
  transform: translateX(-20px);
}

/* Media: frame hugs the actual photograph */
.history-slide__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.history-slide__zoom {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 12px;
  background: #fdfbf6;
  border: 1px solid rgba(166, 128, 69, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -18px rgba(28, 25, 23, 0.45),
    0 4px 12px -6px rgba(28, 25, 23, 0.15);
  cursor: zoom-in;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.history-slide__zoom:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 26px 50px -18px rgba(28, 25, 23, 0.5),
    0 6px 14px -6px rgba(28, 25, 23, 0.18);
}
.history-slide__zoom:focus-visible {
  outline: 2px solid var(--gold, #a68045);
  outline-offset: 4px;
}
.history-slide__zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

/* Caption below each historical photograph */
.history-slide__caption {
  margin-top: 22px;
  text-align: center;
  max-width: 460px;
}
.history-slide__caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}
.history-slide__caption span {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Body */
.history-slide__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  min-width: 0;
}
.history-slide__body h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.18;
  margin: 12px 0 18px;
  color: #1c1917;
}
.history-slide__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold, #a68045);
  margin: 0 0 22px;
  opacity: 0.85;
}
.history-slide__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2, #2a2622);
  max-width: 460px;
}

/* Nav + arrows — desktop: setas absolutas como no layout original */
.history-gallery__nav {
  display: contents;
}
.history-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(166, 128, 69, 0.45);
  background: #fdfbf6;
  color: #1c1917;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.history-arrow:hover {
  background: var(--gold, #a68045);
  border-color: var(--gold, #a68045);
  color: #fff;
}
.history-arrow:focus-visible {
  outline: 2px solid var(--gold, #a68045);
  outline-offset: 3px;
}
.history-arrow--prev {
  left: 0;
}
.history-arrow--next {
  right: 0;
}

/* Dots */
.history-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.history-dot {
  appearance: none;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(166, 128, 69, 0.5);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}
.history-dot:hover {
  background: rgba(166, 128, 69, 0.3);
}
.history-dot.is-active {
  background: var(--gold, #a68045);
  border-color: var(--gold, #a68045);
  transform: scale(1.2);
}
.history-dot:focus-visible {
  outline: 2px solid var(--gold, #a68045);
  outline-offset: 3px;
}

/* ===== Fullscreen image modal (body-level, above everything) ===== */
.history-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 10, 8, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}
.history-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}
.history-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-out;
}
.history-modal__img {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 48px), 1800px);
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.history-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.history-modal__close:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--gold, #a68045);
}
.history-modal__close:focus-visible {
  outline: 2px solid var(--gold, #a68045);
  outline-offset: 2px;
}
body.history-modal-open {
  overflow: hidden;
}

/* Zoom hint — mobile */
@media (max-width: 960px) {
  [data-zoom] {
    position: relative;
  }
  [data-zoom]:not(.gallery__zoom)::after {
    content: "Toque para ampliar";
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    font-family: var(--sans);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(28, 25, 23, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 11px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.22);
  }
  .gallery__zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(28, 25, 23, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.22);
    pointer-events: none;
    font-family: var(--sans);
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    color: #fff;
  }
  .history-slide__zoom::after {
    bottom: 18px;
  }
  .louca__zoom::after {
    bottom: 22px;
  }
}

@media (max-width: 860px) {
  .history-gallery {
    padding: 0 16px;
    max-width: 100%;
  }
  .history-gallery-wrap {
    margin-top: 40px;
  }
  .history-gallery__stage {
    min-height: 0;
  }
  .history-slide {
    grid-template-columns: 1fr;
    row-gap: 28px;
    justify-items: center;
    text-align: left;
  }
  .history-slide__media {
    width: 100%;
  }
  .history-slide__zoom {
    width: 100%;
    display: block;
    padding: 10px;
    box-sizing: border-box;
  }
  .history-slide__zoom img {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }
  .history-slide__caption {
    margin-top: 18px;
    max-width: 100%;
    padding: 0 8px;
  }
  .history-slide__caption strong {
    font-size: 14px;
  }
  .history-slide__caption span {
    font-size: 11px;
  }
  .history-slide__body {
    max-width: 100%;
    padding: 0 4px;
  }
  .history-slide__text {
    max-width: 100%;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery--azulejos .gallery__item:nth-child(5),
  .gallery--azulejos .gallery__item:nth-child(6) {
    grid-column: auto;
  }
  .gallery--azulejos .gallery__item--end-mobile {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery--azulejos .gallery__item--salao-panel img {
    object-position: left center;
    transform-origin: left center;
  }

  .history-gallery__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .history-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 36px;
    height: 36px;
    background: rgba(253, 251, 246, 0.95);
  }
  .history-arrow--prev,
  .history-arrow--next {
    left: auto;
    right: auto;
  }
  .history-gallery__dots {
    margin-top: 28px;
    gap: 14px;
  }
}
