/* =====================================================
   TPLC Header Plugin — tplc-header.css
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* ── Header Shell ── */
.tplc-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 74px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s,
                border-color .35s, box-shadow .35s;
}

.tplc-header.tplc-header-scrolled {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.tplc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ── Logo ── */
.tplc-header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.tplc-header-logo-img {
    width: 160px;
    height: 48px;
    object-fit: contain;
    animation: tplcLogoReveal .8s cubic-bezier(.22,1,.36,1) both;
    transform-origin: left center;
}

@keyframes tplcLogoReveal {
    0%   { opacity:0; transform:translateX(-18px) scale(.9); filter:blur(4px); }
    100% { opacity:1; transform:translateX(0) scale(1);  filter:blur(0); }
}

.tplc-header-logo-link:hover .tplc-header-logo-img { opacity:.82; transition: opacity .2s; }

/* ── Desktop Nav ── */
.tplc-header-nav { flex: 1; display: flex; justify-content: center; }

.tplc-header-nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.tplc-header-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    transition: color .18s, background .18s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.tplc-header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 12px; right: 12px;
    height: 2px;
    background: #1a1a1a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
    border-radius: 2px;
}

.tplc-header-nav-link:hover { background: rgba(0,0,0,.04); }
.tplc-header-nav-link:hover::after,
.tplc-header-nav-link.tplc-nav-active::after { transform: scaleX(1); }
.tplc-header-nav-link.tplc-nav-active { font-weight: 600; }

/* ── Actions ── */
.tplc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.tplc-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background .18s, transform .18s;
    white-space: nowrap;
}

.tplc-header-cta:hover { background: #333; transform: translateY(-1px); }

/* ── Hamburger ── */
.tplc-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    gap: 5px;
    background: none;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: border-color .2s;
}

.tplc-hamburger:hover { border-color: rgba(0,0,0,.3); }

.tplc-ham-bar {
    display: block;
    width: 20px; height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform .28s ease, opacity .2s;
}

.tplc-hamburger[aria-expanded="true"] .tplc-ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tplc-hamburger[aria-expanded="true"] .tplc-ham-bar:nth-child(2) { opacity: 0; }
.tplc-hamburger[aria-expanded="true"] .tplc-ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ── */
.tplc-mobile-menu {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
    z-index: 9998;
}

.tplc-mobile-menu.tplc-menu-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.tplc-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tplc-mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background .15s;
}

.tplc-mobile-nav-link:hover,
.tplc-mobile-nav-link.tplc-nav-active { background: rgba(0,0,0,.05); font-weight: 600; }

.tplc-mobile-phone-wrap { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }

.tplc-mobile-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .tplc-header-nav,
    .tplc-header-cta { display: none; }
    .tplc-hamburger  { display: flex; }
    .tplc-header-inner { gap: 16px; }
}
