/* Portaal knop stijl exact als bijlage (Website knop portaal) */
#website-btn {
  background: #fff;
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
  border-radius: 10px;
  font-weight: 600;              /* match other nav links */
  font-size: 14px;               /* match other nav links */
  padding: 10px 14px;            /* match other nav links */
  min-height: 44px;              /* match button height */
  box-shadow: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;          /* align like others */
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
#website-btn:hover, #website-btn:focus {
  background: #fbeaec;
  color: #b71c1c;
  border-color: #b71c1c;
  text-decoration: none;
}
/* Restored modern styles for PestAlert site */
:root {
	--red-600: #d32f2f; /* primary brand red */
	--red-700: #b71c1c;
	--red-500: #e53935;
	--red-400: #ef5350;
	/* Dark theme base */
	--bg: #f8f8f9;
	--panel: #fff;
	--panel-2: #f3f4f8;
	--text: #18191c;
	--muted: #6b6f7a;
	--border: #e2e4ea;
	--brand: var(--red-600);
	--shadow: 0 4px 24px rgba(211, 47, 47, 0.07);
	--shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.07);
	/* Overlay control */
	--glow-opacity: 0; /* geen overlay */
	/* Component sizing */
	/* Maximum width of the About image; keeps it binnen de rechter kolom */
	--about-media-max: 620px;
}

* { box-sizing: border-box; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }
/* Smooth scrolling voor ankers */
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}
body::before { display: none !important; }

.container { width: min(1120px, 92%); margin: 0 auto; }

.skip-link {
	position: absolute; top: -40px; left: 8px; background: var(--brand); color: white; padding: 8px 12px; border-radius: 6px; transition: top .2s ease; z-index: 1000;
}
.skip-link:focus { top: 8px; }

#home,
#over-ons,
#producten,
#inloggen {
  /* Zorgt dat anchors netjes onder de sticky header uitkomen, zonder te ver naar beneden te scrollen */
  scroll-margin-top: 64px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 4000; /* boven mobiele nav zodat hamburger altijd klikbaar blijft */
  background: #fff; border-bottom: 1px solid #e2e4ea;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.header-inner {
  width: min(1120px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
}
.brand { font-weight: 800; font-size: 1.8rem; color: #18191c; text-decoration: none; }
.brand span { color: #d32f2f; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav-list { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #e2e4ea;
  border-radius: 10px;
  color: #18191c;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;               /* match portal nav font-size */
  min-height: 44px;               /* zelfde buttonhoogte als portaal */
  display: inline-flex;           /* centreren zoals portaal knoppen */
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.nav-list a:hover {
  background: #fbeaec;
  border-color: rgba(211,47,47,0.25);
  color: #d32f2f;
  box-shadow: 0 2px 10px rgba(211,47,47,0.10);
}
/* Disabled portal link (niet ingelogd) */
.nav-list a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: #18191c; margin: 6px 0; border-radius: 2px; }

/* Mobiel: uitklapmenu – stijl menu-items zoals in het portaal */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e4ea;
    padding: 16px 6%; /* extra ademruimte zoals portaal */
    display: none;
    flex-direction: column;
    gap: 16px; /* grotere tussenruimte tussen knoppen */
    z-index: 3000; /* boven content zodat menu zichtbaar blijft */
    max-width: 100vw;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 16px; }
  /* Knoppen full-width en gecentreerd zoals portaal */
  .nav-list a {
    width: 100%;
    text-align: center;
    margin: 0;
    min-height: 56px; /* zelfde hoogte als portaal */
    padding: 14px 18px; /* iets compacter zoals portaal */
    font-size: 1.125rem; /* ~18px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: none; /* portal knoppen hebben nauwelijks schaduw */
    background: #fff;
    border-color: #e6e9ef;
    color: #18191c;
    font-weight: 700;
  }
  .nav-list a:hover {
    background: #fbeaec;
    border-color: rgba(211,47,47,0.25);
    color: #d32f2f;
    box-shadow: 0 2px 10px rgba(211,47,47,0.10);
  }
  /* Portaal knop (link naar dashboard) als rode outline, breed zoals portal */
  .nav-list #website-btn {
    background: #fff !important;
    color: #d32f2f !important;
    border: 2px solid #d32f2f !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  /* Uitloggen: volle rode knop zoals in het portaal-menu */
  .nav-list .logout-link {
    background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(211,47,47,0.18) !important;
    font-weight: 800 !important;
  }
}


/* Sections */
.section { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 2rem; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; color: var(--brand); text-shadow: none; }
.section-head p { color: var(--muted); margin: 0; }
.section-head h2::after { content: ""; display: block; margin: 10px auto 0; width: 84px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(211,47,47,0.18), transparent); }

.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px 32px; align-items: start; }
.about-head { grid-column: 2; }
.about-features { grid-column: 2; }
.section-head--split { text-align: left; margin-bottom: 8px; }
.section-head--split h2 { margin: 6px 0 12px; }
.section-head--split h2::after { margin-left: 0; }
.about-subhead { grid-column: 2; align-self: end; margin: 4px 0 -2px; }
.about-subhead h3 { margin: 0; font-size: 1.15rem; letter-spacing: .01em; color: var(--brand); font-weight: 800; }
.about-subhead h3::after { content: ""; display: block; width: 84px; height: 3px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(211,47,47,0.18), transparent); }

.about-media { position: relative; width: 100%; max-width: var(--about-media-max); justify-self: start; z-index: 0; grid-column: 1; }
.about-media img { width: 100%; aspect-ratio: 4 / 3;      /* zelfde als .product-thumb */
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(211,47,47,0.08);
  background: #fff;
  display: block; }
.about-media::after { display: none; }

.features { gap: 18px; }
.features--row3 { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s, background .2s; }
.feature-card--row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.feature-card:hover { box-shadow: 0 8px 32px rgba(211,47,47,0.13), 0 0 0 1px rgba(211,47,47,0.08) inset; border-color: rgba(211,47,47,0.18); }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; margin: 0; color: var(--brand); background: #fbeaec; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(211,47,47,0.08) inset; }
.feature-icon--lg { width: 64px; height: 64px; border-radius: 16px; }
.feature-card p { margin: 2px 0 0; color: var(--muted); }
.feature-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0 0 6px; }
.feature-card h3 { margin: 0; }
.feature-head .feature-icon { margin: 0; }

/* Hero */
.hero { padding-top: 80px; background: linear-gradient(120deg, #fff 60%, #fbeaec 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.hero-text h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.2; margin: 0 0 10px; color: var(--brand); }
.hero-text .accent { color: var(--brand); text-shadow: 0 0 8px rgba(211,47,47,0.10); }
.hero-text p { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.hero-card .stat { text-align: center; background: #fbeaec; border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: none; }
.hero-card .stat strong { display: block; font-size: 1.4rem; color: var(--brand); }
.hero-card .stat span { color: var(--muted); font-size: .95rem; }

/* Product slider */
.product-slider { display: grid; grid-template-columns: 1fr; gap: 10px; }
.slider-btn { display: none; } /* knoppen verbergen */

.product-viewport { overflow-x: hidden; overflow-y: visible; }
.product-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 100%; }
.product-card { position: relative; background: #fff; border: 1px solid #e2e4ea; border-radius: 16px; padding: 14px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

/* Responsief: 2 kolommen op tablet, 1 op mobiel */
@media (max-width: 900px) {
  .product-track { grid-template-columns: repeat(2, 1fr); }
  /* Houd 3 kolommen op tablets als er ruimte is */
  .hero-card { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .product-track { grid-template-columns: 1fr; }
  /* Stack de statistieken onder elkaar op mobiel */
  .hero-card { grid-template-columns: 1fr; }
}

.product-card {
  position: relative; /* nodig voor badge positioning */
  min-width: 0; /* belangrijk voor grid! */
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;      /* of 16 / 9 voor breder effect */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}

/* CTA */
.cta .cta-inner { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.cta-text h2 { margin: 0 0 8px; color: var(--brand);}
.cta-text p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; }

/* Login */
.login .login-box { max-width: 520px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.login-box { background: #fff; border: 1px solid #e2e4ea; border-radius: 16px; padding: 20px; max-width: 520px; margin: 0 auto; }
.login-form { display: grid; gap: 12px; margin-top: 12px; }
.login-form label { display: grid; gap: 6px; font-weight: 500; }
.login-form input { background: #fff; border: 1px solid #e2e4ea; border-radius: 10px; color: var(--text); padding: 10px 12px; }

.login-form input:focus { outline: 2px solid var(--red-500); border-color: var(--red-500); }
.login-link {
  color: #fff !important;
  background: linear-gradient(135deg, var(--red-600), var(--red-700)) !important;
  border-color: rgba(211,47,47,0.2) !important;
  box-shadow: 0 4px 18px rgba(211,47,47,0.18);
  font-weight: 700;
}
.login-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(211,47,47,0.22);
}

/* Basisknoppen */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, filter .15s, box-shadow .15s, transform .15s;
}

/* Rood primaire knop (zoals Bekijk producten) */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  border-color: rgba(211,47,47,0.2);
  box-shadow: 0 4px 18px rgba(211,47,47,0.18);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(211,47,47,0.22);
}

/* Ghost-variant blijft licht */
.btn-ghost {
  color: #d32f2f;
  background: #fff;
  border: 1.5px solid #d32f2f;
}
.btn-ghost:hover { background: #fbeaec; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.site-footer a:hover { color: var(--brand); }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 16px; }
    .about-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }
    .about-media { grid-column: 1; }
    .about-subhead { grid-column: 1; }
    .features--row3 { grid-column: 1; grid-template-columns: 1fr; }
    .product-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 720px) {
  .section { padding: 32px 0; }
  .product-track { grid-template-columns: 1fr; }
  .login-box { width: 100%; padding: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Modal */
/* Zorg dat de modal altijd boven header/nav staat en niet kliks blokkeert */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 5000; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.08); backdrop-filter: blur(2px); z-index: 0; }
.modal-dialog { position: relative; z-index: 1; width: min(92%, 460px); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); overflow: hidden; }
/* Decoratieve rand mag geen interacties blokkeren */
.modal-dialog::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, rgba(211,47,47,0.10), transparent 50%); pointer-events: none; z-index: 0; }
.modal-close { position: absolute; top: 8px; right: 8px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; cursor: pointer; z-index: 2; }
.modal-close:hover { background: #fbeaec; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d32f2f;
  color: #fff;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(211,47,47,0.13);
  z-index: 2;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.portal-link {
  color: #6b6f7a !important;
  background: #f3f4f8 !important;
  border: 1.5px solid #e2e4ea !important;
  font-weight: 700;
  pointer-events: none;
  cursor: not-allowed;
  transition: background .15s, color .15s, border-color .15s;
}
.portal-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
  border-color: rgba(211,47,47,0.2) !important;
  pointer-events: auto;
  cursor: pointer;
}
