/**
 * Theme Name:   Astra Child
 * Theme URI:    https://wpastra.com/
 * Description:  Astra Child Theme
 * Author:       Your Name
 * Author URI:   https://example.com
 * Template:     astra
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  astra-child
 * Tags:         custom-menu, custom-logo, entertainment, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
 */

/* Add your custom styles below this line */

/* =========================
   TOPBAR full width + oranje
   ========================= */

.artemis-topbar{
  width: 100%;
  background: #F7941D;
  border-bottom: none;
}

.artemis-topbar-inner{
  max-width: 1200px; /* hou jouw containerbreedte */
  margin: 0 auto;
  padding: 5px 20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.artemis-topbar-left,
.artemis-topbar-left a{
  color: #fff;
}

.artemis-topbar-left a{
  text-decoration: none;
}

.artemis-topbar-sep{
  color: rgba(255,255,255,0.8);
}

/* top-menu in topbar (geen bullets, wit) */
.artemis-topbar-right .artemis-top-menu{
  display:flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.artemis-topbar-right .artemis-top-menu li{
  list-style: none;
}

.artemis-topbar-right .artemis-top-menu a{
  color: #fff;
  text-decoration: none;
}

.artemis-topbar-right .artemis-top-menu a:hover{
  text-decoration: underline;
}


/* =========================
   MAIN NAV: rechts uitlijnen + rood
   ========================= */

.artemis-header-inner{
  max-width: 1200px; /* hou jouw containerbreedte */
  margin: 0 auto;
  padding: 16px 20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.artemis-header-left{
  display:flex;
  align-items:center;
  gap: 28px;
  flex: 1;
  min-width: 0;
}

/* nav neemt de resterende ruimte en duwt items naar rechts */
.artemis-primary-nav{
  flex: 1;
  min-width: 0;
}

.artemis-primary-nav .artemis-primary-menu{
  display:flex;
  justify-content: flex-end; /* <- rechts */
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.artemis-primary-nav .artemis-primary-menu li{
  list-style: none; /* geen bullets */
  margin: 0;
  padding: 0;
  position: relative;
}

.artemis-primary-nav .artemis-primary-menu > li > a{
  color: #BE1E2D;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
}

/* hover effect: oranje achtergrond */
.artemis-primary-nav .artemis-primary-menu > li > a:hover,
.artemis-primary-nav .artemis-primary-menu > li:hover > a{
  background: #F7941D;
  color: #fff; /* beter contrast */
}


/* =========================
   DROPDOWN: pijltje + geen list style
   ========================= */

/* Astra/WP voegt vaak sub-menu toe */
.artemis-primary-nav .artemis-primary-menu .sub-menu{
  list-style: none;
  margin: 8px 0 0 0;
  padding: 8px 0;
  min-width: 220px;
}

.artemis-primary-nav .artemis-primary-menu .sub-menu li{
  list-style: none;
}

/* dropdown links */
.artemis-primary-nav .artemis-primary-menu .sub-menu a{
  display:block;
  padding: 10px 14px;
  text-decoration: none;
  color: #BE1E2D;
}

.artemis-primary-nav .artemis-primary-menu .sub-menu a:hover{
  background: #F7941D;
  color: #fff;
}

/* Klein pijltje bij items met dropdown (zonder extra HTML) */
.artemis-primary-nav .artemis-primary-menu > li.menu-item-has-children > a::after{
  content: "▾";
  font-size: 0.75em;
  line-height: 1;
  opacity: 0.9;
}

/* (Optioneel) als Astra een toggle/arrow span injecteert: verberg die om dubbele pijltjes te voorkomen */
.artemis-primary-nav .dropdown-menu-toggle,
.artemis-primary-nav .ast-header-navigation-arrow{
  display: none !important;
}


/* =========================
   Mobile: behoud jouw gedrag
   ========================= */
@media (max-width: 991px){
  .artemis-topbar-right{ display:none; } /* optioneel */
  .artemis-primary-nav{ display:none; }  /* main menu verbergen; mobile panel gebruikt primary */
}

/* 1) Submenu hover: tekst moet rood blijven (niet wit) */
.artemis-primary-nav .artemis-primary-menu .sub-menu a:hover,
.artemis-primary-nav .artemis-primary-menu .sub-menu li:hover > a{
  background: #F7941D;
  color: #BE1E2D; /* <- rood op hover */
}

/* 2) Oranje topbar full width (balk) */
.artemis-topbar{
  background: #F7941D;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Dropdown stabiel houden: gap weg + hover bridge */
.artemis-primary-nav .artemis-primary-menu > li.menu-item-has-children{
  position: relative;
}

/* haal typische gap weg */
.artemis-primary-nav .artemis-primary-menu > li.menu-item-has-children > .sub-menu{
  margin-top: 0 !important;   /* <- was vaak de boosdoener */
  top: 100%;                 /* direct onder het item */
}

/* hover-bridge: onzichtbare zone tussen item en submenu */
.artemis-primary-nav .artemis-primary-menu > li.menu-item-has-children::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;              /* vergroot indien nodig (8-14px is ideaal) */
  background: transparent;
}

/* submenu tonen bij hover op parent (en blijft open als je in submenu zit) */
.artemis-primary-nav .artemis-primary-menu > li.menu-item-has-children:hover > .sub-menu,
.artemis-primary-nav .artemis-primary-menu > li.menu-item-has-children:focus-within > .sub-menu{
  display: block;
}