/*
Theme Name: Montreal Heels Native Header
Template: hello-elementor
Text Domain: montreal-heels-native-header
Description: Lightweight child theme for Montreal Heels Festival. Keeps Hello Elementor for page rendering while replacing the Elementor Pro navigation/header dependency with a native WordPress menu.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
  --mhf-black: #090909;
  --mhf-white: #ffffff;
  --mhf-pink: #e6007e;
  --mhf-pink-soft: #ff4eae;
  --mhf-border: rgba(255,255,255,.16);
}

.mhf-site-header,
.mhf-site-header * { box-sizing: border-box; }

.mhf-site-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  background: var(--mhf-black);
  color: var(--mhf-white);
  border-bottom: 1px solid var(--mhf-border);
}

.mhf-header-inner {
  width: min(100% - 32px, 1400px);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mhf-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.mhf-logo img { display: block; width: 128px; height: auto; max-height: 76px; object-fit: contain; }

.mhf-nav { margin-left: auto; }
.mhf-nav ul { list-style: none; margin: 0; padding: 0; }
.mhf-nav > ul { display: flex; align-items: center; gap: 4px; }
.mhf-nav li { position: relative; }
.mhf-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 12px;
  color: var(--mhf-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
  transition: color .2s ease, background .2s ease;
}
.mhf-nav > ul > li > a:hover,
.mhf-nav > ul > li > a:focus-visible,
.mhf-nav .current-menu-item > a,
.mhf-nav .current-menu-ancestor > a { color: var(--mhf-pink-soft); }

.mhf-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  margin-left: 3px;
}

.mhf-nav .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #111;
  border: 1px solid var(--mhf-border);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0,0,0,.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.mhf-nav li:hover > .sub-menu,
.mhf-nav li:focus-within > .sub-menu,
.mhf-nav li.is-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mhf-nav .sub-menu a { padding: 11px 13px; border-radius: 7px; font-weight: 650; }
.mhf-nav .sub-menu a:hover,
.mhf-nav .sub-menu a:focus-visible { background: rgba(230,0,126,.15); color: var(--mhf-pink-soft); }

.mhf-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mhf-border);
  border-radius: 8px;
  background: transparent;
  color: var(--mhf-white);
  cursor: pointer;
}
.mhf-menu-toggle span,
.mhf-menu-toggle span::before,
.mhf-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.mhf-menu-toggle span::before,
.mhf-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.mhf-menu-toggle span::before { top: -6px; }
.mhf-menu-toggle span::after { top: 6px; }

@media (max-width: 1080px) {
  .mhf-header-inner { min-height: 80px; }
  .mhf-logo img { width: 106px; max-height: 66px; }
  .mhf-menu-toggle { display: inline-flex; }
  .mhf-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 16px 20px;
    background: var(--mhf-black);
    border-top: 1px solid var(--mhf-border);
    box-shadow: 0 16px 35px rgba(0,0,0,.32);
  }
  .mhf-site-header.is-menu-open .mhf-nav { display: block; }
  .mhf-nav > ul { display: block; }
  .mhf-nav a { justify-content: space-between; padding: 13px 10px; font-size: 15px; }
  .mhf-nav .sub-menu {
    position: static;
    min-width: 0;
    margin: 0 0 5px 12px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 1px solid var(--mhf-border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
  }
  .mhf-nav li.is-submenu-open > .sub-menu { display: block; }
  .mhf-nav li:hover > .sub-menu:not(:focus-within) { display: none; }
}
