/*
Theme Name: WPnivio
Theme URI: https://wpnivio.com
Author: WPnivio
Author URI: https://wpnivio.com
Description: Professioneel thema voor WPnivio.com. Plugin-verkoop, klantportaal, Stripe-checkout. Vereist WPnivio Core en WPnivio License Manager plugins.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: wpnivio
*/

/* =====================================================
   RESET & VARIABELEN
===================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:       #0D0D0D;
  --ink2:      #3A3A3A;
  --ink3:      #767676;
  --bg:        #F8F6F2;
  --white:     #FFFFFF;
  --accent:    #1A5CFF;
  --accent-dk: #0044DD;
  --border:    rgba(0,0,0,0.09);
  --success:   #0F6E56;
  --radius:    12px;
  --radius-lg: 16px;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   LAYOUT
===================================================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* =====================================================
   TYPOGRAFIE
===================================================== */
.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.05rem;
  color: var(--ink2);
  max-width: 540px;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* =====================================================
   KNOPPEN
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn-dark    { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; color: #fff; }
.btn-ghost   { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.w-full { width: 100%; justify-content: center; }

/* =====================================================
   CARDS
===================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.10); 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;
}
.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: #fff; }

/* =====================================================
   NAVIGATIE
===================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,246,242,.94);
  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: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-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; text-decoration: none; }
.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); }
.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; }

/* =====================================================
   HERO
===================================================== */
.hero-section { padding: 100px 0 80px; }
.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(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  max-width: 720px;
  line-height: 1.0;
}
.hero-accent { color: var(--accent); }
.hero .lead {
  font-size: 1.15rem;
  color: var(--ink2);
  max-width: 500px;
  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: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num { display: block; font-family: 'Syne',sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.hero-stat-lbl { font-size: 13px; color: var(--ink3); }

/* =====================================================
   STAPPEN / HOE WERKT HET
===================================================== */
.steps-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.5rem; }
.step-num {
  width: 36px; height: 36px;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  margin-bottom: 1.25rem;
}
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.step-card p  { font-size: 14px; color: var(--ink2); line-height: 1.6; }

/* =====================================================
   PLUGIN CARDS
===================================================== */
.plugins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.5rem; }
.plugin-icon  { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 1.25rem; }
.plugin-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.plugin-card > p { font-size: 14px; color: var(--ink2); margin-bottom: 1.5rem; line-height: 1.7; }
.features-list { margin-bottom: 1.5rem; }
.features-list li { font-size: 13px; color: var(--ink2); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; }
.features-list li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.plugin-price     { font-family: 'Syne',sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.plugin-price-sub { 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; margin-bottom: 1.5rem; }
.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(260px,1fr)); gap: 1.5rem; }
.price-card { position: relative; }
.price-card.popular { border-color: var(--accent); border-width: 2px; }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.price-name   { font-size: 13px; color: var(--ink3); font-weight: 500; margin-bottom: .5rem; }
.price-amount { font-family: 'Syne',sans-serif; font-size: 2.6rem; font-weight: 800; letter-spacing: -2px; }
.price-desc   { font-size: 13px; color: var(--ink3); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.price-list   { margin-bottom: 1.5rem; }
.price-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,.04); }
.price-list li:last-child { border: none; }
.price-list li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 2px; }

/* =====================================================
   PORTAAL / DASHBOARD
===================================================== */
.portal-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: 'Syne',sans-serif; font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; }
.stat-delta { font-size: 12px; color: var(--success); margin-top: 4px; }

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

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

/* =====================================================
   TABELLEN
===================================================== */
.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,.04); vertical-align: middle; }
.wp-table tr:last-child td { border-bottom: none; }

/* =====================================================
   FOOTER
===================================================== */
#site-footer { background: var(--ink); color: #fff; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-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: .6rem; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #444; flex-wrap: wrap; gap: 1rem; }

/* =====================================================
   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; overflow-y: auto;
  }
  .nav-menu.open a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.6rem; letter-spacing: -1.5px; }
  .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 { flex-direction: column; gap: 1.5rem; }
  .plugins-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
