/* Herr Bagare – publik sajt. Mobil först, sidomarginal 16px mobil / 80px dator (tokens). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-body);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 var(--space-3); }
a { color: var(--accent); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.25em; }
img { max-width: 100%; display: block; }

.hb-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
.hb-container--narrow { max-width: 760px; }
@media (min-width: 900px) {
  .hb-container { padding: 0 var(--gutter-desktop); }
}

.hb-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}

.hb-muted { color: var(--ink-soft); font-size: 0.9rem; }

/* Buttons */
.hb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hb-button:hover { transform: translateY(-1px); }
.hb-button--dark { background: var(--ink); color: var(--bg); }
.hb-button--light { background: var(--accent-warm); color: var(--ink); }
.hb-button--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.hb-button--block { width: 100%; }
.hb-button--small { padding: 10px 20px; min-height: 38px; font-size: 0.9rem; }
.hb-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.hb-link-button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Header */
.hb-site-header { padding: var(--space-4) 0; }
.hb-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.hb-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.hb-logo--light { color: var(--bg); }
.hb-nav { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hb-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.hb-nav a.hb-button { color: var(--bg); }

/* Flash */
.hb-flash { padding: var(--space-3) var(--gutter-mobile); text-align: center; font-weight: 600; }
.hb-flash--success { background: var(--accent-warm); color: var(--ink); }
.hb-flash--error { background: #F3D0C4; color: #5A2A1A; }

/* Hero */
.hb-hero { padding: var(--space-7) 0 var(--space-6); }
.hb-hero__lead { font-size: 1.1rem; max-width: 60ch; }
.hb-hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

.hb-producer-strip {
  background: var(--ink);
  color: var(--accent-warm);
  text-align: center;
  padding: var(--space-3) 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hb-producer-strip p { margin: 0; }

/* Sections */
.hb-section { padding: var(--space-7) 0; }
.hb-section--alt { background: var(--surface-alt); }
.hb-section--dark { background: var(--ink); color: var(--bg); }
.hb-section--dark h2, .hb-section--dark p { color: var(--bg); }
.hb-section--dark .hb-eyebrow { color: var(--accent-warm); }

.hb-split { display: grid; gap: var(--space-6); }
@media (min-width: 860px) {
  .hb-split { grid-template-columns: 1fr 1fr; align-items: start; }
}
.hb-steps { padding-left: 1.1em; }
.hb-steps li { margin-bottom: var(--space-2); }

/* Cards */
.hb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

/* Package grid */
.hb-package-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin-top: var(--space-5); }
@media (min-width: 700px) { .hb-package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hb-package-grid { grid-template-columns: repeat(4, 1fr); } }
.hb-package-card { display: flex; flex-direction: column; gap: var(--space-2); }
.hb-package-card__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) 0;
  width: calc(100% + var(--space-5) * 2);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.hb-package-card__contents { font-size: 0.9rem; color: var(--ink-soft); flex-grow: 1; }
.hb-package-card__price { font-weight: 700; margin: 0; }

.hb-package-detail__image { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-card); margin-bottom: var(--space-4); }
.hb-package-detail__price { font-weight: 700; font-size: 1.1rem; }
.hb-package-detail__contents { font-size: 1rem; }

/* Benefits */
.hb-benefit-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin-top: var(--space-5); }
@media (min-width: 700px) { .hb-benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hb-benefit-grid { grid-template-columns: repeat(4, 1fr); } }
.hb-benefit { padding: var(--space-4); background: var(--surface); border-radius: var(--radius-card); border: 1px solid var(--line); }
.hb-benefit h3 { margin-bottom: var(--space-2); }
.hb-benefit p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Forms */
.hb-order-form { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-5); }
.hb-field-group { border: none; padding: 0; margin: 0; }
.hb-field-group legend { font-weight: 700; margin-bottom: var(--space-2); padding: 0; }
.hb-field-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .hb-field-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.hb-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.hb-field input, .hb-field select, .hb-field textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-body);
  min-height: 44px;
}
.hb-field textarea { min-height: auto; }
.hb-field--checkbox { flex-direction: row; align-items: flex-start; font-weight: 400; }
.hb-field-error { color: #B3261E; font-size: 0.85rem; margin: 0; min-height: 1em; }
.hb-order-errors { color: #B3261E; font-weight: 600; }
.hb-order-total { font-weight: 700; font-size: 1.05rem; }
.hb-order-form__note { text-align: center; }

.hb-pill-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hb-pill {
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}
.hb-pill input { position: absolute; opacity: 0; }
.hb-pill:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hb-pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.hb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hb-order-success { margin-top: var(--space-4); }

/* Information / thanks pages */
.hb-thanks { text-align: center; }
.hb-thanks__number { font-size: 1.1rem; font-weight: 700; }
.hb-information h2 { margin-top: var(--space-5); }

/* Tables (shared with admin) */
.hb-table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; }
.hb-table th, .hb-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.hb-table th { color: var(--accent); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }

.hb-status { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; background: var(--surface-alt); }
.hb-status--ny, .hb-status--aktiv { background: var(--accent-warm); color: var(--ink); }
.hb-status--bekräftad, .hb-status--packad { background: #CFE3D0; color: #1E4620; }
.hb-status--levererad, .hb-status--fakturerad { background: #D9D2C4; color: var(--ink); }
.hb-status--avbokad, .hb-status--pausad { background: #EAD9D2; color: #6A2E1E; }

/* Footer */
.hb-site-footer { background: var(--ink); color: var(--bg); padding: var(--space-6) 0; margin-top: var(--space-7); }
.hb-site-footer a { color: var(--bg); opacity: 0.85; text-decoration: none; margin-right: var(--space-3); }
.hb-site-footer p { margin: 0 0 4px; opacity: 0.85; font-size: 0.9rem; }
.hb-site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: space-between; }

/* Error page */
.hb-error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center; }
.hb-error { max-width: 420px; padding: var(--space-5); }
