/* =========================================================
   Stroombel — mobiel opwaarderen
   ========================================================= */

:root,
[data-theme="dark"] {
  --bg: #0f1110;
  --bg-2: #171918;
  --bg-3: #1d201f;
  --fg: #ededed;
  --muted: #8d908f;
  --dim: #55595a;
  --line: #262928;
  --line-soft: #1c1f1e;
  --green: #3ecf8e;
  --green-dim: #1f6b4a;
  --green-bg: rgba(62, 207, 142, .07);
  --on-green: #0b0d0c;
  --dot: #d9d9d9;
  --danger: #e5484d;
  --shadow: rgba(0, 0, 0, .55);
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-2: #ececea;
  --bg-3: #e3e3e0;
  --fg: #141615;
  --muted: #5f6362;
  --dim: #a2a5a4;
  --line: #d9dad7;
  --line-soft: #e6e6e3;
  --green: #18a065;
  --green-dim: #8fd6b4;
  --green-bg: rgba(24, 160, 101, .08);
  --on-green: #0b0d0c;
  --dot: #2a2c2b;
  --shadow: rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.mono, .wordmark, .btn-outline, .btn-solid, .rates th, .rates td.price,
.cart-fab, .tag, .field span, .total-row, .note, .card-add, .row-add, .tabs-arrow {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.g { color: var(--green); }
.muted { color: var(--muted); }

/* ---------- HERO / FOOTER TOP ---------- */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 40px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
}
.wordmark span {
  background: var(--green);
  color: var(--on-green);
  padding: 3px 3px 2px;
}
.wordmark span.inv {
  background: var(--fg);
  color: var(--bg);
}

.hosted {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -.01em;
}
.mini-logo svg { width: 12px; height: 12px; fill: var(--green); }

.meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.meta a:hover { color: var(--fg); }
.meta .dot { margin: 0 4px; }

.theme-switch {
  display: flex;
  gap: 4px;
  margin-top: 24px;
}
.theme-switch button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  transition: .15s;
}
.theme-switch button svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-switch button:hover { color: var(--fg); }
.theme-switch button.active {
  background: var(--green-dim);
  border-color: var(--green-dim);
  color: var(--green);
}
[data-theme="light"] .theme-switch button.active { color: #0d6b43; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-dim);
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-outline:hover { background: rgba(62, 207, 142, .16); border-color: var(--green); }
.btn-outline.small {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 14px;
}

/* landscape */
.landscape-wrap {
  height: 170px;
  position: relative;
}
#landscape { width: 100%; height: 100%; display: block; }

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0 40px; }

.section-title,
.tabs-head h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 30px;
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 20px;
  row-gap: 34px;
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: var(--bg-2);
  overflow: hidden;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition: outline-color .15s;
}
.card-media canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  transition: transform .4s ease;
}
.card-media:hover { outline-color: var(--green); }
.card-media:hover canvas { transform: scale(1.04); }

.card-add {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--green);
  color: var(--on-green);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 6px 8px;
  text-align: left;
  transform: translateY(100%);
  transition: transform .18s ease;
}
.card-media:hover .card-add,
.card-media:focus-visible .card-add { transform: translateY(0); }

.card-name {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
}
.card-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- TABS + TABLE ---------- */
.tabs-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.tabs-head h2 { margin-bottom: 28px; }
.tabs-arrow { color: var(--green); font-size: 20px; }
.tab {
  font-size: 22px;
  color: var(--dim);
  letter-spacing: -.01em;
  transition: color .15s;
}
.tab:hover { color: var(--muted); }
.tab.active { color: var(--fg); }

.table-wrap { overflow-x: auto; }

.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.rates th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.rates th:nth-child(1) { width: 25%; }
.rates th:nth-child(2) { width: 25%; }
.rates th:nth-child(4) { width: 110px; }

.rates td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.rates td.price { font-size: 12px; color: var(--muted); }
.rates td.details { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.rates tr.rate-note td { background: var(--bg-2); }
.rates tbody tr { transition: background .15s; }
.rates tbody tr:not(.rate-note):hover td { background: var(--bg-2); }

.row-add {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 5px 9px;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.rates tr:hover .row-add,
.row-add:focus-visible { opacity: 1; }
.row-add:hover { background: var(--green-bg); }

.rates tbody.fade { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- ARROW BANNER ---------- */
.arrow-banner {
  position: relative;
  height: 270px;
  margin: 70px 0 30px;
}
#arrowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.arrow-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  padding: 26px 28px;
  white-space: nowrap;
}
.fade-arrows {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  display: flex;
  gap: 6px;
}
.fade-arrows i { font-style: normal; color: var(--fg); }
.fade-arrows i:nth-child(1) { opacity: 1; }
.fade-arrows i:nth-child(2) { opacity: .65; }
.fade-arrows i:nth-child(3) { opacity: .35; color: var(--green); }
.fade-arrows i:nth-child(4) { opacity: .2; color: var(--green); }
.arrow-cta {
  font-size: 27px;
  letter-spacing: -.015em;
}

/* ---------- PARTNERS ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
}
.partner {
  position: relative;
  height: 116px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color .15s, background .15s;
}
.partner:hover { border-color: var(--dim); background: var(--bg-2); }
.tag {
  position: absolute;
  top: -8px;
  left: -1px;
  background: var(--green);
  color: var(--on-green);
  font-size: 8.5px;
  letter-spacing: .1em;
  padding: 2px 6px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  white-space: nowrap;
}
.logo svg {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.logo-tulp { font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.logo-tulp svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.logo-molen { font-size: 34px; font-weight: 700; letter-spacing: -.05em; }
.logo-kade { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.logo-kade b { color: var(--green); }
.logo-gracht { font-size: 21px; font-weight: 700; font-style: italic; letter-spacing: -.03em; }
.logo-gracht small { font-size: 12px; font-weight: 500; }
.logo-dijk { font-size: 13px; font-weight: 500; }
.logo-dijk svg { width: 15px; height: 15px; }
.logo-fiets { font-size: 16px; font-weight: 600; }
.logo-fiets svg { width: 18px; height: 18px; }
.logo-kaas { font-size: 15px; font-weight: 500; }
.logo-kaas svg { width: 16px; height: 16px; }
.logo-klomp { font-size: 15px; font-weight: 600; }
.logo-klomp svg { width: 16px; height: 16px; }

/* ---------- FOOTER ---------- */
.footer { margin-top: 60px; }
.footer .hero-top { padding-top: 60px; padding-bottom: 90px; }

/* ---------- CART FAB ---------- */
.cart-fab {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .08em;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 8px 7px 12px;
  transition: border-color .15s;
}
.cart-fab:hover { border-color: var(--green-dim); }
.cart-count {
  background: var(--green);
  color: var(--on-green);
  min-width: 20px;
  text-align: center;
  padding: 1px 5px;
}
.cart-fab.bump { animation: bump .35s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); border-color: var(--green); }
  100% { transform: scale(1); }
}

/* ---------- DRAWER ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 60;
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
body.cart-open .overlay { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
body.cart-open { overflow: hidden; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
}
.icon-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.icon-btn:hover { color: var(--fg); border-color: var(--dim); }

.drawer-body { flex: 1; overflow-y: auto; }

.cart-list { list-style: none; }
.cart-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-thumb {
  width: 44px; height: 46px;
  background: var(--bg-2);
  image-rendering: pixelated;
}
.cart-item h4 { font-size: 13px; font-weight: 400; }
.cart-item p { font-size: 12px; color: var(--muted); }
.cart-right { text-align: right; }
.cart-price { font-family: "JetBrains Mono", monospace; font-size: 12px; }
.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 1px solid var(--line);
}
.qty button {
  width: 22px; height: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
.qty button:hover { color: var(--green); background: var(--bg-2); }
.qty span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  min-width: 22px;
  text-align: center;
}

.cart-empty {
  padding: 40px 24px;
  font-size: 13px;
  color: var(--muted);
}

.drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field span { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.field input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  padding: 12px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--green-dim); }
.field.error input { border-color: var(--danger); }
.field-err {
  display: none;
  font-style: normal;
  font-size: 11px;
  color: var(--danger);
}
.field.error .field-err { display: block; }

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .04em;
}
.total-row span:first-child { color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.btn-solid {
  background: var(--green);
  color: var(--on-green);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px;
  transition: filter .15s;
}
.btn-solid:hover { filter: brightness(1.08); }
.note { font-size: 10.5px; color: var(--dim); text-align: center; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--fg);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .arrow-cta { font-size: 22px; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 80px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); column-gap: 14px; }
  .partner-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .partner.head { grid-column: span 2; }
  .fade-arrows { display: none; }
  .arrow-center { flex-direction: column-reverse; gap: 14px; padding: 20px; }
  .row-add { opacity: 1; }
  .tab, .tabs-head h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .wordmark { font-size: 20px; }
  .arrow-cta { font-size: 19px; }
  .partner { height: 96px; }
  .logo-tulp, .logo-molen { font-size: 26px; }
}

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