/* Location and menu pages */

:root {
  --sage: #647c6e;
  --sage-hover: #586e62;
  --deep: #3d4f45;
  --cream: #f7f5ee;
  --white: #ffffff;
  --muted: #8a9c8f;
  --line: rgba(100, 124, 110, 0.18);
  --ink: #33413a;
  --light-sage: #dddfbe;
  --font-display: "Jost", system-ui, sans-serif;
  --font-body: "Tenor Sans", Georgia, serif;
  --pad-x: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

a {
  color: var(--sage);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sage);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}

.btn:hover {
  background: var(--sage-hover);
  color: var(--white);
}

.btn--dark {
  background: var(--deep);
}

.btn--dark:hover {
  background: #2f3d36;
}

.btn--outline {
  background: transparent;
  color: var(--deep);
  border-color: rgba(61, 79, 69, 0.35);
}

.btn--outline:hover {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
}

.btn--lg {
  padding: 17px 30px;
  font-size: 15px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

.info-wrap {
  width: min(1120px, calc(100% - var(--pad-x) * 2));
  margin: 0 auto;
}

.info-hero {
  position: relative;
  padding: 56px 0 32px;
  overflow: hidden;
}

.info-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(196, 168, 220, 0.3) 0%, rgba(244, 180, 198, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.info-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.info-hero h1 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--deep);
}

.info-hero__sub {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(51, 65, 58, 0.75);
}

.info-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Location */

.map-card {
  border-radius: 18px;
  overflow: hidden;
  background: #e8e6dc;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(61, 79, 69, 0.12);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 320px;
  border: 0;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 72px;
}

.info-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.info-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--deep);
}

.info-card p {
  margin: 0 0 8px;
  line-height: 1.5;
  font-size: 15px;
}

.info-card__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.info-card__links a {
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}

.info-card__links a:hover {
  text-decoration: underline;
}

/* Menu viewer */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.menu-tab {
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid rgba(61, 79, 69, 0.25);
  background: transparent;
  color: var(--deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  min-height: 44px;
}

.menu-tab:hover {
  border-color: var(--deep);
}

.menu-tab.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
}

.menu-viewer {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(61, 79, 69, 0.12);
  margin-bottom: 72px;
}

.menu-viewer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.menu-viewer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--deep);
}

.menu-viewer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flipbook {
  background: #eceae2;
  padding: 24px 18px 16px;
  outline: none;
}

.flipbook:focus-visible {
  box-shadow: inset 0 0 0 3px var(--sage);
}

.flipbook__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--page-h, 60vh);
  perspective: 2400px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.flipbook__book {
  position: relative;
  display: flex;
  height: var(--page-h);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.flipbook__book.is-double {
  width: calc(var(--page-w) * 2);
}

.flipbook__book.is-single {
  width: var(--page-w);
}

.flipbook__book.is-double.is-cover {
  transform: translateX(calc(var(--page-w) * -0.5));
}

.flipbook__book.is-double.is-back {
  transform: translateX(calc(var(--page-w) * 0.5));
}

.flipbook__page,
.flipbook__face {
  width: var(--page-w);
  height: var(--page-h);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(61, 79, 69, 0.18);
}

.flipbook__page {
  position: relative;
  cursor: pointer;
}

.flipbook__page.is-empty {
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.flipbook__page img,
.flipbook__face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.is-double .flipbook__page--left:not(.is-empty)::after,
.is-double .flipbook__page--right:not(.is-empty)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  pointer-events: none;
}

.is-double .flipbook__page--left:not(.is-empty)::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.14), transparent);
}

.is-double .flipbook__page--right:not(.is-empty)::after {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.14), transparent);
}

.flipbook__leaf {
  position: absolute;
  top: 0;
  z-index: 2;
  width: var(--page-w);
  height: var(--page-h);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1);
  pointer-events: none;
}

.flipbook__leaf.is-right {
  left: 50%;
  transform-origin: left center;
}

.is-single .flipbook__leaf.is-right {
  left: 0;
}

.flipbook__leaf.is-left {
  left: 0;
  transform-origin: right center;
}

.flipbook__leaf.is-right.is-turning,
.flipbook__leaf.is-turned {
  transform: rotateY(-180deg);
}

.flipbook__leaf.is-left.is-turning {
  transform: rotateY(180deg);
}

.flipbook__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flipbook__face--back {
  transform: rotateY(180deg);
}

.flipbook__face.is-empty {
  background: #f4f2ea;
}

.flipbook__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.flipbook__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--deep);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.flipbook__nav:hover:not(:disabled) {
  background: var(--deep);
  color: var(--white);
}

.flipbook__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.flipbook__status {
  min-width: 170px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .flipbook__book,
  .flipbook__leaf {
    transition: none;
  }
}

.menu-viewer__note {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
}

@media (max-width: 900px) {
  :root {
    --pad-x: 20px;
  }

  .info-hero {
    padding: 36px 0 24px;
  }

  .info-cards {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  .flipbook {
    padding: 14px 10px 12px;
  }

  .menu-viewer__actions .btn {
    flex: 1 1 auto;
  }
}
