/* ============================================================
   TRIBUNDANT MARKETING LLC — HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  padding-block: 8px;
  display: flex;
  align-items: center;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--tm-border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(27,29,31,0.06); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 40px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  row-gap: 4px;
  column-gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  color: var(--tm-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.primary-nav a:hover {
  color: var(--tm-garnet);
  border-bottom-color: var(--tm-garnet);
}

@media (min-width: 1680px) {
  .primary-nav a { font-size: 0.9rem; padding: 8px 4px; }
  .primary-nav ul { column-gap: var(--sp-2); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--tm-steel);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--tm-garnet); }
.header-phone svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Phone is a nice-to-have on very wide screens only — nav + CTA take priority
   for space on common desktop/laptop widths (measured: full nav + CTA needs
   the room a ~1680px+ viewport actually has). */
@media (min-width: 1680px) {
  .header-phone { display: flex; }
}

.header-actions .btn--primary {
  padding: 12px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-actions .btn--primary .cta-short { display: inline; }
.header-actions .btn--primary .cta-full { display: none; }

@media (min-width: 1680px) {
  .header-actions .btn--primary { padding: 14px 24px; font-size: 1rem; }
  .header-actions .btn--primary .cta-short { display: none; }
  .header-actions .btn--primary .cta-full { display: inline; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--tm-text);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Header gets slightly more room than reading-width content sections —
   it's UI chrome (logo + nav + CTA), not paragraph text. */
.site-header .container {
  max-width: 1400px;
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .brand img { height: 34px; }
  .site-header .container { gap: var(--sp-1); }
}


/* ---- Mobile ---- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }

  .header-actions .btn--primary { display: none; }

  .mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--tm-offwhite);
    z-index: 99;
    padding: var(--sp-4) var(--sp-3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .mobile-nav.is-open { transform: translateX(0); }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-4);
    display: flex;
    flex-direction: column;
  }
  .mobile-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tm-text);
    text-decoration: none;
    border-bottom: 1px solid var(--tm-border);
  }
  .mobile-nav .btn { margin-top: var(--sp-2); }
  .mobile-nav .mobile-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--sp-3);
    font-weight: 600;
    color: var(--tm-steel);
    text-decoration: none;
    font-size: 1.05rem;
  }
}

@media (min-width: 1025px) {
  .mobile-nav { display: none; }
}
