/* ========================
   Basis & Variabelen
======================== */
:root {
  --primary-blue: #1e4ca1; /* Behielden de herkenbare blauwe kleur */
  --primary-pink: #d94492; /* Sterk accent voor CTA's */
  --text-dark: #1a2233;
  --text-gray: #586174; /* Iets donkerder dan de oude #42526e */
  --bg: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --border-color: #e6e9ef; /* Consistente border kleur */
  --shadow-sm: 0 4px 12px rgba(30, 76, 161, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 76, 161, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'tnum', 'ss01';
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover {
  color: var(--primary-pink);
}

/* Helper classes */
.small { font-size: .9rem; }
.muted { color: var(--text-gray); }

/* ========================
   Header & Navigatie
======================== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px; /* Subtielere marge dan 24px */
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px */
  min-height: 78px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  width: 155px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: .85rem; /* 14px */
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: .35rem .75rem; /* 6px 12px */
  border-radius: var(--radius-md);
  transition: background .15s, color .15s;
  font-size: 1rem;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* Navigatie CTA (Roze knop) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 .95rem; /* 15px */
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #e4559f 0%, #d94492 100%);
  color: #fff !important; /* Override hover state */
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(217, 68, 146, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(217, 68, 146, .45);
  filter: saturate(1.05);
  background: linear-gradient(180deg, #e4559f 0%, #d94492 100%); /* Behoud gradient */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.navbar.open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar.open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================
   Hero Sectie
======================== */
.hero {
  text-align: center;
  padding: 4rem 1.5rem; /* 64px 24px */
  margin: 1.5rem auto 2.5rem auto;
  max-width: 950px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
}

.hero .highlight {
  color: var(--primary-blue);
}

.hero p {
  color: var(--text-gray);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-primary {
  margin-top: .5rem;
}
.hero .after-cta {
  margin-top: .9rem;
  display: block;
}

/* ========================
   Primaire Knop (Blauw)
======================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem; /* 14px 24px */
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 76, 161, .25);
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 76, 161, .32);
}

/* Accent kleur voor bijv. de laatste CTA */
.cta-primary.cta-primary--accent {
  background: var(--primary-pink);
  box-shadow: 0 8px 20px rgba(217, 68, 146, .25);
}
.cta-primary.cta-primary--accent:hover {
  box-shadow: 0 12px 26px rgba(217, 68, 146, .32);
}

/* ========================
   Sectie Styling
======================== */
main > section {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
@media (max-width: 600px) {
  main > section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Glassmorphism Effect */
.glass-blur {
  background: var(--glass-bg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px) saturate(120%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2.5rem;
}
@media (max-width: 600px) {
  .glass-blur { padding: 1.5rem; }
}

/* ========================
   USP Balk
======================== */
.usp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.usp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dark);
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.usp .icon {
  font-size: 1.1rem;
}

/* ========================
   Features (Waarom ProRelate)
======================== */
.features-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature {
  text-align: left;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-icon {
  margin-bottom: 1rem;
  color: var(--primary-blue);
}
.feature-icon svg {
  stroke: var(--primary-blue);
}
/* Roze accent voor de 2e feature */
.features-grid .feature:nth-child(2) .feature-icon {
  color: var(--primary-pink);
}
.features-grid .feature:nth-child(2) .feature-icon svg {
  stroke: var(--primary-pink);
}

.feature h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* ========================
   Lightspeed Blok
======================== */
.lightspeed-section {
  padding: 2rem 1.5rem; /* Aangepaste padding voor dit blok */
}
.lightspeed-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lightspeed-logo {
  width: 160px;
  height: auto;
  flex-shrink: 0;
}
.lightspeed-text {
  max-width: 600px;
}
.lightspeed-text h2 {
  text-align: left;
  margin-bottom: .5rem;
}
@media (max-width: 700px) {
  .lightspeed-inner { flex-direction: column; text-align: center; }
  .lightspeed-text h2 { text-align: center; }
  .lightspeed-logo { width: 120px; }
}

/* ========================
   Hoe het werkt
======================== */
.howitworks-section {
  padding: 2.5rem 1.5rem;
  max-width: 900px;
}
.howitworks-section h2 {
  margin-bottom: 2.5rem;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.step-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 76, 161, .2);
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.step-content p {
  font-size: 1rem;
  color: var(--text-gray);
}

/* ========================
   Producten Overzicht
======================== */
.products-section {
  padding-top: 2rem;
  background: none;
}
.products-section h2 {
  margin-bottom: 2rem;
}
.products-grid.centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  width: 100%;
  max-width: 350px;
}
.product-card-inner {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card h3 {
  margin: 0 0 .45rem;
}
.product-desc {
  color: var(--text-gray);
  margin: 0 0 1rem;
  flex-grow: 1; /* Zorgt dat de knop onderaan blijft */
}
.from-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: .2rem 0 1rem;
}
.from-price .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
}
.from-price .per {
  color: var(--text-gray);
  font-weight: 500;
}
.mini-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.mini-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin: .4rem 0;
  color: var(--text-dark);
}
.mini-bullets li:before {
  content: "✓"; /* Strakker vinkje */
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 700;
  color: var(--primary-blue);
}
.btn-outline {
  align-self: flex-start; /* Zorgt dat de knop niet strekt */
  padding: .65rem 1.1rem;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.btn-outline:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* ========================
   Prijzen + Calculators
======================== */
.pricing-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.pricing-section h2 {
  margin-bottom: 0.5rem;
}
.pricing-sub {
  text-align: center;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.tab {
  padding: .5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.tab:hover {
  border-color: var(--primary-blue);
}
.tab.active {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.price-calc {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.price-calc h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.price-calc p.small {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}
.price-calc label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}
.price-calc input[type="range"] {
  width: 250px;
  max-width: 50vw;
  margin: 0 0.4rem 0 0;
  accent-color: var(--primary-blue);
}
.product-input {
  width: 90px;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  text-align: right;
  font-weight: 500;
}
.product-input:focus {
  outline: 2px solid var(--primary-blue);
  border-color: var(--primary-blue);
}
.calc-result {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 1rem;
}
.calc-result .muted {
  font-weight: 500;
  font-size: 1rem;
}
.calc-note {
  color: var(--text-gray);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}
@media (min-width: 700px) {
  .price-calc input[type="range"] {
    width: 350px;
  }
}

/* ========================
   CTA Block (Laatste call to action)
======================== */
.cta-block {
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.cta-block p {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .cta-sub {
  margin-top: 1.3rem;
}
.cta-block .cta-sub a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.cta-block .cta-sub a:hover {
  text-decoration: underline;
}

/* ========================
   Contact Sectie
======================== */
.contact-section {
  padding-bottom: 3rem;
}
.contact-card {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
}
.contact-card address {
  font-style: normal;
  line-height: 1.7;
  margin: 1rem 0 1.5rem 0;
}
.contact-form {
  margin-top: 2rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}
.contact-grid .full {
  grid-column: 1 / -1;
}
.contact-card label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.contact-card input {
  width: 100%;
  padding: .75rem .85rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.contact-card input:focus {
  outline: 2px solid var(--primary-blue);
  border-color: var(--primary-blue);
}
.contact-card input.input-error {
  border-color: #b00020;
}
.contact-card button {
  margin-top: .25rem;
}
.contact-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: .5rem;
}
.contact-success {
  color: #0a7c2f;
  font-weight: 600;
}
.contact-error {
  color: #b00020;
  font-weight: 600;
}

/* ========================
   Footer
======================== */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem 1.5rem;
  font-size: .95rem;
  color: var(--text-gray);
  background: transparent;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
}
footer nav {
  display: flex;
  gap: 1.5rem;
}
footer nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}
footer nav a:hover {
  color: var(--primary-blue);
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ========================
   Fade-in Animatie
======================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.5, 0, .14, 1), transform 0.6s cubic-bezier(.5, 0, .14, 1);
}
.fade-in.appear {
  opacity: 1;
  transform: none;
}

/* ========================
   Responsive Design
======================== */
@media (max-width: 900px) {
  .hamburger {
    display: block;
    z-index: 1100; /* Boven de nav-links */
  }
  .nav-links {
    position: absolute;
    top: 60px; /* Onder de header */
    right: 1.5rem;
    left: 1.5rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    gap: .5rem;
  }
  .navbar.open .nav-links {
    display: flex;
  }
  .nav-links a, .nav-links .nav-cta {
    width: 100%;
    padding: .75rem 1rem;
  }
  .nav-cta {
    margin-top: .5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .products-grid.centered {
    grid-template-columns: 1fr;
  }
  .price-calc {
    padding: 1.5rem .5rem;
  }
  .slider-row {
    justify-content: space-between;
  }
  .price-calc input[type="range"] {
    width: 100%;
    max-width: none;
    margin-top: .5rem;
    grid-column: 1 / -1;
    order: 3;
  }
  .price-calc label { order: 1; }
  .product-input { order: 2; }
}