/* BuildMyStore header only. Edit nav appearance here. */
.bms-wp-header { position:relative; width:100vw; margin-left:calc(50% - 50vw); z-index:99; padding:20px 16px 4px; background:transparent; }
.admin-bar .bms-wp-header { top:32px; }
.bms-wp-nav { position:relative; max-width:1280px; margin:auto; min-height:72px; border:1px solid rgba(255,255,255,.7); outline:1px solid rgba(0,0,0,.045); border-radius:16px; padding:8px 16px; display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,.84); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); box-shadow:0 4px 30px rgba(0,0,0,.1); transition:padding .25s, box-shadow .25s; }
.bms-wp-header.is-scrolled .bms-wp-nav { padding-top:5px; padding-bottom:5px; box-shadow:0 0 24px rgba(34,42,53,.06),0 4px 20px rgba(0,0,0,.1); }
.bms-wp-navlinks { display:flex; justify-content:center; align-items:center; gap:8px; position:absolute; inset:0; pointer-events:none; }
.bms-wp-navlinks > * { pointer-events:auto; }
.bms-wp-navlinks { position:absolute; }
.bms-wp-navlink, .bms-wp-dropdown-toggle { display:flex; align-items:center; gap:5px; border:0; background:transparent; padding:10px 14px; color:#52525b!important; border-radius:999px; font-size:14px; font-weight:600; line-height:1.2; }
.bms-wp-navlink:hover, .bms-wp-dropdown:hover > .bms-wp-dropdown-toggle, .bms-wp-dropdown:focus-within > .bms-wp-dropdown-toggle, .bms-wp-dropdown.is-open > .bms-wp-dropdown-toggle { background:#f4f4f5; color:#27272a!important; }
.bms-wp-navlink svg { transition:transform .2s; }
.bms-wp-dropdown:hover .bms-wp-dropdown-toggle svg, .bms-wp-dropdown.is-open .bms-wp-dropdown-toggle svg { transform:rotate(180deg); }
.bms-wp-dropdown { position:static; }
.bms-wp-dropdown > summary { list-style:none; cursor:pointer; }
.bms-wp-dropdown > summary::-webkit-details-marker { display:none; }
.bms-wp-dropdown[open] > .bms-wp-mega-holder { opacity:1;visibility:visible;pointer-events:auto; }
.bms-wp-dropdown[open] > .bms-wp-dropdown-toggle { background:#f4f4f5; }
.bms-wp-dropdown[open] > .bms-wp-dropdown-toggle svg { transform:rotate(180deg); }
.bms-wp-mega-holder { position:absolute; top:100%; left:50%; width:min(1140px, calc(100vw - 38px)); padding-top:15px; transform:translateX(-50%); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s,visibility .18s; }
.bms-wp-dropdown:hover .bms-wp-mega-holder, .bms-wp-dropdown:focus-within .bms-wp-mega-holder, .bms-wp-dropdown.is-open .bms-wp-mega-holder { opacity:1; visibility:visible; pointer-events:auto; }
.bms-wp-mega { max-height:min(72vh,750px); overflow:auto; border:1px solid #e5e7eb; background:#fff; border-radius:22px; box-shadow:0 18px 60px rgba(0,0,0,.16); padding:30px; }
.bms-wp-solution-layout { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:26px; }
.bms-wp-solution-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.bms-wp-mega-heading { text-transform:uppercase; letter-spacing:.15em; font-size:10px!important; font-weight:800!important; padding-bottom:12px; margin:0 0 18px; color:#a1a1aa; border-bottom:1px solid #f4f4f5; }
.bms-wp-mega-item { display:flex; align-items:flex-start; gap:10px; padding:9px 0; color:#27272a; }
.bms-wp-mega-item img { flex:0 0 42px; width:42px!important; height:42px!important; border-radius:10px; object-fit:cover; background:#fafafa; }
.bms-wp-mega-item strong { display:block; font-size:13px; font-weight:750; line-height:1.4; color:#242428; }
.bms-wp-mega-item small { display:block; color:#71717a; font-size:11px; line-height:1.45; margin-top:3px; }
.bms-wp-mega-item[href]:hover strong { color:#ed2939; }
.bms-wp-industries-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 26px; }
.bms-wp-featured { border-left:1px solid #e4e4e7; padding-left:22px; }
.bms-wp-featured-inner { background:#fafafa; border-radius:22px; padding:20px; height:100%; display:flex; flex-direction:column; justify-content:space-between; }
.bms-wp-featured-inner strong { font-size:16px; color:#18181b; }
.bms-wp-featured-inner p { color:#71717a; font-size:12px; line-height:1.55; margin:9px 0 20px; }
.bms-wp-featured-symbol { color:#ed2939; font-size:32px; display:block; line-height:1; margin-bottom:18px; }
.bms-wp-actions { display:flex; align-items:center; gap:6px; position:relative; z-index:2; }
.bms-wp-icon-link { display:flex!important; justify-content:center; align-items:center; width:40px; height:40px; border-radius:50%; color:#3f3f46!important; transition:background .2s; }
.bms-wp-icon-link:hover { background:#f4f4f5; }
.bms-wp-icon-link img { width:24px!important; height:24px!important; object-fit:contain; }
.bms-wp-mobile-details { display:none; }
.bms-wp-mobile-toggle { display:none; border:0; background:transparent; width:38px; height:38px; align-items:center; justify-content:center; border-radius:999px; color:#3f3f46; font-size:23px!important; list-style:none; cursor:pointer; }
.bms-wp-mobile-toggle::-webkit-details-marker { display:none; }
.bms-wp-mobile-toggle::before { content:"☰"; }
.bms-wp-mobile-details[open] > .bms-wp-mobile-toggle::before { content:"×"; }
.bms-wp-mobile-panel { display:none; }
@media (max-width:1100px) {
  .bms-wp-featured { display:none; }
}

@media (max-width:1100px) {
  .bms-wp-solution-layout { display:block; }
}

@media (max-width:991px) {
  .bms-wp-nav { flex-wrap:wrap; padding:8px 16px; }
}

@media (max-width:991px) {
  .bms-wp-navlinks,.bms-wp-actions { display:none; }
}

@media (max-width:991px) {
  .bms-wp-mobile-details { display:block; margin-left:auto; }
}

@media (max-width:991px) {
  .bms-wp-mobile-toggle { display:flex; }
}

@media (max-width:991px) {
  .bms-wp-mobile-details[open] .bms-wp-mobile-panel { width:100%; display:block; border-top:1px solid #f4f4f5; margin-top:8px; padding:16px 2px 8px; max-height:70vh; overflow-y:auto; }
}

@media (max-width:991px) {
  .bms-wp-mobile-panel > a, .bms-wp-mobile-panel summary { display:flex; justify-content:space-between; padding:10px 8px; border-radius:8px; color:#52525b!important; font-size:15px; font-weight:650; cursor:pointer; }
}

@media (max-width:991px) {
  .bms-wp-mobile-panel > a:hover,.bms-wp-mobile-panel summary:hover { background:#f4f4f5; }
}

@media (max-width:991px) {
  .bms-wp-mobile-panel details { margin-bottom:6px; }
}

@media (max-width:991px) {
  .bms-wp-mobile-panel summary { list-style:none; }
}

@media (max-width:991px) {
  .bms-wp-mobile-panel summary::-webkit-details-marker { display:none; }
}

@media (max-width:991px) {
  .bms-wp-mobile-sublist { display:flex; flex-direction:column; gap:10px; padding:8px 12px 14px 22px; }
}

@media (max-width:991px) {
  .bms-wp-mobile-sublist a, .bms-wp-mobile-sublist span { color:#52525b!important; font-size:13px; line-height:1.5; }
}

@media (max-width:991px) {
  .bms-wp-mobile-sublist a:hover { color:var(--bms-brand, #ed2939)!important; }
}

@media (max-width:991px) {
  .bms-wp-mobile-actions { display:flex; gap:8px; align-items:center; padding:18px 6px 6px; }
}

@media (max-width:767px) {
  .bms-wp-header { padding:14px 12px 4px; }
}

@media (max-width:767px) {
  .bms-wp-nav { min-height:62px; }
}

@media (max-width:782px) {
  .admin-bar .bms-wp-header { top:46px; }
}

#header .bms-wp-header { font-family:"Geist","DM Sans",system-ui,sans-serif; }
.bms-wp-header .bms-wp-mobile-details[open] .bms-wp-mobile-panel { position:absolute; left:0; right:0; top:100%; border:1px solid #e4e4e7; border-radius:0 0 16px 16px; padding:16px; background:#fff; box-shadow:0 16px 36px rgba(0,0,0,.1); }
@media (max-width:991px) {
  .bms-wp-mobile-details[open] .bms-wp-mobile-panel { z-index:10; }
}

/* Standalone child template: floating/sticky header, aligned with Next.js nav. */
.bms-wp-header {
  position: sticky; top: 0; z-index: 110;
  margin-left: 0; width: 100%;
}
.admin-bar .bms-wp-header { top: 32px; }
@media (max-width:782px) { .admin-bar .bms-wp-header { top: 46px; } }
.bms-wp-header .bms-wp-mega-holder { z-index: 115; }
.bms-wp-header .bms-wp-dropdown[open] > .bms-wp-mega-holder {
  opacity:1; visibility:visible; pointer-events:auto;
}
@media (prefers-reduced-motion:reduce) {
  .bms-wp-header *, .bms-wp-header *::before, .bms-wp-header *::after { transition:none!important; }
}

/* Keep dropdown text dark even if Blocksy's sitewide link palette differs. */
.bms-wp-header .bms-wp-mega-holder a { color: #27272a; }
.bms-wp-header .bms-wp-mega-holder a:hover { color: #ed2939; }
/* Avoid overlap with a persistent mobile WordPress admin toolbar. */
@media screen and (max-width: 600px) {
  body.admin-bar .bms-wp-header { top: 0; }
}
