/* Visual design, round 1 (design system foundation) - overrides Bootstrap
   5.3's own CSS custom properties rather than fighting them (bootstrap.min.css
   is vendored, not compiled from source, so there's no Sass variable to
   change instead). Scoped carefully: .btn-primary/.btn-outline-primary don't
   inherit from --bs-primary at all (Bootstrap compiles each .btn-* variant's
   colors as its own literal --bs-btn-* values), so a bare :root override of
   those specific properties would silently retint every button variant
   (.btn-danger, .btn-success, ...) used throughout Admin/Super Admin - hence
   the accent color is set at :root (affects .text-primary/.bg-primary/links,
   which only exist as a single global token, not per-variant) AND
   re-declared inside .btn-primary/.btn-outline-primary specifically, mirroring
   Bootstrap's own per-variant scoping instead of overriding it wholesale. */
:root {
  --bs-primary: #db7c26;
  --bs-primary-rgb: 219, 124, 38;
  --bs-primary-text-emphasis: #7a4415;
  --bs-primary-bg-subtle: #fbeadc;
  --bs-primary-border-subtle: #f0c79b;

  --bs-link-color: #db7c26;
  --bs-link-color-rgb: 219, 124, 38;
  --bs-link-hover-color: #b8681f;
  --bs-link-hover-color-rgb: 184, 104, 31;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.375rem;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-xl: 1rem;
}

.btn-primary {
  --bs-btn-bg: #db7c26;
  --bs-btn-border-color: #db7c26;
  --bs-btn-hover-bg: #b8681f;
  --bs-btn-hover-border-color: #b8681f;
  --bs-btn-active-bg: #b8681f;
  --bs-btn-active-border-color: #b8681f;
  --bs-btn-disabled-bg: #db7c26;
  --bs-btn-disabled-border-color: #db7c26;
  --bs-btn-focus-shadow-rgb: 219, 124, 38;
}

.btn-outline-primary {
  --bs-btn-color: #db7c26;
  --bs-btn-border-color: #db7c26;
  --bs-btn-hover-bg: #db7c26;
  --bs-btn-hover-border-color: #db7c26;
  --bs-btn-active-bg: #db7c26;
  --bs-btn-active-border-color: #db7c26;
  --bs-btn-disabled-color: #db7c26;
  --bs-btn-disabled-border-color: #db7c26;
  --bs-btn-focus-shadow-rgb: 219, 124, 38;
}

/* Visual design round 5: marketing nav + homepage refresh - takes Round 1's
   "warm/branded" half of the split-personality direction further (product
   mockup visual, richer hero, feature grid, sticky glass nav). Admin/Super
   Admin's calmer treatment (Rounds 2-3) is deliberately untouched - same
   shared _Layout.cshtml, but the anonymous-visitor nav gets its own class
   (.navbar-marketing) so the two audiences keep looking different on
   purpose, not by accident. */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-marketing {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 33, 24, 0.08) !important;
}

.navbar-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bs-primary), #f0a75c);
  color: #fff;
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.navbar-brand-text {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #2b2118;
}

.navbar-cta {
  border-radius: 999px !important;
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--bs-border-radius-xl);
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, var(--bs-primary-bg-subtle) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 100% 15%, #fdeee0 0%, transparent 55%),
    #fffaf5;
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #241a10;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--bs-secondary-color);
  max-width: 480px;
  margin-bottom: 1.75rem;
}

@media (max-width: 991px) {
  .hero-subtitle {
    margin-inline: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-actions .btn {
  border-radius: 999px;
}

.hero-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 991px) {
  .hero-venues {
    justify-content: center;
  }
}

.hero-venue-chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  background: rgba(219, 124, 38, 0.08);
  border: 1px solid rgba(219, 124, 38, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ---------- Hero phone mockups - a real product preview, not stock
   photography (avoids licensing an image for something this project has no
   real screenshots for yet - App_Data has no tenant photos to draw on
   either). Fully abstract content (skeleton-style bars/blocks, no invented
   dish names or prices standing in as if real) - deliberately a stylized
   illustration of the product, not something that could read as a genuine
   screenshot. Colors are the actual seeded theme palettes (Data/DbSeeder.cs),
   not made up, so this is honest about what the product looks like. ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.phone-mockup {
  width: 200px;
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  background: #17130f;
  padding: 8px;
  box-shadow: 0 30px 60px -25px rgba(43, 33, 24, 0.45), 0 10px 24px -12px rgba(43, 33, 24, 0.3);
}

.phone-mockup-back {
  position: absolute;
  transform: rotate(-9deg) translate(-58px, 10px);
  opacity: 0.92;
}

.phone-mockup-front {
  position: relative;
  transform: rotate(6deg) translate(30px, -6px);
}

@media (max-width: 575px) {
  .phone-mockup {
    width: 168px;
  }

  .phone-mockup-back {
    transform: rotate(-8deg) translate(-42px, 14px);
  }

  .phone-mockup-front {
    transform: rotate(5deg) translate(24px, -4px);
  }
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--mock-bg);
  display: flex;
  flex-direction: column;
}

.phone-mockup-cover {
  height: 30%;
  background: linear-gradient(135deg, var(--mock-primary), color-mix(in srgb, var(--mock-primary) 35%, var(--mock-bg)));
  flex-shrink: 0;
}

.phone-mockup-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mock-bg);
  border: 2px solid var(--mock-primary);
  margin: -14px auto 0;
  flex-shrink: 0;
}

.phone-mockup-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0.5rem 0 0.6rem;
}

.phone-mockup-lines span {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: var(--mock-text);
  opacity: 0.7;
}

.phone-mockup-lines span:first-child {
  width: 70px;
  height: 8px;
  opacity: 0.9;
}

.phone-mockup-lines span:last-child {
  width: 50px;
  opacity: 0.45;
}

.phone-mockup-pills {
  display: flex;
  gap: 4px;
  padding: 0 10px;
  margin-bottom: 0.6rem;
}

.phone-mockup-pills span {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mock-text) 15%, transparent);
}

.phone-mockup-pills span:first-child {
  background: var(--mock-primary);
}

.phone-mockup-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 10px;
}

.phone-mockup-item-thumb {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--mock-text) 12%, transparent);
  flex-shrink: 0;
}

.phone-mockup-item-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-mockup-item-lines span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--mock-text);
}

.phone-mockup-item-lines span:first-child {
  width: 65%;
  opacity: 0.75;
}

.phone-mockup-item-lines span:last-child {
  width: 40%;
  opacity: 0.35;
}

.phone-mockup-item-price {
  width: 20px;
  height: 8px;
  border-radius: 4px;
  background: var(--mock-primary);
  flex-shrink: 0;
}

/* ---------- Feature grid ---------- */

.features-section {
  padding: 3.5rem 0 1rem;
}

.features-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  margin: 0;
}

/* ---------- Steps ---------- */

.step-card {
  position: relative;
  height: 100%;
  padding: 2rem 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(219, 124, 38, 0.35);
}

.step-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.homepage-cta {
  padding: 3.5rem 1rem;
  margin: 3rem 0 1rem;
  border-radius: var(--bs-border-radius-xl);
  background: linear-gradient(135deg, var(--bs-primary-bg-subtle), #fff);
}

/* ---------- Entrance animation (homepage only - a one-time settle-in on
   load, not scroll-triggered, so it never depends on JS to make content
   visible - see Areas/Public/Views/Menu/Index.cshtml's identical .pm-fade-up
   reasoning). ---------- */

.fade-up-in {
  animation: fade-up-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up-in {
    animation: none;
  }
}

/* Restaurant directory (Areas/Public/Views/Directory/*.cshtml). */
.directory-header {
  margin-bottom: 2rem;
}

.directory-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.directory-back a {
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.directory-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.directory-city-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--bs-border-radius-lg);
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  color: var(--bs-primary);
}

.directory-city-card svg {
  flex-shrink: 0;
  color: var(--bs-primary);
}

.directory-tenant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.directory-tenant-card {
  display: block;
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-tenant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.directory-tenant-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.directory-tenant-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-tenant-media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bs-primary-bg-subtle), #f3e6d8);
}

.directory-tenant-body {
  padding: 1rem 1.25rem 1.25rem;
}

.directory-tenant-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Login/Register (Views/Account/*.cshtml). */
.auth-card {
  max-width: 440px;
  margin: 3rem auto;
}

/* Visual design round 2: clickable quick-link cards (Admin dashboard) get a
   subtle lift on hover so they read as interactive, not just decorative. */
a.card {
  transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

a.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--bs-primary, #258cfb);
}

/* 05_UI_UX_Guidelines.md Accessibility: browser default outlines already
   show today (nothing suppresses them), but this makes focus deliberate and
   theme-consistent rather than left to the browser, for links and the
   custom tab/category-tab controls the rules above don't cover. */
a:focus-visible,
.category-tab:focus-visible {
  outline: 2px solid var(--accent-color, #0d6efd);
  outline-offset: 2px;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Theme rendering (06_Theme_System.md) - CSS custom properties are injected
   per-tenant by Views/Shared/_Layout.cshtml from Services/ThemeRenderer.cs.
   This stylesheet itself never changes per tenant/theme, which is what lets
   Cloudflare cache it aggressively across every tenant regardless of which
   theme they're on. */
.public-menu {
  background-color: var(--background-color, #fff);
  color: var(--text-color, #1a1a1a);
  font-family: var(--body-font, system-ui, sans-serif);
  padding: 1rem;
  border-radius: 0.25rem;
}

.public-menu h1, .public-menu h2, .public-menu .menu-category-title {
  font-family: var(--heading-font, Georgia, serif);
  color: var(--primary-color, inherit);
}

/* Visual design round 4: the business name is the first thing a diner sees
   after scanning a QR code - give it real weight, and a touch of breathing
   room from the category list below, rather than a plain <h1>. */
.public-menu-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.public-menu-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

/* A theme's display heading font (e.g. Playfair Display) needs real size to
   read as a heading rather than get lost at body-text scale. */
.menu-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.public-menu .menu-item-price {
  color: var(--secondary-color, inherit);
}

.public-menu .badge.bg-warning {
  background-color: var(--unavailable-color, #8a8a8a) !important;
  border-radius: 999px;
  padding-left: 0.6em;
  padding-right: 0.6em;
}

.public-menu a {
  color: var(--accent-color, var(--primary-color, #0d6efd));
}

/* "stacked" layout variant: sequential category sections. */
.layout-stacked .menu-category {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem;
}

/* Single column - a vertical list of the same menu-item-card style "tabs"
   uses in its grid, not a second, plainer item style. */
.layout-stacked .menu-item-grid {
  grid-template-columns: 1fr;
}

/* "tabs" layout variant: sticky category nav + card-style items - pure CSS
   sticky positioning + anchor scrolling, no JS. */
.category-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  background-color: var(--background-color, #fff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.category-tab {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--secondary-color, #ccc);
  text-decoration: none;
  white-space: nowrap;
}

.menu-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.menu-item-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}