/* ---------------------------------------------------------------------
   Deli site — base styles.
   Palette: deep burgundy (primary/UI) + a vivid accent red matched to
   the shop's real signage (from a storefront photo) + white/cream.
   Confirm against the physical menu design if it differs.
   --------------------------------------------------------------------- */

:root {
  --burgundy: #6b0f22;
  --burgundy-dark: #470a17;
  --burgundy-light: #9c2f47;
  --red: #d31f2f;
  --red-dark: #ab1522;
  --gold: #b8862c;
  --cream: #fdf9f4;
  --white: #ffffff;
  --ink: #241a1a;
  --muted: #7d7071;
  --border: #ecdfdd;
  --success: #2f7a4f;
  --error: #b0202f;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 16px rgba(36, 26, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(36, 26, 26, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--burgundy-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.65rem; margin-top: 1.6em; }

p { margin: 0 0 1em; }

a { color: var(--red-dark); }
a:hover { color: var(--red); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.section-head--left {
  text-align: left;
  margin: 0 0 2.5rem;
  max-width: none;
}

.contact-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.3em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(211, 31, 47, 0.35);
}

.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); color: var(--white); }

.btn--lg { padding: 0.85em 1.9em; font-size: 1.05rem; }

.link-btn {
  background: none;
  border: none;
  color: var(--red-dark);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

/* ---------- Public site header/nav ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(36,26,26,0.03);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  line-height: 1;
}

.brand__word {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--red);
  letter-spacing: -0.01em;
}

.brand__word span { color: var(--burgundy-dark); }

.brand__sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-top: 0.75rem;
  }

  .site-nav.is-open { display: flex; }
}

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

.hero {
  position: relative;
  color: var(--white);
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  /* Oversized + offset so the JS parallax drift (see site.js) never
     exposes an edge. Sits still at this position if JS doesn't run. */
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 8, 12, 0.88) 0%, rgba(20, 8, 12, 0.72) 42%, rgba(20, 8, 12, 0.32) 78%, rgba(20, 8, 12, 0.15) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}

.hero__inner { max-width: 620px; }

.hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd9dc;
  margin-bottom: 1rem;
}

.hero__content h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 0.4em;
}

.hero__tagline { font-size: 1.2rem; margin-bottom: 1.75rem; color: rgba(255,255,255,0.92); max-width: 480px; }

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.badge--gold {
  background: rgba(184, 134, 44, 0.22);
  border-color: var(--gold);
  color: #ffe9b8;
}

@media (max-width: 720px) {
  .hero { min-height: 460px; }
  .hero__content h1 { font-size: 2.35rem; }
  .hero__content { padding: 3rem 1.25rem; }
}

/* ---------- Sections ---------- */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section--narrow { max-width: 720px; }

.section--snippet { background: var(--white); }

.section-head { max-width: 620px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { margin-top: 0; }

.snippet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 720px) {
  .snippet-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--border);
  max-width: 320px;
}

/* ---------- Split layout (photo + text, About/Catering/Contact) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- Feature / photo grid (home page favorites) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.feature-card h3 { color: var(--burgundy-dark); }

.feature-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

.feature-card__body { padding: 1.1rem 1.25rem 1.3rem; }
.feature-card__body h3 { margin: 0 0 0.3em; font-size: 1.15rem; }
.feature-card__body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Trust / stats strip ---------- */

.trust-strip {
  background: var(--burgundy-dark);
  color: var(--white);
}

.trust-strip__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 2rem;
  text-align: center;
}

.trust-strip__item {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: rgba(255,255,255,0.92);
}

.trust-strip__item .dot { color: var(--gold); }

/* ---------- Menu page ---------- */

.menu-banner {
  position: relative;
  color: var(--white);
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}

.menu-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.menu-banner__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,12,0.35) 0%, rgba(20,8,12,0.82) 100%); z-index: 1; }
.menu-banner__content { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.5rem; width: 100%; }
.menu-banner__content h1 { color: var(--white); margin: 0; }

.menu-category { margin-bottom: 2.75rem; }
.menu-category h2 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4em;
  margin-top: 0;
}

.menu-category h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

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

.menu-item { padding: 1em 0; border-bottom: 1px dashed var(--border); }

.menu-item__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-item__name { font-weight: 600; }
.menu-item__price { font-weight: 700; color: var(--red-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item__desc { margin: 0.3em 0 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Catering / Contact ---------- */

.card-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 480px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.map-embed {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-embed--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--burgundy-dark);
  color: var(--white);
  margin-top: 3rem;
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.site-footer a { color: var(--white); }
.site-footer .muted { color: rgba(255,255,255,0.65); }

.site-footer__credits {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.site-footer__credits a { color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------------
   Admin panel
   --------------------------------------------------------------------- */

body.admin { background: #f5f1ef; font-family: var(--font-body); }

.admin-bar {
  background: var(--burgundy-dark);
  color: var(--white);
}

.admin-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-bar__brand { color: var(--white); text-decoration: none; font-weight: bold; font-family: var(--font-heading); }

.admin-bar__nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.admin-bar__nav a { color: var(--white); text-decoration: none; }
.admin-bar__nav a:hover { text-decoration: underline; }
.admin-bar__user { opacity: 0.8; font-size: 0.9rem; }

.admin-bar__logout button {
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.login-box {
  max-width: 380px;
  margin: 4rem auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card h2 { margin-top: 0; color: var(--red-dark); }
.card p { margin: 0; color: var(--muted); }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th, .table td {
  text-align: left;
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th { background: #f5f1ef; }

.row-actions { display: flex; gap: 0.8rem; align-items: center; white-space: nowrap; }
.row-actions form.inline { display: inline; }

/* ---------- Forms (shared) ---------- */

.stack { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }

.stack label, form.stack label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

label.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }

input, select, textarea {
  font: inherit;
  padding: 0.55em 0.7em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

input.small-input { width: 90px; }

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-actions { display: flex; gap: 1rem; align-items: center; }

/* ---------- Flash messages ---------- */

.flash {
  padding: 0.8em 1.2em;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.flash--error { background: #fbe4e6; color: var(--error); border: 1px solid var(--error); }
.flash--success { background: #e6f4ea; color: var(--success); border: 1px solid var(--success); }
