/* ==========================================================================
   Join Network — the header button and the hamburger drawer item
   --------------------------------------------------------------------------
   Its own global sheet, loaded in the layout head beside group-links.css. Not
   app.css (that needs `npm run minify:css`) and not a @stack('styles') sheet,
   because the header and footer render on every page.

   Additive only. Nothing here touches .main-header-nav-ul, .site-footer or any
   other selector app.min.css owns - it styles two new classes and nothing else.
   A pass that reused existing names once silently deleted a design.

   WHY THESE EXIST. /join-network is the only page on the site that earns money:
   buyers pay nothing, yards are the business, and it needs to be reachable from
   every page rather than from one line in the footer quick list.

   A dark CTA band in the footer was built and then removed on 2026-10-01 - the
   user did not want it. The header button, the drawer item and the footer quick
   link are the three entry points that remain.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top header button, beside Contact Us
   --------------------------------------------------------------------------
   .custom-btn already carries the site's button shape, padding and radius from
   app.min.css, so this only recolours it and adds the icon rule. Reusing the
   class is the point: the two buttons sit side by side and must match in
   everything except colour.
   -------------------------------------------------------------------------- */

.main-header-right { display: flex; align-items: center; gap: 10px; }

.main-header-right .custom-btn.header-join-btn {
    background: rgba(var(--primaryColor));
    border-color: rgba(var(--primaryColor));
    color: #fff;
    gap: 7px;
}

.main-header-right .custom-btn.header-join-btn:hover {
    background: rgba(var(--secondaryColor));
    border-color: rgba(var(--secondaryColor));
    color: #fff;
}

.main-header-right .custom-btn.header-join-btn svg { flex: 0 0 15px; }

/* NOT hidden on smaller screens. It was display:none below 991px, which is why
   the user could see Contact Us beside it but never this - any window narrower
   than that, including a laptop at a comfortable zoom, lost the only revenue
   link in the header. It stays and gets tighter instead; the label drops below
   560px where two full buttons genuinely will not fit. */
@media (max-width: 1100px) {
    .main-header-right { gap: 8px; }
    .main-header-right .custom-btn.header-join-btn { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 560px) {
    .main-header-right .custom-btn.header-join-btn span { display: none; }
    .main-header-right .custom-btn.header-join-btn { padding: 11px 13px; }
    .main-header-right .custom-btn.header-join-btn svg { flex: 0 0 17px; width: 17px; height: 17px; }
}

/* --------------------------------------------------------------------------
   Hamburger drawer item
   --------------------------------------------------------------------------
   The drawer is a fixed 290px off-canvas column, and every other row is a
   left-aligned icon + label at 12px/20px padding. This one matched none of that
   and read as misaligned, so it now follows the same geometry exactly and is
   distinguished by colour alone.
   -------------------------------------------------------------------------- */

/* Inset from the drawer edges. The sibling rows are plain text links that can sit
   flush, but this one has a filled background, and at the inherited width:100% the
   red block ran into both side borders of the 290px panel. The li carries the
   gutter so the anchor's own padding is left untouched. */
.main-header-nav-ul .nav-join-li {
    margin: 12px 14px 6px;
    width: auto;
}

.main-header-nav-ul a.nav-join {
    /* padding, display, width and align-items come from `.main-header-nav-ul a`.
       Only the look and the centring are set here. */
    justify-content: center;
    background: rgba(var(--primaryColor));
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 7px;
    padding: 11px 14px !important;
    gap: 7px;
    transition: background .18s ease;
}

.main-header-nav-ul a.nav-join:hover { background: rgba(var(--secondaryColor)); color: #fff !important; }

/* Smaller than the sibling 20px icons: this is a button, not a nav row. */
.main-header-nav-ul a.nav-join svg { flex: 0 0 15px; width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Directory grid CTA
   --------------------------------------------------------------------------
   A full-width row inside .dismantlers-item-wrapper, which is a flex-wrap grid
   of .dismantlers-item at 33.33%. This takes 100% so it occupies a row of its
   own, and matches the cards' 10px padding so it lines up with them exactly.

   Every six cards - two rows at the desktop 3-up - and never after the last.
   -------------------------------------------------------------------------- */

.dir-join {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
}

.dir-join-inr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.8vw, 34px);
    background: #0b0d10;
    border-radius: 12px;
    overflow: hidden;
}

.dir-join-inr::after {
    content: '';
    position: absolute;
    right: -8%;
    top: -70%;
    width: 38%;
    height: 240%;
    background: rgba(var(--primaryColor));
    opacity: .16;
    transform: skewX(-13deg);
    pointer-events: none;
}

.dir-join-text { position: relative; z-index: 2; max-width: 62ch; }

.dir-join-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 7px;
}

.dir-join h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -.015em;
}

.dir-join p {
    font-size: .9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .72);
    margin: 0;
}

.dir-join-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 14px 26px;
    border-radius: 7px;
    background: rgba(var(--primaryColor));
    color: #fff !important;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.dir-join-btn:hover { background: #fff; color: #0b0d10 !important; transform: translateY(-2px); }
.dir-join-btn svg { transition: transform .2s ease; }
.dir-join-btn:hover svg { transform: translateX(3px); }

@media (max-width: 767px) {
    .dir-join-inr { flex-direction: column; align-items: flex-start; gap: 16px; }
    .dir-join-btn { width: 100%; }
}
