/* ============================================================================
   Crowdo site chrome — shared header, mobile menu and footer.

   Single source of truth for the "Crowdo Core" header/footer used on every
   page. Deliberately self-contained: legacy pages load their own design
   systems (Bootstrap 5 via app.css, project-style.css, per-page stylesheets),
   so this file
     * scopes its design tokens to the chrome roots instead of :root, and
     * uses .site-btn* instead of the demo-home .btn* so it never repaints
       Bootstrap buttons that belong to the page body.
   ========================================================================== */

/* ---------- tokens (mirror views/css/pages/demo-home/base.css) ---------- */
.site-header,
.mobile-menu,
.mobile-menu-scrim,
.site-footer{
  --bg:#f5f7fc; --card:#ffffff;
  --ink:#0e1018; --ink-2:#565c6b; --ink-3:#8b91a0;
  --line:#e6e9f2; --line-2:#eef1f8;
  --blue:#2f63f6; --blue-ink:#1f48c4; --blue-soft:#e8eeff;
  --orange:#f2851a;
  --shadow:0 30px 60px -38px rgba(20,28,60,.45);
  --r-lg:20px; --r-md:14px; --r-sm:10px;
}
.site-header,
.mobile-menu,
.site-footer{font-family:'Manrope',sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
.site-header,
.mobile-menu{color:var(--ink)}
.site-header *,
.mobile-menu *,
.site-footer *{box-sizing:border-box}

/* ---------- defensive reset ----------
   Legacy pages ship global element-level rules — `p{font-family:Raleway}`,
   `a{color:black}`, `a,button,input{display:block}`, `button{line-height:1.15}`,
   `*{margin:0;padding:0}`, `.kmnd-main span{color:#000}`. Those beat plain
   inheritance, so the chrome restates every property it would otherwise have
   inherited from its own root. Keep this block ABOVE the component rules: the
   ties it creates (both sides 0-1-1) are resolved by source order.
   Component rules that would lose to it are written with a doubled class. */
.site-header p,.site-header span,.site-header a,.site-header b,.site-header small,.site-header ul,.site-header li,.site-header button,.site-header h1,.site-header h2,.site-header h3,.site-header h4,.site-header h5,.site-header h6,
.mobile-menu p,.mobile-menu span,.mobile-menu a,.mobile-menu b,.mobile-menu small,.mobile-menu ul,.mobile-menu li,.mobile-menu button,.mobile-menu h1,.mobile-menu h2,.mobile-menu h3,.mobile-menu h4,.mobile-menu h5,.mobile-menu h6,
.site-footer p,.site-footer span,.site-footer a,.site-footer b,.site-footer small,.site-footer ul,.site-footer li,.site-footer button,.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer h5,.site-footer h6{color:inherit;font-family:inherit}
.site-header a,
.mobile-menu a,
.site-footer a{text-decoration:none}
.site-header button,
.mobile-menu button,
.site-footer button{line-height:inherit;letter-spacing:inherit;margin:0}

/* ---------- layout container ----------
   Pages load three different Bootstrap builds (BS5 through app.css, BS4 4.0.0
   from the CDN on some templates, demo-home's own BS5), whose .container
   max-widths and gutters disagree — the same footer came out 1140px wide on
   inner pages and 1320px on the home page. The chrome therefore sizes its own
   container; the scale mirrors Bootstrap 5 so the home page is unchanged. */
.site-header .site-header__nav,
.site-footer > .container{width:100%;max-width:100%;margin-right:auto;margin-left:auto;padding-right:12px;padding-left:12px}
@media(min-width:576px){.site-header .site-header__nav,.site-footer > .container{max-width:540px}}
@media(min-width:768px){.site-header .site-header__nav,.site-footer > .container{max-width:720px}}
@media(min-width:992px){.site-header .site-header__nav,.site-footer > .container{max-width:960px}}
@media(min-width:1200px){.site-header .site-header__nav,.site-footer > .container{max-width:1140px}}
@media(min-width:1400px){.site-header .site-header__nav,.site-footer > .container{max-width:1320px}}

/* ---------- brand mark ---------- */
.site-header .brand,
.mobile-menu .brand,
.site-footer .brand{display:flex;align-items:center;gap:6px;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:23px;letter-spacing:-.5px;color:var(--ink)}
.site-header .brand__mark,
.mobile-menu .brand__mark,
.site-footer .brand__mark{flex:none}

/* ---------- chrome buttons ----------
   Named .site-btn (not .btn) so Bootstrap's .btn on legacy pages is untouched. */
.site-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-family:'Manrope',sans-serif;font-weight:700;font-size:16px;line-height:1.55;
  padding:15px 26px;border-radius:14px;border:none;cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s}
.site-btn.site-btn--sm{padding:11px 18px;font-size:14px}
.site-btn.site-btn--blue{background:#2f63f6;color:#fff;box-shadow:0 12px 26px -8px rgba(47,99,246,.5)}
.site-btn.site-btn--blue:hover,.site-btn.site-btn--blue:active,.site-btn.site-btn--blue:focus{color:#fff;background:#2f63f6;transform:translateY(-2px);box-shadow:0 18px 36px -8px rgba(47,99,246,.6)}
.site-btn.site-btn--cta{background:#f2851a;color:#fff;box-shadow:0 12px 26px -8px rgba(242,133,26,.55)}
.site-btn.site-btn--cta:hover,.site-btn.site-btn--cta:active,.site-btn.site-btn--cta:focus{color:#fff;background:#f5912e;transform:translateY(-2px);box-shadow:0 18px 36px -8px rgba(242,133,26,.6)}
.site-btn.site-btn--full{width:100%}

/* ---------- header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .3s,box-shadow .3s,padding .3s;padding:18px 0}
.site-header.scrolled{background:rgba(248,249,253,.85);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line);padding:10px 0}
/* Inner pages: opaque from the start instead of fading in over a hero.
   It stays position:fixed (not sticky) because most templates wrap the part in
   their own <header> element — a sticky child would scroll away with that
   wrapper's short box. The spacer below reserves the space it no longer takes
   in the flow; site-chrome.js keeps its height in sync with the real header. */
.site-header--solid{padding:10px 0;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line)}
.site-header__spacer{height:64px}
/* The header is fixed, so anchor targets would land underneath it. Many pages
   link to in-page anchors, and nothing else on the site sets this. */
html{scroll-padding-top:78px}
.site-header__nav{display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-header__links{display:flex;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
.site-header__links > li{display:list-item;list-style:none;position:relative;margin:0;padding:0}
.site-header__links a, .site-header__item{display:inline-flex;align-items:center;gap:5px;font-weight:600;font-size:15px;color:var(--ink);padding:9px 14px;border-radius:var(--r-md);cursor:pointer;transition:background .15s,color .15s}
/* dropdown triggers are <button> for keyboard access — strip the UA button chrome */
button.site-header__item{background:none;border:none;font-family:inherit;line-height:inherit;text-align:left}
/* open state mirrors :hover so the mouse path is unchanged; .is-open is driven by click/keyboard */
.site-header__links li:hover > .site-header__item,
.site-header__links li.is-open > .site-header__item{background:var(--blue-soft);color:var(--blue-ink)}
.site-header__item .nav-chevron{width:8px;transition:transform .2s}
.site-header__links li:hover .nav-chevron,
.site-header__links li.is-open .nav-chevron{transform:rotate(180deg)}
.nav-dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:280px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:10px;opacity:0;visibility:hidden;transform:translateY(8px);transition:all .2s ease}
.site-header__links li:hover .nav-dropdown,
.site-header__links li.is-open .nav-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.nav-dropdown a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-md);font-weight:600;font-size:15px;line-height:1.35}
.nav-dropdown a:hover{background:var(--bg)}
.nav-dropdown a .nav-dropdown__icon{width:34px;height:34px;border-radius:var(--r-sm);background:var(--blue-soft);display:flex;align-items:center;justify-content:center;flex:none}
.nav-dropdown a small{display:block;font-weight:500;color:var(--ink-3);font-size:12.5px}
.site-header__actions{display:flex;align-items:center;gap:12px}
.site-header__account{width:42px;height:42px;border-radius:50%;border:1.5px solid var(--line);background:var(--card);display:flex;align-items:center;justify-content:center;color:var(--ink-2);cursor:pointer;transition:.15s}
.site-header__account:hover{border-color:var(--blue);color:var(--blue)}

/* ---------- keyboard focus ---------- */
/* :focus-visible only, so mouse users never see the ring */
.site-header__links a:focus-visible,
.site-header__item:focus-visible,
.nav-dropdown a:focus-visible,
.site-header__account:focus-visible,
.burger:focus-visible,
.mobile-menu__acc-head:focus-visible,
.mobile-menu__link:focus-visible,
.mobile-menu__acc-body a:focus-visible,
.mobile-menu__close:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ===================== MOBILE MENU ===================== */
.burger{display:none;width:44px;height:44px;border:none;background:transparent;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;padding:0}
.burger span{display:block;width:24px;height:2.5px;border-radius:3px;background:var(--ink);margin:0 auto;transition:transform .28s ease,opacity .2s ease}
.burger.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
.mobile-menu-scrim{position:fixed;inset:0;background:rgba(12,15,28,.5);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .3s ease;z-index:140}
.mobile-menu-scrim.open{opacity:1;visibility:visible}
/* visibility, not just the off-screen transform: the drawer holds ~20 links and
   sits inside aria-hidden="true", so a purely translated panel would keep them in
   the tab order and drop keyboard focus off-screen on every page. Transitioned so
   the panel stays painted while it slides back out. */
.mobile-menu{position:fixed;top:0;right:0;height:100%;height:100dvh;width:min(86vw,360px);background:#fff;z-index:150;
  visibility:hidden;transform:translateX(100%);transition:transform .34s cubic-bezier(.4,0,.15,1),visibility .34s;display:flex;flex-direction:column;box-shadow:-20px 0 60px -30px rgba(12,15,28,.5);overflow-y:auto}
.mobile-menu.open{visibility:visible;transform:none}
.mobile-menu__head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}
.mobile-menu .mobile-menu__close{width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--ink-2);cursor:pointer}
.mobile-menu__nav{padding:8px 14px;flex:1}
.mobile-menu .mobile-menu__link{display:block;padding:15px 12px;font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:17px;color:var(--ink);border-bottom:1px solid var(--line-2)}
.mobile-menu__acc{border-bottom:1px solid var(--line-2)}
.mobile-menu .mobile-menu__acc-head{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 12px;background:none;border:none;cursor:pointer;
  font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:17px;line-height:1.55;color:var(--ink)}
.mobile-menu__acc-head .mobile-menu__chev{transition:transform .25s ease;color:var(--ink-3)}
.mobile-menu__acc.open .mobile-menu__acc-head .mobile-menu__chev{transform:rotate(180deg)}
.mobile-menu__acc.open .mobile-menu__acc-head{color:var(--blue-ink)}
.mobile-menu__acc-body{max-height:0;overflow:hidden;transition:max-height .32s ease}
.mobile-menu__acc-body a{display:block;padding:11px 12px 11px 16px;border-left:2px solid var(--blue-soft);margin:2px 0 2px 6px}
.mobile-menu__acc-body a b{display:block;font-size:15px;font-weight:600;color:var(--ink)}
.mobile-menu__acc-body a small{display:block;font-size:12.5px;color:var(--ink-3);margin-top:1px}
.mobile-menu__acc-body a:active{background:var(--blue-soft)}
.mobile-menu__foot{padding:18px 20px;border-top:1px solid var(--line);position:sticky;bottom:0;background:#fff}
.mobile-menu__foot .site-btn+.site-btn{margin-top:10px}
/* Scroll lock while the drawer is open. The class is set on <html> as well as
   <body> on purpose: some pages ship html{overflow-x:hidden} (e.g. the outreach
   stylesheet), which makes <html> the element whose overflow propagates to the
   viewport — there body{overflow:hidden} clips nothing and the page keeps
   scrolling behind the drawer. site-chrome.js toggles both. */
html.menu-open,
body.menu-open{overflow:hidden}

/* ---------- footer ---------- */
.site-footer{background:#0c0f1c;color:#fff;padding:64px 0 32px;margin-top:0;position:relative}
.site-footer__top{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;flex-wrap:wrap;margin-bottom:40px}
.site-footer__brand{max-width:300px}
.site-footer__brand .brand{color:#fff}
.site-footer__brand p{color:rgba(255,255,255,.55);font-size:14.5px;margin:14px 0 0}
/* Own grid rather than Bootstrap's row/col: the three Bootstrap builds in play
   disagree on gutters, and 4.0.0 has no .row-cols-* at all, so the columns fell
   back to different layouts per page. */
.site-footer__cols{flex:1;min-width:480px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.site-footer__col h5{font-family:'Space Grotesk',sans-serif;font-size:14px;font-weight:700;line-height:1.2;margin:0 0 14px;color:#fff;text-transform:none;letter-spacing:0;text-align:left}
.site-footer__col a{display:block;color:rgba(255,255,255,.55);font-size:14px;padding:5px 0;transition:.15s}
.site-footer__col a:hover{color:#fff}
.site-footer__mid{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:26px 0;border-top:1px solid rgba(255,255,255,.1)}
.site-footer .linkedin-btn{display:inline-flex;align-items:center;gap:10px;background:#2f63f6;color:#fff;border-radius:30px;padding:11px 22px;font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:16px;cursor:pointer;transition:.18s}
.site-footer .linkedin-btn:hover,.site-footer .linkedin-btn:active{color:#fff;transform:translateY(-2px);box-shadow:0 12px 26px -8px rgba(47,99,246,.6)}
.site-footer .linkedin-btn__icon{width:24px;height:24px;border-radius:6px;background:#fff;color:#2f63f6;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px}
.site-footer__ratings{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.site-footer .rating-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  border-radius:30px;padding:8px 15px;font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:13.5px;color:rgba(255,255,255,.92);text-decoration:none;transition:.18s}
.site-footer .rating-pill:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);color:#fff;transform:translateY(-1px)}
.site-footer .rating-pill__value{color:#ffc24b;font-weight:700}
.site-footer .rating-pill__value::before{content:"\2605 "}
.site-footer__bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-top:24px;border-top:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.45);font-size:13px}
.site-footer__bar .site-footer__links{display:flex;gap:24px;flex-wrap:wrap}
.site-footer__bar a:hover{color:#fff}

/* ---------- responsive ---------- */
@media(max-width:991.98px){
  .burger{display:flex}
  .site-header__links{display:none}
  .site-header__actions .site-header__account{display:none}
  .site-header__actions .site-btn--blue{display:none}
  .site-footer__cols{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .site-header{padding:14px 0}
  .site-header.scrolled,.site-header--solid{padding:9px 0}
  .site-header__spacer{height:62px}
  html{scroll-padding-top:72px}
  .mobile-menu__foot .site-btn{white-space:normal;line-height:1.25}
  .site-footer{padding:48px 0 26px;margin-top:60px}
  .site-footer .site-footer__top{flex-direction:column;gap:26px}
  .site-footer__cols{min-width:0;gap:20px 16px}
  .site-footer__mid{flex-direction:column;align-items:flex-start;gap:16px}
  .site-footer__bar{flex-direction:column;align-items:flex-start;gap:12px}
  .site-footer__bar .site-footer__links{gap:16px}
}
@media(max-width:575.98px){
  .site-footer__cols{grid-template-columns:minmax(0,1fr)}
}
