:root {
  color-scheme: light;
  --ink: #161612;
  --muted: #66645c;
  --line: #ddd7c8;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --emerald: #1f6f4d;
  --emerald-soft: #e8f3ec;
  --amber: #d99b23;
  --berbere: #a63f32;
  --charcoal: #25211c;
  --locked: #ece9df;
  --shadow: 0 18px 46px rgba(37, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Noto Sans Ethiopic", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button {
  font: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(221, 215, 200, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--emerald);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.language-switch {
  display: inline-grid;
  gap: 2px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  text-align: left;
}

.language-switch span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.language-switch strong {
  font-size: 13px;
}

.has-language-modal {
  overflow: hidden;
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 18, 14, 0.72);
  backdrop-filter: blur(8px);
}

.language-card {
  display: grid;
  gap: 18px;
  width: min(520px, 100%);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.language-card h2 {
  font-size: clamp(28px, 5vw, 42px);
}

.language-card p:not(.kicker) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.language-options {
  display: grid;
  gap: 10px;
}

.language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
}

.language-options button.is-active {
  border-color: rgba(31, 111, 77, 0.5);
  background: var(--emerald-soft);
}

.language-options span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-continue {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(70vh, 680px);
  overflow: hidden;
  background: #15110d;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 12, 9, 0.88), rgba(16, 12, 9, 0.5) 46%, rgba(16, 12, 9, 0.1));
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 680px);
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  align-self: center;
  max-width: 670px;
  padding: clamp(24px, 6vw, 72px);
  color: #fff;
}

.kicker {
  margin: 0 0 8px;
  color: var(--berbere);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #f1c75c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
}

.hero-copy p:not(.kicker) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.primary-link,
.package-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--emerald);
  font-weight: 800;
  text-decoration: none;
}

.shop-section,
.dashboard-section {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading.compact {
  align-items: start;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.package-card,
.calendar-panel,
.menu-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.package-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 20px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.package-card.is-featured {
  border-color: rgba(31, 111, 77, 0.42);
  outline: 3px solid rgba(31, 111, 77, 0.12);
}

.package-card.is-selected {
  border-color: var(--amber);
  outline: 3px solid rgba(217, 155, 35, 0.22);
}

.package-topline,
.package-footer,
.metric-bar,
.calendar-legend,
.menu-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-topline,
.package-footer {
  justify-content: space-between;
}

.package-tagline,
.popular-pill,
.badge-list span,
.menu-tags span,
.menu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.package-tagline {
  color: var(--berbere);
  background: #f7e7e3;
}

.popular-pill {
  color: #fff;
  background: var(--charcoal);
}

.package-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.package-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.package-card:hover {
  transform: translateY(-2px);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-list span,
.menu-tags span {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.package-footer strong {
  display: block;
  font-size: 30px;
}

.package-footer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.package-cta {
  min-width: 180px;
  background: var(--berbere);
}

.package-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(31, 111, 77, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
}

.detail-page-card {
  margin-top: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--charcoal);
  font-weight: 800;
  text-decoration: none;
}

.detail-copy,
.detail-summary {
  min-width: 0;
}

.detail-copy p:not(.kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.package-feature-image {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
  aspect-ratio: 16 / 9;
}

.package-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-breakdown {
  margin-top: 30px;
}

.meal-breakdown h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.4vw, 30px);
}

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

.meal-grid article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.meal-grid span,
.sample-day span {
  display: block;
  margin-bottom: 8px;
  color: var(--berbere);
  font-weight: 800;
}

.meal-grid p,
.sample-day p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-summary {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--emerald-soft);
}

.detail-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.detail-price span {
  color: var(--muted);
  font-weight: 800;
}

.detail-price strong {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.detail-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--charcoal);
  line-height: 1.5;
}

.sample-day {
  padding: 14px;
  border: 1px solid rgba(31, 111, 77, 0.18);
  border-radius: 8px;
  background: #fff;
}

.detail-cta {
  width: 100%;
}

.food-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.food-picker-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.food-picker-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.food-total {
  position: sticky;
  top: 84px;
  z-index: 2;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 111, 77, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 33, 28, 0.1);
}

.food-total span,
.food-category {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.food-total strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

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

.food-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 122px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.food-card.is-picked {
  border-color: rgba(31, 111, 77, 0.48);
  background: var(--emerald-soft);
}

.food-card h3 {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.2;
}

.food-card strong {
  font-size: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 112px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.qty-control button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.qty-control span {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.metric-bar {
  position: sticky;
  top: 67px;
  z-index: 15;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(31, 111, 77, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(37, 33, 28, 0.08);
  backdrop-filter: blur(14px);
}

.metric-bar div {
  min-width: 0;
  padding: 8px 14px;
  border-right: 1px solid var(--line);
  flex: 1;
}

.metric-bar div:last-child {
  border-right: 0;
}

.metric-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-bar strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 18px;
  align-items: start;
}

.calendar-panel,
.menu-drawer {
  padding: 20px;
}

.calendar-legend {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.scheduled-dot {
  background: var(--emerald);
}

.available-dot {
  border: 1px solid var(--line);
  background: #fff;
}

.locked-dot {
  background: #b8b3a9;
}

.weekday-grid,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-grid {
  margin-bottom: 8px;
}

.weekday-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.day-cell {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(74px, 9vw, 108px);
  align-content: space-between;
  justify-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.day-cell.is-empty {
  visibility: hidden;
}

.day-cell.is-scheduled {
  border-color: rgba(31, 111, 77, 0.45);
  color: #fff;
  background: var(--emerald);
}

.day-cell.is-available:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.day-cell.is-locked {
  cursor: default;
  color: #888278;
  background: var(--locked);
}

.day-cell.is-selected {
  outline: 3px solid rgba(217, 155, 35, 0.5);
}

.day-number {
  font-size: 18px;
  font-weight: 800;
}

.day-icon {
  font-size: 12px;
  font-weight: 800;
}

.menu-drawer {
  position: sticky;
  top: 150px;
}

.drawer-handle {
  display: none;
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--line);
}

.drawer-subtitle {
  color: var(--muted);
  line-height: 1.5;
}

.menu-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.menu-badge {
  width: fit-content;
  color: var(--emerald);
  background: var(--emerald-soft);
  text-transform: capitalize;
}

.menu-badge.is-locked {
  color: #69645d;
  background: var(--locked);
}

.menu-badge.is-scheduled {
  color: #fff;
  background: var(--emerald);
}

.menu-badge.is-available {
  color: var(--berbere);
  background: #f7e7e3;
}

.menu-card h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.menu-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.menu-tags {
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .package-grid,
  .package-detail,
  .meal-grid,
  .food-grid,
  .dashboard-layout {
    grid-template-columns: 1fr 1fr;
  }

  .menu-drawer {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero::after {
    height: min(58vw, 360px);
    background: linear-gradient(180deg, rgba(16, 12, 9, 0.06), rgba(16, 12, 9, 0.54));
  }

  .hero img {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: 1774 / 887;
    object-fit: contain;
    object-position: center top;
  }

  .hero-copy {
    position: relative;
    padding: 24px;
    background: #15110d;
  }

  .shop-section,
  .dashboard-section {
    padding: 26px 14px;
  }

  .section-heading,
  .food-picker-heading,
  .package-grid,
  .package-detail,
  .meal-grid,
  .food-grid,
  .dashboard-layout,
  .metric-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .food-total {
    position: static;
    min-width: 0;
  }

  .food-card {
    grid-template-columns: 1fr;
  }

  .metric-bar {
    position: sticky;
    top: 117px;
    gap: 0;
  }

  .metric-bar div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-bar div:last-child {
    border-bottom: 0;
  }

  .calendar-panel {
    padding: 14px;
  }

  .weekday-grid,
  .calendar-grid {
    gap: 5px;
  }

  .weekday-grid span {
    font-size: 11px;
  }

  .day-cell {
    min-height: 68px;
    padding: 7px;
  }

  .day-icon {
    font-size: 10px;
  }

  .package-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .package-cta {
    width: 100%;
  }

  .menu-drawer {
    border-radius: 8px 8px 0 0;
  }

  .drawer-handle {
    display: block;
  }
}
