/* ==========================================================================
   Ohron Industries — footer (Theme Builder-template, alle talen)
   Rode footer (huisstijl) met wit als accent en een donkerder rood voor
   diepte en de onderbalk.
   Ingeladen via functions.php van het child theme
   ========================================================================== */

:root {
  --ohron-footer-bg: #bb0007;
  --ohron-footer-bg-deep: #a10006;
  --ohron-footer-accent: #fff;
  --ohron-footer-text: rgba(255, 255, 255, .92);
  --ohron-footer-muted: rgba(255, 255, 255, .72);
  --ohron-footer-line: rgba(255, 255, 255, .22);
}

/* --- Vlak --- */
body #page-container .et-l--footer .et_pb_section {
  position: relative;
  background-color: var(--ohron-footer-bg) !important;
  background-image: none !important;
  color: var(--ohron-footer-text);
}
body #page-container .et-l--footer .et_pb_section:first-child {
  padding: 80px 0 60px !important;
  overflow: hidden;
}
/* Subtiele diepte: donkerder rood linksonder en een lichte glans rechtsboven */
body #page-container .et-l--footer .et_pb_section:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 110%, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 95% -10%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}
body #page-container .et-l--footer .et_pb_row { position: relative; z-index: 1; }

/* --- Tekst & koppen --- */
body #page-container .et-l--footer,
body #page-container .et-l--footer p,
body #page-container .et-l--footer li,
body #page-container .et-l--footer .et_pb_text_inner {
  color: var(--ohron-footer-text) !important;
  font-size: 15px;
  line-height: 1.7;
}
body #page-container .et-l--footer h1,
body #page-container .et-l--footer h2,
body #page-container .et-l--footer h3,
body #page-container .et-l--footer h4,
body #page-container .et-l--footer h5,
body #page-container .et-l--footer h6 {
  position: relative;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  margin: 0 0 22px !important;
  padding: 0 0 12px !important;
}
body #page-container .et-l--footer h1::after,
body #page-container .et-l--footer h2::after,
body #page-container .et-l--footer h3::after,
body #page-container .et-l--footer h4::after,
body #page-container .et-l--footer h5::after,
body #page-container .et-l--footer h6::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ohron-footer-accent);
}

/* --- Links (lijsten én losse regels) --- */
body #page-container .et-l--footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body #page-container .et-l--footer li { margin: 0 0 8px !important; padding: 0 !important; }
body #page-container .et-l--footer li a:not(.icon),
body #page-container .et-l--footer p a {
  color: var(--ohron-footer-text) !important;
  text-decoration: none !important;
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}
body #page-container .et-l--footer li a:not(.icon)::before,
body #page-container .et-l--footer .et_pb_text p a:not([href^="mailto"]):not([href^="tel"])::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 2px;
  margin-right: 0;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--ohron-footer-accent);
  transition: width .25s ease, margin .25s ease;
}
body #page-container .et-l--footer li a:hover,
body #page-container .et-l--footer p a:hover { color: #fff !important; }
body #page-container .et-l--footer li a:not(.icon):hover::before,
body #page-container .et-l--footer .et_pb_text p a:not([href^="mailto"]):not([href^="tel"]):hover::before {
  width: 14px;
  margin-right: 8px;
}
/* mail/telefoon: gewoon onderstrepen bij hover */
body #page-container .et-l--footer a[href^="mailto"],
body #page-container .et-l--footer a[href^="tel"] { border-bottom: 1px solid transparent; }
body #page-container .et-l--footer a[href^="mailto"]:hover,
body #page-container .et-l--footer a[href^="tel"]:hover { border-bottom-color: var(--ohron-footer-accent); }

/* --- Logopaneel (kolom met het logo) --- */
body #page-container .et-l--footer .et_pb_section:first-child .et_pb_column:has(.et_pb_image) {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 30px 28px 28px !important;
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .55);
  align-self: flex-start;
}
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) .et_pb_image {
  margin: 0 0 18px !important;
  text-align: left !important;
}
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) .et_pb_image,
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) .et_pb_image img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) .et_pb_image img { max-width: 190px; height: auto; }
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image),
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) p,
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) .et_pb_text_inner {
  color: #333 !important;
  font-size: 15px;
  line-height: 1.6;
}
body #page-container .et-l--footer .et_pb_column:has(.et_pb_image) .et_pb_text { margin-bottom: 0 !important; }

/* --- LinkedIn (Divi Social Follow) — direct onder het e-mailadres --- */
/* De kolom met het icoon als flex-kolom: tekstmodule(s) eerst, icoon als laatste —
   ook als de module in Divi absoluut gepositioneerd of gefloat is. */
body #page-container .et-l--footer .et_pb_column:has(.et_pb_social_media_follow) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body #page-container .et-l--footer .et_pb_column:has(.et_pb_social_media_follow) > .et_pb_module {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
body #page-container .et-l--footer .et_pb_column:has(.et_pb_social_media_follow) > .et_pb_text { order: 1; }
body #page-container .et-l--footer .et_pb_social_media_follow {
  order: 99;
  position: static !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  transform: none !important;
  float: none !important;
  width: auto !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body #page-container .et-l--footer .et_pb_social_media_follow li {
  display: inline-block;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}
body #page-container .et-l--footer .et_pb_social_media_follow li a.icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .35);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
/* Het LinkedIn-logo zelf: Divi's icoonfont (ETmodules), expliciet gezet zodat
   geen andere ::before-regel het kan overschrijven */
body #page-container .et-l--footer .et_pb_social_media_follow_network_linkedin a.icon::before,
body #page-container .et-l--footer .et_pb_social_media_follow li a.icon.et_pb_social_icon_linkedin::before,
body #page-container .et-l--footer .et_pb_social_media_follow li a.icon[title*="LinkedIn" i]::before,
body #page-container .et-l--footer .et_pb_social_media_follow li a.icon[href*="linkedin" i]::before {
  content: "\e09d" !important;
  font-family: ETmodules !important;
  font-weight: 400 !important;
  font-style: normal;
  font-size: 19px !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  position: static !important;
  color: #fff !important;
  display: block !important;
}
body #page-container .et-l--footer .et_pb_social_media_follow li a.icon:hover {
  background: #fff !important;
  border-color: #fff;
  transform: translateY(-2px);
}
body #page-container .et-l--footer .et_pb_social_media_follow li a.icon:hover::before { color: var(--ohron-footer-bg) !important; }
/* Divi's "follow"-tekstknop naast het icoon (indien aan) verbergen */
body #page-container .et-l--footer .et_pb_social_media_follow li a.follow_button { display: none !important; }
/* De tekstmodule erboven zonder extra witruimte onderaan */
body #page-container .et-l--footer .et_pb_column:has(.et_pb_social_media_follow) > .et_pb_text:last-of-type { margin-bottom: 0 !important; }

/* --- Onderbalk (voorwaarden · copyright · taal) --- */
body #page-container .et-l--footer .et_pb_section:not(:first-child),
body #page-container .et-l--footer .et_pb_row:has(.wpml-ls-statics-footer) {
  border-top: 1px solid var(--ohron-footer-line);
}
body #page-container .et-l--footer .et_pb_section:not(:first-child) {
  padding: 18px 0 !important;
  background-color: var(--ohron-footer-bg-deep) !important;
}
body #page-container .et-l--footer .et_pb_section:not(:first-child) p,
body #page-container .et-l--footer .et_pb_section:not(:first-child) .et_pb_text_inner,
body #page-container .et-l--footer .et_pb_row:has(.wpml-ls-statics-footer) p {
  font-size: 13px !important;
  line-height: 1.8;
  color: var(--ohron-footer-muted) !important;
}
body #page-container .et-l--footer .et_pb_section:not(:first-child) a,
body #page-container .et-l--footer .et_pb_row:has(.wpml-ls-statics-footer) a {
  color: var(--ohron-footer-muted) !important;
}
body #page-container .et-l--footer .et_pb_section:not(:first-child) a:hover,
body #page-container .et-l--footer .et_pb_row:has(.wpml-ls-statics-footer) a:hover { color: #fff !important; }
body #page-container .et-l--footer .et_pb_section:not(:first-child) a::before { display: none !important; }

/* WPML-taalkeuze in de footer → kleine pills */
body #page-container .et-l--footer .wpml-ls-statics-footer,
body #page-container .wpml-ls-statics-footer {
  background: transparent !important;
  border: 0 !important;
  padding: 10px 0 0 !important;
  margin: 0 !important;
}
body #page-container .wpml-ls-statics-footer ul { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
body #page-container .wpml-ls-statics-footer li { margin: 0 !important; }
body #page-container .wpml-ls-statics-footer a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 12px !important;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent !important;
  font-size: 12px !important;
  letter-spacing: .06em;
  color: var(--ohron-footer-muted) !important;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body #page-container .wpml-ls-statics-footer a:hover { color: #fff !important; border-color: #fff; }
body #page-container .wpml-ls-statics-footer .wpml-ls-current-language a {
  background: #fff !important;
  border-color: #fff;
  color: var(--ohron-footer-bg) !important;
}
body #page-container .wpml-ls-statics-footer .wpml-ls-flag { height: 12px; width: auto; border-radius: 2px; }

/* --- Responsive --- */
@media (max-width: 980px) {
  body #page-container .et-l--footer .et_pb_section:first-child { padding: 60px 0 40px !important; }
  body #page-container .et-l--footer .et_pb_section:first-child .et_pb_column { margin-bottom: 36px !important; }
  body #page-container .et-l--footer .et_pb_section:first-child .et_pb_column:last-child { margin-bottom: 0 !important; }
}
@media (max-width: 767px) {
  body #page-container .et-l--footer .et_pb_section:first-child { padding: 48px 0 32px !important; }
  body #page-container .et-l--footer .et_pb_section:first-child .et_pb_column:has(.et_pb_image) { padding: 24px 22px !important; }
  body #page-container .et-l--footer h4 { margin-bottom: 16px !important; }
  body #page-container .et-l--footer .et_pb_section:not(:first-child) { text-align: center; }
}

/* Mobiel: footerkolommen onder elkaar i.p.v. 2 aan 2 (overschrijft de kaartenregel uit cards.css) */
@media (max-width: 767px) {
  body #page-container .et-l--footer .et_pb_row_4col { display: block !important; gap: 0 !important; }
  body #page-container .et-l--footer .et_pb_row_4col > .et_pb_column {
    width: 100% !important;
    margin: 0 0 32px !important;
  }
  body #page-container .et-l--footer .et_pb_row_4col > .et_pb_column:last-child { margin-bottom: 0 !important; }
}
