/* ==========================================================================
   TVC shared site header
   --------------------------------------------------------------------------
   Single source of truth for the primary nav across every page.

   Deliberately self-contained: all values are literal, with no dependency on
   page-level custom properties. The interior pages each carry their own inline
   <style> block and they do NOT agree with one another (approach.html defines
   --tvc-ink-soft but not --volt; about.html the reverse), so inheriting tokens
   here is what let the header drift apart in the first place. If a token below
   needs to change, change it here and it changes everywhere.

   Load this AFTER any page-level <style> block so it wins on collisions.
   ========================================================================== */

.tvc-header{
  position:sticky;
  top:0;
  z-index:60;
  width:100%;
  background:#F4F1EC;
  color:#1A1714;
  border-bottom:1px solid rgba(26,23,20,0.14);
}

.tvc-header__inner{
  max-width:1440px;
  margin:0 auto;
  padding:20px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.tvc-header .tvc-wordmark{display:flex;align-items:center;gap:11px;color:#1A1714;text-decoration:none}
.tvc-header .tvc-wordmark img{height:13px;width:auto;display:block}
.tvc-header .tvc-dot{width:6px;height:6px;border-radius:50%;background:#CCFF00;display:block;flex:none}

.tvc-nav{
  display:flex;
  align-items:center;
  gap:30px;
  font-family:'Origin Text',Georgia,serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#3B342C;
}
.tvc-nav a{color:inherit;text-decoration:none;opacity:1}
.tvc-nav a:hover{color:#1A1714;opacity:1}
.tvc-nav a[aria-current="page"]{color:#1A1714}

.tvc-nav__cta{
  border:1px solid rgba(26,23,20,0.55);
  color:#1A1714;
  padding:11px 18px;
}
.tvc-nav__cta:hover{background:#1A1714;color:#F4F1EC}

/* ---------- Mobile: hamburger ----------
   The button is created by assets/js/tvc-nav.js, which also sets
   data-nav-enhanced on the header. Every collapsed style below is scoped to
   that attribute, so without JS the nav stays visible and simply wraps — the
   behaviour before the hamburger existed. A menu that hides itself and then
   fails to open is the outcome worth designing out.

   (The legacy header was flex-wrap:nowrap and needed 739px to lay out while
   body{overflow-x:hidden} clipped the overflow, so on a phone the last two
   links were unreachable. Wrapping is the no-JS floor.) */
.tvc-nav__toggle{display:none}

@media (max-width:760px){
  .tvc-header__inner{padding:16px 22px;flex-wrap:wrap;gap:16px}
  .tvc-nav{gap:16px;font-size:10px;flex-wrap:wrap;justify-content:flex-start}
  .tvc-nav__cta{padding:9px 14px}

  .tvc-header[data-nav-enhanced] .tvc-nav__toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    /* 44px is the minimum comfortable touch target. */
    width:44px;
    height:44px;
    margin:-10px -10px -10px 0;
    padding:0;
    background:none;
    border:0;
    color:#1A1714;
    cursor:pointer;
  }
  .tvc-nav__bars,
  .tvc-nav__bars::before,
  .tvc-nav__bars::after{
    content:"";
    display:block;
    width:22px;
    height:1.5px;
    background:currentColor;
    transition:transform 0.22s ease,opacity 0.16s ease;
  }
  .tvc-nav__bars{position:relative}
  .tvc-nav__bars::before{position:absolute;top:-7px;left:0}
  .tvc-nav__bars::after{position:absolute;top:7px;left:0}

  /* Open state: the bars become an X. */
  .tvc-header[data-nav-open] .tvc-nav__bars{background:transparent}
  .tvc-header[data-nav-open] .tvc-nav__bars::before{transform:translateY(7px) rotate(45deg)}
  .tvc-header[data-nav-open] .tvc-nav__bars::after{transform:translateY(-7px) rotate(-45deg)}

  /* The panel. flex-basis:100% drops it onto its own row below the wordmark,
     using the wrap already set on .tvc-header__inner. */
  .tvc-header[data-nav-enhanced] .tvc-nav{
    display:none;
    flex-basis:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    font-size:12px;
    margin:0 -22px -16px;
    padding:4px 22px 14px;
    border-top:1px solid rgba(26,23,20,0.14);
  }
  .tvc-header[data-nav-enhanced][data-nav-open] .tvc-nav{display:flex}
  .tvc-header[data-nav-enhanced] .tvc-nav a{
    padding:15px 0;
    border-bottom:1px solid rgba(26,23,20,0.09);
  }
  .tvc-header[data-nav-enhanced] .tvc-nav a:last-child{border-bottom:0}
  /* The Contact CTA keeps its outline but goes full width in the stack. */
  .tvc-header[data-nav-enhanced] .tvc-nav__cta{
    margin-top:14px;
    padding:13px 18px;
    text-align:center;
    border:1px solid rgba(26,23,20,0.55);
  }
}

@media (prefers-reduced-motion:reduce){
  .tvc-nav__bars,
  .tvc-nav__bars::before,
  .tvc-nav__bars::after{transition:none}
}
