/* ==========================================================================
   REVORA — COMPONENTS
   ========================================================================== */

/* ---- Section heading pattern ---- */
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}
.heading-row h2 { font-size: var(--fs-xxl); max-width: 14ch; }
.heading-row__side { max-width: 34ch; }

/* ---- Image frame (organic masking) ---- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.frame:hover img { transform: scale(1); }
.frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 55%, rgba(11,11,11,0.55) 100%);
  pointer-events: none;
}
.frame--noshade::after { display: none; }
.frame--oval { border-radius: 50% / 38%; }
.frame--pill { border-radius: 999px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-top: 8rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(1.05);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.25) 40%, rgba(11,11,11,0.9) 100%);
}
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title {
  font-size: var(--fs-hero);
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.hero__scroll {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll-line {
  width: 1px; height: 34px;
  background: var(--gold);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line span {
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--ivory);
  animation: scrollLine 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---- Interior page hero (About/Menu/Gallery/etc) ---- */
.page-hero {
  position: relative;
  padding: clamp(9rem, 16vw, 13rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.page-hero__title {
  font-size: var(--fs-hero);
  text-transform: uppercase;
  max-width: 16ch;
}
.page-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---- Stat row ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--gold);
}
.stat span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ---- Dish card ---- */
.dish-card {
  position: relative;
  flex: 0 0 clamp(260px, 30vw, 380px);
}
.dish-card .frame { aspect-ratio: 4/5; margin-bottom: 1.2rem; }
.dish-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.dish-card__row h3 { font-size: 1.3rem; }
.dish-card__price {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.9rem;
  white-space: nowrap;
}
.dish-card p {
  color: var(--ivory-faint);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.dish-scroll {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  overflow-x: auto;
  padding: 0 var(--gutter) 1rem;
  margin: 0 calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.dish-scroll::-webkit-scrollbar { display: none; }
.dish-scroll .dish-card { scroll-snap-align: start; }

/* ---- Menu list (Menu page) ---- */
.menu-group { margin-bottom: clamp(3rem, 6vw, 5rem); }
.menu-group__title {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.menu-group__title h3 { font-size: var(--fs-lg); white-space: nowrap; }
.menu-group__title .divider { flex: 1; }

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.menu-item__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.menu-item__desc {
  color: var(--ivory-faint);
  font-size: 0.9rem;
  max-width: 52ch;
}
.menu-item__price {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.95rem;
  padding-top: 0.15rem;
}
.menu-item__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(19,78,74,0.5);
  border: 1px solid rgba(19,78,74,0.9);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-left: 0.6em;
}

/* ---- Checkerboard image grid ---- */
.checker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 10vw;
  gap: clamp(0.6rem, 1.2vw, 1.2rem);
}
.checker .frame:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.checker .frame:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.checker .frame:nth-child(3) { grid-column: 4 / 6; grid-row: 2 / 4; }
.checker .frame:nth-child(4) { grid-column: 6 / 7; grid-row: 2 / 4; }
.checker .frame:nth-child(5) { grid-column: 1 / 3; grid-row: 3 / 5; }
.checker .frame:nth-child(6) { grid-column: 3 / 7; grid-row: 4 / 5; }

@media (max-width: 780px) {
  .checker { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .checker .frame:nth-child(1) { grid-column: 1/3; grid-row: 1/2; }
  .checker .frame:nth-child(2) { grid-column: 1/2; grid-row: 2/3; }
  .checker .frame:nth-child(3) { grid-column: 2/3; grid-row: 2/3; }
  .checker .frame:nth-child(4) { grid-column: 1/2; grid-row: 3/4; }
  .checker .frame:nth-child(5) { grid-column: 2/3; grid-row: 3/4; }
  .checker .frame:nth-child(6) { grid-column: 1/3; grid-row: 4/5; }
}

/* ---- Filter bar (Gallery page) ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-bar button {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.7em 1.3em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-bar button:hover { border-color: var(--gold); color: var(--ivory); }
.filter-bar button.is-active { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

/* ---- Masonry (Gallery page) ---- */
.masonry {
  columns: 3 220px;
  column-gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.masonry .frame {
  margin-bottom: clamp(0.8rem, 1.6vw, 1.4rem);
  break-inside: avoid;
}
@media (max-width: 640px) { .masonry { columns: 2 150px; } }

/* ---- Quote block ---- */
.quote-block {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  max-width: 22ch;
}
.quote-block cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.4rem;
}

/* ---- Testimonials ---- */
.testi-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1rem;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 min(560px, 82vw);
  scroll-snap-align: start;
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
}
.testi-card p.quote-block { font-size: clamp(1.3rem, 2.2vw, 1.7rem); max-width: none; }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem);
  text-align: center;
  isolation: isolate;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.75), rgba(11,11,11,0.9));
}
.cta-band h2 {
  font-size: var(--fs-xl);
  max-width: 16ch;
  margin: 0 auto 1.6rem;
}
.cta-band__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}
.form-grid .field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 0.2em;
  transition: border-color var(--dur-fast);
}
.field select option { background: var(--charcoal); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.82rem;
  color: var(--ivory-faint);
  margin-top: 1.2rem;
}
.form-success {
  display: none;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-top: 1.4rem;
}
.form-success.is-visible { display: block; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- Info list (contact page) ---- */
.info-list { display: flex; flex-direction: column; gap: 1.8rem; }
.info-list dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.info-list dd { margin: 0; font-size: 1.05rem; }

/* ---- Two-col split (About/Private events) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---- Numbered process (Private Events) ---- */
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.6rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.process-item__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
}
.process-item h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.process-item p { color: var(--ivory-faint); max-width: 56ch; }
