/*
Theme Name: WPnivio
Theme URI: https://wpnivio.com
Author: WPnivio
Author URI: https://wpnivio.com
Description: The official WPNivio marketing website. Geoptimaliseerd voor plugin-verkoop, SEO en AI-zoekmachines. Inclusief klantportaal, licentie-overzicht en Stripe-checkout integratie.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://wpnivio.com/licentie
Text Domain: wpnivio
Tags: business, e-commerce, custom-colors, custom-logo, featured-images, full-width-template, rtl-language-support, sticky-post, theme-options
*/

/* ========================================================
   WPnivio Theme – Main CSS
   Design: Clean, bold, toekomstbestendig
   Fonts: Syne (headings) + DM Sans (body)
======================================================== */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0D0D0D;
  --ink2: #3A3A3A;
  --ink3: #767676;
  --bg: #F8F6F2;
  --white: #FFFFFF;
  --accent: #1A5CFF;
  --accent-dark: #0044DD;
  --accent2: #FF3D1F;
  --card: #FFFFFF;
  --border: rgba(0,0,0,0.09);
  --success: #0F6E56;
  --warning: #854F0B;
  --danger: #A32D2D;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* --- Typography --- */
.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--ink2);
  max-width: 540px;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,92,255,0.3);
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #222; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-featured { border-color: var(--accent); border-width: 2px; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-green { background: #EAF3DE; color: #27500A; }
.badge-blue { background: #E6F1FB; color: #0C447C; }
.badge-amber { background: #FAEEDA; color: #633806; }
.badge-red { background: #FCEBEB; color: #791F1F; }
.badge-dark { background: var(--ink); color: var(--white); }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink2); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,92,255,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* --- Navigation --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--ink); }
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text-accent { color: var(--accent); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  font-size: 14px;
  color: var(--ink2);
  font-weight: 400;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu .current-menu-item a { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-login {
  font-size: 14px;
  color: var(--ink2);
  font-weight: 400;
}
.nav-login:hover { color: var(--accent); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,92,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 2rem;
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  max-width: 740px;
  line-height: 1.0;
}
.hero-accent { color: var(--accent); }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink2);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  width: fit-content;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  display: block;
}
.hero-stat-label { font-size: 13px; color: var(--ink3); }

/* --- Plugin Cards --- */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.plugin-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.5rem;
}
.plugin-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.plugin-card p { font-size: 14px; color: var(--ink2); margin-bottom: 1.5rem; line-height: 1.7; }
.plugin-features-list { margin-bottom: 1.5rem; }
.plugin-features-list li {
  font-size: 13px;
  color: var(--ink2);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.plugin-features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.plugin-price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.25rem;
}
.plugin-price-period { font-size: 13px; color: var(--ink3); margin-bottom: 1.5rem; }
.plugin-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.tier-item { text-align: center; background: var(--bg); border-radius: 6px; padding: 8px 4px; }
.tier-item strong { display: block; font-size: 12px; color: var(--ink); font-weight: 500; }
.tier-item span { font-size: 11px; color: var(--ink3); }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.price-card { position: relative; }
.price-card.popular-plan { border-color: var(--accent); border-width: 2px; }
.popular-label {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-tier-name { font-size: 13px; color: var(--ink3); font-weight: 500; margin-bottom: 0.5rem; }
.price-amount { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; letter-spacing: -2px; }
.price-period { font-size: 13px; color: var(--ink3); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.price-features-list { margin-bottom: 1.5rem; }
.price-features-list li {
  font-size: 13px;
  color: var(--ink2);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.price-features-list li:last-child { border-bottom: none; }
.price-features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Portal / Dashboard --- */
.portal-wrap { max-width: 100%; }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.stat-label { font-size: 12px; color: var(--ink3); margin-bottom: 6px; }
.stat-value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
}
.stat-delta { font-size: 12px; color: var(--success); margin-top: 4px; }

/* --- Steps / How it works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { font-size: 14px; color: var(--ink2); line-height: 1.6; }

/* --- CTA Band --- */
.cta-band {
  background: var(--ink);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  margin: 0 0 4rem;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-band p { color: #888; max-width: 480px; margin: 0 auto 2rem; font-size: 1rem; }

/* --- Footer --- */
#site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-desc { font-size: 14px; color: #777; margin-top: 1rem; max-width: 280px; line-height: 1.7; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  color: #999;
  font-size: 14px;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #444;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Notices / Alerts --- */
.notice {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid;
  margin-bottom: 1rem;
}
.notice-success { background: #EAF3DE; color: #27500A; border-color: var(--success); }
.notice-warning { background: #FAEEDA; color: #633806; border-color: #EF9F27; }
.notice-error { background: #FCEBEB; color: #791F1F; border-color: #E24B4A; }
.notice-info { background: #E6F1FB; color: #0C447C; border-color: var(--accent); }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--ink3);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.75;
  padding-bottom: 1.25rem;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* --- Tables --- */
.wp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wp-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.wp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}
.wp-table tr:last-child td { border-bottom: none; }
.wp-table tr:hover td { background: rgba(0,0,0,0.02); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
  }
  .nav-menu.open a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.8rem; letter-spacing: -1.5px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 3rem 1.5rem; border-radius: 12px; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .plugins-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
