/* ==========================================================================
   Wilbert Trading BV - Huisstijl & Custom Formatting (Joomla 6.1)
   ========================================================================== */

/* 1. HUISSTIJL VARIABELEN */
:root {
  --wt-primary: #ff0000;       /* Diep container-blauw #0a2540 */
  --wt-secondary: #0077b6;     /* Helderblauw voor accenten */
  --wt-accent: #ffff00;        /* Industrieel geel accent */
  --wt-dark: #1d2d44;          /* Donkere achtergrond/footer */
  --wt-light: #f8f9fa;         /* Lichte achtergrond */
  --wt-text: #2b2d42;          /* Primaire tekstkleur */
}

/* 2. ALGEMENE TYPOGRAFIE & BASIS */
body {
  color: var(--wt-text);
  background-color: var(--wt-light);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 3. HEADER & LOGO OPTIMALISATIE */
.header {
  background-color: #000000 !important;
  border-bottom: 3px solid var(--wt-secondary);
  padding: 1rem 0;
}

.navbar-brand img {
  max-height: 70px;
  width: auto;
}

.container-header,
.header-wrapper,
.navbar {
  background-color: #000000 !important;
}

/* 4. SOCIALE MEDIA KNOPPEN */
.wt-social-icons {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex !important;
  gap: 12px;
  align-items: center;
  z-index: 10;
}

.wt-social-icons a {
  color: var(--wt-primary);
  background: #e9ecef;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wt-social-icons a:hover {
  background: var(--wt-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .wt-social-icons {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 10px;
  }
}

/* 5. HOOFDMENU STYLING (EERSTE NIVEAU) */
.mod-menu {
  background-color: #000000 !important;
}

/* Enkel de HOOFD-links (eerste niveau) geel maken */
.mod-menu > li > a,
.mod-menu > a,
.nav-menu > li > a {
  color: #FFFF00 !important;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  text-decoration: none;
  background-color: transparent !important;
}

.mod-menu > li > a:hover,
.mod-menu > li.active > a {
  color: #ffffff !important;
  border-bottom: 2px solid #FFFF00;
}

/* 6. SUBMENU / DROPDOWN (SAMENGEVOEGD & DEFINITIEF ZWART) */

/* Overschrijf Bootstrap 5 CSS-variabelen op alle niveau's */
:root,
body,
.navbar,
.mod-menu,
.dropdown-menu {
  --bs-dropdown-bg: #000000 !important;
  --bs-dropdown-color: #FFFF00 !important;
  --bs-dropdown-link-color: #FFFF00 !important;
  --bs-dropdown-link-hover-color: #ffffff !important;
  --bs-dropdown-link-hover-bg: #222222 !important;
  --bs-dropdown-border-color: #FFFF00 !important;
}

/* Dwing de uitgeklapte container (de box) naar ZWART */
html body .mod-menu .dropdown-menu,
html body .navbar .dropdown-menu,
html body ul.dropdown-menu,
html body .dropdown-menu.show,
html body .nav-child,
div.dropdown-menu {
  background-color: #000000 !important;
  background: #000000 !important;
  border: 1px solid #FFFF00 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9) !important;
}

/* Dwing álle elementen/links binnen het uitklapmenu naar GEEL */
html body .dropdown-menu *,
html body .dropdown-menu a,
html body .dropdown-menu li,
html body .dropdown-menu .dropdown-item,
html body .mod-menu .dropdown-menu a,
html body .nav-child a {
  background-color: #000000 !important;
  color: #FFFF00 !important;
  opacity: 1 !important;
}

/* Muis-over (Hover) toestand op submenu-items */
html body .dropdown-menu a:hover,
html body .dropdown-menu li a:hover,
html body .dropdown-menu .dropdown-item:hover,
html body .dropdown-menu .dropdown-item:focus,
html body .nav-child a:hover {
  background-color: #222222 !important;
  color: #ffffff !important;
}

/* 7. CALL-TO-ACTION BUTTONS */
.btn-wt-primary {
  background-color: var(--wt-accent);
  color: #000000 !important;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-wt-primary:hover {
  background-color: #d66c00;
  color: #ffffff !important;
}

/* 8. SP PAGEBUILDER ADMIN OVERRIDES */
.sp-pagebuilder-admin,
.sppb-inputs-wrapper input,
.sppb-inputs-wrapper textarea,
.sppb-inputs-wrapper select,
.sp-pagebuilder-builder-wrapper {
  color: #000000 !important;
}

.sppb-form-group label,
.sppb-editor-sidebar {
  color: #000000 !important;
}

/* 9. FOOTER STYLING (4-KOLOMS GRID) */
.footer-wrapper,
footer.footer,
.site-footer {
  background-color: #0a2540;
  color: #ffffff;
  padding: 20px 0 20px 0;
}

.footer-wrapper .container,
.footer-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px;
}

.footer-wrapper h3,
.footer-wrapper .mod-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 2px solid #f77f00;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-wrapper a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-wrapper a:hover {
  color: #f77f00;
}

@media (max-width: 768px) {
  .footer-wrapper .container,
  .footer-container {
    grid-template-columns: 1fr !important;
  }
}