/*
Theme Name: Windpark Genne Haerst
Description: Child theme van Twenty Twenty-Five voor www.windparkgennehaerst.nl. Rustige, transparante projectwebsite van vier lokale energiecoöperaties.
Template: twentytwentyfive
Version: 1.2.4
Author: Windpark Genne Haerst
Text Domain: wgh-genne-haerst
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --wgh-blue: #11284a;
  --wgh-green: #2f7d32;
  --wgh-green-soft: #eaf4ec;
  --wgh-border: #dfe7e1;
  --wgh-text: #17233c;
  --wgh-muted: #5c6b7a;
  --wgh-radius: 18px;
  --wgh-shadow: 0 16px 40px rgba(17, 40, 74, .08);
}

body {
  color: var(--wgh-text);
  background: #fff;
  line-height: 1.65;
}

/* ---------- Container ---------- */
.wgh-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---------- Header ---------- */
.wgh-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--wgh-border);
}

.admin-bar .wgh-header { top: 32px; }

.wgh-nav {
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Bredere headerbalk zodat menu en knop op één regel passen */
.wgh-nav.wgh-container { max-width: 1420px; }

.wgh-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.wgh-brand-title {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--wgh-blue);
  line-height: 1.05;
}

.wgh-brand-title .wgh-accent { color: var(--wgh-green); }

.wgh-brand-sub {
  display: block;
  font-size: 15px;
  color: var(--wgh-muted);
  margin-top: 4px;
}

.wgh-menu a {
  font-size: 14px;
  color: var(--wgh-text);
  text-decoration: none;
}

.wgh-menu.wp-block-navigation,
.wgh-menu .wp-block-navigation__container {
  gap: 20px;
}

.wgh-menu a:hover { color: var(--wgh-green); }

.wgh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--wgh-green);
  color: #fff !important;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.wgh-pill:hover { background: #276a2a; }

/* ---------- Hero ---------- */
.wgh-hero {
  min-height: 590px;
  padding-top: 60px;
  padding-bottom: 130px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .64), rgba(255, 255, 255, .1)),
    url('assets/img/hero-home.jpg');
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: center;
}

.wgh-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  color: var(--wgh-blue);
  margin: 0 0 24px;
  font-weight: 800;
}

.wgh-hero p {
  max-width: 560px;
  font-size: 18px;
}

.wgh-hero-klein {
  min-height: 320px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .64), rgba(255, 255, 255, .15)),
    url('assets/img/hero-sub.jpg');
  background-position: center;
}

.wgh-hero-klein h1 { font-size: 44px; }

/* ---------- Knoppen ---------- */
.wgh-buttons { margin-top: 28px; }

.wgh-button-primary .wp-block-button__link,
.wgh-button-outline .wp-block-button__link {
  border: 1px solid var(--wgh-green);
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.wgh-button-primary .wp-block-button__link {
  background: var(--wgh-green);
  color: #fff;
}

.wgh-button-primary .wp-block-button__link:hover { background: #276a2a; }

.wgh-button-outline .wp-block-button__link {
  background: transparent;
  color: var(--wgh-green);
}

.wgh-button-outline .wp-block-button__link:hover { background: var(--wgh-green-soft); }

/* ---------- Waardenblok ---------- */
.wgh-values {
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.wgh-values-card {
  background: #fff;
  border: 1px solid var(--wgh-border);
  box-shadow: var(--wgh-shadow);
  border-radius: var(--wgh-radius);
  padding: 38px;
  gap: 26px;
}

.wgh-values-card h2 {
  font-size: 30px;
  color: var(--wgh-blue);
  margin: 0;
}

.wgh-values-card h3 {
  font-size: 19px;
  color: var(--wgh-blue);
  margin: 12px 0 6px;
}

.wgh-values-card p {
  margin: 0;
  color: var(--wgh-muted);
  font-size: 16px;
}

.wgh-icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--wgh-green);
}

/* ---------- Tegels / kaarten ---------- */
.wgh-tegels {
  margin-top: 48px;
  margin-bottom: 8px;
}

.wgh-cards { gap: 28px; }

.wgh-card {
  border: 1px solid var(--wgh-border);
  border-radius: var(--wgh-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 40, 74, .06);
  height: 100%;
}

.wgh-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.wgh-card-body { padding: 26px; }

.wgh-card-body h3 {
  color: var(--wgh-blue);
  font-size: 21px;
  margin: 0 0 8px;
}

.wgh-card-body h3 a {
  color: var(--wgh-blue);
  text-decoration: none;
}

.wgh-card-body h3 a:hover { color: var(--wgh-green); }

.wgh-card-body p {
  margin: 0;
  color: var(--wgh-muted);
}

/* ---------- Secties ---------- */
.wgh-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.wgh-section h2 {
  font-size: 38px;
  color: var(--wgh-blue);
  line-height: 1.15;
  margin-top: 0;
}

.wgh-grid-2 { gap: 58px; align-items: center; }

.wgh-photo img,
.wgh-photo {
  border-radius: var(--wgh-radius);
  box-shadow: var(--wgh-shadow);
}

/* ---------- Softbox met kenmerken ---------- */
.wgh-softbox {
  background: linear-gradient(135deg, #fff, var(--wgh-green-soft));
  border-radius: var(--wgh-radius);
  padding: 34px;
  border: 1px solid var(--wgh-border);
}

.wgh-feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  margin: 18px 0;
}

.wgh-feature .wgh-icon {
  margin-top: 5px;
}

.wgh-feature h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--wgh-blue);
}

.wgh-feature p {
  margin: 0;
  color: var(--wgh-muted);
  font-size: 16px;
}

/* ---------- Mini-kaarten ---------- */
.wgh-mini-cards { gap: 20px; }

.wgh-mini {
  border: 1px solid var(--wgh-border);
  border-radius: var(--wgh-radius);
  padding: 24px;
  background: #fff;
  height: 100%;
}

.wgh-mini h3 {
  font-size: 17px;
  color: var(--wgh-blue);
  margin: 0 0 8px;
}

.wgh-mini p {
  margin: 0;
  font-size: 15px;
  color: var(--wgh-muted);
}

.wgh-coop-logo img,
.wgh-coop-logo-img {
  max-height: 96px;
  width: auto;
  margin-bottom: 10px;
}

/* Actieve fase op de tijdlijn */
.wgh-mini-actief {
  border-color: var(--wgh-green);
  background: var(--wgh-green-soft);
  box-shadow: 0 8px 24px rgba(47, 125, 50, .12);
}

.wgh-mini-actief h3 { color: var(--wgh-green); }

/* ---------- Formulieren (Contact Form 7) ---------- */
.wgh-formulier label {
  font-weight: 600;
  font-size: 15px;
  color: var(--wgh-blue);
}

.wgh-formulier input[type="text"],
.wgh-formulier input[type="email"],
.wgh-formulier input[type="tel"],
.wgh-formulier select,
.wgh-formulier textarea {
  width: 100%;
  border: 1px solid var(--wgh-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  margin-top: 4px;
}

.wgh-formulier textarea { min-height: 110px; }

.wgh-formulier input:focus,
.wgh-formulier select:focus,
.wgh-formulier textarea:focus {
  outline: 2px solid var(--wgh-green);
  outline-offset: 0;
  border-color: var(--wgh-green);
}

.wgh-formulier p { margin: 0 0 14px; }

.wgh-formulier input[type="submit"] {
  background: var(--wgh-green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 26px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.wgh-formulier input[type="submit"]:hover { background: #276a2a; }

.wgh-formulier .wpcf7-not-valid-tip {
  color: #b3261e;
  font-size: 13px;
  font-weight: 400;
}

.wpcf7 form .wpcf7-response-output {
  border-radius: 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
}

/* ---------- FAQ accordion ---------- */
.wgh-faq details {
  border: 1px solid var(--wgh-border);
  border-radius: var(--wgh-radius);
  background: #fff;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(17, 40, 74, .04);
}

.wgh-faq summary {
  font-weight: 700;
  color: var(--wgh-blue);
  cursor: pointer;
  font-size: 17px;
}

.wgh-faq details[open] summary { margin-bottom: 10px; }

/* ---------- Nieuws ---------- */
.wgh-news.wp-block-latest-posts {
  padding-left: 0;
  gap: 28px;
}

.wgh-news li {
  border: 1px solid var(--wgh-border);
  border-radius: var(--wgh-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17, 40, 74, .06);
  padding-bottom: 20px;
}

.wgh-news .wp-block-latest-posts__featured-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.wgh-news li > a {
  display: block;
  padding: 18px 22px 0;
  font-weight: 700;
  color: var(--wgh-blue);
  text-decoration: none;
  font-size: 19px;
}

.wgh-news li > a:hover { color: var(--wgh-green); }

.wgh-news .wp-block-latest-posts__post-date,
.wgh-news .wp-block-latest-posts__post-excerpt {
  padding: 0 22px;
  color: var(--wgh-muted);
  font-size: 15px;
}

/* ---------- Nieuwsbericht (single) ---------- */
.wgh-artikel {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.wgh-artikel .wp-block-post-featured-image img {
  border-radius: var(--wgh-radius);
  box-shadow: var(--wgh-shadow);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.wgh-footer {
  border-top: 1px solid var(--wgh-border);
  padding: 38px 0 16px;
  background: #fff;
  margin-top: 40px;
}

.wgh-footer-kop {
  text-align: center;
  font-weight: 800;
  color: var(--wgh-blue);
}

.wgh-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin: 26px 0;
}

.wgh-logo {
  max-height: 70px;
  max-width: min(220px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

.wgh-logos > * { min-width: 0; }

.wgh-footlinks {
  border-top: 1px solid var(--wgh-border);
  margin-top: 26px;
  padding-top: 18px;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  color: var(--wgh-muted);
}

.wgh-footlinks a {
  color: var(--wgh-muted);
  text-decoration: none;
}

.wgh-footlinks a:hover { color: var(--wgh-green); }

/* ---------- Dropdown-menu ---------- */
.wgh-menu .wp-block-navigation__submenu-container {
  background: #fff;
  border: 1px solid var(--wgh-border);
  border-radius: 12px;
  box-shadow: var(--wgh-shadow);
  padding: 8px 4px;
  min-width: 180px;
}

.wgh-menu .wp-block-navigation__submenu-container a {
  padding: 8px 14px;
}

/* Coöperaties-menu-item alleen in het mobiele menu tonen */
@media (min-width: 901px) {
  .wgh-menu .wgh-menu-coops { display: none !important; }
}

.wp-block-navigation__responsive-container.is-menu-open .wgh-menu-coops {
  display: block;
}

/* Verplicht-veld-toelichting in formulieren */
.wgh-verplicht {
  font-size: 13px;
  color: var(--wgh-muted);
}

/* Kaart met tekstomloop op Het plan */
.wgh-kaart {
  margin: 6px 0 24px 32px;
}

.wgh-kaart img {
  border-radius: var(--wgh-radius);
  box-shadow: var(--wgh-shadow);
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .wgh-kaart {
    float: none;
    margin: 20px 0;
  }
}

/* ---------- Mobiel ---------- */
@media (max-width: 900px) {
  .wgh-hero { min-height: 520px; padding-bottom: 90px; }
  .wgh-hero h1 { font-size: 38px; }
  .wgh-hero-klein h1 { font-size: 32px; }
  .wgh-section h2 { font-size: 30px; }
  .wgh-values { margin-top: 0; }
  .wgh-logos {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    margin: 20px auto;
    max-width: 420px;
  }
  .wgh-logo { max-height: 52px; }
  .wgh-footlinks { flex-direction: column; }
  .wgh-pill { display: none; }
  .wgh-brand-title { font-size: 24px; }
}

@media (max-width: 782px) {
  .admin-bar .wgh-header { top: 46px; }
}
