:root {
  --brand: #1f6feb;
  --ink: #1a2330;
  --muted: #5b6a7d;
  --line: #d9e1ea;
  --bg: #f5f7fa;
  --ok: #1a7f37;
  --err: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

main { max-width: 960px; margin: 0 auto; padding: 1rem; }

h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-top: 1.6rem; }
small { color: var(--muted); }
a { color: var(--brand); }

.hero { text-align: center; padding: 2.5rem 1rem 2rem; background: linear-gradient(180deg, #f8fafc 0%, #fff 85%); }
.hero-box { max-width: 54rem; margin: 0 auto; padding: 0 1rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 0.75rem; }
.sub, .since { color: var(--muted); margin: 0.9rem auto 1.2rem; max-width: 44rem; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.35rem; }
.btn.light { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.section { padding: 2.6rem 1rem; }
.section:nth-of-type(even) { background: #f8fbf8; }
.section h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.usps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0 1rem; margin: -1rem auto 1.5rem; max-width: 1200px; }
.usp { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; min-height: 12rem; display: flex; flex-direction: column; gap: 0.75rem; }
.usp h2 { margin: 0; font-size: 1.05rem; }
.card.plain { background: #f9fbf7; border-color: #d8e8d3; }
.signature { background: #eef7ed; padding: 2rem 1rem; }
.signature-inner { max-width: 66rem; margin: 0 auto; }
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.ticks li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; }
.price.big { display: inline-block; margin-top: 1rem; font-size: 1.45rem; font-weight: 800; color: var(--brand); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.link-card { min-height: 12rem; border-top: 4px solid var(--brand); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit; }
.link-card strong { display: block; margin-bottom: 0.35rem; }
.location .loc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-top: 0.85rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.scenery, .pines { width: 100%; height: auto; margin-top: 1.5rem; display: block; }

/* headers */
.site-header, .staff-header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 1rem; background: #fff; border-bottom: 3px solid var(--brand);
}
.brand-name { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--brand); }
.tagline { color: var(--muted); }
.site-footer { text-align: center; color: var(--muted); padding: 2rem 0; }
.site-header .spacer { flex: 1; }
.langs { display: flex; gap: 0.6rem; font-size: 0.85rem; align-items: center; }
.lang { text-decoration: none; }
.lang.current { font-weight: 700; color: var(--muted); }
.staff-header nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.staff-header nav a {
  text-decoration: none; padding: 0.45rem 0.8rem; border-radius: 6px; color: var(--ink);
}
.staff-header nav a.active, .staff-header nav a:hover { background: var(--bg); }
.staff-header .spacer { flex: 1; }
.staff-header .user { font-weight: 600; }

/* The end-of-shift button: big, red, impossible to miss on a tablet. */
.logout-form { display: inline; }
.btn-logout {
  font: inherit; font-weight: 700; cursor: pointer;
  color: var(--err); background: #fde3e1;
  border: 2px solid var(--err); border-radius: 10px;
  padding: 0.55rem 1.1rem; white-space: nowrap;
}
.btn-logout:hover { background: var(--err); color: #fff; }
@media (pointer: coarse) {
  .btn-logout { padding: 0.9rem 1.6rem; font-size: 1.15rem; border-radius: 12px; }
}

/* public site */
.hero { text-align: center; padding: 2.5rem 1rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.3rem; color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.card .price { font-weight: 700; color: var(--brand); margin-top: auto; }
.card .components { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.brand-card { text-decoration: none; color: var(--ink); border-top: 4px solid var(--brand); }
.brand-card em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.product-card { color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.product-card:hover { border-color: var(--brand); box-shadow: 0 7px 18px rgba(25, 35, 20, 0.1); transform: translateY(-2px); }
.product-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.product-card__action { margin-top: 0.5rem; color: var(--brand); font-weight: 700; }

/* forms */
label { display: block; margin: 0.6rem 0; font-weight: 600; }
label input, label select, label textarea {
  display: block; width: 100%; max-width: 26rem; margin-top: 0.25rem; font-weight: 400;
}
input, select, textarea, button {
  font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
}
textarea { resize: vertical; }
.translation-fields { padding: 0.4rem 0.8rem 0.6rem; }
input.qty { width: 5.5rem; display: inline-block; }
.radio { font-weight: 400; }
.radio input { display: inline; width: auto; }
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.9rem;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.danger { color: var(--err); border-color: var(--err); }
.btn.big { font-size: 1.15rem; padding: 0.8rem 1.4rem; }
.btn.wide { display: block; text-align: left; }
.btn.wide small { display: block; font-weight: 400; }
.date-form, .booking-form, .login-form {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 1rem 0;
}
.demo-box {
  background: #fff8e1; border: 1px dashed #d4b106; border-radius: 10px;
  padding: 0.8rem 1rem; max-width: 28rem;
}
.demo-box p { margin: 0 0 0.6rem; }
.demo-cred {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.55rem 0.8rem; margin-bottom: 0.4rem;
}
.demo-cred:hover { border-color: var(--brand); }
.filters { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0.8rem 0; }
.filters input, .filters select { max-width: 100%; }
form.inline { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

/* tables */
table { border-collapse: collapse; width: 100%; background: #fff; }
table.list, .booking-form table, .confirmation table {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
th { background: var(--bg); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
td.num { text-align: right; white-space: nowrap; }
td.total, tr.total td { font-weight: 700; }

/* badges & flashes */
.badge {
  padding: 0.15rem 0.55rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; color: #fff;
}
.st-confirmed { background: #0969da; }
.st-overdue { background: var(--err); }
.overdue-row td { background: #fff5f4; }
.pay-chip {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin: 0 0.3rem 0.3rem 0;
}
.refund { color: #9a6700; }
.util-bar {
  display: inline-block; vertical-align: middle; width: 8rem; height: 0.7rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 99px; overflow: hidden;
}
.util-bar div { height: 100%; background: var(--brand, #1f6feb); }
.st-active { background: #9a6700; }
.st-completed { background: var(--ok); }
.st-cancelled { background: var(--muted); }
.unpaid, .cond-missing { color: var(--err); }
.cond-damaged { color: #9a6700; }
.brand-canodal { color: #2e7d32; font-weight: 600; }
.brand-kanuking { color: #0d47a1; font-weight: 600; }
.flash { padding: 0.7rem 1rem; border-radius: 8px; }
.flash.ok { background: #d3f3df; color: var(--ok); }
.flash.err { background: #fde3e1; color: var(--err); }
.avail { color: var(--ok); font-size: 0.9rem; }
.avail.low-stock { color: #9a6700; font-weight: 700; }
.soldout { color: var(--err); font-weight: 600; }
.tip {
  margin-top: 0.45rem; padding: 0.45rem 0.7rem;
  background: #fff8e1; border-radius: 8px;
  font-size: 0.88rem; color: var(--ink); font-weight: 400;
}
.tip a { color: var(--brand); font-weight: 600; }
.empty, .hint { color: var(--muted); }
tr.muted td { color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0.6rem 0; }
legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.3rem; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.notes { background: #fff8e1; padding: 0.5rem 0.8rem; border-radius: 8px; }

/* confirmation */
.confirmation { text-align: center; max-width: 34rem; margin: 2rem auto; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.confirmation .ref { font-size: 2rem; font-weight: 800; letter-spacing: 0.08em; color: var(--brand); }
.confirmation table { margin: 1rem 0; }
.confirmation-actions { margin: 1rem 0; }
.resend { text-align: left; margin: 1rem 0; font-size: 0.9rem; }
.resend summary { cursor: pointer; color: var(--muted); }
.resend-form { margin-top: 0.6rem; }
.resend-form label { text-align: left; }

/* tablets */
@media (max-width: 700px) {
  main { padding: 0.7rem; }
  .staff-header { position: sticky; top: 0; z-index: 5; }
}

/* booking wizard (public booking page) */
.steps {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  list-style: none; margin: 1rem 0; padding: 0;
}
.steps li {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.steps li .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); font-size: 0.8rem;
}
.steps li.current { border-color: var(--brand); color: var(--brand); }
.steps li.current .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done { color: var(--ok); }
.steps li.done .n { background: #d3f3df; border-color: #9fdcb6; color: var(--ok); }
.steps li > a,
.steps li > span {
  display: flex; align-items: center; gap: 0.45rem;
  color: inherit; text-decoration: none;
}
.steps li > a { border-radius: 999px; }
.steps li > a:hover { text-decoration: underline; }
.steps li > a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.preferred-product { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: -3px; }
.step-hint { margin: 0.2rem 0 0.7rem; }
.step-hint a { white-space: nowrap; }
.date-summary {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 1rem; margin: 1rem 0;
}
.date-summary strong { font-size: 1.05rem; }
.type-dates { margin: 0.9rem 0; }
.type-dates summary { cursor: pointer; color: var(--muted); }
.type-dates .date-form { margin-top: 0.5rem; }
.contact-more { margin: 0.6rem 0; }
.contact-more summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.contact-more label:first-of-type { margin-top: 0.6rem; }
.group { margin-top: 1.5rem; }
.group h3 { margin: 0; font-size: 1.05rem; }
.group > .hint { margin: 0.15rem 0 0.5rem; font-size: 0.9rem; }
.line-days { margin-top: 0.4rem; font-weight: 400; }
.line-days summary { cursor: pointer; color: var(--brand); font-size: 0.9rem; }
.line-days .period { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: end; margin: 0.4rem 0; }
.line-days .period label { margin: 0; font-size: 0.85rem; }
.line-days .period input, .line-days .period select { width: auto; }
.line-days > .hint { font-size: 0.82rem; margin: 0.2rem 0 0; }
.day-picks { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.45rem 0; }
.day-pick { margin: 0; font-weight: 400; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span {
  display: inline-block; padding: 0.3rem 0.55rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-size: 0.85rem; cursor: pointer; user-select: none;
  white-space: nowrap;
}
.day-pick span small { font-size: 0.7rem; color: var(--muted); }
.day-pick input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
.day-pick input:checked + span small { color: #fff; opacity: 0.85; }
.day-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
table.order-review {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  max-width: 34rem; margin: 0.6rem 0 1.2rem;
}

/* staff prep: per-booking pick lists & selected-container highlight */
th.here, td.here { background: #eaf3ff; }
.prep-order .picklist { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.prep-order .notes { margin: 0.3rem 0 0; font-size: 0.9rem; }

/* staff returns: one-tap happy path, per-item exceptions collapsed */
.picklist { padding-left: 1.3rem; }
.picklist li { margin: 0.15rem 0; }
.return-all { display: flex; gap: 0.8rem; align-items: end; flex-wrap: wrap; margin: 0.8rem 0; }
.return-all label { margin: 0; }
.return-detail { margin: 1rem 0; }
.return-detail summary { cursor: pointer; color: var(--muted); }
.return-detail form { margin-top: 0.6rem; }

/* availability calendar (public booking page) */
.calendar { max-width: 34rem; margin: 1rem 0; }
.calendar h2 { margin-bottom: 0.5rem; }
.cal-picker { margin-bottom: 0.6rem; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.cal-h { text-align: center; font-size: 0.75rem; color: var(--muted); padding-bottom: 2px; }
.cal-d {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1.4; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
}
.cal-d small { font-weight: 400; font-size: 0.62rem; color: inherit; opacity: 0.8; }
.cal-d.free { background: #d3f3df; border-color: #9fdcb6; }
.cal-d.free:hover { background: #b3e8c8; }
.cal-d.low { background: #fff3cd; border-color: #e8d48b; }
.cal-d.low:hover { background: #ffe9a8; }
.cal-d.none { color: var(--muted); background: #f1f1f1; }
.cal-d.blank { visibility: hidden; }
.cal-d.sel-edge { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 800; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.4rem 0 0.6rem; }
.cal-month { text-transform: capitalize; }
.cal-nav-btn {
  display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; text-decoration: none; font-weight: 700; white-space: nowrap;
}
.cal-nav-btn.disabled { opacity: 0.4; }
.ref-hint { color: var(--muted); font-size: 0.9rem; }
/* Browser-native date fields follow the OS locale. Keep their calendar,
   but expose one consistent DD MM YY control throughout the product. */
.date-control {
  display: inline-flex;
  position: relative;
  align-items: stretch;
  min-width: 11.5rem;
  max-width: 100%;
}
.date-control__display {
  width: 100%;
  min-width: 0 !important;
  padding-right: 2.8rem !important;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.date-control__native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
.date-control__button {
  position: absolute;
  inset: 1px 1px 1px auto;
  width: 2.6rem;
  padding: 0;
  border: 0;
  border-left: 1px solid #ccc;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.date-control__button:focus-visible {
  outline: 2px solid var(--brand, #315b45);
  outline-offset: -2px;
}
