/* =========================================================================
   Glass header — same recipe as shughri.com: a floating bar 20px in from the
   edges, frosted (blur + saturate), soft shadow; dark glass over dark sections.
   ========================================================================= */
.header, .header.is-scrolled {
  position: fixed; inset: 0 0 auto 0; height: auto; background: transparent; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; padding-top: 14px;
}
/* floating glass bar, 20px in from the edges (user chose this version) */
.header .wrap {
  pointer-events: auto; width: calc(100% - 40px); max-width: calc(var(--max) + 40px); height: 66px; margin-inline: auto;
  padding-inline: 18px 10px; gap: 32px;
  background: rgba(237, 239, 242, .38);
  backdrop-filter: blur(36px) saturate(220%) brightness(1.03);
  -webkit-backdrop-filter: blur(36px) saturate(220%) brightness(1.03);
  box-shadow: 0 14px 38px rgba(5, 5, 5, .07);
  transition: background .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1);
}
.header.is-scrolled .wrap { background: rgba(237, 239, 242, .55); box-shadow: 0 14px 38px rgba(5, 5, 5, .09); }
.header .header__logo img, .header.is-scrolled .header__logo img { height: 30px; }
.header .header__cta { height: 46px; padding-inline: 22px; font-size: 16px; }

/* over dark sections (reviews, footer): dark glass, light content */
.header.is-dark .wrap {
  background: rgba(16, 16, 20, .34);
  backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}
.header.is-dark .nav a, .header.is-dark .header__phone { color: rgba(255, 255, 255, .86); }
.header.is-dark .nav a:hover { color: #fff; }
.header.is-dark .header__logo img { filter: brightness(0) invert(1); }
.header.is-dark .menu-btn span { background: #fff; }

.hero { padding-top: 76px; }
.mobile-nav { inset: 0 !important; padding-top: 96px !important; }

/* two-line menu icon */
.menu-btn span { inset-inline: 13px; height: 1.5px; }
.menu-btn span:nth-child(1) { top: 20px; }
.menu-btn span:nth-child(2) { top: 27px; }
.is-menu .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.is-menu .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header .wrap { padding-inline: 14px 8px; }
}
@media (max-width: 900px) {
  .header, .header.is-scrolled { padding-top: 10px; }
  .header .wrap { width: calc(100% - 24px); height: 56px; padding-inline: 14px 4px; }
  /* logo on the right, smaller; no red arrow box; menu on the left */
  .header .header__logo img, .header.is-scrolled .header__logo img { height: 22px; }
  .header .header__cta { display: none; }
  .hero { padding-top: 64px; }
  .mobile-nav { padding-top: 84px !important; }
}
