/* Inner pages: menu, takeaway, reservations, contact and privacy. */

/* Photo hero with the page name as wordmark (menu, takeaway, reservations, contact) */

.wordmark-hero {
  position: relative;
  min-height: max(88dvh, 36rem);
  display: flex;
  overflow: hidden;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.wordmark-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wordmark-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 62%, rgba(0, 0, 0, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8));
}

.wordmark-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  gap: 3rem;
  padding: 9rem var(--gutter) 0;
}

.wordmark-hero-top {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
}

.wordmark-hero-intro {
  max-width: 26rem;
  font-size: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.wordmark-hero-wordmark {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.wordmark-hero-name {
  display: flex;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: min(17vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.wordmark-hero-name span {
  display: block;
}

/* Longer words such as "Reserveren" get a smaller size so they still fit on one line. */
.wordmark-hero-name.is-long {
  font-size: min(12vw, 11rem);
}

.wordmark-hero-badges {
  position: absolute;
  top: -2.6rem;
  left: 0.2rem;
  z-index: 2;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-badge {
  display: inline-block;
  padding: 0.625rem 1rem;
}

.hero-badge-1 {
  background-color: var(--color-cream);
  color: var(--color-dark);
  transform: rotate(-2deg);
}

.hero-badge-2 {
  position: absolute;
  top: 2.3rem;
  left: 5.5rem;
  background-color: var(--color-accent);
  color: var(--color-dark);
  transform: rotate(2deg);
}

.hero-badge-2 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wordmark-hero-cta {
  position: relative;
  z-index: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: min(15vw, 13.5rem);
  aspect-ratio: 238 / 260;
  padding: 1.5rem;
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.wordmark-hero-cta .blob {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.wordmark-hero-cta:hover .blob {
  transform: scale(1.06) rotate(-5deg);
}

.wordmark-hero-cta .icon {
  transition: transform 0.4s var(--ease-out);
}

.wordmark-hero-cta:hover .icon {
  transform: translateX(0.35rem);
}

@media (max-width: 991px) {
  .wordmark-hero {
    min-height: 0;
  }

  .wordmark-hero-content {
    gap: 2.5rem;
    padding-top: 9rem;
  }

  .wordmark-hero-top {
    justify-content: flex-start;
  }

  .wordmark-hero-wordmark {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding-bottom: 2.5rem;
  }

  .wordmark-hero-badges {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .hero-badge-2 {
    position: static;
    margin: -0.4rem 0 0 1.5rem;
  }

  .wordmark-hero-name {
    font-size: min(24vw, 9rem);
  }

  .wordmark-hero-name.is-long {
    font-size: min(15vw, 6rem);
  }

  .wordmark-hero-cta {
    display: none;
  }
}

/* Category band: dark strip with the category names, sticky while reading the menu */

.category-band {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-band ul {
  display: flex;
  gap: 2.5rem;
  max-width: var(--container-large);
  margin: 0 auto;
  padding: 1.125rem var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-band ul::-webkit-scrollbar {
  display: none;
}

.category-band a {
  display: block;
  color: rgba(247, 243, 232, 0.55);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.3s;
}

.category-band a:hover {
  color: var(--color-cream);
}

.category-band a.is-active {
  color: var(--color-accent);
}

/* Chapters: one per category, a cream card next to the dish list, alternating sides */

.chapters {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding: 7rem var(--gutter);
}

.chapter {
  min-width: 0;
  scroll-margin-top: 5rem;
}

.chapter-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: 3rem 5rem;
  max-width: var(--container-large);
  margin: 0 auto;
}

.chapter-card {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  background-color: var(--color-cream);
}

.chapter.is-reversed .chapter-card {
  order: 2;
}

.chapter-tag {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-white);
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
}

.chapter-tag.is-tilt-left {
  transform: rotate(-2deg);
}

.chapter-tag.is-tilt-right {
  transform: rotate(2deg);
}

.chapter-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.chapter-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 3rem 2.5rem 2.5rem;
}

.chapter-text p {
  max-width: 34rem;
}

/* List next to a chapter card on the reservations and contact pages */

.chapter-list {
  padding-top: 1.5rem;
}

.chapter-list-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}

.chapter-text .button-group {
  margin-top: 0.75rem;
}

/* Dish rows: name, dotted leader and price on one line, description below.
   The same pattern lists opening hours and contact details. */

.dish-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 1.5rem;
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.dish-leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(28, 28, 28, 0.25);
  transform: translateY(-0.3em);
}

.dish-price {
  flex: none;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-price a {
  transition: color 0.3s;
}

/* Contact values such as the address may wrap; menu prices never do. */
.chapter-list .dish-price {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: right;
}

.dish-price a:hover {
  color: var(--color-accent-dark);
}

.dish-description {
  max-width: 34rem;
  margin-top: 0.375rem;
  color: rgba(28, 28, 28, 0.68);
  font-size: 0.9375rem;
}

@media (max-width: 991px) {
  .chapters {
    gap: 5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .chapter-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-card {
    position: relative;
    top: 0;
  }

  .chapter.is-reversed .chapter-card {
    order: 0;
  }

  .chapter-photo {
    aspect-ratio: 16 / 10;
  }

  .chapter-text {
    padding: 2.5rem 1.5rem 1.75rem;
  }
}

@media (max-width: 767px) {
  .category-band ul {
    gap: 1.75rem;
  }

  .category-band a {
    font-size: 1.125rem;
  }

  .dish-name {
    font-size: 1.1875rem;
  }
}

/* Privacy policy */

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  align-items: start;
  gap: 3rem 6rem;
}

.legal-grid .rich-text {
  font-size: 0.9375rem;
}

.legal-grid .contact-card {
  position: sticky;
  top: 8rem;
  min-height: 0;
}

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

  .legal-grid .contact-card {
    position: static;
  }
}

/* Landing pages: an H1 in the hero, editor text next to a visit card, links to related pages */

.wordmark-hero-top.has-heading {
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.wordmark-hero-heading {
  max-width: 40rem;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  align-items: start;
  gap: 3rem 6rem;
}

.landing-text {
  max-width: 44rem;
  font-size: 1.0625rem;
}

.landing-text h2 {
  margin-top: 3rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.landing-text > :first-child {
  margin-top: 0;
}

.landing-text details {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.landing-text details:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.landing-text details + details {
  margin-top: 0;
}

.landing-text summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.landing-text summary::-webkit-details-marker {
  display: none;
}

.landing-text summary::after {
  content: '+';
  flex: none;
  color: var(--color-accent-dark);
  transition: transform 0.3s var(--ease-out);
}

.landing-text details[open] summary::after {
  transform: rotate(45deg);
}

.landing-text details > :not(summary) {
  margin-top: 0.75rem;
  color: rgba(28, 28, 28, 0.78);
}

.landing-card {
  position: sticky;
  top: 8rem;
  min-height: 0;
}

.landing-hours {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.landing-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.landing-hours dt {
  color: rgba(255, 255, 255, 0.6);
}

.landing-links {
  background-color: var(--color-cream);
}

.landing-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  list-style: none;
}

.landing-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s;
}

.landing-links a:hover {
  color: var(--color-accent-dark);
}

@media (max-width: 991px) {
  .wordmark-hero-top.has-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .landing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-card {
    position: static;
  }
}
