/* ============================================================
   MPH Universal Header
   Loaded only on /mph/ pages via wp_enqueue_scripts hook.
   Palette sampled from www.myperfumehouse.com landing page.
   ============================================================ */

:root {
    --mph-noir: #1f1611;
    --mph-noir-2: #2b1e17;
    --mph-cognac: #c99850;
    --mph-cognac-2: #b8863f;
    --mph-cream: #f4ece0;
    --mph-line: #e0d4c1;
    --mph-gold: #c99850;
}

/* ---------- Header shell ---------- */

.mph-header {
    position: fixed;           /* was sticky — fixed overlays the hero so transparent reads over dark */
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: transparent;
    height: 88px;
    border-bottom: 1px solid transparent;
    transition:
        background-color .22s ease,
        height .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

/* WP admin bar offset (only shows when logged in) */
body.admin-bar .mph-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .mph-header { top: 46px; }
}

.mph-header.is-scrolled {
    background: var(--mph-cream);
    height: 68px;
    border-bottom-color: var(--mph-line);
    box-shadow: 0 4px 20px rgba(31, 22, 17, .06);
}

/* ---------- Logo ---------- */

.mph-logo {
    font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    color: var(--mph-cream);
    line-height: 1;
    font-weight: 600;
    letter-spacing: .02em;
    font-size: 34px;
    text-decoration: none;
    transition: font-size .22s ease, color .22s ease;
}

.mph-logo small {
    display: block;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 9px;
    letter-spacing: .28em;
    margin-top: 2px;
    font-weight: 400;
    transition: font-size .22s ease, opacity .22s ease;
}

.mph-header.is-scrolled .mph-logo {
    font-size: 26px;
    color: var(--mph-noir);
}

.mph-header.is-scrolled .mph-logo small {
    font-size: 8px;
    opacity: .85;
}

/* ---------- Nav ---------- */

.mph-nav {
    display: flex;
}

.mph-nav .mph-nav-list,
.mph-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mph-nav a {
    text-decoration: none;
    color: var(--mph-cream);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
    transition: color .22s ease;
    display: inline-block;
}

.mph-nav .current-menu-item > a,
.mph-nav a[aria-current="page"] {
    color: var(--mph-gold);
}

.mph-nav .current-menu-item > a::after,
.mph-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--mph-gold);
}

.mph-header.is-scrolled .mph-nav a {
    color: var(--mph-noir);
}

.mph-header.is-scrolled .mph-nav .current-menu-item > a,
.mph-header.is-scrolled .mph-nav a[aria-current="page"] {
    color: var(--mph-cognac-2);
}

.mph-header.is-scrolled .mph-nav .current-menu-item > a::after,
.mph-header.is-scrolled .mph-nav a[aria-current="page"]::after {
    background: var(--mph-cognac-2);
}

.mph-nav a:hover {
    color: var(--mph-gold);
}

/* ---------- Right cluster (cart + CTA + burger) ---------- */

.mph-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mph-cart {
    color: var(--mph-cream);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 6px;
    transition: color .22s ease;
}

.mph-cart svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.mph-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mph-cognac);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.mph-header.is-scrolled .mph-cart {
    color: var(--mph-noir);
}

.mph-cta {
    background: var(--mph-cognac);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 2px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background .18s ease, transform .18s ease;
}

.mph-cta:hover {
    background: var(--mph-cognac-2);
    transform: translateY(-1px);
}

/* ---------- Focus rings ---------- */

.mph-cta:focus-visible,
.mph-cart:focus-visible,
.mph-nav a:focus-visible,
.mph-burger:focus-visible,
.mph-logo:focus-visible,
.drawer-nav a:focus-visible,
.drawer-cta:focus-visible,
.drawer-close:focus-visible {
    outline: 2px solid var(--mph-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Burger button ---------- */

.mph-burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--mph-cream);
    transition: color .22s ease;
}

.mph-header.is-scrolled .mph-burger {
    color: var(--mph-noir);
}

.mph-burger svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* ---------- Mobile drawer ---------- */

.mph-drawer[hidden] {
    display: none;
}

.mph-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--mph-noir);
    color: var(--mph-cream);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s ease;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

.mph-drawer.is-open {
    transform: translateX(0);
}

body.mph-drawer-open {
    overflow: hidden;
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.drawer-logo {
    font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    font-size: 24px;
    color: var(--mph-cream);
    font-weight: 600;
    text-decoration: none;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--mph-cream);
    font-size: 32px;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
}

.drawer-nav {
    padding: 12px 24px;
    flex: 1;
    overflow-y: auto;
}

.drawer-nav .drawer-nav-list,
.drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.drawer-nav a {
    color: var(--mph-cream);
    text-decoration: none;
    font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    font-size: 26px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(244, 236, 224, .1);
    font-weight: 500;
    display: block;
    min-height: 44px;
}

.drawer-nav .current-menu-item > a {
    color: var(--mph-gold);
}

.drawer-bottom {
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(244, 236, 224, .1);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-cta {
    display: block;
    background: var(--mph-cognac);
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
}

.drawer-cart {
    color: #a99e8c;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 8px;
}

.drawer-cart-badge {
    background: var(--mph-cognac);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .mph-header {
        padding: 0 20px;
        height: 72px;
    }
    .mph-header.is-scrolled {
        height: 60px;
    }
    .mph-logo {
        font-size: 26px;
    }
    .mph-header.is-scrolled .mph-logo {
        font-size: 22px;
    }
    .mph-nav,
    .mph-cart,
    .mph-cta {
        display: none;
    }
    .mph-burger {
        display: inline-flex;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .mph-header,
    .mph-drawer,
    .mph-logo,
    .mph-nav a,
    .mph-cart,
    .mph-cta,
    .mph-burger {
        transition: none !important;
    }
}


/* ---------- Dropdown submenu (About) ---------- */

.mph-nav .mph-nav-list > li { position: relative; }

.mph-header .mph-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 230px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--mph-cream);
  border: 1px solid var(--mph-line);
  box-shadow: 0 12px 28px rgba(31, 22, 17, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}

/* Invisible bridge so the menu does not close while the pointer travels down to it */
.mph-nav .mph-nav-list > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
}

.mph-nav .mph-nav-list > li:hover > .sub-menu,
.mph-nav .mph-nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mph-header .mph-nav .sub-menu a,
.mph-header.is-scrolled .mph-nav .sub-menu a {
  display: block;
  padding: 11px 22px;
  white-space: nowrap;
  color: var(--mph-noir);
}

.mph-header .mph-nav .sub-menu a:hover,
.mph-header.is-scrolled .mph-nav .sub-menu a:hover {
  color: var(--mph-cognac-2);
  background: rgba(201, 152, 80, .10);
}

/* Small caret on parent items */
.mph-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.mph-nav .menu-item-has-children > a { margin-right: 14px; }

/* Mobile drawer: children listed under the parent */
.drawer-nav .sub-menu {
  padding-left: 18px;
  gap: 0;
}
.drawer-nav .sub-menu a {
  font-size: 20px;
  padding: 10px 0;
  opacity: .85;
}


/* ---------- Logo images (light/dark swap) ---------- */
.mph-header .mph-logo{position:relative;display:flex;align-items:center;line-height:0;flex-shrink:0}
.mph-header .mph-logo-img{display:block;height:56px;width:auto;max-width:none;transition:opacity .22s ease}
.mph-header .mph-logo-img--dark{position:absolute;top:0;left:0;opacity:0;pointer-events:none}
.mph-header.is-scrolled .mph-logo-img--light{opacity:0}
.mph-header.is-scrolled .mph-logo-img--dark{opacity:1}
@media (max-width:782px){.mph-header .mph-logo-img{height:44px}}


/* ---------- Footer column 5: logo, address, hours, phone ---------- */
.mph-footer-col--store{font-size:14px;line-height:1.6;color:#d9cdb8}
.mph-footer-col--store .mph-footer-logo{display:inline-block;margin:0 0 18px;line-height:0}
.mph-footer-col--store .mph-footer-logo img{display:block;width:150px;max-width:100%;height:auto}
.mph-footer-col--store address{font-style:normal;margin:0 0 12px}
.mph-footer-col--store .mph-footer-hours{margin:0 0 12px}
.mph-footer-col--store .mph-footer-phone{margin:0}
.mph-footer-col--store .mph-footer-phone a{color:inherit;text-decoration:none}
.mph-footer-col--store .mph-footer-phone a:hover{color:var(--mph-gold)}
.mph-footer-col--store .mph-footer-hours{font-size:12.5px;letter-spacing:-0.01em}
