/* Shared professional site header - used on every page across every site. Purely structural - no
   color values live here; each site's own site.css defines --site-dark/--site-dark-2/--site-light/
   --site-accent, which this file references via var(). Union of every site's header features
   (brand logo image, Services dropdown, mode-toggle button) - a site's HTML simply won't have the
   elements for features it doesn't use, so the unused rules here are harmless. Load this AFTER
   that site's own site.css, which must define --site-dark/--site-dark-2/--site-light/
   --site-accent - this file only ever reads them via var(), never defines them. */

.site-topbar {
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 60%, var(--site-light) 100%);
    padding: 14px 0;
}
.site-topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.site-topbar .brand-link { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-topbar .brand-link i { font-size: 1.3em; }
.site-topbar .brand-logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.site-topbar .brand-link span, .site-topbar .brand-link h1 { font-weight: 700; font-size: 1.15em; margin: 0; color: #fff; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: rgba(255,255,255,.9); text-decoration: none; font-size: .95em; font-weight: 500; display: flex; align-items: center; gap: 6px; transition: color .2s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a.is-cta { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); padding: 8px 16px; border-radius: 30px; }
.site-nav a.is-cta:hover { background: #fff; color: var(--site-dark); }

/* ===== Services dropdown (root site only) ===== */
.site-nav-dropdown { position: relative; }
.site-nav-dropdown-toggle { background: none; border: none; color: rgba(255,255,255,.9); font: inherit; font-size: .95em; font-weight: 500; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 0; transition: color .2s ease; }
.site-nav-dropdown-toggle:hover { color: #fff; }
.site-nav-dropdown-toggle .fa-chevron-down { font-size: .8em; transition: transform .2s ease; }
.site-nav-dropdown.open .site-nav-dropdown-toggle .fa-chevron-down { transform: rotate(180deg); }

.site-nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 14px); right: 0; background: #fff; border-radius: 12px; box-shadow: 0 16px 36px rgba(20,22,31,.18); padding: 8px; min-width: 220px; z-index: 20; }
.site-nav-dropdown.open .site-nav-dropdown-menu { display: block; }
.site-nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #23272f; font-size: .92em; font-weight: 500; text-decoration: none; }
.site-nav-dropdown-menu a:hover { background: #f5f6f8; color: var(--site-dark); }
.site-nav-dropdown-menu a i { width: 18px; text-align: center; color: var(--site-light); }

/* ===== Mode toggle button (jsonparser only) ===== */
.header-mode-toggle { display: flex; align-items: center; gap: 8px; }
.header-mode-toggle .button { margin: 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9); padding: 7px 14px; border-radius: 30px; font-size: .85em; cursor: pointer; transition: all .2s ease; }
.header-mode-toggle .button:hover { background: rgba(255,255,255,.22); color: #fff; }
.header-mode-toggle .button.active { background: #fff; color: var(--site-dark); border-color: #fff; font-weight: 600; }

@media (max-width: 860px) {
    .site-nav { gap: 12px; }
    .site-nav a span.nav-text, .site-nav-dropdown-toggle span.nav-text { display: none; }
    .site-nav-dropdown-menu { right: -10px; }
}

@media (max-width: 700px) {
    .header-mode-toggle { order: 3; width: 100%; justify-content: center; margin-top: 6px; }
}
