/* ============================================================
   LOCAL CHAMPION — Site Header
   Colors, fonts, and nav structure copied exactly from the source
   #lc26 .lc-nav design: --lc-orange:var(--lc-orange), --lc-orange-glow:var(--lc-orange),
   --lc-page:var(--lc-page), --lc-cream:var(--lc-paper), hairline rgba(var(--lc-text-rgb),.10),
   font-sans 'PP Neue Montreal','Hanken Grotesk'. Scoped entirely under
   .lc-site-header — safe alongside Elementor-built pages.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

.lc-site-header,
.lc-site-header *,
.lc-site-header *::before,
.lc-site-header *::after {
  box-sizing: border-box;
}

#masthead.lc-site-header {
  --lch-orange: var(--lc-orange);
  --lch-orange-glow: var(--lc-orange);
  --lch-page: var(--lc-page);
  --lch-cream: var(--lc-paper);
  --lch-hairline: rgba(var(--lc-surface-rgb), 0.85);
  --lch-font-sans: "PP Neue Montreal", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --lch-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lch-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --lch-header-h: 76px;

  font-family: var(--lch-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 260ms var(--lch-ease), border-color 260ms var(--lch-ease), box-shadow 260ms var(--lch-ease);

  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  width: 100% !important;
  background: var(--lch-page) !important;
  border-bottom: 1px solid var(--lch-hairline) !important;
}

.lc-site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- transparent-over-hero variant (front page only) ----------
   Hardened to #masthead ID specificity + !important: on some live sites
   another stylesheet (an Elementor global kit, a leftover plugin style,
   a previous theme's cached CSS) also targets #masthead — that's a very
   common ID — and an ID selector beats a plain class selector no matter
   which stylesheet loads later. Without this, .lc-site-header--transparent
   could have the class applied correctly in the DOM (visible in
   DevTools) while still losing the actual background/position fight to
   that other rule, which looked exactly like "transparent isn't working"
   even though the logic that adds the class was correct all along. */
#masthead.lc-site-header--transparent {
  position: fixed !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
}
#masthead.lc-site-header--transparent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(110px, 12vw, 180px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--lc-page-rgb), 0.66) 0%, rgba(var(--lc-page-rgb), 0) 100%);
  opacity: 1;
  transition: opacity 260ms var(--lch-ease);
}
#masthead.lc-site-header--transparent.is-scrolled {
  background: var(--lch-page) !important;
  border-bottom-color: var(--lch-hairline) !important;
}
#masthead.lc-site-header--transparent.is-scrolled::before {
  opacity: 0;
}
/* Fixed headers are removed from normal flow — give the page content
   below a spacer only in the solid state, never while transparent
   (that gap would break the "nav floats over the hero photo" look). */
.lc-site-header--transparent + .lc-site-main {
  margin-top: 0;
}

.lc-site-header a {
  color: var(--lch-cream);
  text-decoration: none;
}

.lc-site-header img,
.lc-site-header svg {
  max-width: 100%;
  display: block;
}

.lc-site-header :focus-visible {
  outline: 2px solid var(--lch-orange-glow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- bar layout ---------- */
.lc-site-header__inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(16px, 1.9vw, 27px) clamp(20px, 3.5vw, 50px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

/* logo */
.lc-site-header__brand {
  justify-self: center;
  display: flex;
  align-items: center;
  min-width: 0;
}
.lc-site-header__brand img,
.lc-site-header__brand svg {
  height: clamp(20px, 2.1vw, 30px);
  width: auto;
}

/* desktop nav links */
.lc-site-header__nav {
  min-width: 0;
}
.lc-nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.5vw, 24px);
  margin: 0;
  padding: 0;
  font-size: clamp(13px, 1.05vw, 15px);
}
.lc-nav-menu li {
  margin: 0;
  position: relative;
}
.lc-nav-menu a {
  opacity: 1;
}
.lc-nav-menu .current-menu-item > a {
  color: var(--lch-orange-glow);
  opacity: 1;
}
/* nested submenus (if editors add them) — simple flyout, no JS required */
.lc-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--lc-surface-solid);
  border: 1px solid var(--lch-hairline);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms var(--lch-ease), transform 160ms var(--lch-ease), visibility 160ms;
}
.lc-nav-menu li:hover > ul,
.lc-nav-menu li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lc-nav-menu ul li {
  padding: 0;
}
.lc-nav-menu ul a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}


/* right side: sign in + hamburger (no Book a Demo — not part of the
   original nav design) */
.lc-site-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.lc-signin {
  display: inline-flex;
  align-items: center;
  height: clamp(34px, 2.8vw, 40px);
  padding: 0 clamp(12px, 1.4vw, 20px);
  border: 1px solid var(--lch-cream);
  border-radius: 63px;
  font-size: clamp(13px, 1.05vw, 15px);
  white-space: nowrap;
  transition: background-color 180ms var(--lch-ease);
}

.lc-signin-arrow {
  width: clamp(34px, 2.8vw, 40px);
  height: clamp(34px, 2.8vw, 40px);
  border: 1px solid var(--lch-cream);
  border-radius: 50%;
  margin-left: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex: none;
  transition: background-color 180ms var(--lch-ease);
}


/* Optional "Book a Demo" button in the header (Local Champion →
   Header & Footer → Show in header). Sized to sit level with the
   Sign in pill rather than the taller default CTA height. */
.lc-site-header__demo {
  height: clamp(34px, 2.8vw, 40px);
  padding: 0 clamp(12px, 1.4vw, 20px);
  margin-left: 10px;
  font-size: clamp(13px, 1.05vw, 15px);
  flex: none;
}

/* hamburger toggle — hidden on desktop; needed because the original
   design simply hides the nav links below 900px with no replacement,
   which leaves mobile visitors with no way to navigate at all. */
.lc-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 10px;
  border: 1px solid var(--lch-hairline);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex: none;
}

.lc-menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.lc-menu-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lch-cream);
  transition: transform 220ms var(--lch-ease), opacity 180ms var(--lch-ease), top 220ms var(--lch-ease);
}
.lc-menu-toggle__bars span:nth-child(1) { top: 0; }
.lc-menu-toggle__bars span:nth-child(2) { top: 5px; }
.lc-menu-toggle__bars span:nth-child(3) { top: 10px; }

.lc-site-header.is-menu-open .lc-menu-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.lc-site-header.is-menu-open .lc-menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.lc-site-header.is-menu-open .lc-menu-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------- mobile panel ---------- */
.lc-mobile-panel {
  position: fixed;
  inset: 0;
  top: var(--lch-header-h, 76px);
  z-index: 998;
  background: var(--lch-page);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 6vw, 36px) clamp(20px, 6vw, 36px) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--lch-ease), transform 200ms var(--lch-ease), visibility 200ms;
}
.lc-site-header.is-menu-open .lc-mobile-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.lc-mobile-panel .lc-nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}
.lc-mobile-panel .lc-nav-menu a {
  display: block;
  width: 100%;
  padding: 14px 4px;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  border-bottom: 1px solid var(--lch-hairline);
}
.lc-mobile-panel .lc-nav-menu ul {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0 0 0 14px;
}
.lc-mobile-panel .lc-nav-menu ul a {
  font-size: clamp(1rem, 4vw, 1.15rem);
  border-bottom: 1px solid rgba(var(--lc-text-rgb), 0.06);
}

.lc-mobile-panel__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-mobile-panel__ctas .lc-signin {
  width: 100%;
  height: 52px;
  font-size: 1rem;
  justify-content: center;
}

/* prevent background scroll while the mobile panel is open */
html.lc-no-scroll,
html.lc-no-scroll body {
  overflow: hidden;
  height: 100%;
}

/* ---------- responsive: desktop / tablet / mobile ---------- */
@media (min-width: 901px) {
  .lc-mobile-panel {
    display: none;
  }
}

/* Tablet (iPad portrait and up to just under desktop nav threshold) */
@media (max-width: 1024px) and (min-width: 901px) {
  .lc-site-header__inner {
    padding-left: clamp(20px, 3vw, 36px);
    padding-right: clamp(20px, 3vw, 36px);
  }
  .lc-nav-menu {
    gap: clamp(8px, 1.2vw, 16px);
    font-size: 13px;
  }
}

/* Mobile + small tablet: collapse to hamburger, matching (and fixing)
   the original design's own 900px breakpoint. */
@media (max-width: 900px) {
  .lc-site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .lc-site-header__brand {
    justify-self: start;
  }
  .lc-site-header__nav {
    display: none;
  }
  .lc-signin,
  .lc-signin-arrow,
  .lc-site-header__demo {
    display: none;
  }
  .lc-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .lc-site-header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-site-header,
  .lc-site-header * {
    transition-duration: 0.001ms !important;
  }
}
