/* BRASA page layouts and responsive overrides */

/* Reserve wizard */
.page-reserve .wizard-shell,
.reserve-wizard {
  display: grid;
  gap: 28px;
  padding-block: 40px 90px;
}

.page-reserve .wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 8%;
  align-items: start;
}

/* Tasting builder */
.page-tasting .tasting-layout,
.tasting-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 7%;
  align-items: start;
  padding-block: 36px 90px;
}

.tasting-builder .dish-grid,
.page-tasting .dish-tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

/* Seating map stage */
.page-seating .seating-stage,
.seating-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 6%;
  align-items: start;
  padding-block: 36px 90px;
}

.contact-split,
.dish-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: start;
}

.seating-list-item {
  cursor: pointer;
}

.seating-stage .seating-map {
  min-height: 420px;
}

/* Wine match */
.page-wine .wine-match,
.wine-match {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: end;
  padding-block: 28px 24px;
}

.page-wine .wine-match-intro {
  max-width: 38rem;
  margin-bottom: 18px;
}

.page-wine .wine-match label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.page-wine .wine-match select,
.page-wine .wine-match input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.page-wine .wine-match input {
  cursor: text;
}

.page-wine .wine-match select:focus-visible,
.page-wine .wine-match input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
  border-color: color-mix(in oklch, var(--primary) 55%, var(--border));
}

.page-wine .wine-match select option {
  background: var(--card);
  color: var(--foreground);
}

.page-wine .wine-card.is-match {
  border-color: color-mix(in oklch, var(--primary) 55%, var(--border));
}

.page-wine .wine-card.is-match h3 {
  color: var(--primary);
}

@media (width <= 767px) {
  .page-wine .wine-match,
  .wine-match {
    grid-template-columns: 1fr;
  }
}

/* Gift theater */
.page-gift .gift-theater,
.gift-theater {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: stretch;
  padding-block: 36px 90px;
}

/* Guest portal */
.page-guest .guest-portal,
.guest-portal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-block: 36px 90px;
}

/* Experience journey full page */
.page-experience .journey-section,
.experience-page .journey-section {
  padding-block: 72px 90px;
}

.page-experience .section-shell,
.experience-page .section-shell {
  padding-block: 0;
}

/* Dish detail */
.page-dish .dish-detail,
.dish-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8%;
  align-items: start;
  padding-block: 40px 100px;
}

.dish-detail-media {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--card);
}

.dish-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-detail-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  margin-top: 12px;
}

.dish-detail-copy .dish-price {
  color: var(--primary);
  margin-top: 12px;
  font-size: 14px;
}

.dish-detail-copy > p {
  color: var(--muted-foreground);
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  max-width: 34rem;
}

/* 404 stage */
.page-404 .stage-404,
.stage-404 {
  min-height: 70svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 120px 80px;
  padding-inline: 7%;
}

.stage-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 128px);
  font-weight: 400;
  line-height: 1;
}

.stage-404 p {
  color: var(--muted-foreground);
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}

.stage-404 .btn {
  margin-top: 28px;
}

/* Large desktop hero alignment */
@media (width >= 1600px) {
  .hero-content,
  .page-hero-content {
    padding-inline-start: max(7%, 50% - 619px);
  }
}

/* Mobile overrides (visual lock) */
@media (width <= 767px) {
  .site-header {
    padding-top: 23px;
  }

  .brand {
    font-size: 30px;
  }

  .hero {
    height: 88svh;
    min-height: 620px;
    max-height: 790px;
  }

  .hero-photo {
    object-position: 60% center;
  }

  .hero-content {
    padding-top: 140px;
  }

  .hero h1 {
    font-size: clamp(64px, 18vw, 88px);
  }

  .hero-subtitle {
    font-size: 46px;
  }

  .hero-copy {
    max-width: 280px;
  }

  .hero-caption {
    display: none;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  h2 {
    font-size: 46px;
  }

  .section-note br {
    display: none;
  }

  .menu-section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .dish-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .dish-image-wrap {
    aspect-ratio: 1.15 / 1;
  }

  .dish-heading h3 {
    font-size: 28px;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 65px;
  }

  .story-content > p:not(.eyebrow) {
    max-width: none;
  }

  .closing {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .closing h2 {
    font-size: 58px;
  }

  .closing-icon {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }

  .site-footer-cols {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .craft-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 20px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .craft-strip span {
    font-size: 8px;
  }

  .type-interlude {
    padding: 10px 0 55px;
  }

  .type-interlude p {
    font-size: 58px;
  }

  .interlude-mark {
    display: none;
  }

  .journey-heading h2 {
    font-size: 43px;
  }

  .journey-direction {
    display: none;
  }

  .journey-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-inline-end: 0;
  }

  .journey-photo-wrap {
    height: 280px;
  }

  .journey-copy h3 {
    margin-block: 10px;
    margin-inline: 0;
    font-size: 36px;
  }

  .journey-copy > p:not(.eyebrow) {
    max-width: none;
  }

  .journey-copy > svg,
  .journey-small-line {
    display: none;
  }

  .journey-section {
    padding-top: 42px;
    padding-bottom: 30px;
  }

  .rituals {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ambience {
    height: 540px;
  }

  .ambience-content {
    bottom: 95px;
    inset-inline: 7%;
  }

  .ambience-content h2 {
    font-size: 46px;
  }

  .notes {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .page-hero {
    min-height: min(360px, 52svh);
  }

  .page-hero-content {
    padding-block: 110px 36px;
  }

  .page-reserve .wizard-layout,
  .page-tasting .tasting-layout,
  .tasting-builder,
  .page-seating .seating-stage,
  .seating-stage,
  .page-gift .gift-theater,
  .gift-theater,
  .page-dish .dish-detail,
  .dish-detail,
  .contact-split,
  .dish-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-guest .guest-portal,
  .guest-portal {
    grid-template-columns: 1fr;
  }

  .tasting-builder .dish-grid,
  .page-tasting .dish-tile-grid {
    grid-template-columns: 1fr;
  }

  .wine-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
