/* Header + footer styles, copied unchanged from ../../design/header.html and footer.html (captured 2026-11-13) */

/* ===================== HEADER STYLES (copy with the markup) ===================== */
.hg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  filter: var(--shadow-header);               /* black outline + 14px black scallop edge */
}
.hg-header::before {                           /* striped awning with scalloped bottom */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 118%; z-index: -1;
  background: var(--awning-stripes);
  -webkit-mask: var(--awning-mask); mask: var(--awning-mask);
}
.hg-header__bar {
  display: flex; align-items: center; gap: 1vw;
  padding: 16px 2vw; min-height: var(--header-h); box-sizing: border-box;
}
.hg-header__logo { flex: 0 0 auto; display: inline-block; transition: transform .4s var(--ease-bounce); opacity: 1 !important; }
.hg-header__logo:hover { transform: scale(1.2); }
.hg-header__logo img { display: block; height: 70px; width: auto; filter: var(--shadow-logo); }

.hg-header nav { flex: 1 1 auto; }
.hg-nav { display: flex; align-items: center; gap: 1vw; margin: 0 0 0 1vw; padding: 0; list-style: none; }
.hg-pill, .hg-cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: var(--fw-nav) var(--fs-nav)/1 var(--font-sans);
  color: var(--hg-black); background: var(--hg-neon);
  border: var(--border); border-radius: var(--radius-pill);
  padding: 6px 10px; cursor: pointer; opacity: 1 !important;
  transition: filter .3s ease, transform .4s var(--ease-bounce);
}
.hg-pill:hover, .hg-cta:hover { filter: brightness(1.08); transform: translateY(-2px) scale(1.02); }
.hg-pill svg { width: 1em; height: 1em; }   /* r2 GD-O1: live chevron size */
.hg-cta { animation: hg-demo-color-cycle 3s ease-in-out infinite; }
.hg-cta::after { content: "\2197\FE0E"; margin-left: 2px; }
.hg-header__actions { flex: 0 0 auto; padding-right: 2vw; }
/* Wide screens (measured at 1440px): 18px pills, 8px 16px padding, ~31px between pills, CTA inset 10vw from the right */
@media (min-width: 1280px) {
  .hg-header__bar { padding: 16px 3vw; gap: 32px; }
  .hg-nav { gap: 34px; margin: 0; }   /* r2 GD-O1: live pill spacing */
  .hg-pill, .hg-cta { font-size: 1.2rem; padding: 8px 16px; }
  .hg-header__actions { padding-right: 7vw; }   /* + 3vw bar padding = 10vw, as live */
}

/* Mega menu: one shared panel opened by any folder pill (hover or keyboard focus). */
.hg-mega {
  position: fixed; top: 6vw; left: 2vw; right: 2vw; z-index: 9997;   /* below the header (9999) */
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease .25s, transform .3s ease .25s, visibility 0s linear .55s;  /* close delay lets the pointer cross the gap */
  background: var(--hg-neon); border: var(--border); border-radius: var(--radius-menu);
  box-shadow: var(--shadow-menu); overflow: hidden;
}
.hg-mega::before {                             /* gradient strip across the top */
  content: ""; display: block; height: 50px; opacity: .9; border-bottom: var(--border);
  background: linear-gradient(90deg, var(--hg-rose), var(--hg-lilac), var(--hg-sky), var(--hg-seafoam));
}
.hg-mega:hover, .hg-mega:focus-within,
body:has(.hg-nav [aria-haspopup]:hover) .hg-mega,
body:has(.hg-nav [aria-haspopup]:focus-visible) .hg-mega {
  visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
@media (max-width: 749px) { .hg-mega { display: none; } }
.hg-mega__inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 50px 2vw; }
.hg-mega__col { padding: 0 30px; border-right: 1px solid rgba(0,0,0,.5); }
.hg-mega__col:first-child { padding-left: 0; }
.hg-mega__col:last-child { border-right: 0; padding-right: 0; }
.hg-mega__eyebrow { margin: 0 0 12px; font: 500 .85rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.6); }
.hg-mega a {
  display: block; padding: 6px 0; color: #000; opacity: 1;
  font: 400 .9rem/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s ease;
}
.hg-mega a:hover { color: var(--hg-rose); }
.hg-mega__col--serif a, .hg-mega a.hg-mega__serif {   /* first column + "Book a demo" use Instrument Serif */
  font-family: var(--font-serif); font-size: 1.75rem; letter-spacing: 0; text-transform: none;
}
.hg-mega__divider { height: 1px; background: rgba(0,0,0,.5); margin: 18px 0; }

/* Mobile */
.hg-burger, .hg-mobile-cta { display: none; }
.hg-mobile-menu, .hg-mobile-close { display: none; }
@media (max-width: 749px) {
  .hg-header::before { height: 118%; }
  .hg-header__bar { padding: 10px 20px; justify-content: space-between; position: relative; }
  .hg-header__logo img { height: 50px; filter: var(--shadow-logo-mobile); }
  .hg-nav, .hg-header__actions { display: none; }
  .hg-mobile-cta {
    display: inline-block; position: absolute; left: 61%;   /* r2 GD-O2: live measurement */
    top: 50%; transform: translate(-50%, -50%);
    font: 700 .85rem/1 var(--font-sans); color: #000; border: var(--border); border-radius: var(--radius-pill);
    padding: 8px 14px; white-space: nowrap; animation: hg-demo-color-cycle 3s ease-in-out infinite; opacity: 1 !important;
  }
  .hg-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 6px; background: none; border: 0; cursor: pointer;
  }
  .hg-burger span { display: block; height: 2px; background: #000; }
  .hg-mobile-menu {
    position: fixed; inset: 0; z-index: 9998; overflow-y: auto;   /* under the header, as live */
    background: var(--hg-neon); padding: 90px 7vw 60px; box-sizing: border-box;
  }
  .hg-mobile-menu.is-open { display: block; }
  .hg-mobile-close {
    position: fixed; top: 10px; right: 14px; z-index: 99999;
    width: 44px; height: 44px; border-radius: 100px; border: 1.5px solid #000;
    background: #000; color: var(--hg-neon); font: 700 1.3rem/1 var(--font-sans); cursor: pointer;
    display: none; align-items: center; justify-content: center;
  }
  .hg-mobile-menu.is-open + .hg-mobile-close { display: flex; }
  .hg-mob-section { border-top: 1.5px solid var(--color-divider-on-neon); padding: 18px 0 8px; }
  .hg-mob-section:first-of-type { border-top: 0; padding-top: 0; }
  .hg-mob-eyebrow { display: block; margin-bottom: 8px; font: 700 .75rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--color-eyebrow-on-neon); }
  .hg-mob-link { display: block; padding: 8px 0; font: 700 1.2rem/1.2 var(--font-sans); color: #000; opacity: .85; }
  .hg-mob-link:hover { opacity: 1; }
  .hg-mob-cta { display: block; padding: 9px 0; font: 800 1.3rem/1.2 var(--font-sans); color: #000; }
}
@media (prefers-reduced-motion: reduce) { .hg-cta, .hg-mobile-cta { animation: none; background: var(--hg-neon); } }
/* Push page content below the fixed header (live site uses 100-130px top padding on the first section). */
.hg-header-spacer { height: 130px; }
@media (max-width: 749px) { .hg-header-spacer { height: 100px; } }


/* ===================== FOOTER STYLES (copy with the markup) ===================== */
.hg-footer { padding: 57.6px var(--gutter); }           /* live: page-section padding 4vw */
.hg-footer__card {
  position: relative; overflow: hidden;
  max-width: var(--page-max); margin: 0 auto;
  background: var(--color-footer-bg);
  border-radius: var(--radius-footer);
  padding: 47.52px var(--gutter) 0;
  color: var(--color-footer-text);
}
.hg-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 4vw; }
.hg-footer h3 {                                          /* <strong> headings in the live footer */
  margin: 1.1em 0 .9em; font: 700 var(--fs-body)/1.2 var(--font-sans);
  color: var(--color-footer-heading); text-transform: uppercase; letter-spacing: 0;
}
.hg-footer h3:first-child { margin-top: 0; }
.hg-footer h3 a { color: inherit; font-weight: 700; }
.hg-footer ul { list-style: none; margin: 0; padding: 0; }
.hg-footer li, .hg-footer address {
  font: 600 var(--fs-meta)/1.6 var(--font-sans); letter-spacing: var(--meta-tracking);
  text-transform: uppercase; font-style: normal;
}
.hg-footer a { color: var(--color-footer-link); opacity: 1 !important; transition: color .3s; }
.hg-footer a:hover { color: var(--color-footer-link-hover) !important; }
.hg-footer address { color: var(--color-footer-text); font-weight: 500; margin-top: 0; }
.hg-footer__social { display: flex; gap: 12px; margin-top: 20px; }
.hg-footer__social a { display: inline-flex; width: 22px; height: 22px; }
.hg-footer__social svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hg-footer__wordmark {                                   /* full-color wordmark, as on the live footer (GD-S9, re-checked 2026-11-13) */
  display: block; width: 100%; height: auto; margin: 48px 0 0; padding-bottom: 28px; opacity: 1;
}
@media (max-width: 767px) {
  .hg-footer { padding: 24px var(--gutter-mobile); }
  .hg-footer__card { padding: 32px 24px 0; }
  .hg-footer__cols { grid-template-columns: 1fr; }
}
