/*
Theme Name: Biopower
Theme URI: https://biopower.be
Author: Biopower
Author URI: https://biopower.be
Description: Modern groen/eco thema voor Biopower - vacatures in hernieuwbare energie (Tongeren &amp; Bocholt).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: biopower
*/

:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --lime: #a3e635;
  --bg: #f4f9f4;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #d8e6d8;
  --shadow: 0 6px 18px rgba(20, 83, 45, 0.1);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { color: var(--green-900); line-height: 1.2; }
a { color: var(--green-700); }
a:hover { color: var(--green-600); }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-100); color: var(--green-800); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-800);
  text-decoration: none;
}
.logo svg { width: 30px; height: 30px; color: var(--green-600); }
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-menu a:hover { background: var(--green-100); color: var(--green-800); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background: var(--green-700);
  color: #fff;
}

/* ---------- Hero (front page) ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
  color: #fff;
  padding: 90px 0;
}
.hero h1 { color: #fff; font-size: 2.8rem; margin: 0 0 16px; max-width: 700px; }
.hero p { font-size: 1.2rem; max-width: 620px; color: #e7f6ea; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin: 0 0 8px; font-size: 2.2rem; }
.page-hero p { margin: 0; color: #dff0e2; max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { font-size: 2rem; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 640px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

.usp-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.usp-icon svg { width: 24px; height: 24px; }

/* ---------- Vacature cards ---------- */
.vacature-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.vacature-card-media { position: relative; display: block; overflow: hidden; }
.vacature-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.vacature-card:hover .vacature-card-media img { transform: scale(1.05); }
.vacature-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vacature-card-badge {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.92);
}
.vacature-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px 26px 26px; }
.vacature-card h3 { margin: 0 0 6px; }
.vacature-card h3 a { color: var(--green-900); text-decoration: none; }
.vacature-card h3 a:hover { color: var(--green-600); }
.vacature-card p { color: var(--muted); flex-grow: 1; margin-top: 0; }
.badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: " \2192"; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filters a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.filters a.active, .filters a:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

/* ---------- Single vacature (Byont-stijl) ---------- */
.vacancy-section { padding-top: 40px; }

.vacancy-return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-800);
  margin-bottom: 26px;
}
.vacancy-return-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.vacancy-return:hover .vacancy-return-icon { background: var(--green-600); transform: translateX(-3px); }

.vacancy-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.vacancy-tags .badge { margin-bottom: 0; }
.badge-dark { background: var(--green-800); color: #fff; }

.vacancy-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin: 0 0 36px;
  max-width: 760px;
}

.vacancy-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.vacancy-content { max-width: 720px; }
.vacancy-content p { margin: 0 0 1.1em; }
.vacancy-content strong { color: var(--green-900); }
.vacancy-content ul { padding-left: 22px; margin: 0 0 1.1em; }
.vacancy-content li { margin-bottom: 8px; }

.vacancy-sticky { position: sticky; top: 110px; }

.vacancy-apply-img {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vacancy-apply-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.apply-box {
  margin-top: 44px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.sollicitatie-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--green-900);
}
.sollicitatie-form input[type="text"],
.sollicitatie-form input[type="email"],
.sollicitatie-form input[type="tel"],
.sollicitatie-form input[type="file"],
.sollicitatie-form select,
.sollicitatie-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fbfdfb;
}
.sollicitatie-form input:focus,
.sollicitatie-form select:focus,
.sollicitatie-form textarea:focus {
  outline: 2px solid var(--green-600);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.notice {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-weight: 500;
}
.notice-success { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-600); }
.notice-error { background: #fee2e2; color: #7f1d1d; border: 1px solid #ef4444; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #e7f6ea; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #cfe8d3;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.site-footer a { color: #cfe8d3; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0;
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .vacancy-grid { grid-template-columns: 1fr; }
  .vacancy-sticky { position: static; }
}
@media (max-width: 800px) {
  .grid-3, .grid-2, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Vacature filters & animaties ---------- */
.vacature-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.vacature-toolbar .filters { margin-bottom: 0; }
.vacature-toolbar .filters a { cursor: pointer; }
.vacature-zoek input {
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 280px;
  font: inherit;
  background: var(--white);
}
.vacature-zoek input:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }
.vacature-count { color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; }
.vacature-card { transition: transform 0.2s, box-shadow 0.2s; }
.vacature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20, 83, 45, 0.16); }
.bp-hidden { display: none; }
.bp-fadein { animation: bp-fadein 0.45s ease both; }
@keyframes bp-fadein {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.vacature-leeg {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 24px;
}

/* ---------- Elementor homepage ---------- */
.bp-pad { padding-top: 70px; padding-bottom: 70px; }
.bp-pad-alt { background: var(--white); }
.bp-header-section { padding-bottom: 24px; }
.bp-cards-row { padding-bottom: 70px; }

.bp-section-title .elementor-heading-title {
  color: var(--green-900);
  font-size: 2rem;
  font-weight: 800;
}
.bp-section-sub { color: var(--muted); font-size: 1.1rem; }

/* Hero */
.bp-hero {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(20, 83, 45, 0.92) 0%, rgba(21, 128, 61, 0.82) 60%, rgba(22, 163, 74, 0.72) 100%),
    url("/wp-content/uploads/2026/08/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.bp-hero-title .elementor-heading-title {
  color: #fff;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
}
.bp-hero-sub { color: #e7f6ea; font-size: 1.25rem; max-width: 640px; margin: 0 auto; }
.bp-typed::after {
  content: "|";
  animation: bp-blink 1s infinite;
  color: var(--lime);
}
@keyframes bp-blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
.bp-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.bp-scroll {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  margin: 48px auto 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: bp-bounce 2s infinite;
}
.bp-scroll::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}
@keyframes bp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Stats band */
.bp-stats { background: linear-gradient(135deg, var(--green-900), var(--green-600)); }
.bp-stats .elementor-counter { text-align: center; padding: 14px 0; }
.bp-stats .elementor-counter .elementor-counter-number-wrapper { color: #fff; font-size: 2.7rem; font-weight: 800; }
.bp-stats .elementor-counter .elementor-counter-title { color: #d9efdd; font-weight: 600; }

/* USP icon boxes */
.bp-iconbox {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bp-iconbox:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(20, 83, 45, 0.16); }
.bp-iconbox .elementor-icon { color: var(--green-600); font-size: 42px; margin-bottom: 14px; }
.bp-iconbox .elementor-icon-box-title { color: var(--green-900); font-size: 1.25rem; margin-bottom: 8px; }
.bp-iconbox .elementor-icon-box-description { color: var(--muted); }

/* Split section afbeelding */
.bp-split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Locatie image boxes */
.bp-imagebox {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bp-imagebox:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(20, 83, 45, 0.16); }
.bp-imagebox .elementor-image-box-img { overflow: hidden; }
.bp-imagebox .elementor-image-box-img a { display: block; }
.bp-imagebox .elementor-image-box-img img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.bp-imagebox:hover .elementor-image-box-img img { transform: scale(1.05); }
.bp-imagebox .elementor-image-box-content { padding: 20px; }
.bp-imagebox .elementor-image-box-title { color: var(--green-900); font-size: 1.25rem; margin-bottom: 6px; }
.bp-imagebox .elementor-image-box-description { color: var(--muted); }

/* CTA */
.bp-cta {
  background-image:
    linear-gradient(135deg, rgba(20, 83, 45, 0.93) 0%, rgba(22, 163, 74, 0.85) 100%),
    url("/wp-content/uploads/2026/08/forest.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}
.bp-cta .elementor-heading-title { color: #fff; font-size: 2.2rem; }
.bp-cta-sub { color: #e7f6ea; font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

@media (max-width: 800px) {
  .bp-hero-title .elementor-heading-title { font-size: 2rem; }
  .bp-hero-sub { font-size: 1.05rem; }
  .bp-stats .elementor-counter-number-wrapper { font-size: 2rem; }
}
