/* Page-owned styles for /restaurant/ */

.restaurant-page {
  --restaurant-section-gap: var(--space-3xl);
  --restaurant-text-measure-narrow: 30rem;
  --restaurant-text-measure-wide: 36.25rem;
}

.restaurant-section-label {
  font-family: var(--font-body);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  font-weight: var(--text-caption-weight);
  text-transform: uppercase;
  color: var(--color-malachite);
  margin-block-end: var(--space-sm);
}

/* Hero section */
.restaurant-hero {
  background-color: var(--color-porcelain);
  padding-block-start: var(--space-2xl);
  padding-block-end: var(--restaurant-section-gap);
}

.restaurant-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  gap: var(--space-lg);
  align-items: center;
}

.restaurant-hero__content {
  grid-column: 1;
  min-width: 0;
}

.restaurant-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  font-weight: var(--text-body-large-weight);
  color: var(--color-graphite);
  max-width: var(--restaurant-text-measure-narrow);
  margin-block-end: var(--space-md);
}

.restaurant-hero__supporting {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-graphite-soft);
  max-width: var(--restaurant-text-measure-narrow);
  margin-block-end: var(--space-lg);
}

.restaurant-hero__media {
  grid-column: 3;
  min-width: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-small);
  overflow: hidden;
  position: relative;
}

.restaurant-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-lavender-smoke);
  opacity: 0.1;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.restaurant-hero__media:hover::after {
  opacity: 0.06;
}

.restaurant-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Shared motif styling for text-only sections */
.restaurant-connection,
.restaurant-menu,
.restaurant-evening,
.restaurant-lounge,
.restaurant-tables,
.restaurant-contact,
.restaurant-final {
  background-color: var(--color-porcelain);
  padding-block: var(--restaurant-section-gap);
  border-top: var(--border-hairline-soft);
}

.restaurant-connection__inner,
.restaurant-menu__inner,
.restaurant-evening__inner,
.restaurant-lounge__inner,
.restaurant-tables__inner,
.restaurant-contact__inner,
.restaurant-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--space-lg);
  align-items: start;
}

.restaurant-connection__content,
.restaurant-menu__content,
.restaurant-evening__content,
.restaurant-lounge__content,
.restaurant-tables__content,
.restaurant-contact__content,
.restaurant-final__content {
  grid-column: 1;
  min-width: 0;
}

.restaurant-connection__content p,
.restaurant-menu__content p,
.restaurant-evening__content p,
.restaurant-lounge__content p,
.restaurant-tables__content p,
.restaurant-contact__content p,
.restaurant-final__content p {
  max-width: var(--restaurant-text-measure-wide);
  margin-block-end: var(--space-md);
}

.restaurant-connection__content p:last-child,
.restaurant-menu__content p:last-child,
.restaurant-evening__content p:last-child,
.restaurant-lounge__content p:last-child,
.restaurant-tables__content p:last-child,
.restaurant-contact__content p:last-child,
.restaurant-final__content p:last-child {
  margin-block-end: 0;
}

.restaurant-connection__motif,
.restaurant-menu__motif,
.restaurant-evening__motif,
.restaurant-lounge__motif,
.restaurant-tables__motif,
.restaurant-contact__motif,
.restaurant-final__motif {
  grid-column: 2;
  min-width: 0;
  min-height: 12rem;
  background-image:
    linear-gradient(to right, var(--color-graphite-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-graphite-soft) 1px, transparent 1px);
  background-size: 2rem 2rem;
  opacity: 0.12;
  border-radius: var(--radius-small);
  align-self: center;
}

.restaurant-connection__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-block-start: var(--space-lg);
}

.restaurant-connection__links .link-text {
  font-family: var(--font-body);
  font-size: var(--text-navigation-size);
  line-height: var(--text-navigation-line-height);
  letter-spacing: var(--text-navigation-letter-spacing);
  font-weight: var(--text-navigation-weight);
  text-transform: uppercase;
}

/* Interior section */
.restaurant-interior {
  background-color: var(--color-porcelain-deep);
  padding-block: var(--restaurant-section-gap);
  border-top: var(--border-hairline-soft);
}

.restaurant-interior__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  gap: var(--space-lg);
  align-items: center;
}

.restaurant-interior__content {
  grid-column: 1;
  min-width: 0;
}

.restaurant-interior__content p {
  max-width: var(--restaurant-text-measure-narrow);
  margin-block-end: var(--space-md);
}

.restaurant-interior__content p:last-child {
  margin-block-end: 0;
}

.restaurant-interior__media {
  grid-column: 3;
  min-width: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-small);
  overflow: hidden;
  position: relative;
}

.restaurant-interior__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-lavender-smoke);
  opacity: 0.1;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.restaurant-interior__media:hover::after {
  opacity: 0.06;
}

.restaurant-interior__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* Poker Room section */
.restaurant-poker-room {
  background-color: var(--color-porcelain-deep);
  padding-block: var(--restaurant-section-gap);
  border-top: var(--border-hairline-soft);
}

.restaurant-poker-room__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  gap: var(--space-lg);
  align-items: center;
}

.restaurant-poker-room__content {
  grid-column: 1;
  min-width: 0;
}

.restaurant-poker-room__content p {
  max-width: var(--restaurant-text-measure-narrow);
  margin-block-end: var(--space-md);
}

.restaurant-poker-room__content p:last-of-type {
  margin-block-end: var(--space-lg);
}

.restaurant-poker-room__media {
  grid-column: 3;
  min-width: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-small);
  overflow: hidden;
  position: relative;
}

.restaurant-poker-room__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-lavender-smoke);
  opacity: 0.1;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.restaurant-poker-room__media:hover::after {
  opacity: 0.06;
}

.restaurant-poker-room__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* Menu categories */
.restaurant-menu__categories {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: var(--space-lg);
  margin-block-end: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-lg);
  max-width: var(--restaurant-text-measure-wide);
}

.restaurant-menu__categories li {
  position: relative;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
}

.restaurant-menu__categories li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-malachite);
}

/* Contact address */
.restaurant-contact__address {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: var(--restaurant-text-measure-wide);
  margin-block-end: var(--space-lg);
  font-style: normal;
}

.restaurant-contact__address span {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-graphite);
}

.restaurant-contact__address a {
  color: var(--color-malachite);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.restaurant-contact__address a:hover {
  color: var(--color-malachite-deep);
  text-decoration-color: var(--color-copper);
}

/* Final actions */
.restaurant-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-block-start: var(--space-lg);
}

/* Responsive behavior */
@media (max-width: 1023px) {
  .restaurant-hero__inner,
  .restaurant-interior__inner,
  .restaurant-poker-room__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .restaurant-hero__content,
  .restaurant-hero__media,
  .restaurant-interior__content,
  .restaurant-interior__media,
  .restaurant-poker-room__content,
  .restaurant-poker-room__media {
    grid-column: 1;
  }

  .restaurant-hero__media {
    order: -1;
  }

  .restaurant-interior__media,
  .restaurant-poker-room__media {
    order: -1;
  }

  .restaurant-connection__inner,
  .restaurant-menu__inner,
  .restaurant-evening__inner,
  .restaurant-lounge__inner,
  .restaurant-tables__inner,
  .restaurant-contact__inner,
  .restaurant-final__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .restaurant-connection__content,
  .restaurant-menu__content,
  .restaurant-evening__content,
  .restaurant-lounge__content,
  .restaurant-tables__content,
  .restaurant-contact__content,
  .restaurant-final__content,
  .restaurant-connection__motif,
  .restaurant-menu__motif,
  .restaurant-evening__motif,
  .restaurant-lounge__motif,
  .restaurant-tables__motif,
  .restaurant-contact__motif,
  .restaurant-final__motif {
    grid-column: 1;
  }

  .restaurant-connection__motif,
  .restaurant-menu__motif,
  .restaurant-evening__motif,
  .restaurant-lounge__motif,
  .restaurant-tables__motif,
  .restaurant-contact__motif,
  .restaurant-final__motif {
    display: none;
  }
}

@media (max-width: 639px) {
  .restaurant-page {
    --restaurant-section-gap: var(--space-3xl);
  }

  .restaurant-hero {
    padding-block-start: var(--space-xl);
    padding-block-end: var(--space-3xl);
  }

  .restaurant-hero__media img {
    aspect-ratio: 16 / 9;
    height: 40vh;
    object-fit: cover;
  }

  .restaurant-interior__media img,
  .restaurant-poker-room__media img {
    aspect-ratio: 4 / 5;
    height: 50vh;
    object-fit: cover;
  }

  .restaurant-menu__categories {
    grid-template-columns: 1fr;
  }

  .restaurant-final__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .restaurant-final__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restaurant-hero__media::after,
  .restaurant-interior__media::after,
  .restaurant-poker-room__media::after {
    transition: none;
  }
}
