/*
 * Peter Tuinen – nagebouwd naar de Elementor-site.
 * Maten en kleuren komen uit de computed styles van www.petertuinen.be (1440 px).
 * De oude site laadde Roboto wel, maar paste het nergens toe: alles rendert in de systeemfont.
 */
:root {
  --groen: #6a961f;
  --donkergroen: #0d3c00;
  --beige: #f2f3ec;
  --sp-primary: var(--groen);
  --sp-primary-contrast: #fff;
  --sp-secondary: var(--donkergroen);
  --sp-text: #333;
  --sp-muted: #7a7a7a;
  --sp-line: #e3e3e3;
  --sp-surface: var(--beige);
  --sp-container: 1200px;
  --sp-gutter: 24px;
  --sp-radius: 0px;
  --sp-btn-radius: 0px;
  --sp-font: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --kop-hoogte: 156px;
}

body { font-weight: 300; line-height: 1.5; }
h1, h2, h3, h4 { font-weight: 500; }
h1 { font-size: 50px; line-height: 1; }
h2 { font-size: 51px; line-height: 1; letter-spacing: -0.7px; }
h3 { font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.6px; color: var(--groen); }
/* Sectielabels stonden op de oude site met een groen streepje links; gecentreerde labels zonder. */
h3.sp-heading { border-left: 4px solid var(--groen); padding-left: 12px; }
.sp-text-center h3.sp-heading { border-left: 0; padding-left: 0; }
/* Een gecentreerde tussentitel is op de oude site kleiner dan een titel in een tekstkolom. */
.sp-text-center h2.sp-heading { font-size: 33px; }
a { color: var(--groen); }

/* Knoppen: rechthoekig linksboven, rond op de drie andere hoeken. */
.sp-btn {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px;
  border-radius: 0 40px 40px;
  border: 0;
  min-width: 186px;
}
.sp-btn-primary:hover { background: var(--donkergroen); border-color: var(--donkergroen); filter: none; transform: none; }

.sp-skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sp-skip:focus { left: 0; top: 0; width: auto; height: auto; padding: 10px 16px; background: var(--groen); color: #fff; z-index: 100; }

/* ---------- Kop ---------- */
.kop { display: flex; align-items: stretch; background: #fff; min-height: var(--kop-hoogte); }
.kop-merk {
  flex: 0 0 33.333%;
  background: var(--groen);
  padding: 10px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.kop-contact { display: flex; gap: 24px; margin: 0; font-size: 16px; line-height: 24px; }
.kop-contact a { display: inline-flex; align-items: center; gap: 5px; color: #fff; text-decoration: none; }
.kop-contact a:hover { text-decoration: underline; }
.kop-contact .sp-icon { width: 15px; height: 15px; }
.kop-logo img { display: block; width: 187px; height: auto; }
.kop-logo strong { color: #fff; font-size: 26px; }

.kop-nav { flex: 1; display: flex; justify-content: flex-end; padding: 42px 10px 10px; }
.kop-menu .sp-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.kop-menu .sp-menu a {
  display: block;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--donkergroen);
  text-decoration: none;
}
.kop-menu .sp-menu a:hover,
.kop-menu .sp-menu .is-active > a { color: var(--groen); }
/* Laatste item (Vacature / Postes vacants) is op de oude site een groene knop op de tweede regel. */
.kop-menu .sp-menu > li:last-child { margin-left: auto; }
.kop-menu .sp-menu > li:last-child > a { background: var(--groen); color: #fff; }
.kop-menu .sp-menu > li:last-child > a:hover { background: var(--donkergroen); color: #fff; }

.kop-talen { flex: 0 0 57px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 7px; }
.kop-talen a { line-height: 0; opacity: .85; }
.kop-talen a[aria-current], .kop-talen a:hover { opacity: 1; }
.vlag { width: 18px; height: 12px; display: block; }

.kop-knop { display: none; }

/* ---------- Titelbalk ---------- */
/*
 * Sfeerfoto met een donkere waas eroverheen, zoals op WordPress. De foto en de waas staan per sectie
 * in de builder (achtergrondafbeelding + overlay), dus elke pagina kan een eigen beeld krijgen; het
 * donkere groen blijft eronder staan als de foto nog ontbreekt.
 */
.sp-section.hero { background-color: var(--donkergroen); min-height: 407px; padding: 0; }
.sp-section.hero h1, .sp-section.hero h2 { color: #fff; }
.sp-section.hero-home { min-height: 0; padding: 258px 0 262px; }
.sp-section.hero-home h1 { margin-bottom: 30px; }
.sp-scheme-light h1, .sp-scheme-light h2 { color: #fff; }

/* ---------- Icoonkaarten ---------- */
/* Het eigen icoonfont van de oude site (tuingereedschap) is van de server verdwenen; die kaarten
   hebben dus enkel een titel. De kaarten met tekst zijn de contactgegevens. */
.sp-iconbox-icon:empty { display: none; }
.sp-iconbox { text-align: center; }
.sp-iconbox-text > :last-child { margin-bottom: 0; }

/* ---------- Dienstentegels ---------- */
/* Wit vlak op de beige sectie: foto boven, titel eronder, de hele tegel is een link. */
.sp-w-card .sp-card {
  background: #fff;
  border: 0;
  box-shadow: none;
}
.sp-w-card .sp-post-body { padding: 24px 20px 28px; }
.sp-w-card .sp-post-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  color: #4d4d4d;
  margin: 0;
  text-align: center;
}
.sp-w-card .sp-post-title a { color: inherit; text-decoration: none; }
.sp-w-card .sp-card-link:hover .sp-post-title { color: var(--groen); }
.sp-w-card .sp-post-excerpt:empty { display: none; }
.sp-w-card .sp-post-img img { transition: transform .4s; }
.sp-w-card .sp-card-link:hover .sp-post-img img { transform: scale(1.04); }

/* Contactkaart: beige vlak met een wit icoon op een groen vierkant. */
.sp-w-icon-box:has(.sp-iconbox-title:empty) .sp-iconbox {
  background: var(--beige);
  padding: 50px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
.sp-w-icon-box:has(.sp-iconbox-title:empty) .sp-iconbox-title { display: none; }
.sp-w-icon-box:has(.sp-iconbox-title:empty) .sp-iconbox-icon {
  width: 108px;
  height: 110px;
  background: var(--groen);
  border-radius: 0;
  color: #fff;
  align-self: center;
}
.sp-w-icon-box:has(.sp-iconbox-title:empty) .sp-iconbox-icon .sp-icon { width: 55px; height: 55px; }
.sp-w-icon-box:has(.sp-iconbox-title:empty) .sp-iconbox-text { color: #4d4d4d; }
.sp-iconbox-text a { color: inherit; text-decoration: none; }
.sp-iconbox-text a:hover { text-decoration: underline; }

/* ---------- Voet ---------- */
.voet-contact { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.voet-formulier { background: var(--beige); padding: 60px 90px 80px; }
.voet-troeven { padding: 60px 90px 80px; border-top: 8px solid var(--groen); }
.voet-label {
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--groen);
  color: var(--groen);
  font-size: 16px;
  font-weight: 600;
}
.voet-contact h2 { font-size: 51px; line-height: 1; margin: 0 0 30px; }
.voet-troeven h2 { font-size: 30px; line-height: 1.2; }
.voet-troeven ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.voet-troeven li { display: flex; gap: 14px; align-items: flex-start; }
.voet-troeven li .sp-icon { flex: none; width: 24px; height: 24px; color: var(--groen); margin-top: 2px; }

.voet .sp-form { display: grid; gap: 12px; }
.voet .sp-form label { display: none; }
.voet .sp-form input, .voet .sp-form textarea { border: 0; background: #fff; padding: 14px 16px; border-radius: 0; }
.voet .sp-form textarea { min-height: 120px; }

.voet-balk { background: var(--groen); color: #fff; text-align: center; padding: 34px 20px; }
.voet-balk p { margin: 0; }
.voet-balk a { color: #fff; text-decoration: underline; }

.voet-talen { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 14px 20px; background: #fff; }
.voet-talen a { display: inline-flex; align-items: center; gap: 8px; color: #444; text-decoration: none; font-size: 15px; }
.voet-talen a:hover { color: #000; }

/* ---------- Smal scherm ---------- */
@media (max-width: 900px) {
  .kop { flex-wrap: wrap; min-height: 0; }
  .kop-merk { flex: 1 1 100%; padding: 10px 0 16px; gap: 12px; }
  .kop-contact { flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; }
  .kop-nav { flex: 1; padding: 10px 0 10px 16px; align-items: center; }
  .kop-knop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .kop-knop span { display: block; height: 2px; background: var(--donkergroen); }
  .kop-menu { display: none; flex: 1 1 100%; order: 3; }
  .kop-menu.is-open { display: block; }
  .kop-menu .sp-menu { flex-direction: column; justify-content: stretch; }
  .kop-menu .sp-menu a { padding: 12px 20px; border-bottom: 1px solid var(--sp-line); }
  .kop-menu .sp-menu > li:last-child { margin-left: 0; }
  .kop-talen { flex: 0 0 auto; flex-direction: row; padding: 10px 16px; }

  h1 { font-size: 34px; }
  h2, .voet-contact h2 { font-size: 32px; letter-spacing: -0.4px; }
  .sp-text-center h2.sp-heading { font-size: 28px; }
  .sp-section.hero { min-height: 220px; }
  .sp-section.hero-home { padding: 90px 0 100px; }
  .sp-w-card .sp-post-body { padding: 18px 16px 22px; }
  .sp-w-card .sp-post-title { font-size: 22px; }
  .sp-w-icon-box:has(.sp-iconbox-title:empty) .sp-iconbox { min-height: 0; padding: 40px 24px; }
  .voet-contact { grid-template-columns: 1fr; }
  .voet-formulier, .voet-troeven { padding: 40px 24px 50px; }
}
