/* ============================================================
   fragments.css — header, footer, and fragment styles
   ============================================================ */

/* ── Site Header ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}
.logo {
    color: #1a202c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.logo:hover { color: #667eea; }
.nav-menu { display: flex; gap: 0; align-items: center; }
.nav-item { position: relative; }
.nav-link {
    color: #4a5568;
    text-decoration: none;
    padding: 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}
.nav-link:hover { color: #667eea; }
.dropdown-arrow { font-size: 9px; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: 100%; left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
    border-radius: 10px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    overflow: hidden;
    pointer-events: none;
    z-index: 10000;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown-section { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.dropdown-section:last-child { border-bottom: none; }
.dropdown-title { padding: 6px 16px; font-size: 10px; font-weight: 700; color: #667eea; text-transform: uppercase; letter-spacing: 0.8px; }
.dropdown-link { display: block; padding: 8px 16px; color: #374151; text-decoration: none; font-size: 13.5px; transition: background 0.1s, color 0.1s; }
.dropdown-link:hover { background: #f5f3ff; color: #667eea; }
.mobile-toggle { display: none; background: none; border: none; color: #4a5568; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.mobile-toggle:hover { background: #f3f4f6; }
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 48px; left: 0; right: 0; background: #fff; flex-direction: column; border-top: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(0,0,0,0.1); max-height: calc(100vh - 48px); overflow-y: auto; }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .nav-link { height: auto; padding: 12px 20px; width: 100%; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; border-top: 1px solid #f0f0f0; display: none; }
    .nav-item.active .dropdown { display: block; }
}

/* ── Site Footer ── */
.site-footer-wrap { background: #1a202c; color: #e2e8f0; padding: 48px 24px 24px; margin-top: 40px; border-top: 3px solid #667eea; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand-icon { font-size: 22px; }
.footer-brand-name { color: #e2e8f0; font-size: 16px; font-weight: 700; margin: 0; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; color: #a0aec0; margin-bottom: 14px; }
.footer-col-title { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-links-col { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid #2d3748; padding-top: 20px; }
.footer-copyright { text-align: center; }
.footer-copyright-main { font-size: 13px; color: #a0aec0; margin-bottom: 8px; }
.footer-copyright-main strong { color: #e2e8f0; font-weight: 600; }
.footer-copyright-sub { font-size: 12px; color: #718096; margin: 0; line-height: 1.6; }

/* ── Footer links ── */
.frag-footer-link {
    color: #a0aec0; text-decoration: none; font-size: 13px; transition: color 0.15s;
    display: flex; align-items: center; gap: 6px; padding: 3px 0;
}
.frag-footer-link .arrow { opacity: 0; transition: opacity 0.15s; }
.frag-footer-link:hover { color: #667eea; }
.frag-footer-link:hover .arrow { opacity: 1; }
.frag-footer-link-purple {
    color: #a0aec0; text-decoration: none; font-size: 13px; transition: color 0.15s;
    display: flex; align-items: center; gap: 6px; padding: 3px 0;
}
.frag-footer-link-purple .arrow { opacity: 0; transition: opacity 0.15s; color: #667eea; }
.frag-footer-link-purple:hover { color: #667eea; }
.frag-footer-link-purple:hover .arrow { opacity: 1; }
