* {
  box-sizing: border-box;
}

:root {
  --background: #f5f4f1;
  --surface: #ffffff;
  --text: #171717;
  --muted: #77736d;
  --accent: #171717;
  --button-text: #ffffff;
  --border: rgba(23, 23, 23, 0.08);
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.8),
      transparent 420px
    ),
    var(--background);

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: 100%;
  max-width: 520px;

  margin: 0 auto;

  padding:
    max(46px, env(safe-area-inset-top))
    22px
    30px;
}


/* HERO */

.hero {
  text-align: center;
}

.logo {
  width: 110px;
  height: 110px;

  margin: 0 auto 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 24px;

  background: var(--surface);

  color: var(--text);

  font-size: 38px;
  font-weight: 700;

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.06);
}

.logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 10px;
}

.identity h1 {
  margin: 0;

  color: var(--text);

  font-size: 32px;
  line-height: 1.08;

  letter-spacing: -1px;
}

.category {
  margin: 8px 0 0;

  color: var(--muted);

  font-size: 14px;
  font-weight: 600;
}

.description {
  max-width: 350px;

  margin: 15px auto 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.55;
}


/* PRIMARY CTA */

.primary-action {
  width: 100%;

  margin-top: 28px;
  padding: 17px 19px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 16px;

  background: var(--accent);
  color: var(--button-text);

  text-decoration: none;

  font-size: 15px;
  font-weight: 700;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1);

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.primary-action svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action:hover {
  transform: translateY(-1px);
}

.primary-action:active {
  transform: scale(0.98);
}

.primary-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* COMPACT CAMERA ROLL */

.business-gallery {
  margin-top: 14px;
  padding: 17px 0 16px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--surface);

  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.025);
}

.business-gallery.hidden {
  display: none;
}

.gallery-header {
  padding: 0 17px 12px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 14px;
}

.gallery-eyebrow {
  display: block;

  margin-bottom: 4px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.gallery-header h2 {
  margin: 0;

  color: var(--text);

  font-size: 19px;
  line-height: 1.15;

  letter-spacing: -0.3px;
}

.gallery-indication {
  padding-bottom: 2px;

  flex-shrink: 0;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}

.gallery-track {
  padding:
    0
    17px
    3px;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;

  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;

  overscroll-behavior-inline:
    contain;

  scroll-snap-type:
    x mandatory;

  scrollbar-width: none;

  -webkit-overflow-scrolling:
    touch;

  cursor: grab;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-item {
  width: 100%;
  height: 158px;

  margin: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--background);

  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}
/* QUICK ACTIONS */

.quick-actions {
  margin-top: 14px;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 9px;
}

.action-card {
  min-height: 92px;

  padding: 14px 7px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 9px;

  border: 1px solid var(--border);
  border-radius: 17px;

  background: var(--surface);

  color: var(--text);

  text-decoration: none;

  font-size: 11px;
  font-weight: 600;

  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.025);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.05);
}

.action-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon-box {
  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: var(--background);
}

.icon-box svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* BUSINESS MENU */

.business-menu {
  margin-top: 14px;
  padding: 22px 18px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--surface);

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.04);

  scroll-margin-top: 18px;
}

.business-menu[hidden] {
  display: none;
}

.menu-header {
  padding-bottom: 18px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--border);
}

.menu-eyebrow {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.menu-header h2 {
  margin: 0;

  color: var(--text);

  font-size: 25px;
  line-height: 1.1;

  letter-spacing: -0.5px;
}

.menu-header p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

.close-menu {
  min-width: 78px;
  min-height: 38px;

  padding: 8px 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: var(--background);
  color: var(--text);

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.close-menu span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.close-menu:hover {
  background: var(--surface);

  transform: translateY(-1px);
}

.close-menu:active {
  transform: scale(0.97);
}

.close-menu:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.menu-categories {
  margin-top: 14px;
}

.menu-category {
  overflow: hidden;

  border-bottom: 1px solid var(--border);
}

.menu-category:last-child {
  border-bottom: 0;
}

.menu-category-button {
  width: 100%;
  min-height: 68px;

  padding: 14px 3px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border: 0;

  background: transparent;
  color: var(--text);

  text-align: left;
  font-family: inherit;

  cursor: pointer;
}

.menu-category-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 10px;
}

.menu-category-button > span:first-child {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.menu-category-button strong {
  font-size: 14px;
  font-weight: 700;
}

.menu-category-button small {
  color: var(--muted);

  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.menu-category-icon {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 9px;

  background: var(--background);
  color: var(--text);

  font-size: 19px;
  font-weight: 400;
  line-height: 1;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.menu-category.open
.menu-category-icon {
  transform: rotate(45deg);

  background: var(--accent);
  color: var(--button-text);
}

.menu-category-panel {
  padding: 0 3px 10px;
}

.menu-category-panel[hidden] {
  display: none;
}

.menu-item {
  min-height: 62px;

  padding: 13px 0;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  border-top: 1px solid var(--border);
}

.menu-item-information {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.menu-item-name {
  color: var(--text);

  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.menu-item-description {
  color: var(--muted);

  font-size: 11px;
  line-height: 1.45;
}

.menu-item-price {
  flex-shrink: 0;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;
}


/* BUSINESS INFORMATION */

.business-card {
  margin-top: 14px;

  padding: 5px 18px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--surface);

  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.025);
}

.status-row {
  min-height: 70px;

  display: flex;
  align-items: center;
}

.status {
  display: flex;
  align-items: center;

  gap: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #999999;
}

.status-dot.open {
  background: #3e9d64;

  box-shadow:
    0 0 0 4px rgba(62, 157, 100, 0.1);
}

.status-dot.closed {
  background: #b2645a;

  box-shadow:
    0 0 0 4px rgba(178, 100, 90, 0.1);
}

.status-title {
  display: block;

  font-size: 14px;
  font-weight: 700;
}

.status-subtitle {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
}

.divider {
  height: 1px;

  background: var(--border);
}

.detail-row {
  min-height: 72px;

  display: flex;
  align-items: center;

  gap: 13px;
}

.detail-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 11px;

  background: var(--background);
}

.detail-icon svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-label {
  display: block;

  color: var(--muted);

  font-size: 11px;
  font-weight: 500;
}

.detail-value {
  display: block;

  margin-top: 3px;

  color: var(--text);

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;
}


/* FOOTER */

footer {
  margin-top: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  color: var(--muted);

  font-size: 11px;
}

footer strong {
  color: var(--text);

  font-size: 11px;
  letter-spacing: 0.6px;
}


/* UTILITIES */

.hidden {
  display: none !important;
}


/* MOBILE */

@media (max-width: 390px) {
  .page {
    padding-left: 17px;
    padding-right: 17px;
  }

  .identity h1 {
    font-size: 29px;
  }

  .quick-actions {
    gap: 7px;
  }

  .action-card {
    min-height: 86px;

    padding-left: 4px;
    padding-right: 4px;

    font-size: 10px;
  }

  .business-menu {
    padding: 19px 15px;
  }

  .menu-header {
    gap: 12px;
  }

  .menu-header h2 {
    font-size: 23px;
  }

  .close-menu {
    min-width: 68px;
  }

  .menu-category-button {
    min-height: 64px;
  }

  .menu-item {
    gap: 12px;
  }
  .business-gallery {
    padding-top: 15px;
    padding-bottom: 14px;
  }

  .gallery-header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .gallery-track {
    padding-left: 15px;
    padding-right: 15px;
    grid-auto-columns: 72%;
  }

  .gallery-item {
    height: 142px;
  }

  .gallery-header h2 {
    font-size: 18px;
  }
}
