/* ==========================================================
   Deerpath Bagels & Burgers — site styles (minimal)
   Paper, ink and one red (from the logo). Square corners, thin black lines.
   Built on Bootstrap 5. Change colors and fonts in :root.
   ========================================================== */

:root {
  --paper: #f8f6ee;        /* page background */
  --paper-2: #efebdd;      /* note rows, hover */
  --ink: #231f20;          /* text, lines, dark bands */
  --muted: #6b6560;
  --red: #e31e24;          /* the one highlight color: buttons and labels */
  --red-dark: #bf161c;
  --white: #ffffff;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 72px;
  --line: 1.5px solid var(--ink);

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color-rgb: 35, 31, 32;
  --bs-link-hover-color-rgb: 35, 31, 32;
}

html { scroll-behavior: smooth; }
body {
  padding-top: var(--nav-h);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- Type helpers ---------- */
.display-title { font-size: clamp(3.5rem, 9vw, 6.5rem); margin: 0; }
.section-title { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.caps {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-blurb { margin: 0.75rem 0 0; color: var(--muted); max-width: 34rem; }
/* Rewards page intro: lead line, sentence, short list */
.rewards-intro p { margin: 0 0 0.35rem; }
.rewards-intro .rewards-intro-lead { color: var(--ink); font-weight: 600; }
.rewards-intro ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.rewards-intro li::marker { color: var(--red); }
.section { padding: 5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }

/* ---------- Buttons: square, uppercase ---------- */
.btn {
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
}
.btn-order { background: var(--red); border: 1.5px solid var(--red); color: #fff; }
.btn-order:hover, .btn-order:focus-visible, .btn-order:active {
  background: var(--red-dark) !important; border-color: var(--red-dark) !important; color: #fff !important;
}
.btn-line { background: transparent; border: var(--line); color: var(--ink); }
.btn-line:hover, .btn-line:focus-visible, .btn-line:active {
  background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important;
}
/* Phones: buttons in a row stretch to fill the line, so a pair either sits side by side
   edge to edge or stacks as two full-width buttons. Either way their edges line up. */
@media (max-width: 575.98px) {
  .d-flex.flex-wrap.gap-2 > .btn { flex: 1 1 auto; text-align: center; }
}
.link-under { border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.link-under:hover { color: var(--red); border-color: var(--red); }

/* ---------- Navigation ---------- */
.site-nav {
  min-height: var(--nav-h);
  background: var(--paper);
  border-bottom: var(--line);
}
.site-nav .navbar-brand img { height: 54px; width: 54px; }
.site-nav .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 0.9rem !important;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.navbar-toggler { border: 0; padding: 0.4rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: 0.5rem 0 1rem; }
  .site-nav .nav-link { padding: 0.8rem 0 !important; border-bottom: 1px solid rgba(35, 31, 32, 0.15); }
}

/* ---------- Home hero ---------- */
.hero { padding: 4rem 0 4.5rem; }
.hero .display-title { font-size: clamp(3.2rem, 7vw, 5.8rem); }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 30rem; margin: 1.25rem 0 2rem; }
/* Boba / Vegan / Catering line icons beside the hero text */
.hero-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trio-item {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  border: var(--line); background: var(--white); color: var(--ink);
  transition: background 0.2s;
}
.trio-item svg {
  width: 44%; height: auto;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.trio-item svg .dot { fill: currentColor; stroke: none; }
.trio-item span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; line-height: 1.2; }
.trio-item:hover, .trio-item:focus-visible { color: var(--red); }
@media (max-width: 575.98px) {
  .hero-trio { gap: 0.5rem; }
  .trio-item { gap: 0.45rem; }
  .trio-item { padding: 0 0.25rem; }
  .trio-item span { font-size: 0.62rem; letter-spacing: 0.06em; }
}

/* ---------- Boxes: the core building block (menus, info, rewards) ---------- */
.box { display: block; background: var(--white); border: var(--line); color: var(--ink); }
.box-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1rem 0.75rem;
}
.box-head h2, .box-head h3 { font-size: 1.75rem; margin: 0; }
.box-head i { font-size: 1.1rem; transition: transform 0.2s; }
.box-link:hover .box-head i { transform: translateX(4px); }
.box-link:hover { background: var(--paper-2); }
.box-blurb { margin: 0; padding: 1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
/* Optional small photo at the right of a menu section's title bar ("photo" in menu-data.js) */
.box-head.has-photo { padding: 0.6rem 0.6rem 0.6rem 1rem; }
.box-thumb {
  width: 64px; height: 64px; flex: none;
  object-fit: cover;
  border: 1.5px solid var(--paper);
}
@media (max-width: 575.98px) { .box-thumb { width: 56px; height: 56px; } }
.box-note { background: var(--paper-2); padding: 0.6rem 1rem; }
.box-note p { margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--red); }

.box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 991.98px) { .box-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (max-width: 575.98px) {
  .box-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .box-link .box-blurb { display: none; }   /* phones: menu links become a simple list */
}

/* Menu sections flow into columns like a printed menu */
.box-grid.menu-grid { display: block; columns: 3; column-gap: 1.5rem; }
.menu-grid .box { break-inside: avoid; margin-bottom: 1.5rem; }
@media (max-width: 1199.98px) { .box-grid.menu-grid { columns: 2; } }
@media (max-width: 767.98px) { .box-grid.menu-grid { columns: 1; } }

/* Item rows */
.box-list { list-style: none; margin: 0; padding: 0.4rem 0; }
.mi { padding: 0.55rem 1rem; }
.mi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.mi-name, .flavor-list .mi {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mi-price { font-size: 0.9rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mi-desc { color: var(--red); font-size: 0.85rem; font-weight: 500; margin-top: 0.2rem; }
.mi-desc b { color: var(--red); font-weight: 700; }
.mi-tiers { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.3rem; font-size: 0.85rem; }
.flavor-list { display: flex; flex-wrap: wrap; padding: 0.6rem 0.6rem; }
.flavor-list .mi { padding: 0.3rem 0.4rem; }
.flavor-list .mi:not(:last-child)::after { content: " ·"; color: var(--muted); }

/* Full-width group label (Vegan Menu, Ice Creams) */
.menu-divider { padding: 2.5rem 0 1.5rem; }
.label-band {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  margin-bottom: 0.75rem;
}
.menu-divider p { margin: 0; color: var(--muted); max-width: 40rem; }

/* ---------- Menu page top ---------- */
.page-top { padding: 3.5rem 0 0; }
.menu-subnav {
  position: sticky; top: var(--nav-h); z-index: 1010;
  background: var(--paper);
  border-bottom: 1px solid rgba(35, 31, 32, 0.15);
  padding: 0.55rem 0;
}
.chip-scroller { display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.chip-scroller::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip.active { color: var(--paper); background: var(--ink); }
.menu-search { position: relative; flex: 0 0 auto; }
@media (min-width: 768px) { .menu-search { width: 220px; } }
.menu-search i { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 0.85rem; }
.menu-search input {
  border: 0; border-bottom: var(--line); border-radius: 0;
  background: transparent;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 0.85rem;
}
.menu-search input:focus { background: transparent; box-shadow: none; border-color: var(--ink); }
.menu-body { padding-top: 2rem; padding-bottom: 4rem; }
.menu-section, .menu-divider { scroll-margin-top: calc(var(--nav-h) + 70px); }
.no-results { color: var(--muted); }

/* ---------- Reviews (home) ---------- */
/* One bordered strip split into cells, like a row of menu boxes. Ratings come from site-data.js. */
.rv-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--white); border: var(--line);
}
.rv-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.5rem 0.75rem 1.4rem; text-align: center; color: var(--ink); text-decoration: none;
  border-left: var(--line);
}
.rv-tile:first-child { border-left: 0; }
a.rv-tile:hover { background: var(--paper-2); }
.rv-platform { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.rv-score { font-family: var(--serif); font-size: 3.2rem; line-height: 1; }
.rv-stars { position: relative; display: inline-block; font-size: 1rem; letter-spacing: 2px; line-height: 1; }
.rv-stars-empty { color: rgba(35, 31, 32, 0.18); }
.rv-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--red); }
@media (max-width: 991.98px) {
  .rv-strip { grid-template-columns: repeat(3, 1fr); }
  .rv-tile:nth-child(3n + 1) { border-left: 0; }
  .rv-tile:nth-child(n + 4) { border-top: var(--line); }
}
@media (max-width: 575.98px) {
  .rv-strip { grid-template-columns: repeat(2, 1fr); }
  .rv-tile { border-left: var(--line); border-top: 0; padding: 1.2rem 0.5rem; }
  .rv-tile:nth-child(odd) { border-left: 0; }
  .rv-tile:nth-child(n + 3) { border-top: var(--line); }
  .rv-score { font-size: 2.6rem; }
}

/* ---------- Dark band (catering) ---------- */
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark .section-title { color: var(--paper); }
.band-dark p { color: rgba(248, 246, 238, 0.8); max-width: 30rem; }

/* ---------- Visit / info ---------- */
.info-list .mi, .info-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.8rem 1rem; align-items: start; }
.info-list li + li { border-top: 1px solid rgba(35, 31, 32, 0.12); }
.box-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.2rem; }
.info-list a { border-bottom: 1px solid rgba(35, 31, 32, 0.35); }
.info-list a:hover { border-color: var(--ink); }
.map-wrap { border: var(--line); height: 100%; min-height: 320px; background: var(--paper-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.35); }
.social-links { display: flex; gap: 0.5rem; }
.social-links a, .info-list .social-links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid currentColor; border-radius: 50%;
}

/* ---------- About / rewards ---------- */
.photo-frame { border: var(--line); display: block; width: 100%; }
.rewards-box .box-list .mi { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; }
.rewards-box .box-list .mi + .mi { border-top: 1px solid rgba(35, 31, 32, 0.12); }
.rewards-box .mi-price { color: #fff; background: var(--red); padding: 0 0.45rem; }
.badge-frame { background: var(--white); border: var(--line); padding: 1.5rem; }

/* Home page rewards feature: badge on the left, perks on the right */
.rf-badge { display: flex; align-items: center; justify-content: center; padding: 2rem; border-right: var(--line); }
.rf-badge img { width: 100%; max-width: 340px; display: block; }
.rf-body { padding: 2.25rem 2.25rem 2.5rem; }
.rewards-list { padding: 0; border-top: 1px solid rgba(35, 31, 32, 0.15); }
.rewards-list .mi { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(35, 31, 32, 0.15); }
.rewards-list .mi-price { color: #fff; background: var(--red); padding: 0 0.45rem; }
@media (max-width: 767.98px) {
  .rf-badge { border-right: 0; border-bottom: var(--line); padding: 1.5rem; }
  .rf-badge img { max-width: 220px; }
  .rf-body { padding: 1.5rem 1.25rem 1.75rem; }
}
.badge-frame img { display: block; width: 100%; max-width: 360px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 4rem 0 2rem; }
.site-footer a { color: var(--paper); }
.footer-big { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid rgba(248, 246, 238, 0.6); }
.footer-links a:hover { border-color: var(--red); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 246, 238, 0.2);
  font-size: 0.8rem; color: rgba(248, 246, 238, 0.7);
}
.footer-bottom img { width: 56px; height: 56px; }

/* Phones: a small Order button sits in the header next to the menu icon, so it is
   always on screen. (A bar pinned to the bottom made iPhone Safari tint its own
   toolbar red, and a floating one covered page content.) */
.btn-order-sm { padding: 0.55rem 1rem; font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
