/*
Theme Name: HCE Leerdam
Theme URI: https://www.hce-leerdam.nl
Author: Harbru Cooling Equipment
Description: Herbouw van de originele HCE Leerdam website. Alle content is aanpasbaar via het WordPress-dashboard (Weergave → Aanpassen).
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: hce-leerdam
*/

/* ==========================================================
   RESET & BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  background: #f0f0f0;
  -webkit-font-smoothing: antialiased;
}
a { color: #3db4e8; text-decoration: none; }
a:hover { color: #1a8fc0; text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.3; color: #333; }
p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
strong { color: #333; }

/* ==========================================================
   PAGINA-WRAPPER (witte kaart midden, grijs errond)
   ========================================================== */
.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  min-height: 100vh;
}
.inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ==========================================================
   TOPBAR
   ========================================================== */
.topbar {
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-logo a { display: inline-block; line-height: 0; }
.topbar-logo img { max-height: 80px; width: auto; }
.topbar-contact { font-size: 13px; color: #666; display: flex; align-items: center; gap: 6px; }
.topbar-contact svg { flex-shrink: 0; color: #555; }
.topbar-contact a { color: #3db4e8; font-weight: 700; font-size: 15px; }
.topbar-contact a:hover { color: #1a8fc0; text-decoration: none; }

/* ==========================================================
   NAVIGATIE
   ========================================================== */
.site-nav { background: #2d2d2d; position: sticky; top: 0; z-index: 300; }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.primary-menu { display: flex; align-items: stretch; flex-wrap: wrap; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: flex; align-items: center;
  padding: 0 15px; height: 46px;
  color: #ccc; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s;
}
.primary-menu > li > a:hover,
.primary-menu > li.current > a { color: #fff; background: #3db4e8; text-decoration: none; }
.primary-menu > li > ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #2d2d2d; min-width: 210px; z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.primary-menu > li:hover > ul { display: block; }
.primary-menu > li > ul li a {
  display: block; padding: 9px 16px;
  color: #bbb; font-size: 12px; font-weight: 600;
  border-bottom: 1px solid #383838;
  text-decoration: none; transition: color .12s, background .12s;
}
.primary-menu > li > ul li a:hover { color: #fff; background: #3db4e8; text-decoration: none; }
.primary-menu > li > ul li:last-child a { border-bottom: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 13px 16px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #ccc; border-radius: 2px; }
@media (max-width: 860px) {
  .primary-menu { display: none; flex-direction: column; width: 100%; }
  .primary-menu.open { display: flex; }
  .primary-menu > li > a { height: auto; padding: 12px 16px; border-bottom: 1px solid #3a3a3a; }
  .primary-menu > li > ul { position: static; box-shadow: none; display: none; }
  .nav-inner { flex-wrap: wrap; }
  .nav-search { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background: #fff; text-align: center;
  padding: 60px 30px 0; border-bottom: 1px solid #eee;
}
.hero-subtitle {
  display: block; font-size: 16px; font-style: italic;
  color: #999; margin-bottom: 10px; font-weight: 400;
}
.hero-title {
  font-size: 32px; font-weight: 900; color: #333;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.hero-divider { width: 160px; height: 1px; background: #ccc; margin: 0 auto 40px; }

/* 3 Feature kaarten */
.feature-cards {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid #e0e0e0;
}
@media (max-width: 640px) { .feature-cards { grid-template-columns: 1fr; } }
.feature-card {
  border: 1px solid #e0e0e0; border-top: none;
  padding: 40px 28px; text-align: center; background: #fff;
}
.feature-card + .feature-card { border-left: none; }
@media (max-width: 640px) { .feature-card + .feature-card { border-left: 1px solid #e0e0e0; border-top: none; } }
.feature-card-icon { font-size: 28px; margin-bottom: 14px; display: block; color: #3db4e8; }
.feature-card h3 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #333; margin-bottom: 18px;
}
.feature-card p { font-size: 13px; color: #666; line-height: 1.65; margin-bottom: 18px; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-block; padding: 9px 22px; border-radius: 2px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit; transition: background .15s;
}
.btn-blue { background: #3db4e8; color: #fff; }
.btn-blue:hover { background: #1a9fd0; color: #fff; text-decoration: none; }

/* ==========================================================
   HOOFD INHOUD
   ========================================================== */
.main-content { background: #fff; padding: 40px 0 30px; border-bottom: 1px solid #e8e8e8; }
.notice-bar { text-align: center; font-size: 13px; color: #666; margin-bottom: 8px; }
.notice-bar a { color: #3db4e8; text-decoration: underline; }
.content-text { font-size: 14px; color: #555; line-height: 1.75; }
.content-text p { margin-bottom: 14px; }
.content-text ul { list-style: disc; padding-left: 22px; margin: 10px 0 14px; }
.content-text ul li { margin-bottom: 6px; font-size: 14px; color: #555; }
.content-text ul li strong { color: #333; }
/* WordPress editor inhoud */
.wp-content img { max-width: 100%; height: auto; border-radius: 2px; }
.wp-content h2 { font-size: 18px; margin: 20px 0 10px; }
.wp-content h3 { font-size: 16px; margin: 16px 0 8px; }
.wp-content ul { list-style: disc; padding-left: 22px; margin: 10px 0 14px; }
.wp-content ol { list-style: decimal; padding-left: 22px; margin: 10px 0 14px; }
.wp-content li { margin-bottom: 5px; }
.wp-content blockquote {
  border-left: 3px solid #3db4e8; padding: 10px 16px;
  margin: 16px 0; background: #f9f9f9; font-style: italic; color: #666;
}

/* ==========================================================
   CONTACT FORMULIER
   ========================================================== */
.contact-section { background: #fff; padding: 36px 0 44px; border-bottom: 1px solid #e8e8e8; }
.contact-section h2 {
  font-size: 16px; font-weight: 700; color: #333;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px;
}
.hp-trap { display: none !important; visibility: hidden !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.form-field label { font-size: 12px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: 0.4px; }
.form-field label .req { color: #e03030; }
.form-field input,
.form-field textarea {
  padding: 8px 11px; border: 1px solid #ccc; border-radius: 2px;
  font-size: 13px; font-family: inherit; color: #333;
  background: #fafafa; outline: none; width: 100%;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: #3db4e8; background: #fff; }
.form-field input.err,
.form-field textarea.err { border-color: #cc2200; background: #fff9f8; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-status-msg {
  display: none; padding: 10px 14px; border-radius: 2px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.form-status-msg.ok  { display: block; background: #eafaf1; border: 1px solid #a3d9b1; color: #256a3e; }
.form-status-msg.err { display: block; background: #fef0ef; border: 1px solid #f5c2be; color: #8c1f1f; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: #333; color: #aaa; padding: 36px 30px 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; max-width: 860px; margin: 0 auto;
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-col-title {
  font-size: 13px; font-weight: 700; color: #ddd;
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 2px solid #4a4a4a;
}
.footer-col-title svg { color: #3db4e8; flex-shrink: 0; }
.footer-address { font-size: 13px; color: #aaa; line-height: 1.9; margin-bottom: 12px; }
.footer-contact-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #aaa; margin-bottom: 5px; }
.footer-contact-line svg { color: #3db4e8; flex-shrink: 0; }
.footer-contact-line a { color: #3db4e8; }
.footer-contact-line a:hover { color: #fff; text-decoration: none; }
.map-wrap { width: 100%; height: 140px; background: #ddd; border-radius: 2px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.footer-bottom {
  background: #2a2a2a; padding: 14px 30px;
  text-align: center; font-size: 12px; color: #777;
}
.scroll-top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: #3db4e8;
  border-radius: 2px; color: #fff; border: none;
  cursor: pointer; margin-top: 10px; transition: background .15s;
}
.scroll-top:hover { background: #1a9fd0; }

/* ==========================================================
   REVEAL ANIMATIE
   ========================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   WP ADMIN BAR + ESSENTIALS
   ========================================================== */
.screen-reader-text {
  position: absolute; clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}

/* ==========================================================
   PAGINA-SPECIFIEKE STIJLEN
   ========================================================== */

/* Paginaheader */
.page-header { margin-bottom: 28px; }
.page-title {
  font-size: 26px; font-weight: 900; color: #222;
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 8px;
}
.page-title-divider { width: 50px; height: 3px; background: #3db4e8; border-radius: 2px; }
.page-intro { font-size: 14px; color: #888; margin-top: 10px; }

/* Actueel / Nieuws */
.nieuws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.nieuws-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 3px; overflow: hidden; }
.nieuws-card-header { background: #f5f5f5; border-bottom: 1px solid #e0e0e0; padding: 16px 20px; }
.nieuws-datum { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #3db4e8; display: block; margin-bottom: 5px; }
.nieuws-titel { font-size: 15px; color: #222; font-weight: 700; }
.nieuws-body { padding: 16px 20px; font-size: 13px; color: #666; line-height: 1.65; }

/* Merken grid (op merkenpagina) */
.merken-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.merk-kaart { background: #fff; border: 1px solid #e0e0e0; border-radius: 3px; padding: 24px; }
.merk-kaart-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.merk-kaart-badge.premium { background: #e8f6fd; color: #1a8fc0; border: 1px solid #b3dff5; }
.merk-kaart-badge.dealer  { background: #f0f0f0; color: #777; border: 1px solid #ddd; }
.merk-kaart h3 { font-size: 16px; color: #222; margin-bottom: 8px; }
.merk-kaart p  { font-size: 13px; color: #666; line-height: 1.6; }

/* Merk detailpagina (Iglu, Irinox) */
.merk-badge-page { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.merk-badge-page.premium { background: #e8f6fd; color: #1a8fc0; border: 1px solid #b3dff5; }
.merk-pagina-layout { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: start; }
@media (max-width: 640px) { .merk-pagina-layout { grid-template-columns: 1fr; } }
.merk-submenu { background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 3px; padding: 20px; }
.merk-submenu h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #333; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #3db4e8; }
.merk-submenu ul { display: flex; flex-direction: column; gap: 0; }
.merk-submenu ul li a { display: block; padding: 8px 10px; font-size: 13px; color: #555; border-bottom: 1px solid #e0e0e0; text-decoration: none; transition: color .12s, background .12s; }
.merk-submenu ul li:last-child a { border-bottom: none; }
.merk-submenu ul li a:hover { color: #3db4e8; background: #eaf6fd; text-decoration: none; }
.merk-submenu ul li a::before { content: '› '; color: #3db4e8; }

/* Producten categoriepagina */
.product-categorie { margin-bottom: 28px; }
.product-cat-titel { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #333; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #3db4e8; display: inline-block; }
.product-items-rij { display: flex; flex-wrap: wrap; gap: 8px; }
.product-item-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #fff; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; color: #444; font-weight: 600; text-decoration: none; transition: border-color .12s, color .12s, background .12s; }
.product-item-link:hover { border-color: #3db4e8; color: #3db4e8; background: #eaf6fd; text-decoration: none; }
.product-item-pijl { color: #3db4e8; font-weight: 700; }

/* Gerealiseerd tabel */
.projecten-tabel { border: 1px solid #e0e0e0; border-radius: 3px; overflow: hidden; }
.project-rij { display: grid; grid-template-columns: 1fr 160px 140px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #eee; font-size: 13px; }
.project-rij:last-child { border-bottom: none; }
.project-rij:nth-child(even) { background: #f9f9f9; }
.project-naam strong { color: #333; }
.project-stad { color: #888; }
.project-type-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; background: #e8f6fd; color: #1a8fc0; border: 1px solid #b3dff5; border-radius: 20px; }
@media (max-width: 500px) { .project-rij { grid-template-columns: 1fr; gap: 4px; } }

/* EIA pagina */
.eia-uitleg-blok { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
@media (max-width: 600px) { .eia-uitleg-blok { grid-template-columns: 1fr; } }
.eia-getal-groot { font-size: 80px; font-weight: 900; color: #3db4e8; line-height: 1; flex-shrink: 0; }
.eia-tekst-blok { font-size: 14px; }

/* Contact pagina */
.contact-twee-kolom { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
@media (max-width: 720px) { .contact-twee-kolom { grid-template-columns: 1fr; gap: 32px; } }
.contact-gegevens-blok h2, .contact-formulier-blok h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #333; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #3db4e8; display: inline-block; }
.blok-titel { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #333; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #3db4e8; display: block; }
.contact-info-rij { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.contact-info-rij:last-child { border-bottom: none; }
.ci-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.contact-info-rij label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #aaa; margin-bottom: 2px; }
.contact-info-rij a, .contact-info-rij p { font-size: 14px; color: #333; font-weight: 500; }
.contact-info-rij a:hover { color: #3db4e8; }
