/* The catering page (catering.php). Loads after catering.css. */

/* ---------- Top ---------- */

.ct-head5 {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 20px;
}

@media (min-width: 992px) {
  .ct-head5 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 32px;
  }
}

/* ---------- Clients ---------- */

/* The clients and the story stand on the warm tone of the menu bar, so the dark that follows is the form alone */
.ct-proof {
  margin-top: var(--ct-space);
  padding: var(--ct-space) 0;
  background: var(--nav-background-color);
}

/* Client logos in one colour, as two rows that slide slowly in opposite directions and fade at the edges. They wait
   until they are in view, stop under the pointer, and stand still as wrapped rows for those who have asked for less
   motion. */
.ct-logos {
  --fade: min(8%, 40px);
  margin: 24px 0 0;
  padding: 28px 0 4px;
  overflow: hidden;
  border-top: 1px solid rgba(21, 20, 19, 0.16);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}

.ct-logos-row {
  display: flex;
}

.ct-logos-row + .ct-logos-row {
  margin-top: 24px;
}

/* The upper row starts just before the end of a round, so its first logo stands clear of the fade */
.ct-logos ul {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ct-logos-slide 40s linear -38.4s infinite paused;
}

.ct-logos-row + .ct-logos-row ul {
  animation-delay: 0s;
  animation-direction: reverse;
}

.ct-logos.is-moving:not(:hover) ul {
  animation-play-state: running;
}

.ct-logos li {
  flex: none;
  padding-right: 35px;
}

/* The files are white, and are shown in the dark of the text */
.ct-logos img {
  display: block;
  filter: brightness(0);
  opacity: 0.8;
}

@keyframes ct-logos-slide {
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-logos {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ct-logos ul {
    flex: initial;
    flex-wrap: wrap;
    gap: 24px 0;
    animation: none;
  }

  .ct-logos ul[aria-hidden] {
    display: none;
  }
}

@media (min-width: 992px) {
  .ct-logos { margin-top: 32px; padding-top: 36px; }
  .ct-logos ul { zoom: 1.25; }
  .ct-logos li { padding-right: 45px; }
}

.ct-case-wrap { margin-top: var(--ct-space); }

/* ---------- The form, on dark ---------- */

.ct-evening {
  color-scheme: dark;
  padding: var(--ct-space) 0;
  background: var(--ct-night);
  color: var(--on-night);
}

.ct-evening :focus-visible { outline-color: var(--salmon); }
.ct-evening .fish-btn:focus-visible { outline-color: var(--ink); }

.ct-case5 { display: grid; gap: 18px; color: inherit; text-decoration: none; }

@media (min-width: 768px) {
  .ct-case5 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
}

.ct-case5-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--ct-r);
}

.ct-case5-body { display: grid; gap: 10px; align-content: start; }
.ct-case5 .ct-case5-meta { color: var(--ink-2); }
.ct-case5-text { max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }

.ct-case5-more {
  justify-self: start;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.ct-case5:hover .ct-case5-more { text-decoration-color: var(--salmon); }

.ct-evening #tilbud { padding-top: 0; }

.ct-evening .ct-panel { padding: 0; border-radius: 0; background: transparent; }

/* ---------- Two doors ---------- */

.ct-doors { display: grid; gap: 12px; }

@media (min-width: 768px) {
  .ct-doors { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.ct-door {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--ct-r);
  background: var(--ct-night);
  color: var(--ct-paper);
  isolation: isolate;
}

.ct-door > * { grid-area: 1 / 1; min-width: 0; }

.ct-door-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ct-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.55) 34%, rgba(12, 10, 9, 0) 62%);
  pointer-events: none;
}

.ct-door-body {
  z-index: 2;
  align-self: end;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px 18px 20px;
}

.ct-door-title {
  margin: 0;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-synthesis: none;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1;
  text-wrap: balance;
}

.ct-door-price {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-synthesis: none;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.1;
}

.ct-door-price span {
  margin-left: 0.3em;
  font-family: var(--body-font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: none;
  color: var(--on-night);
}

.ct-door .fish-btn { margin-top: 6px; }

@media (min-width: 992px) {
  .ct-door-media { aspect-ratio: 3 / 2; }
  .ct-door-body { padding: 28px 32px 32px; }
}

/* A paragraph about Mr. Fish and catering, between the doors and the kitchens */
.ct-about { padding-top: 40px; }

.ct-about p {
  max-width: 68ch;
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (min-width: 992px) {
  .ct-about { padding-top: 64px; }
  .ct-about p { font-size: 1.1875rem; }
}

/* ---------- Good to know ---------- */

/* Same layout as the kitchens on desktop: title and a last button on the left, questions on the right */
.ct-faq {
  display: grid;
  grid-template-areas: "title" "list" "more";
  column-gap: 40px;
}

.ct-faq > .ct-h2 { grid-area: title; }
.ct-faq-list { grid-area: list; }

.ct-faq-more {
  grid-area: more;
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 28px;
}

.ct-faq .ct-faq-more p {
  max-width: 34ch;
  text-wrap: balance;
  padding: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.ct-faq-more p a { color: var(--ink); font-weight: 650; text-underline-offset: 0.2em; }

/* Photo credit at the bottom, as in a magazine. Pulled up towards the questions, so it does not hang alone above the footer. */
.ct-page-credit {
  margin-top: calc(-0.5 * var(--ct-space));
  padding-bottom: 32px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.ct-faq summary { transition: color 160ms ease-out; }
.ct-faq summary:hover,
.ct-faq details[open] summary { color: var(--ct-salmon-ink); }
.ct-faq summary::before,
.ct-faq summary::after { background: currentColor; }

@media (min-width: 992px) {
  .ct-faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-areas: "title list" "more list";
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .ct-faq-list { max-width: none; margin-top: 0; }
  .ct-faq-more { margin-top: 24px; }
  .ct-faq summary { font-size: 1.25rem; }
}

/* Answers slide open where the browser supports it. Elsewhere they just open. */
@supports (interpolate-size: allow-keywords) {
  .ct-faq { interpolate-size: allow-keywords; }

  .ct-faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 280ms cubic-bezier(0.16, 1, 0.3, 1), content-visibility 280ms allow-discrete;
  }

  .ct-faq details[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-faq summary { transition: none; }
  .ct-faq details::details-content { transition: none; }
}
