/* iOS Safari breaks position:fixed children when body/html has
   overflow-x:hidden (used site-wide for full-bleed sections) —
   overflow-x:clip avoids the bug where supported. */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

/* Astra's built-in "back to top" button: force it to the bottom-left
   regardless of the customizer position setting. */
#ast-scroll-top {
  right: auto !important;
  left: 24px !important;
  bottom: 24px !important;
}

@media (max-width: 768px) {
  #ast-scroll-top {
    left: 16px !important;
    bottom: 16px !important;
  }
}

/* ═══════════════════════════════
   GRC HEADER
═══════════════════════════════ */
.grc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.grc-header.scrolled {
  background: #1a1a2e;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  padding: 0 48px;
}

/* ── Logo ── */
.grc-header__logo,
.grc-header .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.grc-header__logo img,
.grc-header .custom-logo-link img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.grc-header__logo:hover img,
.grc-header .custom-logo-link:hover img {
  opacity: 0.85;
}

/* ── Nav ── */
.grc-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.grc-header__nav a {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.grc-header__nav a:hover {
  color: #2FBCD3;
  background: rgba(255, 255, 255, 0.07);
}

.grc-header__nav a.active {
  color: #2FBCD3;
}

/* Contact link styled as a pill button */
.grc-header__nav .nav-cta a {
  color: #fff;
  background: #1B6CA8;
  padding: 7px 18px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.grc-header__nav .nav-cta a:hover {
  background: transparent;
  border-color: #2FBCD3;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Hamburger (mobile) ── */
.grc-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.grc-header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.grc-header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.grc-header__burger.open span:nth-child(2) { opacity: 0; }
.grc-header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
@media (max-width: 960px) {
  .grc-header {
    padding: 0 24px;
  }

  .grc-header.scrolled {
    padding: 0 24px;
  }

  .grc-header__burger {
    display: flex;
  }

  .grc-header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #1a1a2e;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .grc-header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .grc-header__nav li {
    width: 100%;
  }

  .grc-header__nav a {
    padding: 12px 28px;
    border-radius: 0;
    font-size: 0.95rem;
  }

  .grc-header__nav .nav-cta {
    padding: 12px 20px 0;
    width: 100%;
  }

  .grc-header__nav .nav-cta a {
    display: inline-block;
    border-radius: 50px;
    padding: 10px 24px;
  }
}
