/*
  qr-menu.mk — "The Code Itself" visual world.
  Scoped entirely under body.qr-site so the logged-in restaurant
  dashboard (a different, task-focused surface) never inherits it.
*/

.qr-site {
  --ink: #14110F;
  --ink-muted: #5A5248;
  --ink-faint: #8B8172;
  --paper: #F7F2E7;
  --paper-2: #EFE7D8;
  --paper-3: #E4D9C4;
  --stamp: #409ABC;
  --stamp-dark: #2C6E8C;
  --stamp-text: #2C6E8C;
  --rule: rgba(20, 17, 15, 0.14);
  --rule-strong: rgba(20, 17, 15, 0.3);

  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  background-color: var(--paper);
  background-image: var(--qr-texture);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
}

.qr-site {
  --qr-texture: radial-gradient(var(--rule) 1.1px, transparent 1.1px);
}

.qr-site body,
.qr-site h1,
.qr-site h2,
.qr-site h3,
.qr-site h4,
.qr-site h5,
.qr-site h6,
.qr-site p,
.qr-site a,
.qr-site li,
.qr-site span,
.qr-site label,
.qr-site input,
.qr-site textarea {
  font-family: var(--font-body);
  color: var(--ink);
}

.qr-site ::selection {
  background: var(--stamp);
  color: var(--ink);
}

.qr-site :focus-visible {
  outline: 2px solid var(--stamp-text);
  outline-offset: 3px;
}

.qr-site h1,
.qr-site h2,
.qr-site h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.qr-site p {
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}

.qr-site .mono,
.qr-site .qr-mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* ---------- Header ---------- */

.qr-site #header-container {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: relative;
  width: auto;
  top: auto;
}

/* custom.js writes this offset as an inline style on load/resize to compensate
   for an out-of-flow header. This header is in normal flow, so the offset is a
   double-count. !important is deliberate: it is the only thing that outranks an
   inline style, so the layout stays correct even against a stale cached script. */
.qr-site #wrapper {
  padding-top: 0 !important;
}

.qr-site #header {
  height: auto;
  min-height: 82px;
  box-shadow: none;
  background: var(--paper);
}

.qr-site #logo {
  border-right: none;
  height: auto;
  padding-right: 0;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

/* the theme centers header items with `top: 50% + translateY(-50%)`, sized
   for a fixed 82px header with height:100% children. That fights flexbox
   and staggers every item to a different vertical position, so it is
   neutralized here and flexbox does the centering instead. */
.qr-site #logo img,
.qr-site .header-widget .button,
.qr-site .header-widget .log-in-button,
.qr-site .language-switcher {
  position: relative;
  top: auto;
  transform: none;
}

.qr-site #logo img {
  display: block;
  height: 42px;
  max-height: 42px;
  width: auto;
}

.qr-site #header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 82px;
}

.qr-site #header .left-side,
.qr-site #header .right-side {
  height: auto;
  float: none;
  position: static;
  display: flex;
  align-items: center;
}

/* the theme gives both sides `flex: 1`, so they split the header 50/50 and
   the nav packs to the left of its half, leaving a gap on wide screens */
.qr-site #header .right-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  background: transparent;
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

.qr-site #header .left-side {
  flex: 0 1 auto;
  width: auto;
}

.qr-site #header #logo img {
  filter: none;
}

.qr-site .header-widget {
  border-left: none;
  padding: 0;
  height: auto;
  float: none;
  display: flex;
  align-items: center;
}

.qr-site .qr-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.qr-site .qr-nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.qr-site .qr-nav-links a:hover {
  border-color: var(--stamp-text);
  color: var(--stamp-text);
}

.qr-site .header-widget a.button.popup-with-zoom-anim {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 0;
  border-bottom: 2px solid var(--rule-strong);
}

.qr-site .header-widget a.button.popup-with-zoom-anim:hover {
  color: var(--stamp-text);
  border-color: var(--stamp-text);
}

.qr-site .qr-lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.qr-site .qr-lang-switch a {
  color: var(--ink-faint);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.qr-site .qr-lang-switch a:hover {
  color: var(--stamp-text);
}

.qr-site .qr-lang-switch a.is-active {
  color: var(--ink);
  border-color: var(--ink);
}

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

/* ---------- Inner page heading (replaces the theme's #titlebar band) ---------- */

.qr-site .qr-page-head {
  padding: 64px 0 4px;
}

.qr-site .qr-page-head h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin: 0;
}

.qr-site .qr-page-head p {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 10px 0 0;
}

/* ---------- Contact (email only, no form) ---------- */

.qr-site .qr-contact {
  max-width: 640px;
}

.qr-site .qr-contact-lede {
  font-size: 19px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

.qr-site .qr-contact-email {
  display: inline-block;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  border-bottom: 3px solid var(--stamp);
  padding-bottom: 2px;
  word-break: break-word;
}

.qr-site .qr-contact-email:hover {
  color: var(--stamp-text);
  border-color: var(--stamp-text);
}

.qr-site .qr-contact-details {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.qr-site .qr-contact-details li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
}

.qr-site .qr-contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  flex: 0 0 90px;
}

.qr-site .qr-contact-details a {
  color: var(--ink);
}

.qr-site .qr-contact-details a:hover {
  color: var(--stamp-text);
}

/* ---------- Auth pages (login, register, password reset) ---------- */

.qr-site .qr-auth-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 36px;
  margin-bottom: 80px;
  box-shadow: 6px 6px 0 0 var(--paper-3);
}

.qr-site .qr-auth-card .welcome-text {
  margin-bottom: 26px;
  padding: 0;
  border: none;
}

.qr-site .qr-auth-card .welcome-text span {
  color: var(--ink-muted);
  font-size: 16px;
}

.qr-site .qr-auth-card .input-with-icon-left {
  margin-bottom: 16px;
}

.qr-site .qr-auth-card input.input-text,
.qr-site .qr-auth-card input[type="text"],
.qr-site .qr-auth-card input[type="email"],
.qr-site .qr-auth-card input[type="password"] {
  background: #fff;
  border: 2px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  height: 52px;
  box-shadow: none;
}

.qr-site .qr-auth-card input.input-text:focus,
.qr-site .qr-auth-card input[type="text"]:focus,
.qr-site .qr-auth-card input[type="email"]:focus,
.qr-site .qr-auth-card input[type="password"]:focus {
  border-color: var(--ink);
}

/* the theme boxes an icon into the left edge of every field; the new fields
   carry their own placeholder text and do not need it */
.qr-site .qr-auth-card .input-with-icon-left i {
  display: none;
}

.qr-site .qr-auth-card .input-with-icon-left input {
  padding-left: 16px;
}

.qr-site .qr-auth-card button.button {
  background: var(--stamp);
  color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.qr-site .qr-auth-card button.button:hover {
  background: var(--stamp-dark);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink);
}

.qr-site .qr-auth-card .social-login-separator {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.qr-site .qr-auth-card .status-not-available {
  color: var(--stamp-dark);
  font-size: 14px;
  display: block;
  margin-bottom: 12px;
}

/* any titlebar left on a public page (e.g. checkout) loses the band, not the text */
.qr-site #titlebar {
  background: transparent;
  padding: 56px 0 0;
}

.qr-site #titlebar #breadcrumbs {
  display: none;
}

.qr-site a.button,
.qr-site button.button,
.qr-site input[type=submit].button {
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  box-shadow: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 13px 22px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.qr-site a.button:hover,
.qr-site button.button:hover {
  background: var(--stamp);
  color: var(--ink);
}

.qr-site a.button:active,
.qr-site button.button:active {
  transform: translateY(1px);
}

.qr-site a.button.qr-btn-primary {
  background: var(--stamp);
  color: var(--ink);
  position: relative;
  padding-left: 46px;
  box-shadow: 4px 4px 0 0 var(--ink);
}

.qr-site a.button.qr-btn-primary::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 3px solid var(--ink);
  box-sizing: border-box;
}

.qr-site a.button.qr-btn-primary::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.qr-site a.button.qr-btn-primary:hover {
  background: var(--stamp-dark);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink);
}

.qr-site a.button.qr-btn-primary:hover::before {
  border-color: #fff;
}

.qr-site a.button.qr-btn-primary:hover::after {
  background: #fff;
}

.qr-site a.button.qr-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}

.qr-site a.button.qr-btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

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

.qr-site .qr-hero {
  padding: 88px 0 96px;
  border-bottom: 2px solid var(--ink);
}

.qr-site .qr-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.qr-site .qr-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

.qr-site .qr-hero h1 .qr-accent {
  color: var(--ink);
  background-image: linear-gradient(transparent 64%, var(--stamp) 64%);
  padding: 0 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.qr-site .qr-hero p.qr-lede {
  font-size: 19px;
  color: var(--ink-muted);
  margin-bottom: 34px;
  max-width: 46ch;
}

.qr-site .qr-hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.qr-site .qr-hero-ctas .qr-login-link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--rule-strong);
}

.qr-site .qr-hero-ctas .qr-login-link:hover {
  color: var(--stamp);
  border-color: var(--stamp);
}

.qr-site .qr-hero-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 10px 10px 0 0 var(--paper-3), 10px 10px 24px rgba(20, 17, 15, 0.18);
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}

.qr-site .qr-hero-card img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-site .qr-hero-card-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 16px;
}

.qr-site .qr-hero-card-caption strong {
  color: var(--ink);
}

/* ---------- How it works (ticket list) ---------- */

.qr-site .qr-section {
  padding: 84px 0;
}

.qr-site .qr-section.qr-paper-2 {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}

.qr-site .qr-section-head {
  max-width: 56ch;
  margin-bottom: 48px;
}

.qr-site .qr-section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-bottom: 14px;
}

.qr-site .qr-ticket {
  border: 2px dashed var(--rule-strong);
  border-radius: 6px;
  padding: 8px 0;
  background: var(--paper);
}

.qr-site .qr-ticket-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
}

.qr-site .qr-ticket-row:last-child {
  border-bottom: none;
}

.qr-site .qr-ticket-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--stamp-text);
  font-weight: 700;
  flex-shrink: 0;
  width: 28px;
}

.qr-site .qr-ticket-body h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.qr-site .qr-ticket-body p {
  margin: 0;
  font-size: 15px;
}

.qr-site .qr-ticket-leader {
  flex: 1;
  border-bottom: 2px dotted var(--rule-strong);
  margin: 0 8px;
  min-width: 24px;
  align-self: end;
  margin-bottom: 8px;
}

.qr-site .qr-ticket-status {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* ---------- Pricing teaser ---------- */

.qr-site .qr-pricing-teaser {
  text-align: center;
}

.qr-site .qr-pricing-teaser h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-bottom: 12px;
}

.qr-site .qr-pricing-teaser p {
  margin: 0 auto 32px;
  text-align: center;
}

.qr-site .qr-pricing-teaser .qr-cta-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Testimonials (kept but re-skinned) ---------- */

.qr-site .testimonial-box {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 0 var(--paper-3);
}

.qr-site .testimonial-box:before {
  color: var(--stamp-text) !important;
}

.qr-site .testimonial-author span {
  color: var(--stamp-text) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

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

.qr-site #footer {
  background: var(--ink);
  color: var(--paper);
}

.qr-site #footer .footer-top-section {
  border-bottom: 1px solid rgba(247, 242, 231, 0.15);
}

.qr-site #footer .footer-links h3,
.qr-site #footer h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 18px;
}

.qr-site #footer .footer-links ul li a,
.qr-site #footer p {
  color: rgba(247, 242, 231, 0.72);
}

.qr-site #footer .footer-links ul li a:hover {
  color: var(--stamp);
}

.qr-site #footer .footer-social-links a {
  color: rgba(247, 242, 231, 0.72);
}

.qr-site #footer .footer-social-links a:hover {
  color: var(--stamp);
}

.qr-site #footer .newsletter .form-control {
  background: rgba(247, 242, 231, 0.08);
  border: 1px solid rgba(247, 242, 231, 0.25);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
}

.qr-site #footer .newsletter .form-control::placeholder {
  color: rgba(247, 242, 231, 0.5);
}

.qr-site #footer .newsletter button {
  background: var(--stamp);
  color: var(--ink);
}

.qr-site .footer-bottom-section {
  border-top: 1px solid rgba(247, 242, 231, 0.15);
}

.qr-site .footer-copyright-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247, 242, 231, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .qr-site .qr-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .qr-site .qr-hero-card {
    max-width: 280px;
  }

  .qr-site .qr-hero {
    padding: 56px 0 64px;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .qr-site .qr-section {
    padding: 56px 0;
  }

  .qr-site .qr-ticket-row {
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .qr-site .qr-ticket-leader {
    display: none;
  }

  .qr-site .qr-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* this theme's .container has no max-width at all (fluid edge-to-edge);
   the old single-column, center-aligned content hid that gap, but any
   multi-column layout needs a real reading-width cap to stay aligned
   on wide monitors */
.qr-site .container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* the header's container carries the theme's own `margin: 0` and 35px
   gutters, which left-pins it against every other centered section */
.qr-site #header .container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
