/* =========================================================
   SITE HEADER: Floating pill (poori website par)
   Rang badalne hon to sirf neeche ke variables badlein.
   ========================================================= */

/* Parent theme ka purana header chhupana (Kadence: #masthead, Hello: #site-header) */
body.cwh-on #masthead,
body.cwh-on #site-header{display:none!important}

.cwh{
  --cwh-ink:#1b1530;
  --cwh-muted:#5e5873;
  --cwh-line:#ece9f3;
  --cwh-soft:#f6f4fb;
  --cwh-coral:#ff3b5c;
  --cwh-coral-bg:#ffe8ec;
  --cwh-mint-ink:#00927e;
  --cwh-mint-bg:#d9f6f1;
  --cwh-top:14px;
  position:relative;z-index:9990;
  padding:var(--cwh-top) 20px 0;
  font-family:'Bricolage Grotesque',system-ui,-apple-system,'Segoe UI',sans-serif;
  line-height:1.4;color:var(--cwh-ink);
  pointer-events:none;
}
.cwh.cwh-sticky{position:sticky;top:0}
body.admin-bar .cwh.cwh-sticky{top:32px}
@media (max-width:782px){body.admin-bar .cwh.cwh-sticky{top:46px}}
@media (max-width:600px){body.admin-bar .cwh.cwh-sticky{top:0}}

/* theme ki aam styling se bachao */
.cwh *,.cwh *::before,.cwh *::after{box-sizing:border-box}
.cwh :where(ul,li,p,a,b,small,span,nav,header,div){margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;letter-spacing:normal;text-transform:none;text-decoration:none;box-shadow:none;line-height:inherit;list-style:none;min-height:0;width:auto;height:auto;border-radius:0}
/* theme ki button styling (button, [type=button]) se bachao */
.cwh button,.cwh button:hover,.cwh button:focus,.cwh button:active{margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;letter-spacing:normal;text-transform:none;text-decoration:none;box-shadow:none;line-height:inherit;min-height:0;min-width:0;width:auto;height:auto;border-radius:0;-webkit-appearance:none;appearance:none}
.cwh svg{display:block;flex:none}
.cwh img{box-shadow:none;border-radius:0;padding:0;border:0;margin:0}

.cwh-wrap{max-width:var(--cw-page,980px);margin:0 auto;pointer-events:none;display:block}
.cwh-bar,.cwh-panel{pointer-events:auto}

/* ---------- pill ---------- */
.cwh .cwh-bar{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:8px 8px 8px 20px;background:#fff;border:1px solid var(--cwh-line);border-radius:999px;
  box-shadow:0 18px 40px -26px rgba(27,21,48,.45);
  transition:box-shadow .2s ease,border-color .2s ease;
}
.cwh.is-scrolled .cwh-bar{box-shadow:0 22px 46px -22px rgba(27,21,48,.5);border-color:#e3dfee}

/* ---------- logo ---------- */
.cwh .cwh-logo{display:flex;align-items:center;gap:10px;flex:none;font-weight:800;font-size:20px;letter-spacing:-.02em;color:var(--cwh-ink);white-space:nowrap}
.cwh .cwh-mark{width:34px;height:34px;border-radius:10px;background:var(--cwh-ink);display:grid;place-items:center;flex:none}
.cwh .cwh-mark i{display:block;width:12px;height:12px;border-radius:3px;background:var(--cwh-coral);box-shadow:5px 5px 0 #00c2a8;transform:translate(-2px,-2px)}
.cwh .cwh-logo-img{display:block;height:var(--cwh-logo-h,36px);width:auto;max-width:220px;object-fit:contain;padding:0;border:0;box-shadow:none;border-radius:0}

/* ---------- nav (track + tabs) ---------- */
.cwh .cwh-nav{display:block}
.cwh .cwh-menu{display:flex;align-items:center;gap:2px;background:var(--cwh-soft);border-radius:999px;padding:5px}
.cwh .cwh-item{position:static}
.cwh .cwh-link,.cwh button.cwh-link,.cwh button.cwh-link:hover,.cwh button.cwh-link:focus{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:999px;font-size:15px;font-weight:600;color:var(--cwh-muted);cursor:pointer;white-space:nowrap;transition:color .15s ease,background .15s ease}
.cwh .cwh-link:hover,.cwh button.cwh-link:hover,.cwh button.cwh-link:focus{color:var(--cwh-ink)}
.cwh .cwh-link.is-active,.cwh .cwh-mega-btn[aria-expanded="true"],.cwh button.cwh-mega-btn[aria-expanded="true"]:hover,.cwh button.cwh-mega-btn[aria-expanded="true"]:focus,.cwh button.cwh-link.is-active:hover{background:#fff;color:var(--cwh-ink);box-shadow:0 2px 8px -4px rgba(27,21,48,.3)}
.cwh .cwh-link .cw-icon{width:16px;height:16px;transition:transform .2s ease}
.cwh .cwh-mega-btn[aria-expanded="true"] .cw-icon{transform:rotate(180deg)}

/* ---------- right side ---------- */
.cwh .cwh-right{display:flex;align-items:center;gap:8px;flex:none}
.cwh .cwh-cta{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:var(--cwh-ink);color:#fff;font-size:15px;font-weight:700;white-space:nowrap;transition:transform .15s ease,background .15s ease}
.cwh .cwh-cta:hover{background:#2b2348;color:#fff;transform:translateY(-1px)}
.cwh .cwh-cta .cw-icon{width:18px;height:18px;stroke-width:2.2;transition:transform .15s ease}
.cwh .cwh-cta:hover .cw-icon{transform:translateX(3px)}
.cwh .cwh-burger,.cwh button.cwh-burger:hover,.cwh button.cwh-burger:focus{display:none;place-items:center;width:44px;height:44px;border-radius:999px;background:var(--cwh-soft);color:var(--cwh-ink);cursor:pointer}
.cwh .cwh-burger .cw-icon{width:22px;height:22px}
.cwh .cwh-i-close{display:none}
.cwh .cwh-burger[aria-expanded="true"] .cwh-i-open{display:none}
.cwh .cwh-burger[aria-expanded="true"] .cwh-i-close{display:block}

/* ---------- mega menu ---------- */
.cwh .cwh-mega{
  position:absolute;top:calc(100% + 14px);left:50%;width:min(680px,calc(100vw - 40px));
  transform:translate(-50%,8px);opacity:0;visibility:hidden;
  background:#fff;border:1px solid var(--cwh-line);border-radius:24px;padding:14px;
  box-shadow:0 30px 60px -30px rgba(27,21,48,.4);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.cwh .cwh-mega.is-open{opacity:1;visibility:visible;transform:translate(-50%,0)}
.cwh .cwh-mega::before{content:'';position:absolute;left:0;right:0;top:-16px;height:16px}
.cwh .cwh-mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.cwh .cwh-mega-item{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:16px;transition:background .15s ease}
.cwh .cwh-mega-item:hover,.cwh .cwh-mega-item[aria-current="page"]{background:var(--cwh-soft)}
.cwh .cwh-chip{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--cwh-coral-bg);color:var(--cwh-coral)}
.cwh .cwh-alt .cwh-chip{background:var(--cwh-mint-bg);color:var(--cwh-mint-ink)}
.cwh .cwh-chip .cw-icon{width:20px;height:20px}
.cwh .cwh-mega-text b{display:block;font-size:15px;font-weight:700;color:var(--cwh-ink);line-height:1.3}
.cwh .cwh-mega-text small{display:block;margin-top:3px;font-size:13px;color:var(--cwh-muted);line-height:1.4}
.cwh .cwh-mega-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;padding:14px 16px;border-radius:16px;background:var(--cwh-soft);font-size:14px;color:var(--cwh-muted)}
.cwh .cwh-mega-foot a{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--cwh-ink)}
.cwh .cwh-mega-foot .cwh-mega-note a{color:var(--cwh-coral);margin-left:4px}
.cwh .cwh-mega-foot a:hover{text-decoration:underline}
.cwh .cwh-mega-foot .cw-icon{width:16px;height:16px;stroke-width:2.2}

/* ---------- phone panel ---------- */
.cwh .cwh-panel{display:none;margin-top:10px;background:#fff;border:1px solid var(--cwh-line);border-radius:24px;padding:8px 16px 18px;box-shadow:0 18px 40px -26px rgba(27,21,48,.45);max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
.cwh .cwh-panel.is-open{display:block}
.cwh .cwh-p-link,.cwh button.cwh-p-link,.cwh button.cwh-p-link:hover,.cwh button.cwh-p-link:focus{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 4px;font-size:17px;font-weight:700;color:var(--cwh-ink);border-bottom:1px solid var(--cwh-line);text-align:left;cursor:pointer}
.cwh .cwh-p-link.is-active{color:var(--cwh-coral)}
.cwh .cwh-p-link .cw-icon{width:18px;height:18px;transition:transform .2s ease}
.cwh .cwh-p-btn[aria-expanded="true"] .cw-icon{transform:rotate(180deg)}
.cwh .cwh-p-sub{display:none;padding:6px 0 10px}
.cwh .cwh-p-sub.is-open{display:grid;gap:2px}
.cwh .cwh-sub-item{display:flex;align-items:center;gap:10px;padding:9px 4px;font-size:15px;font-weight:600;color:var(--cwh-muted);border-radius:12px}
.cwh .cwh-sub-item[aria-current="page"]{color:var(--cwh-ink)}
.cwh .cwh-sub-item .cwh-chip{width:32px;height:32px;border-radius:10px}
.cwh .cwh-sub-item .cwh-chip .cw-icon{width:17px;height:17px}
.cwh .cwh-sub-all{display:inline-flex;align-items:center;gap:6px;padding:8px 4px;font-size:14px;font-weight:700;color:var(--cwh-coral)}
.cwh .cwh-sub-all .cw-icon{width:16px;height:16px}
.cwh .cwh-p-cta{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px;padding:15px 20px;border-radius:999px;background:var(--cwh-coral);color:#fff;font-size:16px;font-weight:700;box-shadow:0 10px 24px -10px rgba(255,59,92,.7)}
.cwh .cwh-p-cta .cw-icon{width:18px;height:18px;stroke-width:2.2}
.cwh .cwh-p-note{margin-top:10px;text-align:center;font-size:13px;color:var(--cwh-muted)}

/* ---------- focus ---------- */
.cwh a:focus-visible,.cwh button:focus-visible{outline:3px solid var(--cwh-coral);outline-offset:3px;border-radius:999px}
.cwh .cwh-mega-item:focus-visible,.cwh .cwh-sub-item:focus-visible{border-radius:12px}

/* ---------- tablet / phone ---------- */
@media (max-width:1060px){
  .cwh .cwh-link,.cwh button.cwh-link,.cwh button.cwh-link:hover,.cwh button.cwh-link:focus{padding:9px 12px;font-size:14px}
}
@media (max-width:980px){
  .cwh{padding:12px 12px 0}
  .cwh .cwh-bar{padding:8px 8px 8px 16px}
  .cwh .cwh-nav,.cwh .cwh-cta,.cwh .cwh-mega{display:none}
  .cwh .cwh-burger,.cwh button.cwh-burger:hover,.cwh button.cwh-burger:focus{display:grid}
}
@media (max-width:380px){
  .cwh .cwh-logo{font-size:18px}
  .cwh .cwh-mark{width:30px;height:30px}
}
@media (prefers-reduced-motion:reduce){
  .cwh *{transition:none!important}
}

/* ---------- icons v2 (duotone) ---------- */
.cwh .cw-icon .cw-i2{opacity:.22}
.cwh .cwh-chip,.cwh .cwh-alt .cwh-chip{--cwh-i2:var(--cwh-coral);background:#fff;color:var(--cwh-ink);border:1px solid #ece9f3;box-shadow:0 8px 18px -12px rgba(27,21,48,.35)}
.cwh .cwh-alt .cwh-chip{--cwh-i2:#00c2a8}
.cwh .cwh-chip .cw-icon{width:22px;height:22px}
.cwh .cwh-chip .cw-i2{fill:var(--cwh-i2);opacity:.85}
.cwh .cwh-sub-item .cwh-chip .cw-icon{width:18px;height:18px}
@media (max-width:980px){
  .cwh .cwh-logo-img{height:min(var(--cwh-logo-h,36px),34px);max-width:170px}
}
@media (max-width:480px){
  .cwh .cwh-logo-img + .cwh-name{display:none}
}
