/*
Theme Name: Loopmaat
Description: Hardloopblog voor loopmaat.nl — strak wit/blauw Apple-level design
Author: loopmaat.nl
Version: 3.0.0
Text Domain: loopmaat
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --blue:        #0071E3;
  --blue-dark:   #0058B0;
  --blue-light:  #E8F1FD;
  --blue-mid:    #4D9EF5;

  --ink:         #1D1D1F;
  --ink-2:       #3D3D3F;
  --ink-3:       #6E6E73;
  --ink-4:       #AEAEB2;

  --bg:          #F5F5F7;
  --surface:     #FFFFFF;
  --surface-2:   #F5F5F7;
  --border:      rgba(0,0,0,0.08);
  --border-mid:  rgba(0,0,0,0.12);

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);

  --w: 1120px;
  --pad: clamp(16px, 4vw, 40px);
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; }

/* ─────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────── */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─────────────────────────────────────────
   TYPOGRAFIE
───────────────────────────────────────── */
.t-overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.t-hero {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.t-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.t-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-3);
}

.t-body { font-size: 1rem; line-height: 1.75; color: var(--ink-2); }
.t-small { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }
.t-micro { font-size: 0.75rem; color: var(--ink-4); }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,113,227,0.3);
}

.btn-ghost {
  background: rgba(0,113,227,0.08);
  color: var(--blue);
}
.btn-ghost:hover {
  background: rgba(0,113,227,0.14);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }

/* ─────────────────────────────────────────
   BADGES
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue  { background: var(--blue-light); color: var(--blue); }
.badge-dark  { background: var(--ink); color: #fff; }
.badge-green { background: #E6F4EA; color: #1A7A3C; }
.badge-orange{ background: #FEF3E2; color: #C05600; }

/* ─────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.site-logo em { color: var(--blue); font-style: normal; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { display: flex; }
.primary-nav a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: all 0.15s;
}
.primary-nav a:hover { color: var(--ink); background: var(--surface-2); }
.primary-nav a.current { color: var(--blue); }

.nav-cta { background: var(--blue) !important; color: #fff !important; padding: 8px 18px !important; }
.nav-cta:hover { background: var(--blue-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  z-index: 190;
  padding: 24px var(--pad);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--surface-2); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: var(--surface);
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* beide class-namen werken */
.hero-text,
.hero-left {
  padding-bottom: 64px;
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-text h1,
.hero-left h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-text h1 em,
.hero-left h1 em { color: var(--blue); font-style: normal; }

.hero-text p,
.hero-left p,
.hero-text .t-subtitle,
.hero-left .t-subtitle {
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-btns    { display: flex; gap: 12px; align-items: center; }

.hero-stats {
  display: inline-flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: fit-content;
  box-shadow: var(--shadow-sm);
  flex-wrap: nowrap;
}
.hero-stat {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.625rem;
  color: var(--ink-4);
  white-space: nowrap;
}

.hero-image {
  position: relative;
  align-self: flex-end;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  height: clamp(320px, 45vw, 520px);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-image-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
}
.hero-image-card-title { font-size: 0.75rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.hero-image-card-sub   { font-size: 0.6875rem; color: var(--ink-3); }

/* ─────────────────────────────────────────
   TICKER / ANNOUNCEMENT BAR
───────────────────────────────────────── */
.ticker {
  background: var(--ink);
  padding: 11px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ticker-item strong { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ─────────────────────────────────────────
   SECTION WRAPPER
───────────────────────────────────────── */
.section {
  padding: clamp(48px, 7vw, 80px) var(--pad);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(24px, 4vw, 40px);
  gap: 16px;
}
.section-header h2 { margin: 0; }
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   FEATURED / UITGELICHT
───────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.featured-main {
  background: var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.featured-main-img {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.featured-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.featured-main:hover .featured-main-img img { transform: scale(1.04); }
.featured-main-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}
.featured-main-body { padding: 28px; flex-shrink: 0; }
.featured-main-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.featured-main-body p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 16px; }
.featured-read { font-size: 0.8125rem; font-weight: 600; color: #93B4FF; display: inline-flex; align-items: center; gap: 4px; }

.featured-side { display: flex; flex-direction: column; gap: 12px; }
.featured-side-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex: 1;
  min-height: 0;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.featured-side-card:hover {
  border-color: rgba(0,113,227,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-side-card-img { width: 100px; flex-shrink: 0; overflow: hidden; }
.featured-side-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-side-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.featured-side-card-body h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 6px 0 4px;
}
.featured-side-card-body p { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }

/* ─────────────────────────────────────────
   ARTICLE CARDS
───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.article-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.4;
  margin: 8px 0 8px;
}
.article-card-body p { font-size: 0.875rem; color: var(--ink-3); line-height: 1.55; flex: 1; }
.article-card-meta { margin-top: 16px; font-size: 0.75rem; color: var(--ink-4); display: flex; gap: 8px; align-items: center; }
.article-card-meta span { width: 2px; height: 2px; background: var(--ink-4); border-radius: 50%; }

/* ─────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.product-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-img {
  aspect-ratio: 1;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.product-card-img img { max-height: 140px; width: auto; object-fit: contain; transition: transform 0.3s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.product-brand { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.product-name { font-size: 0.9375rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.3; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.0625rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.product-buy {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: all 0.15s;
}
.product-buy:hover { background: var(--blue); color: #fff; }

/* ─────────────────────────────────────────
   ROUTE CARDS
───────────────────────────────────────── */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.route-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.route-card-top { display: flex; align-items: center; justify-content: space-between; }
.route-km {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
}
.route-km span { font-size: 0.75rem; font-weight: 500; color: var(--ink-4); margin-left: 2px; }
.route-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; }
.route-card p  { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.5; flex: 1; }
.route-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.route-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-3);
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   EVENTS LIST
───────────────────────────────────────── */
.events-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}

.event-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.event-row:last-child { border-bottom: none; }
.event-row:hover { background: var(--surface-2); }

.event-date { text-align: center; }
.event-day { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -0.04em; }
.event-month { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); margin-top: 1px; }

.event-info h4 { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.01em; }
.event-info p  { font-size: 0.8125rem; color: var(--ink-3); }

/* ─────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────── */
.newsletter-section {
  padding: clamp(32px, 5vw, 64px) var(--pad);
}

.newsletter-card {
  max-width: var(--w);
  margin: 0 auto;
  background: linear-gradient(135deg, #0058B0 0%, #0071E3 50%, #4D9EF5 100%);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.newsletter-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: 120px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.newsletter-text { position: relative; z-index: 1; }
.newsletter-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.03em; }
.newsletter-text p  { font-size: 0.9375rem; color: rgba(255,255,255,0.6); }
.newsletter-form { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; }
.newsletter-form input {
  padding: 13px 20px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 0.9375rem;
  font-family: var(--font);
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 13px 24px;
  background: #fff;
  color: var(--blue);
  border: none;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--blue-light); transform: translateY(-1px); }

/* ─────────────────────────────────────────
   PAGE HERO (binnenste pagina's)
───────────────────────────────────────── */
.page-hero {
  background: var(--surface);
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.page-hero .wrap { max-width: var(--w); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p   { max-width: 600px; }

/* ─────────────────────────────────────────
   SINGLE ARTIKEL
───────────────────────────────────────── */
.article-hero {
  background: var(--surface);
  padding-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.article-hero-text {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad) 32px;
}
.article-hero-text h1 { margin: 12px 0 16px; }
.article-hero-img {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  height: clamp(240px, 40vw, 480px);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--pad);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 2.5rem 0 1rem; letter-spacing: -0.025em; }
.article-body h3 { font-size: 1.1875rem; font-weight: 700; color: var(--ink); margin: 2rem 0 0.75rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a  { color: var(--blue); }
.article-body a:hover { text-decoration: underline; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body img    { border-radius: var(--r-lg); margin: 2rem auto; }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--blue-light);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--ink-2);
}

/* Affiliate block */
.affiliate-block {
  background: var(--blue-light);
  border: 1px solid rgba(0,113,227,0.15);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.affiliate-block-text { flex: 1; min-width: 200px; }
.affiliate-block-text strong { font-size: 1rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; }
.affiliate-block-text span   { font-size: 0.875rem; color: var(--ink-3); }
.affiliate-block-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; flex-shrink: 0; }
.affiliate-block a.btn { flex-shrink: 0; }
.affiliate-disclaimer { font-size: 0.6875rem; color: var(--ink-4); margin-top: 8px; width: 100%; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: clamp(40px, 6vw, 64px) var(--pad) 24px;
}

.footer-top {
  max-width: var(--w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand .site-logo { color: #fff; font-size: 1.25rem; margin-bottom: 12px; display: inline-block; }
.footer-brand .site-logo em { color: var(--blue-mid); }
.footer-brand p { font-size: 0.875rem; max-width: 240px; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a  { font-size: 0.875rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
}
.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────
   ARCHIVE / CATEGORY PAGE
───────────────────────────────────────── */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─────────────────────────────────────────
   STATIC PAGES (blog, training etc.)
───────────────────────────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--pad);
}
.page-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 2rem 0 1rem; letter-spacing: -0.025em; }
.page-content p  { font-size: 1rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 1.25rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content li { font-size: 1rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 0.5rem; }

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET (max 1024px)
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { min-height: 360px; }
  .featured-side { flex-direction: row; }
  .featured-side-card { flex: 1; }
  .featured-side-card-img { width: 80px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (max 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding-top: 40px; padding-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { padding-bottom: 0; }
  .hero-text .t-subtitle { font-size: 1rem; }
  .hero-stats { width: 100%; }
  .hero-stat { flex: 1; padding: 10px 12px; }
  .hero-image { height: 260px; border-radius: var(--r-xl) var(--r-xl) 0 0; }

  /* Featured */
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: column; }
  .featured-side-card { min-height: 80px; }

  /* Grids */
  .card-grid       { grid-template-columns: 1fr; }
  .product-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .route-grid      { grid-template-columns: 1fr; }
  .archive-grid    { grid-template-columns: 1fr; }

  /* Events */
  .event-row { grid-template-columns: 50px 1fr auto; gap: 12px; padding: 14px 16px; }

  /* Newsletter */
  .newsletter-card { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input { min-width: unset; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Sections */
  .section { padding: 40px var(--pad); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; }
  .hero-btns    { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { text-align: center; justify-content: center; }
}

/* ─────────────────────────────────────────
   V3 CORRECTIES — class aliassen & fixes
───────────────────────────────────────── */

/* hero-left = alias voor hero-text */
.hero-left { padding-bottom: 64px; min-width: 0; }
.hero-left h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.038em;
  color: #1D1D1F;
  margin-bottom: 18px;
}
.hero-left h1 em { color: #0071E3; font-style: normal; }
.hero-left p {
  font-size: 1rem;
  color: #6E6E73;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 32px;
}

/* hero-image alias */
.hero-image {
  position: relative;
  align-self: flex-end;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  height: clamp(300px, 38vw, 460px);
  min-width: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* nav ul van wp_nav_menu */
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav ul li { display: flex; }
.primary-nav ul li a { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: #6E6E73; white-space: nowrap; }
.primary-nav ul li a:hover { color: #1D1D1F; background: #F5F5F7; }
.primary-nav ul li:last-child a,
.primary-nav .nav-cta,
.primary-nav ul li a.nav-cta { background: #0071E3 !important; color: #fff !important; border-radius: 999px !important; padding: 8px 18px !important; }

/* stats balk — nooit uitrekken */
.hero-stats {
  display: inline-flex !important;
  width: fit-content !important;
  flex-wrap: nowrap !important;
}
.hero-stat {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* mobiel hero-left fix */
@media (max-width: 768px) {
  .hero-left { padding-bottom: 0 !important; }
  .hero-left h1 { font-size: 2rem !important; }
  .hero-image { height: 240px !important; border-radius: 18px 18px 0 0 !important; }
  .hero-inner { grid-template-columns: 1fr !important; gap: 28px !important; }
  .hero-stats { width: 100% !important; }
  .hero-stat  { flex: 1 !important; padding: 9px 10px !important; }
}
