/*
Theme Name: Zu Auerbach
Theme URI: https://zu-auerbach.de
Author: designside
Author URI: https://designside.de
Description: Child theme for Zu Auerbach Advisory GmbH, based on Designoxa.
Template: designoxa
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zu-auerbach
*/

/* =====================================================
   PRIMARY NAV — hierarchical dropdowns
   The child header.php renders each top-level item as a
   .header__nav-item wrapper. Items with children carry the
   .has-dropdown class and contain a .header__nav-dropdown
   panel that reveals on hover / focus-within.
   ===================================================== */
.header__nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header__nav-caret {
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.header__nav-item.has-dropdown:hover .header__nav-caret,
.header__nav-item.has-dropdown:focus-within .header__nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.header__nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  padding: 14px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 100;
}

/* Bridge the gap so the dropdown stays open while the cursor
   moves from the trigger down into the panel. */
.header__nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.header__nav-item.has-dropdown:hover .header__nav-dropdown,
.header__nav-item.has-dropdown:focus-within .header__nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.header__nav-sublink {
  display: block;
  padding: 10px 22px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #2a2a2a;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__nav-sublink::after { display: none !important; }

.header__nav-sublink:hover,
.header__nav-sublink.active {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gold, #b08a4a);
}

/* The parent theme's transparent-header rule paints all nav <a>
   white; keep dropdown links readable on their light panel. */
.header:not(.scrolled):not(.header--inner) .header__nav-dropdown a {
  color: #2a2a2a;
}
.header:not(.scrolled):not(.header--inner) .header__nav-dropdown a:hover,
.header:not(.scrolled):not(.header--inner) .header__nav-dropdown a.active {
  color: var(--gold, #b08a4a);
}

/* Mobile menu — nested children render as indented links */
.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  gap: 0.5rem;
  margin-top: -0.25rem;
}

/* =====================================================
   HEADER — increased presence for logo + nav.
   Overrides parent designoxa/assets/css/header.css.
   Client feedback: "Logo too small/inconspicuous; menu
   bar should have more presence too."
   ===================================================== */
.header { height: 112px; padding: 0 56px; }
.header.scrolled { height: 84px; }

/* Logo — larger on both transparent (homepage) and inner-page headers */
.header__logo img { height: 72px; }
.header.scrolled .header__logo img { height: 56px; }
.header--inner .header__logo img { height: 68px; }
.header--inner.scrolled .header__logo img { height: 54px; }

/* Nav — bolder, slightly larger, more breathing room */
.header__nav { gap: 44px; }
.header__nav a,
.header__nav-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 6px 0;
}

/* CTA — bumped to match the new nav weight */
.header__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 12px 28px;
}

/* Dropdown sublinks scale with the new nav size */
.header__nav-sublink {
  font-size: 13.5px;
  padding: 11px 24px;
  letter-spacing: 0.12em;
}

@media (max-width: 1200px) {
  .header__nav { gap: 32px; }
  .header__nav a, .header__nav-link { font-size: 13px; letter-spacing: 0.12em; }
}

@media (max-width: 1024px) {
  .header { padding: 0 32px; height: 96px; }
  .header.scrolled { height: 76px; }
  .header__logo img { height: 60px; }
  .header--inner .header__logo img { height: 56px; }
}
