:root {
  --color-blue: #001F3F;
  --color-tan: #F5E8D2;
  --color-gold: #D4AF37;
  --color-white: #FFFFFF;
  --color-text: #23201A;
  --color-muted: #6b6455;
  --shadow: 0 4px 16px rgba(0, 31, 63, 0.12);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--color-tan);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-blue);
  margin-top: 0;
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
header.site-header {
  background: var(--color-blue);
  color: var(--color-tan);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-tan);
}

.brand img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.hero-logo {
  height: 132px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 12px;
}

.footer-logo {
  height: 90px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.brand span {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav.main-nav a {
  color: var(--color-tan);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(212, 175, 55, 0.25);
  color: var(--color-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
}

.btn-preorder {
  background: var(--color-gold);
  color: var(--color-blue) !important;
  font-weight: bold;
}

/* Main content */
main {
  min-height: 60vh;
  padding: 40px 0 60px;
}

.hero {
  background: linear-gradient(180deg, var(--color-blue) 0%, #0a2e52 100%);
  color: var(--color-tan);
  padding: 60px 0;
  text-align: center;
}

.hero h1 { color: var(--color-gold); font-size: 2.2rem; }
.hero p { font-size: 1.1rem; max-width: 600px; margin: 12px auto 0; }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-blue);
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.badge.muted { background: #ddd; color: #555; }
.badge.danger { background: #c0392b; color: white; }

.spots-remaining {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-blue);
}

.spots-remaining .num { color: var(--color-gold); font-size: 1.6rem; }

.countdown {
  color: var(--color-muted);
  font-style: italic;
}

.btn {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-tan);
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover { background: #0a2e52; }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-blue);
  font-weight: bold;
}

.btn-gold:hover { background: #c19b2e; }

.btn[disabled] {
  background: #ccc;
  color: #777;
  cursor: not-allowed;
}

form .field {
  margin-bottom: 16px;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--color-blue);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

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

.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.form-message.error { background: #fbe4e2; color: #a5311f; }
.form-message.success { background: #e2f5e6; color: #1f6d33; }

.no-refund-notice {
  background: #fff3cd;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: bold;
  color: #6b4e00;
}

.review {
  border-bottom: 1px solid #e6ddc8;
  padding: 14px 0;
}

.review:last-child { border-bottom: none; }

.stars { color: var(--color-gold); letter-spacing: 2px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

img.dish-photo,
img.about-photo {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item {
  text-align: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 6px;
}

/* Media editor (crop/trim) modal */
.media-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 31, 63, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.media-editor-box {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.crop-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #222;
  margin: 0 auto;
  touch-action: none;
  cursor: grab;
}

.crop-frame .crop-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  user-select: none;
  pointer-events: none;
}

.media-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Footer */
footer.site-footer {
  background: var(--color-blue);
  color: var(--color-tan);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  color: var(--color-gold);
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid span {
  color: var(--color-tan);
  display: block;
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 232, 210, 0.2);
  font-size: 0.85rem;
  color: rgba(245, 232, 210, 0.7);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-blue);
    padding: 10px 0;
  }
  nav.main-nav.open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-wrap h1 { font-size: 1.5rem; }
  .admin-wrap .card h2 { font-size: 1.2rem; }
}

/* Admin */
.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

.card:has(> table.admin-table) {
  overflow-x: auto;
}

table.admin-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.admin-table th,
table.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

table.admin-table th {
  background: var(--color-blue);
  color: var(--color-tan);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tabs button {
  background: white;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.tabs button.active {
  background: var(--color-blue);
  color: var(--color-tan);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Sold out banner */
.sold-out-banner {
  background: #c0392b;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Order code */
.order-code-box {
  background: var(--color-blue);
  color: var(--color-gold);
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

/* FAQ */
.faq-item { padding: 12px 16px; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--color-blue);
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}
.faq-question::before { content: '+ '; color: var(--color-gold); }
.faq-question.open::before { content: '- '; }
.faq-answer { padding: 8px 0 0; color: var(--color-text); }

/* Admin ingredient rows */
.ingredient-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.ingredient-row input { margin: 0; }

.option-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.addon-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.option-row input,
.addon-row input { margin: 0; }

.order-option-choice {
  display: block;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.order-option-choice input {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  cursor: pointer;
}

.order-option-choice:hover { border-color: var(--color-blue); }
.order-option-choice.selected {
  border-color: var(--color-gold);
  background: #fffaf0;
  box-shadow: 0 0 0 1px var(--color-gold);
}
.order-option-choice:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.order-option-choice:has(input:disabled):hover { border-color: #ddd; }

.addon-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.addon-choice label { margin: 0; font-weight: normal; color: var(--color-text); }
.addon-choice select { width: auto; min-width: 60px; }

.order-total-box {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-blue);
  margin: 16px 0;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.checklist-item.checked-in { opacity: 0.5; text-decoration: line-through; }

.stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.stat-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  min-width: 140px;
}
.stat-box .stat-value { font-size: 1.6rem; font-weight: bold; color: var(--color-blue); }
.stat-box .stat-label { font-size: 0.85rem; color: var(--color-muted); }

@media print {
  header.site-header, footer.site-footer, .tabs, .btn { display: none !important; }
}
