/**
 * PressureHub Header 5.4.5
 * Header shell, search, actions and mobile header only.
 * Desktop navigation and mega-menu rules live exclusively in navigation.css.
 */

:root {
  --ph-primary: #003b5c;
  --ph-secondary: #003661;
  --ph-accent: #00a7b5;
  --ph-dark: #053a5c;
  --ph-light: #eef3f8;
  --ph-radius: 12px;
  --ph-container: 1188px;
  --ph-topbar-height: 44px;
  --ph-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--ph-font-family); color: var(--ph-secondary); background: #fff; }
a { color: var(--ph-primary); }
img { max-width: 100%; height: auto; }
.dt-container { width: min(var(--ph-container), calc(100% - 48px)); margin-inline: auto; }
.dt-text-center { text-align: center; }
.dt-py-default { padding: 70px 0; }

.ph-header { position: relative; z-index: 50; background: #fff; }
.ph-header, .ph-header * { box-sizing: border-box; }
.ph-header ul, .ph-header li { list-style: none; }
.ph-site-topbar { background: var(--ph-secondary); color: #fff; font-size: 14px; line-height: var(--ph-topbar-height); }
.ph-topbar-inner { min-height: var(--ph-topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ph-topbar-left, .ph-topbar-right { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.ph-topbar-left li, .ph-topbar-right li { margin: 0; padding: 0; }
.ph-site-topbar a, .ph-site-topbar a:visited, .ph-site-topbar .ph-cart-link { color: #fff !important; text-decoration: none; opacity: .94; }
.ph-site-topbar a:hover, .ph-site-topbar .ph-cart-link:hover { color: var(--ph-accent) !important; opacity: 1; }
.ph-cart-link { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.ph-cart-total bdi, .ph-cart-total .woocommerce-Price-amount { font-weight: 900; }

.ph-header-shell { background: #fff; border-bottom: 1px solid rgba(0, 54, 97, .06); }
.ph-header-main { display: grid; align-items: center; }
.ph-logo { display: flex; align-items: center; }
.ph-logo a { display: inline-flex; align-items: center; }
.ph-logo img, .ph-logo .custom-logo { max-width: 225px; max-height: 90px; width: auto; height: auto; display: block; }

.ph-search form { display: flex; width: 100%; height: 54px; border: 1px solid rgba(0, 54, 97, .14); border-radius: 999px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .05); }
.ph-search input[type="search"], .ph-search input[type="text"] { flex: 1; min-width: 0; border: 0; padding: 0 24px; background: #fff; outline: 0; font: inherit; font-size: 15px; color: var(--ph-secondary); }
.ph-search button, .ph-search input[type="submit"] { border: 0; background: var(--ph-primary); color: #fff; font: inherit; font-size: 16px; font-weight: 800; padding: 0 35px; border-radius: 999px; cursor: pointer; }
.ph-search button:hover, .ph-search input[type="submit"]:hover { background: var(--ph-secondary); }

.ph-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.ph-actions a { color: var(--ph-secondary); text-decoration: none; display: inline-flex; align-items: center; }
.ph-actions a:hover { color: var(--ph-primary); }
.ph-mobile-toggle, .ph-header-main--mobile { display: none; }
.ph-hide-on-mobile { display: block; }
.ph-icon { width: 1em; height: 1em; display: inline-block; fill: currentColor; flex: 0 0 auto; }
.ph-header-icon { font-size: 28px; }

/* v0.3.0 - Mobile hamburger + accordion menu */
@media (max-width:991.98px){
  .ph-mobile-toggle{width:48px!important;height:48px!important;padding:0!important;border-radius:14px!important;background:var(--ph-primary)!important;box-shadow:0 10px 22px rgba(0,167,181,.25)!important;}
  .ph-hamburger{display:flex;flex-direction:column;gap:5px;width:23px;}
  .ph-hamburger span{display:block;height:3px;border-radius:999px;background:#fff;transition:transform .2s ease,opacity .2s ease;}
  .ph-mobile-toggle[aria-expanded="true"] .ph-hamburger span:nth-child(1){transform:translateY(8px) rotate(45deg);}
  .ph-mobile-toggle[aria-expanded="true"] .ph-hamburger span:nth-child(2){opacity:0;}
  .ph-mobile-toggle[aria-expanded="true"] .ph-hamburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
  .ph-header-main--mobile{box-shadow:0 20px 35px rgba(0,54,97,.12);}
  .ph-mobile-menu-list li{position:relative;border-bottom:1px solid rgba(0,54,97,.08);}
  .ph-mobile-menu-list a{padding:14px 48px 14px 0!important;border-bottom:0!important;}
  .ph-mobile-menu-list .sub-menu{display:none!important;padding:0 0 8px 18px!important;}
  .ph-mobile-menu-list li.ph-mobile-open>.sub-menu{display:block!important;}
  .ph-mobile-sub-toggle{position:absolute;right:0;top:6px;width:40px;height:40px;border:0;border-radius:12px;background:rgba(0,167,181,.09);color:var(--ph-secondary);font-weight:900;font-size:20px;line-height:1;}
  .ph-mobile-sub-toggle[aria-expanded="true"]{background:var(--ph-primary);color:#fff;}
}
/* 0.6.5 topbar color safety */
.ph-site-topbar a,.ph-site-topbar a:visited,.ph-site-topbar .ph-cart-link{color:#fff!important;}
.ph-site-topbar a:hover,.ph-site-topbar .ph-cart-link:hover{color:var(--ph-accent)!important;}


/* PressureHub 0.6.9 – robust mobile multi-level navigation */
@media (max-width:991.98px){
  #ph-mobile-menu[hidden]{display:none!important;}
  #ph-mobile-menu.is-open{display:block!important;}
  .ph-mobile-menu-list,
  .ph-mobile-menu-list ul{list-style:none!important;margin:0!important;}
  .ph-mobile-menu-list{padding:4px 0 0!important;}
  .ph-mobile-menu-list li{position:relative!important;border-bottom:1px solid rgba(0,54,97,.08)!important;}
  .ph-mobile-menu-list a{display:block!important;padding:14px 52px 14px 0!important;border:0!important;color:var(--ph-secondary)!important;text-decoration:none!important;font-weight:700!important;line-height:1.25!important;}
  .ph-mobile-menu-list .sub-menu,
  .ph-mobile-menu-list .children{display:none!important;padding:0 0 10px 18px!important;}
  .ph-mobile-menu-list li.ph-mobile-open > .sub-menu,
  .ph-mobile-menu-list li.ph-mobile-open > .children{display:block!important;}
  .ph-mobile-menu-list .sub-menu a,
  .ph-mobile-menu-list .children a{font-size:.94rem!important;font-weight:650!important;padding-top:11px!important;padding-bottom:11px!important;}
  .ph-mobile-menu-list .sub-menu .sub-menu,
  .ph-mobile-menu-list .children .children{padding-left:16px!important;}
  .ph-mobile-sub-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:absolute!important;right:0!important;top:7px!important;width:38px!important;height:38px!important;border:0!important;border-radius:12px!important;background:rgba(0,167,181,.10)!important;color:var(--ph-primary)!important;font-size:20px!important;font-weight:800!important;line-height:1!important;padding:0!important;}
  .ph-mobile-sub-toggle[aria-expanded="true"]{background:var(--ph-accent)!important;color:#fff!important;}
}

/* PressureHub 0.7.0 – Mobile UX header/search/menu */
.ph-mobile-search-toggle{display:none;align-items:center;justify-content:center;border:0;background:transparent;color:var(--ph-accent);padding:0;cursor:pointer;}
.ph-mobile-search-panel{background:#fff;border-top:1px solid rgba(0,54,97,.08);border-bottom:1px solid rgba(0,54,97,.08);box-shadow:0 16px 34px rgba(0,54,97,.10);padding:12px 0;}
.ph-mobile-search-panel[hidden]{display:none!important;}
.ph-mobile-search-panel form{display:flex;width:100%;height:48px;border:1px solid rgba(0,54,97,.14);border-radius:14px;overflow:hidden;background:#fff;}
.ph-mobile-search-panel input[type=search],.ph-mobile-search-panel input[type=text]{flex:1;border:0;min-width:0;padding:0 14px;}
.ph-mobile-search-panel button[type=submit],.ph-mobile-search-panel .search-submit{border:0;background:var(--ph-primary);color:#fff;padding:0 16px;font-weight:700;}
.ph-mobile-cart-link{position:relative;}
.ph-mobile-cart-count{display:none;position:absolute;right:-9px;top:-7px;min-width:18px;height:18px;border-radius:999px;background:var(--ph-accent);color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;}

@media (max-width:991.98px){
  .ph-hide-on-mobile{display:none!important;}
  .ph-header-main{display:grid!important;grid-template-columns:48px minmax(120px,1fr) auto!important;grid-template-areas:'toggle logo actions'!important;min-height:76px!important;padding:10px 0!important;gap:10px!important;align-items:center!important;}
  .ph-mobile-toggle{grid-area:toggle!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--ph-primary)!important;box-shadow:none!important;}
  .ph-logo{grid-area:logo!important;justify-content:center!important;min-width:0!important;}
  .ph-logo img,.ph-logo .custom-logo{max-width:170px!important;max-height:58px!important;}
  .ph-search,.ph-nav{display:none!important;}
  .ph-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;align-self:center!important;}
  .ph-actions a,.ph-actions button{display:inline-flex!important;width:36px!important;height:36px!important;align-items:center!important;justify-content:center!important;color:var(--ph-accent)!important;text-decoration:none!important;}
  .ph-mobile-search-toggle{display:inline-flex!important;}
  .ph-mobile-cart-count{display:block;}

  #ph-mobile-menu[hidden]{display:none!important;}
  #ph-mobile-menu.is-open{display:block!important;}
  .ph-header-main--mobile{background:#fff!important;border-top:1px solid rgba(0,54,97,.08)!important;box-shadow:0 18px 34px rgba(0,54,97,.10)!important;padding:6px 0 14px!important;}
  .ph-header-main--mobile .dt-container{width:min(100% - 28px, var(--ph-container))!important;}
  .ph-mobile-menu-list,.ph-mobile-menu-list ul{list-style:none!important;margin:0!important;padding:0!important;}
  .ph-mobile-menu-list li{position:relative!important;border-bottom:1px solid rgba(0,54,97,.08)!important;}
  .ph-mobile-menu-list a{display:block!important;padding:15px 52px 15px 0!important;color:var(--ph-primary)!important;text-decoration:none!important;font-weight:750!important;line-height:1.25!important;overflow-wrap:anywhere!important;}
  .ph-mobile-menu-list .sub-menu,.ph-mobile-menu-list .children{display:none!important;padding:0 0 8px 18px!important;border-left:2px solid rgba(0,167,181,.16)!important;margin:0 0 8px!important;}
  .ph-mobile-menu-list li.ph-mobile-open > .sub-menu,.ph-mobile-menu-list li.ph-mobile-open > .children{display:block!important;}
  .ph-mobile-menu-list .sub-menu a,.ph-mobile-menu-list .children a{font-size:.95rem!important;font-weight:650!important;padding-top:10px!important;padding-bottom:10px!important;color:#24475e!important;}
  .ph-mobile-menu-list .sub-menu .sub-menu,.ph-mobile-menu-list .children .children{margin-left:10px!important;padding-left:14px!important;}
  .ph-mobile-sub-toggle,.ph-header-main--mobile .ph-submenu-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:absolute!important;right:0!important;top:7px!important;width:40px!important;height:40px!important;border:0!important;border-radius:12px!important;background:rgba(0,167,181,.10)!important;color:var(--ph-primary)!important;font-size:20px!important;font-weight:800!important;line-height:1!important;padding:0!important;transform:none!important;z-index:2!important;}
  .ph-mobile-sub-toggle[aria-expanded="true"],.ph-header-main--mobile .ph-submenu-toggle[aria-expanded="true"]{background:var(--ph-accent)!important;color:#fff!important;}
}

/* PressureHub 0.7.3 – isolated mobile navigation accordion (does not affect desktop) */
@media (max-width: 991.98px){
  #ph-mobile-menu .ph-mobile-nav,
  #ph-mobile-menu .ph-mobile-nav ul{
    list-style:none!important;
    margin:0!important;
    padding:0!important;
  }
  #ph-mobile-menu .ph-mobile-nav{display:block!important;width:100%!important;}
  #ph-mobile-menu .phm-item{display:block!important;position:relative!important;border-bottom:1px solid rgba(0,54,97,.08)!important;}
  #ph-mobile-menu .phm-row{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;}
  #ph-mobile-menu .phm-link{flex:1 1 auto!important;min-width:0!important;display:block!important;padding:15px 0!important;border:0!important;color:var(--ph-primary)!important;text-decoration:none!important;font-weight:700!important;line-height:1.25!important;overflow-wrap:anywhere!important;}
  #ph-mobile-menu .phm-toggle{flex:0 0 40px!important;width:40px!important;height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:12px!important;background:rgba(0,167,181,.10)!important;color:var(--ph-primary)!important;font-size:20px!important;font-weight:800!important;line-height:1!important;padding:0!important;box-shadow:none!important;}
  #ph-mobile-menu .phm-toggle[aria-expanded="true"]{background:var(--ph-accent)!important;color:#fff!important;}
  #ph-mobile-menu .phm-submenu{display:none!important;margin:0 0 8px!important;padding:0 0 0 18px!important;border-left:2px solid rgba(0,167,181,.16)!important;}
  #ph-mobile-menu .phm-item.phm-open > .phm-submenu{display:block!important;}
  #ph-mobile-menu .phm-submenu[hidden]{display:none!important;}
  #ph-mobile-menu .phm-item.phm-open > .phm-submenu[hidden]{display:block!important;}
  #ph-mobile-menu .phm-depth-1 .phm-link{font-size:.95rem!important;font-weight:650!important;color:#24475e!important;padding-top:11px!important;padding-bottom:11px!important;}
  #ph-mobile-menu .phm-depth-2 .phm-link,
  #ph-mobile-menu .phm-depth-3 .phm-link,
  #ph-mobile-menu .phm-depth-4 .phm-link{font-size:.92rem!important;font-weight:600!important;color:#33566b!important;padding-top:10px!important;padding-bottom:10px!important;}
}


/* PressureHub 5.1.0 – desktop header split into brand/search row and full-width navigation row */
@media (min-width: 992px){
  .ph-header-main{
    position:relative!important;
    display:grid!important;
    grid-template-columns:240px minmax(0,1fr) auto!important;
    grid-template-areas:
      'logo search search'
      'nav nav actions'!important;
    align-items:center!important;
    column-gap:28px!important;
    row-gap:14px!important;
    min-height:150px!important;
    padding:22px 0 14px!important;
  }
  .ph-logo{grid-area:logo!important;}
  .ph-search{
    grid-area:search!important;
    align-self:center!important;
    width:100%!important;
  }
  .ph-navigation,.ph-nav{
    grid-area:nav!important;
    align-self:center!important;
    min-width:0!important;
    width:100%!important;
  }
  .ph-actions{
    grid-area:actions!important;
    align-self:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:20px!important;
    padding-left:20px!important;
    border-left:1px solid rgba(0,54,97,.10)!important;
  }
  .ph-actions a{
    width:38px!important;
    height:38px!important;
    justify-content:center!important;
    color:var(--ph-accent,var(--dt-main-color,#00a7b5))!important;
  }
  .ph-actions a:hover,.ph-actions a:focus-visible{
    color:var(--ph-secondary,var(--dt-secondary-color,#003661))!important;
  }
  .ph-actions .ph-header-icon{font-size:27px!important;}
  .ph-mobile-search-toggle{display:none!important;}
}

@media (min-width: 992px) and (max-width:1199px){
  .ph-header-main{
    grid-template-columns:210px minmax(0,1fr) auto!important;
    column-gap:20px!important;
  }
  .ph-actions{gap:14px!important;padding-left:14px!important;}
}

/* PressureHub 5.3.1 – mobile menu hierarchy without visible submenu frames */
@media (max-width: 991.98px){
  /* Submenus are indented by level, but no decorative DIV/border frame is shown. */
  #ph-mobile-menu .phm-submenu,
  #ph-mobile-menu .ph-mobile-nav .sub-menu,
  #ph-mobile-menu .ph-mobile-nav .children{
    border:0!important;
    border-left:0!important;
    box-shadow:none!important;
    background:transparent!important;
    margin:0!important;
    padding-top:0!important;
    padding-right:0!important;
    padding-bottom:8px!important;
  }

  #ph-mobile-menu .phm-depth-0 > .phm-submenu,
  #ph-mobile-menu .ph-mobile-nav > li > .sub-menu,
  #ph-mobile-menu .ph-mobile-nav > li > .children{
    padding-left:18px!important;
  }

  #ph-mobile-menu .phm-depth-1 > .phm-submenu,
  #ph-mobile-menu .ph-mobile-nav > li > .sub-menu > li > .sub-menu,
  #ph-mobile-menu .ph-mobile-nav > li > .children > li > .children{
    padding-left:18px!important;
  }

  #ph-mobile-menu .phm-depth-2 > .phm-submenu,
  #ph-mobile-menu .phm-depth-3 > .phm-submenu{
    padding-left:16px!important;
  }

  /* Only main navigation entries retain a separator. Child entries stay visually clean. */
  #ph-mobile-menu .phm-submenu .phm-item,
  #ph-mobile-menu .ph-mobile-nav .sub-menu li,
  #ph-mobile-menu .ph-mobile-nav .children li{
    border:0!important;
    border-bottom:0!important;
    outline:0!important;
  }

  /* Typography reinforces the hierarchy in addition to indentation. */
  #ph-mobile-menu .phm-depth-0 > .phm-row > .phm-link{
    font-size:1rem!important;
    font-weight:750!important;
    color:var(--ph-secondary,var(--dt-secondary-color,#003661))!important;
  }
  #ph-mobile-menu .phm-depth-1 > .phm-row > .phm-link{
    font-size:.96rem!important;
    font-weight:700!important;
    color:var(--ph-secondary,var(--dt-secondary-color,#003661))!important;
  }
  #ph-mobile-menu .phm-depth-2 > .phm-row > .phm-link{
    font-size:.93rem!important;
    font-weight:550!important;
    color:#24475e!important;
  }
  #ph-mobile-menu .phm-depth-3 > .phm-row > .phm-link,
  #ph-mobile-menu .phm-depth-4 > .phm-row > .phm-link{
    font-size:.9rem!important;
    font-weight:500!important;
    color:#33566b!important;
  }
}

