/* Sunnyside Roost v4 + account/chat */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #120e0b;
  --bg-elevated: #1a1410;
  --bg-card: #211a15;
  --bg-alt: #18120e;
  --surface: #2a211b;
  --text: #f6efe6;
  --text-muted: #c4b5a4;
  --text-dim: #8f7f70;
  --gold: #e8a54b;
  --gold-bright: #f0b85c;
  --gold-deep: #c4852e;
  --cream: #f3e6d4;
  --heat: #e85d3a;
  --tots: #6dbf8a;
  --line: rgba(243, 230, 212, 0.1);
  --line-strong: rgba(243, 230, 212, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  color: var(--cream);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--gold);
  color: #1a1008;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 14, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--cream);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.brand-text {
  font-size: 1.05rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--text-muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(243, 230, 212, 0.06);
}

.nav-link.is-active {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(18, 14, 11, 0.98);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile .nav-link {
  padding: 0.85rem 0.9rem;
}

.nav-mobile .btn {
  margin-top: 0.5rem;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.2;
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #1a1008;
  box-shadow: 0 8px 24px rgba(232, 165, 75, 0.28);
}

.btn-primary:hover {
  color: #1a1008;
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--cream);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--gold);
}

.btn-ghost {
  background: rgba(18, 14, 11, 0.35);
  color: var(--cream);
  border-color: rgba(243, 230, 212, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(243, 230, 212, 0.12);
  color: #fff;
  border-color: rgba(243, 230, 212, 0.55);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  color: var(--gold-bright);
  font-weight: 650;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 2.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.2) 0%, rgba(18, 14, 11, 0.28) 40%, rgba(18, 14, 11, 0.78) 100%),
    linear-gradient(90deg, rgba(18, 14, 11, 0.78) 0%, rgba(18, 14, 11, 0.45) 38%, rgba(18, 14, 11, 0.08) 68%, rgba(18, 14, 11, 0.05) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  margin-right: auto;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  padding-top: 1.25rem;
  max-width: min(22rem, 42vw);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.5rem);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.hero-lead {
  color: var(--cream);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5.5rem;
}

.hero-stats strong {
  font-size: 1.25rem;
  color: var(--gold-bright);
  font-weight: 800;
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (min-width: 760px) {
  .hero {
    align-items: center;
    padding: 2rem 0 3rem;
    min-height: min(82vh, 720px);
  }
  .hero-content {
    padding-top: 0.5rem;
    max-width: min(26rem, 38%);
  }
}

@media (max-width: 559px) {
  .hero-content {
    max-width: 100%;
  }
}

/* Marquee */
.strip-marquee {
  background: var(--gold-deep);
  color: #1a1008;
  overflow: hidden;
  border-block: 1px solid rgba(0, 0, 0, 0.15);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.7rem 0;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section.alt-bg,
.alt-bg {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  margin: 0;
}

.section-sub {
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 36rem;
}

.center-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

.featured-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.food-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.food-card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.food-card-link:hover {
  color: inherit;
}

.food-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}

.food-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.food-card:hover .food-card-img img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(18, 14, 11, 0.82);
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}

.badge-heat {
  color: #ffb39f;
  border-color: rgba(232, 93, 58, 0.45);
}

.badge-tots {
  color: #b6f0c9;
  border-color: rgba(109, 191, 138, 0.45);
}

.food-card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.food-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.food-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.price {
  display: inline-block;
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 1.05rem;
}

/* Split */
.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.split-copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.split-copy p {
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--cream);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.2);
}

.check-list a {
  font-weight: 650;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

/* Categories */
.cat-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  color: inherit;
  box-shadow: var(--shadow);
}

.cat-card:hover {
  color: inherit;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem 1.25rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(18, 14, 11, 0.92) 55%);
}

.cat-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.cat-card-body p {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
}

.step-num {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* CTA banner */
.cta-banner {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.cta-banner-media {
  position: absolute;
  inset: 0;
}

.cta-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner .hero-scrim {
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.55), rgba(18, 14, 11, 0.82)),
    linear-gradient(90deg, rgba(18, 14, 11, 0.7), rgba(18, 14, 11, 0.35));
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.cta-banner-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.cta-banner-content > p {
  color: var(--cream);
  margin-bottom: 1.25rem;
}

/* Quotes */
.quote-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.quote-card p {
  color: var(--cream);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.quote-card footer {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Page hero */
.page-hero {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(232, 165, 75, 0.12), transparent 55%),
    var(--bg);
}

.page-hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin-bottom: 0;
}

.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 650;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Menu page */
.menu-section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.menu-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  align-items: start;
}

.menu-item.featured-item {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .menu-item.featured-item {
    grid-template-columns: 180px 1fr;
  }
}

.menu-item-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
}

.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-body.full {
  grid-column: 1 / -1;
}

.menu-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.menu-item-top h3 {
  margin: 0;
  font-size: 1.08rem;
}

.menu-item-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.tag-heat {
  color: #ffb39f;
  border-color: rgba(232, 93, 58, 0.35);
}

.tag-tots {
  color: #b6f0c9;
  border-color: rgba(109, 191, 138, 0.35);
}

.extras-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .extras-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.extra-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
}

.extra-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--gold-bright);
}

.extra-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.extra-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.45rem;
}

.extra-list li span:last-child {
  color: var(--cream);
  font-weight: 700;
  white-space: nowrap;
}

.menu-note {
  margin-top: 1.75rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(232, 165, 75, 0.06);
  color: var(--text-muted);
  display: grid;
  gap: 0.65rem;
}

.menu-note strong {
  color: var(--cream);
}

/* About */
.pillars {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}

.pillar-icon {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.pillar-card h3 {
  font-size: 1.15rem;
}

.pillar-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.narrow-copy {
  max-width: 40rem;
  text-align: center;
}

.narrow-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.narrow-copy .center-cta .btn {
  min-width: 10rem;
}

/* Order form */
.order-section {
  padding-top: 2rem;
}

.order-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 920px) {
  .order-layout {
    grid-template-columns: 1.4fr 0.75fr;
    gap: 2rem;
  }
}

.order-form-wrap {
  min-width: 0;
}

.order-form {
  display: grid;
  gap: 1.25rem;
}

.form-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
}

.form-block h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.form-block h3 {
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin: 0 0 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field-fulfillment {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span,
.field legend {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field-hint {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: -0.35rem 0 1rem;
}

.field-fulfillment {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  font-weight: 650;
  font-size: 0.92rem;
}

.radio-chip:has(input:checked) {
  border-color: var(--gold);
  background: rgba(232, 165, 75, 0.12);
  color: var(--gold-bright);
}

.radio-chip input {
  accent-color: var(--gold);
}

.order-menu-group {
  margin-bottom: 1.15rem;
}

.order-items {
  display: grid;
  gap: 0.45rem;
}

.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.order-item:has(input[type="checkbox"]:checked) {
  border-color: rgba(232, 165, 75, 0.55);
  background: rgba(232, 165, 75, 0.08);
}

.order-item input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}

.oi-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.oi-price {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 650;
}

.order-item .qty {
  width: 3.4rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 0.35rem 0.35rem;
  text-align: center;
}

.order-item .qty:disabled {
  opacity: 0.4;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  cursor: pointer;
}

.check-field input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  width: 1.1rem;
  height: 1.1rem;
}

.form-actions {
  display: grid;
  gap: 0.75rem;
}

.form-legal {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 0;
}

.form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(232, 93, 58, 0.12);
  border: 1px solid rgba(232, 93, 58, 0.35);
  color: #ffb39f;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success[hidden] {
  display: none !important;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid rgba(109, 191, 138, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-card h2 {
  color: #b6f0c9;
  margin-bottom: 0.5rem;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.order-aside {
  display: grid;
  gap: 1rem;
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}

.aside-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--gold-bright);
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.aside-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.aside-list li span:last-child {
  color: var(--cream);
  font-weight: 650;
}

.aside-photo {
  padding: 0;
  overflow: hidden;
}

.aside-photo img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.aside-photo p {
  padding: 0.9rem 1rem 1.05rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Account */
.account-section {
  padding-top: 2rem;
}

.account-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .account-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.auth-panel,
.session-panel {
  min-width: 0;
}

.auth-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.4rem;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: var(--bg);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.is-active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #1a1008;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-footnote {
  margin: 1.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.session-card {
  background: var(--bg-card);
  border: 1px solid rgba(109, 191, 138, 0.28);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.session-card h2 {
  margin-bottom: 1rem;
}

.session-meta {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.session-meta div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.session-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.session-meta dd {
  margin: 0;
  color: var(--cream);
  font-weight: 650;
  word-break: break-all;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.account-aside {
  display: grid;
  gap: 1rem;
}

/* Chat */
.chat-section {
  padding-top: 1.5rem;
}

.chat-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 920px) {
  .chat-layout {
    grid-template-columns: 1.5fr 0.7fr;
  }
}

.chat-shell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.room-chip {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.room-chip.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 165, 75, 0.12);
}

.chat-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-status {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.chat-gate {
  padding: 2.5rem 1.25rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  color: var(--text-muted);
}

.chat-gate[hidden] {
  display: none !important;
}

.chat-feed-wrap {
  flex: 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(52vh, 480px);
  min-height: 260px;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  padding: 2rem 1rem;
  max-width: 22rem;
}

.chat-msg {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  max-width: 100%;
}

.chat-msg.is-own {
  border-color: rgba(232, 165, 75, 0.4);
  background: rgba(232, 165, 75, 0.08);
}

.chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.chat-msg-author {
  font-weight: 750;
  color: var(--gold-bright);
  font-size: 0.92rem;
}

.chat-msg-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chat-msg-body {
  margin: 0;
  color: var(--cream);
  font-size: 0.98rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.chat-action {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-action:hover {
  color: var(--gold-bright);
}

.chat-action-danger:hover {
  color: #ffb39f;
}

.chat-edit-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  resize: vertical;
  min-height: 64px;
  margin-bottom: 0.5rem;
}

.chat-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chat-compose {
  border-top: 1px solid var(--line);
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.65rem;
  background: var(--bg-elevated);
}

.chat-compose .field textarea {
  min-height: 64px;
}

.chat-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.chat-compose-actions .form-error {
  flex: 1;
  min-width: 12rem;
}

.chat-aside {
  display: grid;
  gap: 1rem;
}

.chat-room-legend li span:last-child {
  font-weight: 500;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  background: #0e0b09;
  padding-top: 2.75rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.85rem;
  font-size: 0.95rem;
  max-width: 22rem;
}

.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--cream);
  font-weight: 550;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-meta li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-tag {
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(26, 20, 16, 0.92);
  color: var(--cream);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.back-top:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.back-top[hidden] {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
  }
  .food-card,
  .food-card-img img,
  .cat-card img,
  .btn {
    transition: none;
  }
}