/* ============================================
   Merdith's Burgers – Brand palette
   ============================================ */

:root {
  /* Midnight Black  – backgrounds, overlays, footer */
  --color-dark: #0a0a0a;
  --color-dark-soft: #1a1a1a;
  /* Golden Bun – primary buttons, headings, highlights */
  --color-primary: #f2a116;
  --color-primary-hover: #d98e0e;
  /* Cheese Glow – hover accents, badges, dividers */
  --color-primary-light: #ffc233;
  /* Burger Purple – cards, outlines, secondary buttons */
  --color-accent: #9b79c8;
  /* Lavender Smoke – soft gradients, subtle fills */
  --color-accent-light: #c8b0e8;
  /* Warm White – body bg, text on dark */
  --color-bg: #fff7ec;
  --color-card: #ffffff;
  --color-border: #c8b0e8;
  --color-text: #0a0a0a;
  --color-text-muted: #6b7280;
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-warning: #d97706;

  /* Spacing & typography */
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-dark);
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.85;
}

.logo-image {
  height: 52px;
  width: 52px;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.logo-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-dark);
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.nav-main {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-main a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover {
  color: var(--color-dark);
  border-bottom-color: var(--color-dark);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.btn-outline-dark:hover {
  background: var(--color-dark);
  color: white;
}

.btn-cta {
  background: var(--color-primary);
  color: var(--color-dark);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
}

.btn-cta:hover {
  background: var(--color-primary-hover);
}

/* ---- Main content ---- */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ---- Cards ---- */
.card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.1s;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
  border-radius: 999px;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  background: var(--color-dark-soft);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 999px;
}

.btn-ghost:hover {
  background: var(--color-accent);
  color: white;
}

/* ---- Page headings ---- */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.page-title::first-line {
  color: var(--color-dark);
}

.page-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* ---- Order / Menu ---- */
.order-form {
  max-width: 560px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-bottom: none;
  transition: background 0.2s;
}

.menu-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.menu-item:last-child {
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.menu-item:hover {
  background: var(--color-bg);
}

.item-name {
  flex: 1;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1rem;
}

.item-price {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  min-width: 4ch;
}

.qty-input {
  width: 4.5rem;
  padding: 0.5rem 0.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.basket-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
}

.basket-subtotal-value {
  color: var(--color-dark);
}

.btn-checkout {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 560px;
}

.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Checkout ---- */
.checkout-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.order-summary {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.order-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
}

.order-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-summary li {
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.order-summary li:last-of-type {
  border-bottom: none;
}

.order-summary .total {
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  border-top: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-summary .total-price {
  text-align: right;
  flex-shrink: 0;
}

#dropin-container {
  min-height: 320px;
  padding: 1rem 0;
}

/* ---- Index / Home – Hero ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2rem 0 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2rem;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--color-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.text-golden {
  color: var(--color-primary);
}

.hero-body {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 440px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.btn-lg {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
}

/* Featured combo card */
.featured-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.featured-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.featured-name {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.featured-price {
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Featured combo photo */
.featured-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.featured-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Info chips row */
.featured-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.info-chip {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.info-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.info-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.3;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0 2rem;
}

.stat-card {
  background: var(--color-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* ---- Auth Adjustments ---- */
.auth-demo .card {
  max-width: 480px;
}

.auth-demo .btn {
  margin-top: 0.5rem;
}

/* ---- Result pages ---- */
.result-page {
  text-align: center;
  padding: 3rem 2rem;
}

.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-weight: bold;
}

.result-success .result-icon {
  color: var(--color-success);
  background: #d1fae5;
}
.result-failed .result-icon {
  color: var(--color-error);
  background: #fee2e2;
}
.result-error .result-icon {
  color: var(--color-warning);
  background: #fef3c7;
}

.result-page .btn {
  margin-top: 1.5rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-group .btn {
  margin-top: 0;
}

/* ---- Admin ---- */
.admin-panel .card {
  margin-bottom: 1rem;
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.payment-ref {
  font-size: 0.8125rem;
}

.payment-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
  border-bottom: none;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-bg);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-logo:hover {
  color: var(--color-accent);
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Explainer (integration notes for demos) ---- */
.explainer {
  margin: 1.5rem 0;
  background: var(--color-bg);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.explainer-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark-soft);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.explainer-toggle:hover {
  background: rgba(242, 161, 22, 0.1);
}

.explainer-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.explainer-title {
  flex: 1;
}

.explainer-chevron {
  font-size: 0.75rem;
  transition: transform 0.2s;
  color: var(--color-text-muted);
}

.explainer.is-collapsed .explainer-chevron {
  transform: rotate(0deg);
}

.explainer:not(.is-collapsed) .explainer-chevron {
  transform: rotate(-180deg);
}

.explainer.is-collapsed .explainer-body {
  display: none;
}

.explainer-body {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text);
}

.explainer-body p {
  margin: 0 0 0.75rem;
}

.explainer-body p:last-child,
.explainer-body ul:last-child {
  margin-bottom: 0;
}

.explainer-body code,
.explainer-body .code-block {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.explainer-body .code-block {
  display: block;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  overflow-x: auto;
}

.explainer-body ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.explainer-body li {
  margin-bottom: 0.25rem;
}

/* ---- Utility ---- */
.error {
  color: var(--color-error);
  padding: 1rem;
  background: #fef2f2;
  border-radius: var(--radius-md);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-dark);
}
.badge-authorised {
  background: var(--color-accent-light);
  color: #5b21b6;
}
.badge-captured {
  background: #d1fae5;
  color: #065f46;
}
.badge-voided {
  background: #fef2f2;
  color: #991b1b;
}
.badge-adjusted {
  background: var(--color-primary-light);
  color: #92400e;
}

/* ---- Booking flow steps ---- */
.booking-step {
  transition: opacity 0.2s;
  margin: 0 auto 1.5rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
}

.booking-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.booking-select {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  cursor: pointer;
}

.booking-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Date picker grid */
.date-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  min-width: 4.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  font-family: var(--font-sans);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.date-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.date-btn.selected {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: white;
}

.date-day {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0.7;
}

.date-btn.selected .date-day {
  opacity: 0.9;
}

.date-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.7;
}

.date-btn.selected .date-month {
  opacity: 0.9;
}

/* Time picker grid */
.time-grid {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.time-btn {
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.time-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.time-btn.selected {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: white;
}

/* Booking summary on step 2 */
.booking-summary {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
}

.summary-row span {
  color: var(--color-text-muted);
}

.summary-row strong {
  color: var(--color-dark);
}
