/* ==========================================================================
   Another Brick 4 You - publieke website
   Vereist tokens.css. Gebaseerd op remkospaans.nl/www/ab4y-proposal/index.html.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { font-size: 1rem; line-height: 1.6; transition: background-color .25s, color .25s; }

.icon { width: 20px; height: 20px; flex: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 720px) { .container { padding-inline: 32px; } }

.eyebrow { font-size: .8rem; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-hover); }
.btn--outline { border-color: currentColor; }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__slogan { font-size: .75rem; color: var(--yellow); letter-spacing: .04em; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: .5rem .8rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover { color: var(--yellow); }
.main-nav .btn--outline { color: var(--white); }
.main-nav .btn--outline:hover { color: var(--yellow); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid hsl(0 0% 100% / .25);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: absolute;
    inset: calc(100% + 4px) 0 auto 0;
    display: none;
    background: var(--navy);
    border-bottom: 4px solid var(--yellow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .5rem; padding: .75rem 16px 1.25rem; }
  .main-nav .btn { justify-content: center; }
}
@media (max-width: 420px) {
  .brand__slogan { display: none; }
  .brand__name { font-size: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, hsl(218 41% 16% / .55), hsl(218 41% 16% / .92)),
    url('../images/ab4y/hero.jpg') center bottom / cover no-repeat,
    var(--navy);
}
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 3rem; padding-block: 5rem 6rem; }
.hero__slogan { margin-bottom: .25rem; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-style: italic; color: var(--yellow); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -.01em; }
.hero h1 span { color: var(--yellow); }
.hero__lead { max-width: 34rem; margin: 1.25rem 0 2rem; font-size: 1.1rem; color: hsl(214 40% 90%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__logo { justify-self: center; width: min(100%, 360px); aspect-ratio: 1 / 1; filter: drop-shadow(0 12px 32px hsl(0 0% 0% / .35)); }
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 4.5rem; }
  .hero__logo { order: -1; width: 180px; }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

/* ==========================================================================
   VOORRAADTOTALEN
   ========================================================================== */
.stats { position: relative; z-index: 2; margin-top: -3rem; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 2rem; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
}
.stat__icon svg { width: 34px; height: 34px; }
.stat__value { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--text-muted); font-weight: 600; }
.stats__note { margin: .6rem 0 0; font-size: .85rem; color: var(--text-muted); text-align: right; }
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding: 1.25rem; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stats__note { text-align: center; }
}

/* ==========================================================================
   SECTIES
   ========================================================================== */
.section { padding-block: 5rem; }
.section--flush-top { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__head h2 { margin-top: .25rem; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.section__head p { max-width: 40rem; margin: .5rem 0 0; color: var(--text-muted); }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--accent-text);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn .icon { width: 18px; height: 18px; }

.band { background: var(--surface-alt); }

/* ==========================================================================
   JUST ADDED (kaarten)
   ========================================================================== */
.items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; } }
@media (max-width: 440px)  { .items { grid-template-columns: minmax(0, 1fr); } }
.items__empty { color: var(--text-muted); }

.item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
  animation: pop .4s var(--delay, 0ms) both;
}
.item[hidden] { display: none; }
.item:hover { transform: translateY(-4px); border-color: var(--yellow); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }

.item__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .item__media { background: hsl(214 30% 94%); }
.item__media img { max-height: 100%; object-fit: contain; }
.item__badge, .item__cond {
  position: absolute;
  top: .6rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.item__badge { left: .6rem; background: var(--navy); color: var(--yellow); letter-spacing: .08em; text-transform: uppercase; }
.item__cond { right: .6rem; background: var(--yellow); color: var(--navy); }

.item__body { display: flex; flex-direction: column; flex: 1; gap: .6rem; padding: 1rem; }
.item__id { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.item__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.item__color { display: flex; align-items: center; gap: .45rem; font-size: .88rem; }
.swatch { flex: none; width: 14px; height: 14px; border: 1px solid hsl(0 0% 0% / .2); border-radius: 4px; }
:root[data-theme="dark"] .swatch { border-color: hsl(0 0% 100% / .3); }
.item__meta { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; margin: 0; font-size: .82rem; }
.item__meta dt { color: var(--text-muted); }
.item__meta dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.item__added { margin-top: auto; font-size: .78rem; color: var(--text-muted); }
.item__link {
  display: block;
  padding: .5rem .25rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s;
}
:root[data-theme="dark"] .item__link { background: var(--navy-600); }
.item__link:hover { background: var(--blue); }

/* ==========================================================================
   WAAROM AB4Y
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
}
:root[data-theme="dark"] .feature__icon { background: var(--yellow); color: var(--navy); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--text-muted); }

/* ==========================================================================
   WINKELS
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split__photo { overflow: hidden; aspect-ratio: 4 / 3; border: 4px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow); }
.split__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.split h2 { margin: .25rem 0 1rem; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.split p { margin: 0 0 1rem; color: var(--text-muted); }

.store-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 440px) { .store-cards { grid-template-columns: 1fr; } }
.store-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; border-radius: var(--radius); text-decoration: none; transition: transform .15s; }
.store-card:hover { transform: translateY(-3px); }
.store-card strong { font-size: 1.15rem; }
.store-card span { font-size: .88rem; opacity: .85; }
.store-card--bl { background: var(--navy); color: var(--white); border: 1px solid var(--border); }
.store-card--bo { background: var(--yellow); color: var(--navy); }

/* ==========================================================================
   VERZENDKOSTEN
   ========================================================================== */
.ship {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--navy);
  background-image: radial-gradient(hsl(0 0% 100% / .07) 22%, transparent 24%);
  background-size: 28px 28px;
  color: var(--white);
}
.ship h2 { font-family: var(--font-display); font-size: 1.6rem; }
.ship p { margin: .4rem 0 0; color: hsl(214 40% 88%); }

/* ==========================================================================
   INFOPAGINA'S (shipping, terms, contact, privacy)
   ========================================================================== */
.main-nav a[aria-current] { color: var(--yellow); }

.page-head { padding-block: 4rem 2.5rem; }
.page-head h1 { margin: .25rem 0 .75rem; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; }
.page-head p { max-width: 42rem; margin: 0; font-size: 1.1rem; color: var(--text-muted); }

.page .table-scroll, .page .contact-cards { max-width: 860px; }

.prose { max-width: 42rem; }
.prose h2 { margin: 2.25rem 0 .5rem; font-family: var(--font-display); font-size: 1.35rem; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--accent-text); font-weight: 600; }
.page__more { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.rates { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rates caption { padding-bottom: .6rem; text-align: left; font-weight: 700; }
.rates th, .rates td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.rates thead th { border-top: 0; background: var(--navy); color: var(--white); font-size: .85rem; letter-spacing: .02em; }
.rates tbody th { font-weight: 700; }
.rates tbody th span { display: block; margin-top: .2rem; font-weight: 400; font-size: .88rem; color: var(--text-muted); }
.rates .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .rates th, .rates td { padding: .7rem .6rem; }
  .rates tbody th span { display: none; }
}

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 720px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; border: 1px solid var(--border); border-left: 4px solid var(--yellow); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .15s; min-width: 0; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card strong { font-size: 1.1rem; }
.contact-card span { font-size: .9rem; color: var(--text-muted); overflow-wrap: anywhere; }
.contact-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 2.75rem; }
@media (max-width: 560px) { .contact-cards--two { grid-template-columns: 1fr; } }

/* Verzendkosten: vanaf-prijzen, zoekveld en tabel per land */
.page__subhead { margin: 0 0 .75rem; font-family: var(--font-display); font-size: 1.35rem; }
.page .from-prices { max-width: 860px; }
.from-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
@media (max-width: 560px) { .from-prices { grid-template-columns: 1fr; } }
.from-prices li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.from-prices span { font-size: .85rem; opacity: .8; }
.from-prices strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--yellow); }

.country-search { max-width: 860px; margin-bottom: 1.5rem; }
.country-search label { display: block; margin-bottom: .5rem; font-weight: 700; font-size: 1.1rem; }
.country-search__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.country-search__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.country-search__input:focus { outline: none; border-color: var(--yellow); }
.country-search__result { min-height: 1.5em; margin: .6rem 0 0; color: var(--text-muted); }
.country-search__result a { color: var(--accent-text); font-weight: 600; }
.rates-note { max-width: 860px; margin: 0 0 1rem; padding: .75rem 1rem; border-left: 4px solid var(--yellow); border-radius: var(--radius-sm); background: var(--surface-alt); font-size: .95rem; }

.rates--countries thead th { vertical-align: bottom; }
.rates--countries thead tr + tr th { padding-top: 0; font-weight: 400; }
.rates--countries thead th[scope="colgroup"] { border-bottom: 1px solid hsl(0 0% 100% / .2); }
.rates--countries th, .rates--countries td { padding-block: .6rem; }
.rates--countries tbody th { position: sticky; left: 0; background: var(--surface); }
.rates--countries tbody tr { scroll-margin-block: 6rem; }
.rates--countries tbody tr:hover > * { background: var(--surface-alt); }
.rates--countries tr.is-selected > * { background: var(--yellow); color: var(--navy); }
.rates--countries tr.is-flash > * { animation: row-flash 1.6s ease-out; }
@keyframes row-flash { 0%, 40% { background: var(--yellow-hover); } }
@media (prefers-reduced-motion: reduce) { .rates--countries tr.is-flash > * { animation: none; } }

/* ==========================================================================
   FOUTPAGINA'S
   ========================================================================== */
.notice { padding-block: 6rem; text-align: center; }
.notice h1 { margin: .25rem 0 1rem; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); }
.notice p { max-width: 34rem; margin: 0 auto 2rem; color: var(--text-muted); }

/* 404: rij steentjes met één gat */
.notice--404 { padding-block: 4rem 5rem; }
.missing-brick { display: block; width: min(320px, 100%); height: auto; margin: 0 auto 2rem; }
.missing-brick__brick { fill: var(--yellow); }
.missing-brick__gap rect { fill: none; stroke: var(--text-muted); stroke-width: 3; stroke-dasharray: 8 6; }
.missing-brick__gap text { fill: var(--text-muted); font-family: var(--font-display); font-size: 34px; }
.notice--404 .missing-brick__gap { animation: gap-wobble 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gap-wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: -4deg; } }
@media (prefers-reduced-motion: reduce) { .notice--404 .missing-brick__gap { animation: none; } }
.notice .notice__slogan { margin-bottom: 1rem; font-weight: 700; color: var(--text); }
.notice__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; margin-top: 2.5rem; font-size: .92rem; }
.notice__links span { color: var(--text-muted); }
.notice__links a { color: var(--accent-text); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding-top: 3.5rem; background: var(--navy); color: hsl(214 40% 88%); border-top: 4px solid var(--yellow); }
:root[data-theme="dark"] .site-footer { background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 120px; margin-bottom: .75rem; }
.footer-brand p { max-width: 20rem; margin: 0; font-size: .92rem; }
.site-footer h3 { margin-bottom: .9rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.site-footer ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 3rem;
  padding-block: 1.25rem;
  border-top: 1px solid hsl(0 0% 100% / .12);
  font-size: .85rem;
}
.footer-bottom em { font-style: normal; color: var(--yellow); }
.footer-legal { margin: 0; padding-bottom: 1.25rem; font-size: .75rem; opacity: .6; }

/* 500: omgevallen toren met een vallend steentje */
.notice--error { padding-block: 4rem 5rem; }
.error-art { display: block; width: min(320px, 100%); height: auto; margin: 0 auto 2rem; overflow: visible; }
.error-art__brick, .error-art__falling { fill: var(--yellow); }
.error-art__spin { transform-box: fill-box; transform-origin: center; animation: brick-fall 2.8s ease-in infinite; }
@keyframes brick-fall {
  0%   { translate: 0 -10px; rotate: 0deg; opacity: 0; }
  15%  { opacity: 1; }
  70%  { translate: 0 54px; rotate: 50deg; opacity: 1; }
  100% { translate: 0 54px; rotate: 50deg; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .error-art__spin { animation: none; translate: 0 54px; rotate: 50deg; } }
