/* The Emraude navigation bar and footer.
   Every number here was measured on emraude.com at 1440px, not taken from a
   pattern: 82px bar, transparent, nav items 16px/400/0.06em/1.5; footer black
   with the client logo marquee on top, logos 180x48 with 32px either side;
   contacts and CSR 12px, podcast and legal 14px, all at 0.06em. */

/* ------------------------------------------------------------- header
   Ported from src/components/Header.tsx and MobileMenu.tsx, with the
   Tailwind utilities and the shadcn Popover base resolved to what they
   compile to. The logo, the nav and the dropdown panels are all the same
   glass pill: white at 40%, 10px radius, 12px backdrop blur. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
.site-header{position:fixed;top:0;z-index:5000;width:100%}
.header-inner{max-width:120rem;width:100%;margin:0 auto;padding:1rem;display:flex;
  align-items:center;justify-content:space-between;font-family:var(--font-body)}
.header-logo{background:rgba(255,255,255,.4);border-radius:.625rem;backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);padding:0 .5rem;height:2.75rem;display:flex;align-items:center;
  text-transform:uppercase}
.header-right{display:flex;justify-content:center;align-items:center;gap:2rem}
.header-nav{display:none}
.header-pop{position:relative}
.header-trigger{display:flex;align-items:center;justify-content:space-between;padding:0;gap:.5rem;
  border:0;background:none;cursor:pointer;font:inherit;letter-spacing:inherit;font-size:.875rem;font-weight:400;line-height:1.25rem;
  color:var(--color-black);text-align:left;text-transform:uppercase;outline:none}
.header-trigger:hover{font-weight:700}
.header-chevron{flex:none;transition:transform .2s ease-in}
.header-pop.is-open .header-chevron{transform:rotate(180deg)}
.header-panel{position:absolute;left:0;top:100%;z-index:50;width:auto;min-width:14rem;
  display:flex;flex-direction:column;border-radius:.625rem;background:rgba(255,255,255,.4);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--color-black);
  font-size:.875rem;transform:translate(-1rem,1rem);margin-top:4px;
  visibility:hidden;pointer-events:none;height:0;overflow:hidden;padding:0;opacity:0}
.header-pop.is-open .header-panel{visibility:visible;pointer-events:auto;height:auto;overflow:visible;opacity:1}
.header-panel--narrow{min-width:5rem}
.header-panel__link{padding:.75rem 1rem;font-weight:400;text-transform:uppercase;text-decoration:none;color:inherit}
.header-panel__link:hover{font-weight:700}
.header-panel__link.is-here{font-weight:700}
.headerButton{display:flex!important;align-items:center!important;justify-content:center}
/* The phone header is the logo and the burger, as on emraude.com. The demo
   button lives in the sheet (.sheet-cta); leaving it in the bar as well had
   it overlapping both of them on a 375px screen. */
@media(max-width:1023px){.headerButton{display:none!important}}
/* The bar is transparent, which is right on a desktop where the copy never
   reaches it. On a phone the full-width copy scrolls straight under the logo
   and the two collide. A short fade gives the bar something to sit on without
   drawing a line across the page. */
@media(max-width:760px){
  .site-header{isolation:isolate}
  .site-header::before{content:'';position:absolute;inset:0 0 -28px;z-index:-1;pointer-events:none;
    background:linear-gradient(#FFFFFFF2 42%,#FFFFFFC4 68%,#FFFFFF00)}
  /* Why Emraude is black, so the fade matches it rather than laying a white
     band across the top of it. */
  :root.dark-section .site-header::before{background:linear-gradient(#000000F2 42%,#000000C4 68%,#00000000)}
}
.headerButton .btn-glass__wrapper{min-width:0;padding:.75rem 1.25rem}
.headerButton .btn-glass__label{font-size:.875rem}

.header-burger{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.375rem;
  width:2.5rem;height:2.5rem;border:0;cursor:pointer;border-radius:.375rem;
  background:rgba(255,255,255,.7);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.header-burger span{width:1.5rem;height:2px;background:var(--color-black)}
.mobile-sheet{position:absolute;left:0;right:0;top:0;max-height:90vh;overflow-y:auto;
  background:rgba(255,255,255,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  color:var(--color-black);text-transform:uppercase;font-family:var(--font-body);padding:0 0 1.5rem}
.mobile-sheet[hidden]{display:none}
/* shadcn's SheetContent renders its own close button; porting the sheet by
   hand left it out, so the open menu covered the burger with no way back.
   Same placement and behaviour as the real one: absolute right-4 top-4, the
   lucide X at 24px, 70% until hover. */
.sheet-close{position:absolute;right:1rem;top:1rem;z-index:1;display:grid;place-items:center;
  padding:0;border:0;background:none;color:var(--color-black);cursor:pointer;border-radius:.125rem;
  opacity:.7;transition:opacity .2s}
.sheet-close:hover{opacity:1}
.sheet-close:focus-visible{outline:2px solid var(--color-black);outline-offset:2px}
.sheet-logo{display:flex;align-items:center;height:2.75rem;margin:.5rem 1rem 0 1.5rem}
.sheet-groups{display:flex;flex-direction:column;padding:1.75rem 0 0 .5rem}
.sheet-group{border-top:1px solid #f3f4f6}
.sheet-group:first-child{border-top:0}
.sheet-trigger{display:flex;align-items:center;gap:.5rem;width:100%;padding:.75rem 1rem;border:0;
  background:none;cursor:pointer;font:inherit;letter-spacing:inherit;font-size:1rem;font-weight:500;color:var(--color-black);
  text-align:left;text-transform:uppercase}
.sheet-group.is-open .header-chevron{transform:rotate(180deg)}
.sheet-items{display:flex;flex-direction:column;padding:0 0 .5rem 1rem}
.sheet-items[hidden]{display:none}
.sheet-link{padding:.25rem 0;font-size:.875rem;color:#4b5563;text-decoration:none}
.sheet-link:hover{color:#111827}
.sheet-link.is-here{color:var(--color-black);font-weight:700}
.sheet-cta{display:flex;justify-content:center;padding:1rem 1.5rem 0}

@media(min-width:640px){.header-inner{padding:1rem 2.5rem}.header-logo{padding:0 1rem;height:3rem}}
@media(min-width:768px){.header-inner{padding:1rem 5rem}}
@media(min-width:1024px){
  .header-nav{display:flex;align-items:center;column-gap:2rem;position:relative;
    padding:0 1rem;height:3rem;background:rgba(255,255,255,.4);border-radius:.625rem;
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .header-right{gap:2.5rem}
  .header-burger,.mobile-sheet{display:none}
}

/* ------------------------------------------------------------- footer
   Ported from src/components/Footer.tsx, FooterDesktop.tsx,
   FooterMobile.tsx and AnimatedLogos.tsx, with the Tailwind utilities and
   .logos-* / .text-* rules from globals.css and dsm.scss resolved to the
   values they compile to. Same DOM, same class names, same numbers. */
.site-foot{position:relative;z-index:20;max-width:120rem;margin:0 auto;width:100%;
  background:var(--color-black);color:var(--color-white);text-align:center}
.text-body-sm{font-family:var(--font-body);font-size:.75rem;line-height:normal;letter-spacing:.06em}
.text-cta-medium{font-family:var(--font-body);font-size:.75rem;line-height:normal;letter-spacing:.06em}
.page-padding-x{padding-left:1.75rem;padding-right:1.75rem;max-width:120rem;margin:0 auto}
.site-foot a{color:inherit;text-decoration:none}

/* AnimatedLogos */
.logos-wrapper{position:relative;width:100%;overflow:hidden;background:var(--color-black);padding-top:1rem;cursor:grab}
.logos-wrapper[data-grabbing="true"]{cursor:grabbing}
.logos-slider{position:relative;width:100%;overflow:hidden;white-space:nowrap}
.logos-track{display:flex;width:max-content;align-items:center;position:absolute;
  user-select:none;-webkit-user-select:none;pointer-events:none;will-change:transform}
/* The live site serves each logo resized through next/image, so filling a
   150x40 box costs it nothing. These are the original 417x209 files, and
   forcing them into that ratio stretched every one 1.88x wide. Each keeps
   its own proportions instead. */
.logo-item{display:inline-block;height:2.5rem;width:auto;object-fit:contain;
  flex-shrink:0;margin:0 32px;user-select:none;-webkit-user-select:none}

.footer-body{padding-bottom:2rem}
.footer-head{padding-top:1.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}
.footer-marks{display:flex;justify-content:center;align-items:center;gap:15px}
.footer-rule{width:1px;height:33px;background:var(--color-white)}
.footer-address{margin-top:1.25rem}
.footer-contacts{display:flex;margin-top:.375rem;justify-content:center;align-items:center;gap:.5rem;
  font-family:var(--font-body);font-size:.75rem;line-height:normal;letter-spacing:.06em}

.footer-podcast{display:flex;align-items:center;gap:1.25rem;width:fit-content;
  border:1px solid var(--color-white);border-radius:.75rem;padding:.5rem .75rem;
  transition:background-color .2s ease-in-out,color .2s ease-in-out}
.footer-podcast:hover{background:var(--color-white);color:var(--color-black)}
.footer-socials{display:flex;align-items:center;justify-content:center}
.footer-socials img{width:3.5rem;height:3.5rem;transition:transform .2s ease-in-out}
.footer-csr{display:inline-flex;align-items:center;gap:.5rem;font-size:1.125rem}
.footer-csr img{width:3rem;height:3rem}

.footer-desktop{display:none}
.footer-mobile{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:1.25rem 0;gap:1.25rem}
.footer-mobile .footer-socials{gap:1rem}
.footer-legal{display:flex;justify-content:center;align-items:center;gap:.5rem}
.footer-totop{display:flex;justify-content:center;align-items:center;margin-top:1.25rem}
.footer-totop button{border:0;background:none;padding:0;cursor:pointer}

@media(min-width:1024px){
  .page-padding-x{padding-left:6.75rem;padding-right:6.75rem}
  .text-body-sm{font-size:.875rem}
  .logos-wrapper{padding-top:2rem}
  .logo-item{height:3rem}
  .footer-body{padding-bottom:4rem}
  .footer-head{padding-top:4rem}
  .footer-address{margin-top:2.5rem}
  .footer-desktop{display:flex;justify-content:space-between;align-items:center;padding:2.5rem 0}
  .footer-col-left,.footer-col-right{flex:1;display:flex;align-items:center}
  .footer-col-right{justify-content:flex-end;gap:1rem}
  .footer-desktop .footer-socials{gap:.875rem}
  .footer-socials img:hover{transform:scale(1.25)}
  .footer-mobile,.footer-totop{display:none}
}

@media print{.site-header,.mobile-sheet,.site-foot{display:none}}

