/* ============================================================
   MOSAIC KITCHEN - COMPONENTS
   Buttons, chips, marquee, food cards, menu tabs, booking form.
   ============================================================ */

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.btn .i { width: 1.1em; height: 1.1em; }

.btn--copper {
  background: var(--copper);
  color: var(--noir);
  border-color: var(--copper);
}

.btn--copper:hover,
.btn--copper:focus-visible {
  background: var(--copper-deep);
  border-color: var(--copper-deep);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(242, 233, 222, .55);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--noir);
}

.btn--lg {
  padding: 1.15em 2.1em;
  font-size: clamp(.75rem, .25vw + .7rem, .9rem);
  letter-spacing: .14em;
}

.btn--sm {
  padding: .8em 1.25em;
  letter-spacing: .12em;
}

.btn--block { width: 100%; }

/* ============================================================
   Chips
   ============================================================ */

.chip-band {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  border: 1px solid var(--copper);
  color: var(--copper-light);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  padding: .7em 1.1em;
  border-radius: 999px;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.tag {
  display: inline-block;
  border: 1px solid rgba(251, 180, 123, .55);
  color: var(--copper-light);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  padding: .28em .5em .24em;
  border-radius: 999px;
  margin-left: .45em;
  vertical-align: .1em;
  white-space: nowrap;
}

/* ============================================================
   Marquee (manifesto strip)
   ============================================================ */

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: .5em;
  padding-right: .5em;
  flex: none;
}

.mq,
.mq__dot {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  line-height: .85;
  letter-spacing: -.02em;
  text-transform: uppercase;
  padding-block: .08em;
  white-space: nowrap;
}

.mq--solid { color: var(--noir); }

.mq--out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--noir);
}

.mq__dot { color: rgba(14, 11, 9, .45); }

/* ============================================================
   Food cards
   ============================================================ */

.food__item {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 0;
  min-width: 0;
}

.food__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(14, 11, 9, .07);
  transform: rotate(-1.2deg);
  box-shadow: 0 12px 30px -20px rgba(14, 11, 9, .75);
  transition:
    transform 480ms var(--ease-out),
    box-shadow 480ms var(--ease-out);
}

.food__item:nth-child(even) .food__media { transform: rotate(.8deg); }

.food__item:hover .food__media,
.food__item:focus-within .food__media {
  transform: rotate(0deg) scale(1.015);
  box-shadow: 0 30px 60px -28px rgba(14, 11, 9, .7);
}

.food__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food__cap {
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(14, 11, 9, .7);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .food__media { transition: none; }
  .food__item:hover .food__media { transform: rotate(-1.2deg); }
  .food__item:nth-child(even):hover .food__media { transform: rotate(.8deg); }
}

/* ============================================================
   Menu - tabs + panels
   ============================================================ */

.menu__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 2.6vw, 2.25rem);
  border-bottom: 1px solid rgba(242, 233, 222, .18);
  margin-bottom: clamp(1.1rem, 3vh, 1.9rem);
}

.tab {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242, 233, 222, .65);
  padding: .5rem 0 .85rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.tab:hover { color: var(--cream); }

.tab[aria-selected="true"] {
  color: var(--cream);
  border-bottom-color: var(--copper);
}

/* Eight categories wrap into three ragged rows on a phone. One swipeable rail
   reads as a control instead of a paragraph of labels. The tab's
   -1px pull would hang outside the scroll box and buy a stray vertical
   scrollbar, so it is dropped here: the copper underline sits straight on the
   hairline instead of over it. The trailing margin on the last tab is what
   keeps it off the edge - end padding on a flex scroller is unreliable. */
@media (max-width: 900px) {
  .menu__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu__tabs::-webkit-scrollbar { display: none; }

  .tab {
    flex: none;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .tab:last-child { margin-right: var(--gutter); }
}

.menu__panel { display: block; }

/* The UA rule for [hidden] is display:none, but any author `display` beats it. */
.menu__panel[hidden] { display: none; }

.panel__items { column-gap: 4rem; }

@media (min-width: 900px) {
  .panel__items { columns: 2; }
}

.panel__title {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw + .8rem, 2rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--copper-light);
  padding-block: .08em;
  margin: 0;
}

.panel__note {
  font-style: italic;
  color: rgba(242, 233, 222, .6);
  font-size: var(--fs-body);
  line-height: 1.5;
  max-width: 74ch;
  margin: 0 0 clamp(1rem, 2.2vh, 1.4rem);
}

.mi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  align-items: baseline;
  min-width: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: clamp(1rem, 2.2vh, 1.45rem);
}

.mi__name {
  grid-column: 1;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--cream);
  line-height: 1.35;
}

.mi__price {
  grid-column: 2;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--copper-light);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.mi__desc {
  grid-column: 1 / -1;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(242, 233, 222, .6);
  margin: .2rem 0 0;
  max-width: 46ch;
}

/* No-JS (and ?nojs): every panel stacked, tab bar hidden. */
html.no-js .menu__tabs { display: none; }
html.no-js .menu__panel[hidden] { display: block; }
html.no-js .menu__panel { margin-bottom: clamp(2rem, 5vh, 3.25rem); }
html.no-js .panel__title { display: block; margin-bottom: 1rem; }

/* ============================================================
   Booking form
   ============================================================ */

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.25rem;
  color-scheme: dark;
}

/* Same trap as the menu panels: an author `display` beats UA [hidden]. */
.form[hidden] { display: none; }

@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

/* ---------- Booking type: a table vs the function room ---------- */

.seg-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.seg-field > legend {
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242, 233, 222, .72);
  padding: 0;
  margin-bottom: .55rem;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.seg__opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.seg__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.seg__opt span {
  display: block;
  padding: .68rem 1.15rem;
  border: 1px solid rgba(242, 233, 222, .35);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 233, 222, .65);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out),
              background-color 200ms var(--ease-out);
}

.seg__opt:hover span { color: var(--cream); }

.seg__opt input:checked + span {
  color: var(--cream);
  border-color: var(--copper);
  background: rgba(200, 128, 79, .16);
}

.seg__opt input:focus-visible + span {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200, 128, 79, .25);
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}

.field > label {
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242, 233, 222, .72);
}

.field .opt {
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(242, 233, 222, .4);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(242, 233, 222, .35);
  border-radius: 4px;
  padding: 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.4;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.field textarea { resize: vertical; min-height: 82px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 233, 222, .35); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.6 7 7.4 13 1.6' fill='none' stroke='%23FBB47B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field select option { background: var(--oxblood-deep); color: var(--cream); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200, 128, 79, .25);
}

.field select:disabled {
  opacity: .5;
  cursor: not-allowed;
  background-image: none;
}

.field [aria-invalid="true"] { border-color: #F08A6E; }

.field-error {
  margin: .1rem 0 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .04em;
  color: #F5A48B;
}

.field-note {
  margin: .1rem 0 0;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--copper-light);
}

.form__actions { grid-column: 1 / -1; margin-top: .1rem; }

/* Honeypot */
.gotcha {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Booking success panel
   ============================================================ */

.success {
  border: 1px solid rgba(242, 233, 222, .22);
  border-radius: var(--radius);
  background: rgba(37, 5, 11, .55);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.success__check {
  width: 56px;
  height: 56px;
  color: var(--copper);
  margin-bottom: 1rem;
}

.success__check .draw {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: check-draw 700ms var(--ease-out) 150ms forwards;
}

.success__check .ring {
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  animation: check-draw 800ms var(--ease-out) forwards;
}

@keyframes check-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .success__check .draw,
  .success__check .ring { stroke-dashoffset: 0; animation: none; }
}

.success__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw + .75rem, 3.25rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--cream);
  padding-block: .08em;
  margin: 0 0 .65rem;
}

.success__summary {
  font-size: var(--fs-lede);
  color: rgba(242, 233, 222, .85);
  margin: 0 0 1.1rem;
}

.success__note {
  border-left: 2px solid var(--copper);
  padding-left: .9rem;
  font-size: var(--fs-body);
  color: var(--copper-light);
  margin: 0 0 1.4rem;
  max-width: 48ch;
}

.success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ============================================================
   Inline error / status message (date closed-day notice)
   ============================================================ */

.form__msg {
  grid-column: 1 / -1;
  font-size: var(--fs-body);
  color: #F5A48B;
  margin: 0;
}
