/*
Theme Name: Business Services Theme
Description: Premium responsive public portfolio and standalone glass business workspace theme for Business Services Core.
Version: 1.7.7
Requires PHP: 8.0
Text Domain: business-services-theme
*/
:root{--rg-purple:#6f2eaa;--rg-deep:#3c145f;--rg-ink:#292333;--rg-muted:#777080;--rg-glass:rgba(255,255,255,.82);--rg-border:rgba(103,65,139,.16)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;width:100%;max-width:100%;overflow-x:clip}
body{margin:0;width:100%;max-width:100%;min-width:0;overflow-x:clip;background:#fff;color:var(--rg-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
img,svg,video,iframe{max-width:100%;height:auto}
.rg-header{position:relative;z-index:100;width:100%;max-width:1240px;min-height:88px;padding:10px 28px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.rg-brand{min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none;color:#321052;font-weight:900;letter-spacing:.04em}
.rg-brand img{display:block;width:62px;height:62px;max-width:62px;object-fit:contain;flex:0 0 auto}
.rg-brand span{font-size:16px;white-space:nowrap}.rg-brand small{display:block;font-size:8px;letter-spacing:.12em;color:#897b98;margin-top:3px}
.rg-header-nav{display:flex;align-items:center;gap:25px;min-width:0}.rg-header-nav a{display:inline-flex;align-items:center;gap:8px;color:#51465e;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}.rg-header-nav a:hover{color:var(--rg-purple)}
.rg-nav-icon{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#f0e5fa;color:#63299b;font-size:14px;line-height:1;flex:0 0 25px}
.rg-header-nav .rg-header-cta{padding:12px 17px;border-radius:12px;color:white;background:linear-gradient(135deg,#7434b1,#3d176b);box-shadow:0 8px 18px #55208b26}
.rg-mobile-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #e7d9f1;background:linear-gradient(145deg,#fff,#f4eafa);color:#54217d;border-radius:13px;font-size:23px;line-height:1;box-shadow:0 5px 14px #32105214;cursor:pointer;flex:0 0 auto}
.rg-footer{width:100%;max-width:1200px;margin:0 auto;padding:34px 24px;display:flex;align-items:center;justify-content:center!important;gap:12px;border-top:1px solid #eee7f3;color:#756d80;font-size:13px;text-align:center!important}
.rg-footer-inner{width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;margin:0 auto}
.rg-footer-brand{width:100%;text-align:center}.rg-footer b{display:block;color:#321052;letter-spacing:.08em}.rg-footer p{margin:5px 0 0}.rg-footer a{display:inline-block;color:#642d9c;text-decoration:none;font-weight:700;overflow-wrap:anywhere}.rg-footer small{display:block;font-size:11px}
/* Public page width guard: prevents fixed-width content and embedded cards creating sideways scrolling. */
body.rg-public-site #page,body.rg-public-site main,body.rg-public-site article,body.rg-public-site .site-content,body.rg-public-site .entry-content,body.rg-public-site .wp-site-blocks{width:100%;max-width:100%;min-width:0;margin-left:auto;margin-right:auto}
body.rg-public-site .entry-content>*{max-width:100%}
body.rg-public-site .entry-content p,body.rg-public-site .entry-content h1,body.rg-public-site .entry-content h2,body.rg-public-site .entry-content h3{overflow-wrap:anywhere}
body.bsvc-workspace-page{background:#fff}body.bsvc-workspace-page .rg-header,body.bsvc-workspace-page .rg-footer{display:none}
@media(max-width:760px){
 .rg-header{min-height:72px;height:auto;padding:8px 16px;gap:12px}
 .rg-brand img{width:48px;height:48px;max-width:48px}.rg-brand span{font-size:14px}.rg-brand small{font-size:7px}
 .rg-mobile-toggle{display:inline-flex}
 .rg-header-nav{display:none;position:absolute;top:calc(100% + 8px);left:12px;right:12px;width:auto;max-width:calc(100vw - 24px);z-index:99999;padding:14px;background:rgba(255,255,255,.98);border:1px solid #e9def1;border-radius:20px;box-shadow:0 18px 45px rgba(48,18,75,.2);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);flex-direction:column;align-items:stretch;gap:5px;overflow:visible}
 .rg-header-nav.open{display:flex}
 .rg-header-nav a{display:flex!important;align-items:center!important;justify-content:flex-start;min-height:48px;padding:10px 12px!important;border-radius:12px;color:#382448!important;font-size:14px!important;visibility:visible!important;opacity:1!important}
 .rg-header-nav a:not(.rg-header-cta):hover{background:#f5edfb}
 .rg-nav-icon{width:30px;height:30px;flex-basis:30px;font-size:15px;background:#eee1fa;color:#5b238e}
 .rg-header-nav .rg-header-cta{justify-content:center;text-align:center;margin-top:6px;color:#fff!important;background:linear-gradient(135deg,#7434b1,#3d176b)!important}
 .rg-footer{padding:28px 18px;display:flex;justify-content:center!important;text-align:center!important}
 .rg-footer-inner{align-items:center;text-align:center}
}
@media(max-width:380px){.rg-header{padding-left:12px;padding-right:12px}.rg-brand{gap:7px}.rg-brand img{width:42px;height:42px;max-width:42px}.rg-brand span{font-size:12px}.rg-mobile-toggle{width:41px;height:41px}}

/* v1.7.0 premium site-wide glass and responsive motion */
.rg-header-nav a,.rg-header-nav .rg-header-cta,.rg-mobile-toggle{transition:transform .45s cubic-bezier(.2,.75,.25,1),box-shadow .45s ease,background .45s ease}.rg-header-nav a:hover,.rg-mobile-toggle:hover{transform:translateY(-2px)}
.rg-header-nav .rg-header-cta{border:1px solid rgba(255,255,255,.8);box-shadow:0 12px 26px rgba(65,22,105,.22),inset 0 1px 0 rgba(255,255,255,.35)}
.rg-footer{background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(248,243,252,.78));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
@media(prefers-reduced-motion:reduce){.rg-header-nav a,.rg-mobile-toggle{transition:none}}

/* v1.7.2 workspace account links and mobile menu spacing */
.rg-header-nav{gap:clamp(14px,2vw,26px);align-items:center}
.rg-header-nav>a{display:inline-flex;align-items:center;gap:9px}
.rg-header-nav .rg-nav-icon{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:12px;background:rgba(125,72,178,.10);color:#5a2789}
@media(max-width:760px){.rg-header-nav{gap:8px}.rg-header-nav>a{min-height:48px;padding:8px 12px}}


/* v1.7.3 dashboard-friendly mobile sidebar and public navigation tap targets */
@media(max-width:760px){.rg-header{position:relative;z-index:100010}.rg-header-nav{z-index:100020}.rg-mobile-toggle{position:relative;z-index:100030;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.rg-header-nav a{touch-action:manipulation}}
body.bsvc-sidebar-open{overflow:hidden!important;touch-action:pan-y}


/* v1.7.4 — reliable full-width mobile navigation, no clipped menu */
@media(max-width:760px){
 .rg-header{position:relative!important;z-index:100010!important;overflow:visible!important}
 .rg-mobile-toggle{position:relative!important;z-index:100030!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent}
 .rg-header-nav:not(.open){display:none!important}
 .rg-header-nav.open{
  display:flex!important;position:fixed!important;top:var(--rg-menu-top,82px)!important;
  left:12px!important;right:12px!important;bottom:auto!important;width:auto!important;
  max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - var(--rg-menu-top,82px) - 18px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;box-sizing:border-box!important;
  z-index:100100!important;padding:14px!important;margin:0!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
  gap:7px!important;border:1px solid rgba(255,255,255,.98)!important;border-radius:22px!important;
  background:rgba(255,255,255,.985)!important;box-shadow:0 22px 55px rgba(44,20,72,.24),inset 0 1px 0 #fff!important;
  backdrop-filter:blur(22px) saturate(1.2)!important;-webkit-backdrop-filter:blur(22px) saturate(1.2)!important;
 }
 .rg-header-nav.open>a{
  display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;min-height:52px!important;
  align-items:center!important;justify-content:flex-start!important;gap:12px!important;
  padding:10px 12px!important;margin:0!important;text-align:left!important;white-space:normal!important;
  border-radius:14px!important;box-sizing:border-box!important;visibility:visible!important;opacity:1!important;
 }
 .rg-header-nav.open>a .rg-nav-icon{flex:0 0 36px!important;width:36px!important;height:36px!important;margin:0!important}
 .rg-header-nav.open>a>span:last-child{display:block!important;flex:1 1 auto!important;text-align:left!important}
 .rg-header-nav.open>.rg-header-cta{justify-content:center!important;text-align:center!important;margin:4px 0!important}
 .rg-header-nav.open>.rg-header-cta>span:last-child{text-align:center!important}
 body.rg-menu-open{overflow:hidden!important;overscroll-behavior:none!important}
}

/* v1.7.5 — place the primary contact action at the bottom of the mobile menu */
@media(max-width:760px){.rg-header-nav.open>.rg-header-cta{order:99!important;margin-top:12px!important;flex:0 0 auto!important;min-height:58px!important;justify-content:center!important;text-align:center!important}.rg-header-nav.open{padding-bottom:16px!important}}


/* v1.7.6 — true centered mobile Let’s Talk label */
@media(max-width:760px){
 .rg-header-nav.open>.rg-header-cta{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding-left:16px!important;padding-right:16px!important}
 .rg-header-nav.open>.rg-header-cta>.rg-nav-icon{display:none!important}
 .rg-header-nav.open>.rg-header-cta>span:last-child{display:block!important;flex:0 0 auto!important;width:auto!important;margin:0 auto!important;text-align:center!important;line-height:1.2!important}
}
