
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-charcoal);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  will-change: transform;
  transition: background-color var(--dur-ui) var(--ease),
              box-shadow var(--dur-ui) var(--ease),
              transform var(--dur-media) var(--ease);
}


.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  background: rgba(59, 59, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

/* --- Logo ---------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo-img {
  width: auto;
  height: 48px;
}

/* --- Primary nav --------------------------------------------------------- */
.header-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-nav-link {
  position: relative;
  font-size: var(--text-16);
  color: rgba(255, 255, 255, 0.92);
  padding-block: 8px;
  white-space: nowrap;
}

.header-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-green);
  transition: width var(--dur-ui) var(--ease);
}

.header-nav-link:hover,
.header-nav-link.is-active { color: var(--color-white); }
.header-nav-link:hover::after,
.header-nav-link.is-active::after { width: 100%; }

/* --- Services dropdown --------------------------------------------------- */

.header-nav li.has-dropdown {
  position: relative;
  padding-right: 22px;
}

.nav-dropdown-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.nav-dropdown-toggle:hover { color: var(--color-white); }

.nav-dropdown-toggle[aria-expanded="true"] { transform: translateY(-50%) rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 40;
  min-width: 260px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
	align-items: start!important;
  gap: 2px!important;
}

.nav-dropdown li {
	width: 100%;
}


.header-nav li.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-14);
  color: var(--color-body);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

.nav-dropdown-all {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--color-line);
}
.nav-dropdown-all a { font-weight: 600; color: var(--color-green); }

/* --- Actions ------------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header-mail,
.header-call { padding: 12px 20px; font-size: var(--text-16); }

.header-mail i,
.header-call i { font-size: 18px; }

.header-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-charcoal);
  font-size: 24px;
  line-height: 1;
  flex: none;
  transition: background-color var(--dur-ui) var(--ease),
              color var(--dur-ui) var(--ease);
}

.header-burger:hover {
  background: var(--color-green);
  color: var(--color-white);
}


.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  transition: opacity var(--dur-media) var(--ease);
}
.sidebar-backdrop.is-open { opacity: 1; }

.site-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(524px, 100%);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 1600;
  background: var(--color-charcoal);
  padding: 88px 40px max(40px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--dur-media) var(--ease);
}

.site-sidebar.is-open { transform: translateX(0); }


.sidebar-glyph {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 632px;
  opacity: 0.12;
  pointer-events: none;
}
.sidebar-glyph img { width: 100%; height: auto; }

.site-sidebar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 139, 60, 0.35), transparent);
  pointer-events: none;
  z-index: 0;
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 3;
  transition: transform var(--dur-ui) var(--ease);
}
.sidebar-close:hover { transform: rotate(90deg); }

.sidebar-scroll {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.sidebar-nav {
  position: relative;
  z-index: 2;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-nav a {
  font-size: var(--text-24);
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--dur-ui) var(--ease), padding-left var(--dur-ui) var(--ease);
}

.sidebar-nav a:hover { color: var(--color-white); padding-left: 8px; }


.sidebar-nav li { position: relative; }

.sidebar-nav li.is-active::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
}

.sidebar-nav li.is-active a { color: var(--color-white); }



.sidebar-foot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.sidebar-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-cta .btn { padding: 16px; }

/* Social links (shared with footer) */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 18px;
  transition: background-color var(--dur-ui) var(--ease),
              transform var(--dur-ui) var(--ease);
}

.social-links a:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
}


body.is-locked { overflow: hidden; }


html.lenis,
html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
html.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis-stopped { overflow: hidden; }


@media (max-width: 1200px) {
  .header-nav { display: none; }
}

@media (max-width: 768px) {
  .header-mail span,
  .header-call span { display: none; }
  .header-mail,
  .header-call {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .logo-img { height: 36px; }
}

@media (max-width: 576px) {
  .site-sidebar { padding: 72px 24px max(24px, env(safe-area-inset-bottom, 0px)); }
  .sidebar-close { right: 24px; }
  .sidebar-nav a { font-size: 20px; }
  .header-mail { display: none; }
}

@media (max-height: 640px) {
  .sidebar-nav ul { gap: 12px; }
  .sidebar-nav a { font-size: 18px; }
}
