/* Спільні стилі донорського хедера/навігації/бургера.
   Використовується: property.php, model-homes.php, contact.php, gallery.php. */

.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(17, 18, 20, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.scroll-progress {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0%;
  background: #4d8fff; transition: width 0.1s linear; z-index: 1;
}
.header--scrolled {
  background: rgba(17, 18, 20, 0.96);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.header__logo { display: flex; align-items: center; transition: opacity 0.2s ease; }
.header__logo:hover { opacity: 0.8; }
.header__logo img { height: 96px; width: auto; display: block; }

.nav { display: block; }
.nav__list { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.75); letter-spacing: 0.02em;
  padding: 6px 0; position: relative; text-decoration: none;
}
.nav__link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: #4d8fff; border-radius: 1px; transition: width 0.35s ease;
}
.nav__link:hover { color: #e8edf5; }
.nav__link:hover::after { width: 100%; }
.nav__cta.btn {
  padding: 11px 36px;
  background-color: rgba(255,255,255,0.10);
  color: #e8edf5;
  border: 1.5px solid rgba(255,255,255,0.30);
  margin-left: 8px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: none; transition: all 0.35s ease;
}
.nav__cta.btn:hover {
  background-color: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px); color: #e8edf5;
}
.nav__cta.btn::after { display: none; }

.burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 32px; height: 32px; cursor: pointer;
  z-index: 1100; border: none; background: none;
}
.burger__line {
  display: block; width: 100%; height: 2px;
  background: #e8edf5; border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger.is-active .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active .burger__line:nth-child(2) { opacity: 0; }
.burger.is-active .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1040;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: -100%;
    width: min(85vw, 380px); height: 100vh;
    background: #111214; padding: 140px 40px 40px;
    transition: right 0.35s ease; z-index: 1050; overflow-y: auto;
  }
  .nav.is-open { right: 0; }
  .nav-overlay { display: block; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 24px; }
  .nav__link { font-size: 1.1rem; color: rgba(255,255,255,0.8); }
  .nav__cta { margin-left: 0; margin-top: 16px; }
  .burger { display: flex; }
}
