/* Shared site header — loaded by every public page.
   Uses selectors specific enough to win over older per-page header CSS. */

body > header#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 130, 32, 0.18);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  transition: box-shadow .3s;
  font-family: 'Trebuchet MS', sans-serif;
}
body > header#header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
html[data-theme="light"] body > header#header {
  background: rgba(245, 247, 250, 0.92);
  border-bottom-color: rgba(230, 126, 34, 0.2);
}
html[data-theme="light"] body > header#header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }

body > header#header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  flex-shrink: 0;
}
body > header#header .logo-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F58220, #c9620d);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  box-shadow: 0 4px 24px rgba(245, 130, 32, 0.22);
  overflow: hidden;
}
body > header#header .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
body > header#header .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
body > header#header .logo-name {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .06em;
  color: #fff;
}
html[data-theme="light"] body > header#header .logo-name { color: #1A1A1A; }
body > header#header .logo-tag {
  font-size: .62rem; font-weight: 400;
  color: #F58220; letter-spacing: .12em; text-transform: uppercase;
}

body > header#header nav#main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
body > header#header nav#main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
html[data-theme="light"] body > header#header nav#main-nav a { color: rgba(26, 26, 26, 0.65); }
body > header#header nav#main-nav a:hover,
body > header#header nav#main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] body > header#header nav#main-nav a:hover,
html[data-theme="light"] body > header#header nav#main-nav a.active {
  color: #1A1A1A;
  background: rgba(0, 0, 0, 0.05);
}

body > header#header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
body > header#header #theme-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s, color .2s, background .2s;
}
html[data-theme="light"] body > header#header #theme-toggle { color: rgba(26, 26, 26, 0.7); }
body > header#header #theme-toggle:hover {
  color: #F58220;
  background: rgba(245, 130, 32, 0.1);
  transform: rotate(20deg);
}

body > header#header .btn-contact {
  background: #F58220;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(245, 130, 32, 0.22);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
body > header#header .btn-contact:hover {
  background: #FF9A3C;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(245, 130, 32, 0.38);
}

body > header#header .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}
body > header#header .hamburger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}
html[data-theme="light"] body > header#header .hamburger span { background: #1A1A1A; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(11, 11, 11, 0.97);
  backdrop-filter: blur(20px);
  padding: 32px 5%;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  border-top: 1px solid rgba(245, 130, 32, 0.18);
}
html[data-theme="light"] .mobile-nav {
  background: rgba(245, 247, 250, 0.97);
  border-top-color: rgba(230, 126, 34, 0.2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
html[data-theme="light"] .mobile-nav a {
  color: rgba(26, 26, 26, 0.65);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.mobile-nav a:hover, .mobile-nav a.active { color: #F58220; }
.mobile-nav .btn-contact { margin-top: 16px; text-align: center; align-self: stretch; }

@media (max-width: 900px) {
  body > header#header nav#main-nav { display: none; }
  body > header#header .hamburger { display: flex; }
  body > header#header .header-actions .btn-contact { display: none; }
}
