/*
Theme Name: Accuboorkopen
Theme URI: https://accuboorkopen.nl
Author: Accuboorkopen.nl
Description: Licht affiliate-thema voor accuboorkopen.nl met product-, blog- en koopgids-layouts.
Version: 0.1.5
Text Domain: accuboorkopen
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root {
  --ink: #162025;
  --muted: #607077;
  --line: #dbe5e6;
  --paper: #ffffff;
  --soft: #f3f8f7;
  --teal: #087d82;
  --teal-dark: #04575c;
  --yellow: #f2c84b;
  --magenta: #b63b7a;
  --shadow: 0 22px 65px rgba(16, 47, 55, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
}

.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 24px;
  color: #314349;
  font-size: 14px;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 30px rgba(20, 60, 70, 0.1);
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--teal);
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.mobile-nav nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.mobile-nav nav a:hover {
  background: var(--soft);
  color: var(--teal);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--teal);
  background: white;
  box-shadow: 0 10px 30px rgba(20, 60, 70, 0.1);
}

.icon-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(243, 248, 247, 0.98) 0%, rgba(243, 248, 247, 0.9) 40%, rgba(243, 248, 247, 0.05) 66%),
    #eef6f4;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(243, 248, 247, 0.98) 0%, rgba(243, 248, 247, 0.94) 45%, rgba(243, 248, 247, 0.38) 72%, rgba(243, 248, 247, 0.04) 100%);
}

.hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 34%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 150px 24px 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--teal);
}

.search-panel {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  width: min(680px, 100%);
  padding: 10px;
  border: 1px solid rgba(8, 125, 130, 0.15);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.search-panel svg {
  width: 22px;
  margin-left: 10px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
}

.search-panel input {
  min-width: 0;
  height: 52px;
  border: 0;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  outline: 0;
}

.search-panel button,
.compare-link,
.wp-block-button__link {
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-panel button {
  height: 52px;
  padding: 0 28px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: 24px 0 22px;
  padding: 0;
  list-style: none;
}

.quick-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 28px rgba(16, 47, 55, 0.09);
  font-size: 14px;
  font-weight: 800;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #314349;
  font-size: 14px;
  font-weight: 800;
}

.trust-row span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.category-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 24px;
  overflow-x: auto;
}

.category-strip a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 40px rgba(16, 47, 55, 0.1);
  font-weight: 800;
  white-space: nowrap;
}

.category-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #dcf1ee;
  font-size: 14px;
  font-weight: 800;
}

.content-band,
.split-section,
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px 0;
}

.page-shell {
  padding-top: 34px;
  padding-bottom: 86px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.product-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.post-card {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 34px rgba(16, 47, 55, 0.08);
}

.product-card.best {
  border-color: rgba(8, 125, 130, 0.4);
}

.badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #dff5f1;
  font-size: 12px;
  font-weight: 800;
}

.badge.muted {
  color: #6b4e00;
  background: #fff2c9;
}

.tool-visual {
  height: 150px;
  margin: 28px 0 22px;
  border-radius: 8px;
  background:
    linear-gradient(110deg, transparent 0 39%, rgba(255,255,255,.55) 40% 49%, transparent 50%),
    linear-gradient(150deg, currentColor 0 44%, transparent 45%),
    radial-gradient(circle at 72% 76%, #20282b 0 10%, transparent 11%),
    #edf4f2;
  color: var(--teal);
}

.tool-visual.yellow {
  color: var(--yellow);
}

.tool-visual.magenta {
  color: var(--magenta);
}

.product-card h3,
.post-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.product-card p,
.post-card p,
.split-section p,
.entry-content p {
  color: var(--muted);
  line-height: 1.65;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
}

dl div {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.compare-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  text-align: center;
  line-height: 1.2;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  padding-bottom: 86px;
}

.guide-list {
  display: grid;
  gap: 14px;
}

.guide-list article,
.entry-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.guide-list span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.archive-hero {
  padding: 58px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.86) 54%, rgba(255,255,255,.42) 100%),
    url("assets/accuboorkopen-hero.png") center right / cover;
}

.archive-hero .lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.blog-tools {
  display: grid;
  gap: 18px;
  margin: 26px 0 28px;
}

.blog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(720px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.blog-search input {
  min-width: 0;
  height: 50px;
  border: 0;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

.blog-search button,
.blog-category-filter button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.blog-search button {
  min-height: 50px;
  padding: 0 22px;
  color: white;
  background: var(--teal);
}

.blog-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-category-filter button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--teal-dark);
  background: white;
  box-shadow: 0 8px 28px rgba(16, 47, 55, 0.08);
}

.blog-category-filter button.is-active {
  color: white;
  background: var(--teal);
}

.blog-overview-card {
  display: grid;
  padding: 0;
  overflow: hidden;
}

.blog-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--teal) 0 44%, transparent 45%),
    radial-gradient(circle at 72% 76%, #20282b 0 10%, transparent 11%),
    #fff;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  background: #fff;
}

.blog-card-media span {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.blog-card-body .compare-link {
  margin-top: auto;
}

.blog-overview-card[hidden] {
  display: none;
}

.blog-empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-header {
  padding: 34px 0 24px;
}

.article-header h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
}

.article-image {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.article-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
  padding: 22px;
  background: #fff;
}

.entry-content {
  margin-top: 28px;
  padding: 34px;
  border-radius: 8px;
  background: white;
}

.entry-content h2 {
  margin: 44px 0 18px;
  font-size: 28px;
  line-height: 1.18;
}

.entry-content h3 {
  margin: 34px 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.entry-content h2 + p,
.entry-content h3 + p {
  margin-top: 0;
}

.entry-content p {
  margin-bottom: 22px;
}

.article-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 34px rgba(16, 47, 55, 0.08);
}

.article-sidebar .acbk-related-product {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.article-sidebar .acbk-related-product > h2,
.sidebar-card > h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.article-sidebar .acbk-product-card {
  box-shadow: none;
}

.article-sidebar .acbk-product-card h3 {
  font-size: 18px;
  line-height: 1.22;
}

.article-sidebar .acbk-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.article-sidebar .acbk-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  background: #fff;
}

.article-sidebar .acbk-tool-visual {
  min-height: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.site-footer {
  padding: 56px 24px 28px;
  color: var(--ink);
  background: white;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 420px;
  margin-bottom: 34px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.65;
}

.footer-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.footer-menu-column h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.16;
}

.footer-menu-column ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu-column a {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.footer-menu-column a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom a:hover {
  color: var(--teal);
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    left: 0;
  }

  .hero-media img {
    opacity: 0.38;
    object-position: 65% center;
  }

  .search-panel {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .search-panel button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .product-grid,
  .post-grid,
  .split-section,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-menu-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 18px 16px;
  }

  .brand {
    font-size: 17px;
  }

  .hero-content {
    padding: 122px 16px 74px;
  }

  .category-strip,
  .content-band,
  .split-section,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .archive-hero,
  .entry-content {
    padding: 22px;
  }

  .blog-search {
    grid-template-columns: 1fr;
  }

  .blog-search button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
  }

  .blog-category-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .blog-category-filter button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .compare-link,
  .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 14px;
    text-align: center;
    line-height: 1.2;
  }

  .guide-list article {
    grid-template-columns: 1fr;
  }
}
