/* ============================================================
   BK GROUP CO. — SHARED DESIGN SYSTEM v2
   Matches bkgroupco.com: minimal, fixed, full-bleed video hero.
   Black & white. No cards, no footer grids — just nav + hero + CTA.
   ============================================================ */

:root{
  --bg:#000000;
  --fg:#ffffff;
  --muted:#9a9a9a;
  --dim:#5a5a5a;
  --line:rgba(255,255,255,0.12);

  --display:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --body:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --mono:'JetBrains Mono','Inter',monospace;

  /* Type scale — 5 sizes used consistently across every page */
  --fs-eyebrow: 12px;
  --fs-nav: 13.5px;
  --fs-body: 15.5px;
  --fs-cta: 14px;
  --fs-headline: clamp(2rem, 6.6vw, 5rem);
}

*{margin:0;padding:0;box-sizing:border-box;}
html,body{
  width:100%;
  height:100%;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow:hidden;
}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;border:none;background:none;cursor:pointer;}
ul{list-style:none;}

/* ============ LOADER ============ */
.loader{
  position:fixed;
  inset:0;
  z-index:200;
  background:#000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  transition:opacity .5s ease, visibility .5s ease;
}
.loader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.loader-mark{
  width:54px;height:54px;
  border:1.4px solid rgba(255,255,255,0.85);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--display);
  font-weight:700;
  font-size:16px;
  letter-spacing:0;
  opacity:0;
  transform:scale(0.85);
  animation:markIn .6s cubic-bezier(.16,1,.3,1) forwards .1s;
}
@keyframes markIn{
  to{opacity:1; transform:scale(1);}
}
.loader-bar{
  width:160px;
  height:1px;
  background:rgba(255,255,255,0.14);
  position:relative;
  overflow:hidden;
}
.loader-bar::after{
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:40%;
  background:#fff;
  animation:loaderFill 1.1s cubic-bezier(.4,0,.2,1) forwards .25s;
  transform:translateX(-100%);
}
@keyframes loaderFill{
  to{transform:translateX(250%);}
}
.loader-text{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.18em;
  color:var(--dim);
  text-transform:uppercase;
  min-height:14px;
}
.loader-text .cursor{
  display:inline-block;
  width:6px;
  margin-left:2px;
  border-right:1.5px solid var(--dim);
  animation:blink 0.9s step-end infinite;
}
@keyframes blink{
  50%{border-color:transparent;}
}

@media (prefers-reduced-motion: reduce){
  .loader-mark{animation:none; opacity:1; transform:none;}
  .loader-bar::after{animation:none; transform:none; width:100%;}
}

/* ============ PAGE SHELL ============ */
.page{
  position:relative;
  width:100vw;
  height:100vh;
  height:100dvh;
  display:flex;
  flex-direction:column;
  background:var(--bg);
}

.hero-media-slot{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:#000;
}
.hero-media-slot::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.85) 100%);
}
.hero-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:0.6;
}
.bg-fallback-glow{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(255,255,255,0.06), transparent 70%);
}

/* Privacy page: no video background, just the flat black page so the legal
   text stays easy to read */
.page.is-privacy .hero-media-slot{
  display:none;
}

/* ============ TOP NAV (matches live site: logo + 4 links, nothing else) ============ */
.nav{
  position:relative;
  z-index:50;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px clamp(20px, 4vw, 56px);
  gap:20px;
}
.nav-mark{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.nav-mark .glyph{
  width:30px;height:30px;
  border:1.4px solid var(--fg);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--display);
  font-size:11px;
  font-weight:700;
}

.nav-links{
  display:flex;
  gap:clamp(14px, 2.6vw, 32px);
  font-size:var(--fs-nav);
  color:var(--muted);
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav-links a{
  transition:color .2s ease;
  white-space:nowrap;
}
.nav-links a:hover{color:var(--fg);}

/* hamburger -> opens sidebar */
.menu-toggle{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:6px;
  width:30px; height:30px;
  flex:0 0 auto;
  z-index:120;
}
.menu-toggle span{
  display:block;
  width:100%;
  height:1.4px;
  background:var(--fg);
  transition:all .25s ease;
}
.menu-toggle.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg);}
.menu-toggle.open span:nth-child(2){opacity:0;}
.menu-toggle.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);}

/* ============ SIDEBAR (YouTube-style) ============ */
.sidebar-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
}
.sidebar-overlay.open{opacity:1; visibility:visible;}

.sidebar{
  position:fixed;
  top:0; left:0;
  height:100%;
  width:280px;
  max-width:82vw;
  background:#0a0a0a;
  border-right:1px solid var(--line);
  z-index:110;
  display:flex;
  flex-direction:column;
  transform:translateX(-100%);
  transition:transform .32s cubic-bezier(.16,1,.3,1);
  padding:24px 0;
}
.sidebar.open{transform:translateX(0);}

.sidebar-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 22px 22px;
  border-bottom:1px solid var(--line);
  margin-bottom:10px;
}
.sidebar-head .glyph{
  width:28px;height:28px;
  border:1.4px solid var(--fg);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--display);
  font-size:10.5px;
  font-weight:700;
}
.sidebar-head .word{
  font-family:var(--display);
  font-size:14px;
  font-weight:600;
}

.sidebar-links{
  display:flex;
  flex-direction:column;
  padding:6px 10px;
  overflow-y:auto;
}
.sidebar-links a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:8px;
  font-size:14.5px;
  color:var(--muted);
  font-weight:500;
  transition:background .15s ease, color .15s ease;
}
.sidebar-links a:hover{background:rgba(255,255,255,0.06); color:var(--fg);}
.sidebar-links a.active{background:rgba(255,255,255,0.09); color:var(--fg);}
.sidebar-links a .ic{
  width:18px; height:18px;
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
}
.sidebar-links a .ic svg{width:100%;height:100%;}

.sidebar-divider{
  height:1px;
  background:var(--line);
  margin:10px 22px;
}

.sidebar-foot{
  margin-top:auto;
  padding:16px 22px 4px;
  font-family:var(--mono);
  font-size:10.5px;
  color:var(--dim);
  line-height:1.7;
}

/* ============ HERO — full-width, video plays edge-to-edge behind it ============
   .hero spans the entire page (video shows fully, every page except Privacy).
   Content sits left-aligned over the video, never split into a column layout.
*/
.hero{
  flex:1 1 auto;
  position:relative;
  z-index:10;
  display:flex;
  align-items:center;
  padding:20px clamp(28px, 6vw, 88px) 40px;
  min-height:0;
  overflow:hidden;
}

.hero-content{
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  width:100%;
  max-width:760px;
}

/* Privacy page only: content needs to sit over a calmer backdrop and use
   the full available height for the scrollable legal text */
.page.is-privacy .hero-content{
  max-width:680px;
  height:100%;
}

.hero-visual{display:none;}

.eyebrow{
  font-family:var(--mono);
  font-size:var(--fs-eyebrow);
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:'';
  width:0px;
  height:0px;
  background:rgba(255,255,255,0.3);
}

.headline{
  font-family:var(--display);
  font-weight:700;
  letter-spacing:-0.01em;
  line-height:1.06;
  font-size:var(--fs-headline);
  max-width:780px;
  text-align:left;
}
.headline .light{
  font-weight:400;
  color:var(--muted);
}

.sub{
  margin-top:20px;
  max-width:560px;
  font-size:var(--fs-body);
  line-height:1.65;
  color:var(--muted);
  text-align:left;
}

.cta-row{
  margin-top:36px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.btn{
  font-family:var(--body);
  font-size:var(--fs-cta);
  font-weight:600;
  letter-spacing:0.01em;
  padding:13px 30px;
  border-radius:999px;
  border:1px solid var(--fg);
  background:var(--fg);
  color:#000;
  transition:all .2s ease;
}
.btn:hover{background:transparent;color:var(--fg);}
.btn.ghost{
  background:transparent;
  color:var(--fg);
  border:1px solid rgba(255,255,255,0.3);
}
.btn.ghost:hover{border-color:var(--fg);}

/* simple stacked link list, used on Businesses page only — plain links, no cards */
.link-stack{
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:flex-start;
}
.link-stack a{
  font-family:var(--display);
  font-size:clamp(18px,2.6vw,24px);
  font-weight:600;
  color:var(--fg);
  padding-bottom:4px;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, color .2s ease;
}
.link-stack a:hover{border-color:var(--muted);}
.link-stack .tag{
  display:block;
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:0.12em;
  color:var(--dim);
  margin-top:4px;
  font-weight:400;
}

/* internally scrollable block for legal/press text, page itself never scrolls */
.scroll-block{
  margin-top:24px;
  max-width:640px;
  width:100%;
  text-align:left;
  max-height:100%;
  overflow-y:auto;
  padding-right:12px;
  font-size:13.5px;
  line-height:1.7;
  color:var(--muted);
}
.scroll-block::-webkit-scrollbar{width:4px;}
.scroll-block::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.15); border-radius:4px;}
.scroll-block h3{
  font-family:var(--display);
  font-size:14.5px;
  color:var(--fg);
  margin:16px 0 6px;
  font-weight:600;
}
.scroll-block h3:first-child{margin-top:0;}
.scroll-block .press-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 2px;
  border-bottom:1px solid var(--line);
  align-items:baseline;
}
.scroll-block .press-row .pt{font-size:14px; color:var(--fg); font-weight:500;}
.scroll-block .press-row .pd{font-family:var(--mono); font-size:11px; color:var(--dim); white-space:nowrap;}

/* ============ RESPONSIVE ============ */
@media (max-width:760px){
  .nav-links{gap:12px;}
  .nav-links a{font-size:12px;}
}
@media (max-width:560px){
  .nav{padding:18px 18px;}
  .nav-links{display:none;}
  .hero{padding:16px 22px 30px;}
  .headline{font-size:clamp(1.9rem, 9vw, 2.6rem); max-width:100%;}
  .sub{max-width:100%;}
  .sidebar{width:260px;}
}
@media (max-height:600px){
  .sub{display:none;}
}
@media (prefers-reduced-motion: reduce){
  .sidebar{transition:none;}
  .sidebar-overlay{transition:none;}
}
