/* MenuRes platform landing page (Views/Home/Index.cshtml).
   Self-contained page (Layout = null) with its own token set — deliberately not reusing
   style.css's --primary-color etc., since those are the per-restaurant *menu* brand tokens
   a diner sees, not the platform's own identity. Palette derived from the one real brand
   asset in the repo (wwwroot/images/pjeLogo.png, the admin-login mark): deep teal family,
   paired with the app's own established red (style.css --primary-color: #dc2626) as the
   CTA accent, so this page and the product a new owner lands in afterward don't clash. */

:root {
  --home-teal-900: #0b3538;
  --home-teal-700: #185a5c;
  --home-teal-500: #2c8385;
  --home-teal-200: #bfe0dd;
  --home-teal-100: #eaf5f4;
  --home-accent: #dc2626;
  --home-accent-hover: #b91c1c;
  --home-ink: #12242a;
  --home-ink-soft: #4b6367;
  --home-surface: #ffffff;
  --home-bg: #f6faf9;
  --home-border: #dbe9e7;

  --home-radius-sm: 8px;
  --home-radius-md: 14px;
  --home-radius-lg: 22px;
  --home-radius-pill: 999px;

  --home-shadow-sm: 0 1px 3px rgba(11, 53, 56, 0.08);
  --home-shadow-md: 0 8px 24px rgba(11, 53, 56, 0.1);
  --home-shadow-lg: 0 20px 45px rgba(11, 53, 56, 0.16);

  --home-space-1: 0.5rem;
  --home-space-2: 1rem;
  --home-space-3: 1.5rem;
  --home-space-4: 2.5rem;
  --home-space-5: 4rem;
}

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

* { box-sizing: border-box; }

html { background-color: var(--home-bg); }

body.home-body {
  margin: 0;
  direction: rtl;
  font-family: "Yekan Bakh", sans-serif;
  color: var(--home-ink);
  line-height: 1.7;
  background-color: var(--home-bg);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.home-container {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--home-surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--home-border);
}
.home-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--home-teal-900);
}
.home-brand img { width: 2rem; height: 2rem; object-fit: contain; }

.home-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  color: var(--home-ink-soft);
}
.home-nav a:hover { color: var(--home-teal-700); }

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* --- Buttons --- */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--home-radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.home-btn--primary {
  background-color: var(--home-accent);
  color: #fff;
  box-shadow: var(--home-shadow-sm);
}
.home-btn--primary:hover {
  background-color: var(--home-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--home-shadow-md);
}
.home-btn--ghost {
  background-color: transparent;
  color: var(--home-teal-900);
  border-color: var(--home-border);
}
.home-btn--ghost:hover { background-color: var(--home-teal-100); }
.home-btn--lg { min-height: 52px; padding: 0 1.75rem; font-size: 1rem; }
.home-btn--block { width: 100%; }

/* --- Hero --- */
.home-hero {
  padding: var(--home-space-5) 0 var(--home-space-4);
  background: linear-gradient(180deg, var(--home-teal-100) 0%, var(--home-bg) 100%);
  overflow: hidden;
}
.home-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--home-space-3);
  text-align: center;
  align-items: center;
}
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--home-radius-pill);
  background-color: var(--home-teal-900);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.home-hero__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  max-width: 40rem;
  color: var(--home-teal-900);
}
.home-hero__title span { color: var(--home-accent); }
.home-hero__subtitle {
  font-size: 1.05rem;
  color: var(--home-ink-soft);
  max-width: 34rem;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.home-hero__note {
  font-size: 0.82rem;
  color: var(--home-ink-soft);
}

.home-hero__preview {
  margin-top: var(--home-space-4);
  width: 100%;
  max-width: 26rem;
  border-radius: var(--home-radius-lg);
  background-color: var(--home-surface);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-lg);
  overflow: hidden;
}
.home-hero__preview-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background-color: var(--home-teal-900);
}
.home-hero__preview-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}
.home-hero__preview-body { padding: 1.1rem; text-align: start; }
.home-hero__preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--home-border);
}
.home-hero__preview-row:last-child { border-bottom: none; }
.home-hero__preview-thumb {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--home-radius-sm);
  background-color: var(--home-teal-200);
}
.home-hero__preview-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.35rem; }
.home-hero__preview-line { height: 0.5rem; border-radius: 999px; background-color: var(--home-border); }
.home-hero__preview-line--60 { width: 60%; }
.home-hero__preview-line--35 { width: 35%; background-color: var(--home-teal-200); }

/* --- Sections --- */
.home-section { padding: var(--home-space-5) 0; }
.home-section--muted { background-color: var(--home-surface); border-top: 1px solid var(--home-border); border-bottom: 1px solid var(--home-border); }
.home-section__head { text-align: center; max-width: 34rem; margin: 0 auto var(--home-space-4); }
.home-section__kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--home-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.home-section__title { font-size: 1.6rem; font-weight: 800; color: var(--home-teal-900); margin: 0 0 0.6rem; }
.home-section__subtitle { color: var(--home-ink-soft); font-size: 0.98rem; }

/* --- Feature grid --- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}
.home-card {
  background-color: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--home-shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.home-card:hover { transform: translateY(-3px); box-shadow: var(--home-shadow-md); }
.home-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--home-radius-md);
  background-color: var(--home-teal-100);
  color: var(--home-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.home-card__icon svg { width: 1.4rem; height: 1.4rem; }
.home-card__title { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--home-teal-900); }
.home-card__text { font-size: 0.9rem; color: var(--home-ink-soft); margin: 0; }

/* --- How it works --- */
.home-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  counter-reset: home-step;
}
.home-step { position: relative; padding-inline-start: 3rem; }
.home-step::before {
  counter-increment: home-step;
  content: counter(home-step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--home-teal-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.home-step__title { font-weight: 700; margin: 0 0 0.35rem; color: var(--home-teal-900); }
.home-step__text { color: var(--home-ink-soft); font-size: 0.9rem; margin: 0; }

/* --- Final CTA --- */
.home-cta {
  background-color: var(--home-teal-900);
  border-radius: var(--home-radius-lg);
  padding: var(--home-space-4);
  text-align: center;
  color: #fff;
}
.home-cta__title { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.6rem; }
.home-cta__subtitle { color: rgba(255, 255, 255, 0.8); margin: 0 0 1.25rem; font-size: 0.95rem; }

/* --- Footer spacing wrapper (reuses the app's real _Footer partial) --- */
.home-footer-wrap footer {
  background-color: var(--home-teal-900);
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
  .home-nav { display: flex; }
  .home-hero__title { font-size: 2.75rem; }
  .home-hero__inner { text-align: start; align-items: flex-start; }
  .home-hero__actions { justify-content: flex-start; }
  .home-hero { padding: var(--home-space-5) 0; }
  .home-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    text-align: start;
  }
  .home-hero__copy { display: flex; flex-direction: column; gap: var(--home-space-3); align-items: flex-start; }
  .home-hero__preview { margin-top: 0; justify-self: end; }
}
