:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-strong: rgba(255, 245, 220, 0.95);
  --text: #07111f;
  --muted: #5d6778;
  --accent: #ffc043;
  --accent-2: #ffe29a;
  --border: rgba(7, 17, 31, 0.12);
  --shadow: 0 18px 40px rgba(255, 192, 67, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 192, 67, 0.34), transparent 28%),
    linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
  min-height: 100vh;
}

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

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr) auto;
  align-items: center;
  gap: 18px;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0 !important;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 380px;
  padding: 7px 7px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.97rem;
  outline: none;
}

.header-search button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-outline {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  box-shadow: 0 10px 24px rgba(255, 192, 67, 0.26);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn-dark {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), #ffd56b);
  box-shadow: 0 10px 25px rgba(255, 192, 67, 0.34);
}

.btn-light {
  color: #07111f;
  background: white;
}

.admin-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  color: #07111f;
  box-shadow: 0 8px 16px rgba(7, 17, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.admin-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(7, 17, 31, 0.14);
  filter: brightness(1.03);
}

.admin-action-link--open {
  background: linear-gradient(135deg, #f59e0b, #fde68a);
}

.admin-action-link--edit {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #ffffff;
}

.admin-action-link--kitchen {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #ffffff;
}

.admin-action-link--business {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 64px 0 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffb347;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-title h2,
.benefit-copy h2,
.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.08;
}

.hero p,
.section-title p,
.benefit-copy p,
.category-card p,
.mini-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.search-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.search-card input {
  flex: 1 1 240px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
}

.search-card button {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow: auto;
}

.search-suggestions button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}

.search-suggestions button:hover {
  background: rgba(255, 192, 67, 0.16);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 192, 67, 0.16);
  border: 1px solid rgba(255, 192, 67, 0.35);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-stats div {
  min-width: 110px;
  padding: 12px 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
}

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

.visual-panel {
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 223, 0.92));
  border: 1px solid rgba(255, 192, 67, 0.28);
  box-shadow: var(--shadow);
}

.map-card {
  position: relative;
  min-height: 480px;
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(7, 17, 31, 0.2)),
    linear-gradient(135deg, #1f3658, #0d1730);
}

.map-card-inner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #eef5fb;
}

.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.leaflet-bar a:hover {
  background: #f8fafc;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #ffffff;
  color: #111827;
}

.location-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #07111f;
  font-weight: 700;
}

.delivery-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  width: min(280px, calc(100% - 48px));
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  color: #07111f;
  box-shadow: var(--shadow);
}

.delivery-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffe7df;
  font-size: 1.2rem;
}

.delivery-card h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.delivery-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #5f6b80;
}

.delivery-time {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent);
}

.categories,
.benefits {
  padding: 28px 0 20px;
}

.section-title {
  margin-bottom: 22px;
}

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

.category-card,
.mini-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.25rem;
}

.category-card h3,
.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
  align-items: start;
  padding-top: 42px;
}

.benefit-copy ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.benefit-stack {
  display: grid;
  gap: 14px;
}

.cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.95), rgba(255, 179, 71, 0.95));
  box-shadow: var(--shadow);
}

.form-message {
  min-height: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-message.visible {
  color: #fff;
}

.form-message.success {
  color: #7ef0b1;
}

.form-message.error {
  color: #ffb3b3;
}

@media (max-width: 980px) {
  .hero,
  .benefits {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0;
  }

  .header-left,
  .header-right {
    justify-content: center;
  }

  .header-left {
    justify-content: flex-start;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-center {
    display: none !important;
  }

  .header-search {
    max-width: none;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 36px;
  }

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

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

@media (max-width: 480px) {
  .topbar {
    padding: 12px 14px;
    border-radius: 0;
  }

  .header-left,
  .header-right {
    width: auto;
    flex: 0 0 auto;
  }

  .header-search {
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 18px;
  }

  .header-search input {
    width: 100%;
    order: 1;
  }

  .header-search button {
    width: 100%;
    order: 2;
  }
}
