:root {
  --bg: #f6efe3;
  --bg-accent: #ead8bb;
  --card: rgba(255, 250, 242, 0.88);
  --card-strong: #fff8ee;
  --text: #2c1b10;
  --muted: #6d5546;
  --line: rgba(88, 58, 35, 0.14);
  --brand: #b4471b;
  --brand-dark: #7f2d14;
  --highlight: #f3b664;
  --shadow: 0 22px 48px rgba(78, 47, 23, 0.13);
}

* {
  box-sizing: border-box;
}

html:not(.page-ready) body {
  opacity: 0;
  visibility: hidden;
}

html.page-ready body {
  opacity: 1;
  visibility: visible;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  transition: opacity 0.18s ease;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 153, 0.8), transparent 30%),
    radial-gradient(circle at top right, rgba(180, 71, 27, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #fffaf3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.35;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px;
  border: 1px solid rgba(122, 70, 20, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.95), rgba(243, 182, 100, 0.52)),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(180, 71, 27, 0.12);
}

.hero--admin {
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.95), rgba(160, 194, 151, 0.58)),
    var(--card);
}

.hero--feedback {
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.95), rgba(116, 177, 211, 0.5)),
    var(--card);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.hero__copy,
.panel__head p,
.category-card__meta,
.admin-card__meta,
label,
input,
select,
button {
  font-size: 1rem;
}

.hero__copy,
.panel__head p {
  max-width: 40rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__link,
.button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff7f1;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(127, 45, 20, 0.22);
}

.hero__link--secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(127, 45, 20, 0.2);
  box-shadow: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.site-footer {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 45, 20, 0.24);
}

.whatsapp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(28, 126, 76, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(241, 255, 247, 0.95), rgba(125, 219, 163, 0.28)),
    var(--card);
  box-shadow: var(--shadow);
}

.whatsapp-card__content {
  display: grid;
  gap: 14px;
}

.whatsapp-card__aside {
  display: flex;
  justify-content: end;
  align-items: center;
}

.whatsapp-card__number {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #156b43;
}

.whatsapp-card__number--link {
  text-decoration: none;
  width: fit-content;
  border-bottom: 2px solid rgba(21, 107, 67, 0.22);
}

.whatsapp-card__number--link:hover {
  border-color: #156b43;
}

.whatsapp-card__caption {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -2px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(180, 71, 27, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(180, 71, 27, 0.16), rgba(243, 182, 100, 0.38));
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(180, 71, 27, 0.12);
}

.feedback-promo {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(180, 71, 27, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.96), rgba(255, 222, 187, 0.42)),
    var(--card);
  box-shadow: var(--shadow);
}

.feedback-promo__content {
  display: grid;
  gap: 10px;
}

.category-card,
.panel,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.category-card {
  padding: 24px;
  animation: rise-in 0.45s ease both;
}

.category-card--accordion {
  padding: 0;
  overflow: hidden;
}

.category-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}

.category-card__summary::-webkit-details-marker {
  display: none;
}

.category-card__meta {
  margin-top: 8px;
  color: var(--muted);
}

.category-card__toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(243, 182, 100, 0.2);
  color: var(--brand-dark);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.category-card[open] .category-card__toggle {
  transform: rotate(45deg);
}

.menu-list {
  margin: 0;
  padding: 0 24px 22px;
  list-style: none;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px dashed rgba(88, 58, 35, 0.16);
}

.menu-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.menu-item__name {
  font-weight: 600;
}

.menu-item__note {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-item__price {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(243, 182, 100, 0.24);
  font-weight: 700;
  text-align: center;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 28px;
}

.feedback-layout {
  margin-top: 28px;
}

.panel {
  padding: 24px;
}

.panel--narrow {
  width: min(100%, 520px);
  margin: 0 auto;
}

.panel__head {
  margin-bottom: 18px;
}

.panel__head--subsection {
  margin-top: 28px;
}

.admin-form,
.admin-items {
  display: grid;
  gap: 14px;
}

.admin-form--inline {
  margin-bottom: 18px;
}

.admin-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.admin-actions--inline {
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(88, 58, 35, 0.14);
  border-radius: 14px;
  background: var(--card-strong);
  color: var(--text);
  font-family: inherit;
}

textarea {
  padding: 14px;
  resize: vertical;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-card__meta {
  color: var(--muted);
}

.admin-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-card__actions {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.button--secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(127, 45, 20, 0.2);
  box-shadow: none;
}

.feedback-status {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--brand-dark);
  font-weight: 600;
}

.feedback-list {
  display: grid;
  gap: 16px;
}

.feedback-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feedback-card--empty {
  text-align: center;
}

.feedback-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.feedback-card__meta,
.feedback-card__date {
  margin: 0;
  color: var(--muted);
}

.feedback-card__message {
  margin: 0;
  line-height: 1.6;
}

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

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

@media (max-width: 860px) {
  .hero,
  .feedback-promo,
  .whatsapp-card,
  .admin-layout,
  .admin-card__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    flex-direction: column;
  }

  .feedback-promo {
    flex-direction: column;
    align-items: start;
  }

  .whatsapp-card__aside {
    justify-content: start;
  }

  .feedback-card__top {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
  }

  .hero,
  .feedback-promo,
  .whatsapp-card,
  .panel,
  .category-card,
  .admin-card {
    padding: 18px;
    border-radius: 20px;
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .menu-item__price,
  .admin-card__actions .button {
    width: 100%;
  }

  .admin-card__actions {
    flex-direction: column;
  }
}
