:root {
  --bg: #f6f7fb;
  --header-row-height: 72px;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #121826;
  --muted: #5c667a;
  --line: #dfe5ee;
  --primary: #0f62fe;
  --danger: #d92d20;
  --success: #067647;
  --radius: 24px;
  --shadow: 0 16px 50px rgba(18, 24, 38, 0.08);
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: var(--site-header-height, 126px); font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; border-radius: 20px; }
input, textarea, button, select { font: inherit; }
input, textarea, select {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
textarea { resize: vertical; min-height: 120px; }
button { cursor: pointer; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.narrow { width: min(calc(100% - 32px), 860px); margin: 0 auto; }
.section { padding: 72px 0; }
.section--muted { background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.5)); }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--primary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(246,247,251,.94); backdrop-filter: blur(12px); box-shadow: 0 12px 28px rgba(18,24,38,.08); }
.site-header__main { border-bottom: 1px solid rgba(223,229,238,.8); }
.site-header__contact { position: relative; z-index: 1; }
.header-contactbar { border-bottom: 1px solid rgba(223,229,238,.8); background: rgba(255,255,255,.96); }
.header-contactbar__row { min-height: 54px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; }
.header-contactbar__item { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 100%; }
.header-contactbar__label { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.header-contactbar__value { color: var(--text); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 72px; gap: 24px; }
.brand { font-weight: 800; font-size: 1.2rem; }
.header-hours { justify-self: center; text-align: center; display: grid; gap: 2px; }
.header-hours--empty { min-height: 1px; }
.header-hours__label { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.header-hours__value { font-weight: 700; }
.header-nav-wrap { display: flex; align-items: center; gap: 14px; justify-self: end; }
.site-nav, .admin-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-nav a, .admin-nav a { color: var(--text); font-weight: 700; }
.nav-toggle { display: none; color: var(--text); font-weight: 700; }
.hero { padding-top: 96px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1, .page-hero h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; margin: 0 0 16px; }
.page-hero p.lead, .lead { font-size: 1.125rem; color: var(--muted); }
.article-hero .lead { color: var(--text); }
body.theme-dark .article-hero .lead,
body.theme-bw .article-hero .lead,
body[data-theme="dark"] .article-hero .lead,
body[data-theme="bw"] .article-hero .lead { color: #ffffff !important; }
.article-hero { padding-bottom: 18px; }
.article-hero .lead { margin-bottom: 0; }
.article-hero + .section { padding-top: 18px; }
.hero-card, .card, .offer-block, .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: 32px; }
.hero-card__label { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); margin-bottom: 18px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--contact {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.btn--contact-wa {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 78%, #25d366 22%));
}
.btn__eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.btn__value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}
.hero__contact-actions {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.btn-link { background: transparent; border: 0; color: var(--danger); padding: 0; font-weight: 700; }
.hero__actions, .section-head--split { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.section-head { margin-bottom: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card__body { padding: 24px; }
.card-grid--offer-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.card-grid--offer-preview > .card--offer-preview {
  flex: 0 1 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
}
.card--offer-preview .card__body {
  display: grid;
  gap: 12px;
}
.card--offer-preview .text-link {
  display: inline-flex;
  align-items: center;
}
.card__cover { aspect-ratio: 16 / 10; object-fit: cover; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card__media-grid { display: grid; gap: 12px; padding: 16px; }
.card__media-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.offer-block { padding: 16px; }
.offer-block__content { padding: 12px 8px 8px; }
.content-flow > * + * { margin-top: 18px; }
.content-flow h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 34px; }
.content-flow h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 28px; }
.content-flow p, .content-flow li, .contact-card p, .card__body p, .offer-block__content p { color: var(--muted); }
.content-flow ul { padding-left: 20px; }
.post-meta { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.text-link { font-weight: 700; color: var(--primary); }
.article-layout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.article-image { margin: 28px 0; aspect-ratio: 16 / 9; object-fit: cover; }
.article-image--hero { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.contact-card { padding: 22px; display: grid; gap: 8px; }
.site-footer { padding: 28px 0 40px; color: var(--muted); }
.footer__row { border-top: 1px solid var(--line); padding-top: 18px; }
.stack-lg > * + * { margin-top: 28px; }
.stack-sm > * + * { margin-top: 12px; }
.alert {
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.alert--success { color: var(--success); border-color: rgba(6,118,71,.25); background: rgba(6,118,71,.07); }
.alert--error { color: var(--danger); border-color: rgba(217,45,32,.25); background: rgba(217,45,32,.07); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }
.admin-body { background: #eef2f8; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-topbar__row {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.admin-main { padding-top: 40px; }
.admin-grid {
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  gap: 24px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.admin-stats strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  display: block;
}
.admin-list-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.admin-list-link span { color: var(--muted); font-size: .9rem; }
.admin-list-link.is-active { border-color: var(--primary); }
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.admin-thumb {
  max-width: 220px;
  margin: 8px 0 10px;
  border: 1px solid var(--line);
}
.admin-auth { max-width: 520px; margin: 0 auto; }
@media (max-width: 900px) {
  .hero__grid, .card-grid, .contact-grid, .card__media-grid.count-3, .admin-grid, .admin-stats, .form-grid { grid-template-columns: 1fr; }
  .card-grid--offer-preview { display: grid; grid-template-columns: 1fr; }
  .card-grid--offer-preview > .card--offer-preview { max-width: none; }
  .header-contactbar__row { justify-content: stretch; gap: 8px; min-height: 0; padding: 6px 0; }
  .header-contactbar__item { width: 100%; justify-content: space-between; padding: 8px 12px; }
  .header-contactbar__label { font-size: .72rem; }
  .header-contactbar__value { max-width: 62vw; font-size: .92rem; }
  .header__row { grid-template-columns: 1fr auto; align-items: center; min-height: 58px; gap: 10px; padding: 8px 0; }
  .brand { font-size: 1.05rem; }
  .header-hours {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 0;
    padding-bottom: 0;
    text-align: left;
  }
  .header-hours__label,
  .header-hours__value { font-size: .75rem; }
  .header-nav-wrap {
    position: relative;
    grid-column: auto;
    order: 2;
    justify-self: end;
    display: block;
    width: auto;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    box-shadow: 0 10px 24px rgba(18, 24, 38, 0.10);
  }
  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: min(84vw, 320px);
    width: max-content;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: max-height .28s ease, opacity .18s ease;
  }
  .site-nav a {
    display: block;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(18, 24, 38, 0.12);
    color: var(--text);
  }
  .site-nav.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-bottom: 4px;
  }
  .section { padding: 56px 0; }
}

.field__hint { color: var(--muted); font-size: .9rem; }


.form-grid { padding-bottom: 108px; }
.settings-savebar {
  position: sticky;
  bottom: 16px;
  grid-column: 1 / -1;
  z-index: 15;
  margin-top: 8px;
}
.settings-savebar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(18, 24, 38, 0.92);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.24);
}
.settings-savebar__text {
  font-weight: 600;
}
.settings-savebar__button {
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .form-grid { padding-bottom: 132px; }
  .settings-savebar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-savebar__button {
    width: 100%;
  }
}

.inline-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  cursor: help;
  background: #fff;
}
.schema-type-select {
  width: 100%;
}

.field-info { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 16px; background: rgba(255,255,255,.7); color: var(--muted); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.checkbox-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.checkbox-pill input { width: auto; margin: 0; }

.theme-custom-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
}
.theme-custom-fields input[type="color"] {
  min-height: 52px;
  padding: 6px;
}
@media (max-width: 900px) {
  .theme-custom-fields { grid-template-columns: 1fr; }
}


/* qcms 0.4.1 mobile menu button on page background */
.site-nav--mobile,
.site-header__mobile-nav { display: none; }
.nav-toggle {
  display: none;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.nav-toggle__icon {
  display: inline-grid;
  gap: 5px;
}
.nav-toggle__icon span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}

@media (min-width: 901px) {
  .site-nav--desktop { display: flex; }
  .site-header__mobile-nav { display: none !important; }
}

@media (max-width: 900px) {
  .header__row {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    gap: 8px;
    padding: 10px 0 8px;
  }
  .brand { font-size: 1.05rem; }
  .header-hours {
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
  }
  .header-hours__label,
  .header-hours__value { font-size: .75rem; }
  .header-nav-wrap,
  .site-nav--desktop { display: none !important; }

  .site-header__mobile-nav {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: transparent;
    border: 0;
    pointer-events: none;
  }
  .mobile-nav__row {
    display: grid;
    justify-items: end;
    gap: 10px;
    padding: 10px 0 0;
    pointer-events: none;
  }
  .nav-toggle {
    display: inline-flex !important;
    pointer-events: auto;
  }

  .site-nav--mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(84vw, 320px);
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 0;
    transition: max-height .28s ease, opacity .18s ease;
  }
  .site-nav--mobile.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-bottom: 4px;
  }
  .site-nav--mobile a {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 24px rgba(18, 24, 38, 0.18);
    color: #121826;
  }
  body.theme-dark .site-nav--mobile a,
  body.theme-bw .site-nav--mobile a {
    background: rgba(18,24,38,.96);
    color: #f7f9fc;
    border-color: rgba(255,255,255,.16);
  }
}

.admin-table-note { margin: 0 0 14px; color: var(--muted); }
.admin-table--sortable tbody tr { transition: background-color .15s ease, box-shadow .15s ease; }
.admin-table--sortable tbody tr:hover { background: rgba(127, 90, 240, 0.04); }
.sortable-row.is-dragging { opacity: .6; background: rgba(127, 90, 240, 0.08); }
.dnd-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: grab;
  font-size: 1rem;
  line-height: 1;
}
.dnd-handle:active { cursor: grabbing; }
.status-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.status-toggle input { accent-color: var(--primary); }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.is-on { background: rgba(34, 197, 94, 0.12); color: #166534; border-color: rgba(34, 197, 94, 0.28); }
.status-pill.is-off { background: rgba(148, 163, 184, 0.14); color: #475569; border-color: rgba(148, 163, 184, 0.28); }
.sort-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
}
