:root {
  --ivory: #fff8ec;
  --paper: rgba(255, 250, 241, 0.82);
  --paper-strong: rgba(255, 252, 246, 0.94);
  --ink: #1f1711;
  --muted: #756b61;
  --hairline: rgba(255, 255, 255, 0.58);
  --gold: #c7a05e;
  --red: #aa2724;
  --red-deep: #7d1b18;
  --shadow: 0 30px 90px rgba(18, 12, 7, 0.34);
  --soft-shadow: 0 18px 42px rgba(35, 22, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(18, 12, 7, 0.26), rgba(18, 12, 7, 0.2) 44%, rgba(231, 190, 132, 0.58) 100%),
    url("./restaurant-bg.png") center top / cover fixed no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 46vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(250, 219, 176, 0.68) 48%, rgba(255, 247, 235, 0.96));
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 18px;
}

.card {
  position: relative;
  width: min(100%, 860px);
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.52), transparent 32%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.88), rgba(255, 250, 241, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.05);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.36) 42%, transparent 62%);
  opacity: 0.45;
  transform: translateX(-70%);
  animation: sheen 5.8s ease-in-out infinite;
}

.hero,
.links,
.restaurant-info {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero {
  animation: rise-in 650ms ease both;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid rgba(199, 160, 94, 0.36);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffdf8, #f5ead8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 34px rgba(73, 43, 17, 0.18);
  overflow: hidden;
  animation: float-logo 4.8s ease-in-out infinite;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark {
  display: grid;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.brand-name {
  overflow: hidden;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tag,
.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lang-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  min-width: 56px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  box-shadow: 0 14px 28px rgba(125, 27, 24, 0.24);
  color: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(125, 27, 24, 0.3);
}

.eyebrow {
  margin: 32px 0 0;
}

.intro {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.link-tile {
  display: grid;
  gap: 0;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: var(--paper-strong);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease, border-color 220ms ease;
}

.link-tile.visible {
  opacity: 1;
  transform: translateY(0);
}

.link-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 160, 94, 0.42);
  box-shadow: 0 24px 44px rgba(35, 22, 12, 0.16);
}

.link-tile.featured {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 236, 218, 0.92));
}

.link-tile.is-open {
  border-color: rgba(199, 160, 94, 0.46);
  background:
    radial-gradient(circle at 88% 14%, rgba(199, 160, 94, 0.13), transparent 34%),
    var(--paper-strong);
}

.link-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.link-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.platform-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 9px;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 22px rgba(0, 0, 0, 0.09);
}

.platform-logo-wide {
  width: 68px;
  padding: 9px 11px;
}

.platform-logo-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.platform-logo-image-square {
  width: 100%;
  height: 100%;
}

.platform-logo-image-wide {
  width: 100%;
  height: auto;
}

.link-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.link-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.link-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.expand-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(199, 160, 94, 0.16);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.expand-toggle:hover {
  background: rgba(199, 160, 94, 0.26);
}

.link-tile.is-open .expand-toggle {
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  color: #ffffff;
  transform: rotate(90deg);
}

.expanded-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease, margin-top 220ms ease;
}

.link-tile.is-open .expanded-panel {
  max-height: 96px;
  margin-top: 14px;
  opacity: 1;
  transform: translateY(0);
}

.expanded-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 20px rgba(125, 27, 24, 0.18);
  color: #ffffff;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 20px rgba(125, 27, 24, 0.18);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.ai-review-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 13, 9, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ai-review-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ai-review-card {
  position: relative;
  width: min(100%, 540px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.7), transparent 34%),
    rgba(255, 250, 241, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.ai-review-modal.is-open .ai-review-card {
  transform: translateY(0) scale(1);
}

.ai-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(199, 160, 94, 0.18);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.ai-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-review-card h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.ai-helper {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.ai-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.ai-field input,
.ai-field textarea {
  width: 100%;
  border: 1px solid rgba(31, 23, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  outline: none;
  padding: 13px 14px;
  resize: vertical;
}

.ai-field input:focus,
.ai-field textarea:focus {
  border-color: rgba(199, 160, 94, 0.72);
  box-shadow: 0 0 0 4px rgba(199, 160, 94, 0.14);
}

.ai-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ai-options fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.ai-options legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(31, 23, 17, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.keyword-chip:hover,
.keyword-chip.is-selected {
  border-color: rgba(125, 27, 24, 0.18);
  background: rgba(125, 27, 24, 0.1);
  color: var(--red-deep);
}

.keyword-chip:hover {
  transform: translateY(-1px);
}

.ai-generate,
.ai-publish {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  box-shadow: 0 14px 28px rgba(125, 27, 24, 0.2);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
}

.ai-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-publish {
  margin-top: 16px;
}

.restaurant-info {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.hours-block,
.contact-block {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.hours-block h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hours-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hours-grid strong {
  color: var(--ink);
  font-weight: 900;
}

.contact-block {
  align-content: center;
  display: grid;
  gap: 10px;
}

.contact-line {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-label {
  color: var(--ink);
  font-weight: 900;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes sheen {
  0%,
  55% {
    transform: translateX(-70%);
  }

  100% {
    transform: translateX(85%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .page-shell {
    place-items: start center;
    padding: 28px 12px 40px;
  }

  .card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  .lang-toggle {
    top: 14px;
    right: 14px;
  }

  .brand-name {
    max-width: 220px;
    font-size: 1.8rem;
  }

  .links,
  .restaurant-info,
  .hours-grid {
    grid-template-columns: 1fr;
  }

  .link-tile {
    min-height: 98px;
  }

  .expanded-panel {
    grid-template-columns: 1fr;
  }

  .action-button {
    width: 100%;
  }

  .ai-review-card {
    padding: 22px 16px;
  }
}

@media (max-width: 560px) {
  body {
    background:
      linear-gradient(180deg, rgba(18, 12, 7, 0.06), rgba(18, 12, 7, 0.2) 36%, rgba(231, 190, 132, 0.54) 100%),
      url("./restaurant-bg.png") center top / auto 50vh no-repeat,
      linear-gradient(180deg, #201914 0%, #f3dcb9 56%, #fff7eb 100%);
  }

  .brand-mark {
    width: 68px;
    height: 68px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .platform-logo {
    width: 48px;
    height: 48px;
  }

}
