/*
Theme Name: Baobab Advisory Group Editable
Theme URI: https://www.baobabadvisorygroup.co.za/
Author: Baobab Advisory Group
Description: Editable WordPress version of the Baobab Advisory Group website. Page content, menus, logo and contact details can be changed in WordPress.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: baobab-editable
*/

/* WordPress-specific additions. The main site design is in assets/styles.css. */
.primary-nav .menu,
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li { position: relative; }
.primary-nav li a { display: block; }
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + .8rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 205px;
  padding: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(12,41,48,.15);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { display: grid; }
.primary-nav .sub-menu a { padding: .6rem .7rem; white-space: nowrap; }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--coral); }
.primary-nav .menu > li:last-child > a {
  padding: .8rem 1rem;
  background: var(--ink);
  color: #fff;
}
.primary-nav .menu > li:last-child > a:hover { background: var(--coral); }

.unified-footer .menu,
.unified-footer ul { margin: 0; padding: 0; list-style: none; }
.unified-footer li + li { margin-top: .45rem; }
.custom-logo { height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .primary-nav .menu,
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .sub-menu {
    display: grid;
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--coral);
    margin-left: .65rem;
    padding: 0 0 0 .5rem;
  }
}
