/* Masthead — M01.
 *
 * Solid Deep Navy Blue menubar across all pages.
 * Desktop: "Contact us" in header menu (60px bar).
 * Mobile: Slim 50px header bar with floating contact sticker on bottom-right.
 */

.pl-masthead,
.pl-masthead--overlay {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pl-navy, #0A2540) !important;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.35);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.pl-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2, 0.75rem);
  min-height: 50px; /* Slim on mobile */
  padding-block: 0.25rem;
  flex-wrap: wrap;
}

.pl-masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
  min-height: 38px;
}

.pl-masthead__wordmark {
  font-family: var(--font-display, inherit);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1rem; /* Compact on mobile */
  letter-spacing: -0.01em;
  color: #ffffff;
}

.pl-logo {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.pl-logo__water {
  fill: var(--pl-sky, #8FBFD4);
}

/* ----------------------------------------------------------- navigation --- */
.pl-masthead__disclosure {
  display: inline-block;
  margin-left: auto;
}

.pl-masthead__toggle {
  list-style: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: var(--track-label, 0.04em);
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.pl-masthead__toggle::-webkit-details-marker {
  display: none;
}

.pl-masthead__toggle::after {
  content: "+";
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
  line-height: 1;
}

.pl-masthead__disclosure[open] .pl-masthead__toggle::after {
  content: "−";
}

.pl-masthead__nav {
  display: none;
  width: 100%;
  padding-block: var(--sp-2, 0.75rem);
  background: var(--pl-navy, #0A2540);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pl-masthead__disclosure[open] ~ .pl-masthead__nav {
  display: block;
}

.pl-masthead__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pl-masthead__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--track-label, 0.04em);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pl-masthead__menu a:hover {
  color: var(--pl-sky, #8FBFD4);
}

.pl-masthead__menu .current-menu-item > a,
.pl-masthead__menu .current_page_parent > a {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 0 var(--pl-sky, #8FBFD4);
}

/* ------------------------------------------- Header CTA (Desktop Only) --- */
.pl-masthead__cta {
  display: none; /* Hidden on mobile */
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 1.15rem;
  margin-left: auto;
  background: var(--pl-sky, #8FBFD4);
  color: var(--pl-navy, #0A2540);
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--step--1, 0.8125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-label, 0.04em);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(143, 191, 212, 0.25);
}

.pl-masthead__cta:hover,
.pl-masthead__cta:focus-visible {
  background: #A8D3E6;
  color: #040D17;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(143, 191, 212, 0.4);
}

/* -------------------- Mobile Floating Contact Sticker (Bottom Right) --- */
.pl-mobile-cta {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  background: var(--pl-sky, #8FBFD4);
  color: var(--pl-navy, #0A2540);
  border-radius: 999px; /* Pill shaped sticker */
  font-family: var(--font-display, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label, 0.04em);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  animation: plSlideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.pl-mobile-cta__icon {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.pl-mobile-cta:hover,
.pl-mobile-cta:focus-visible {
  background: #A8D3E6;
  color: #040D17;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(10, 37, 64, 0.5);
}

.pl-mobile-cta:active {
  transform: scale(0.97);
}

@keyframes plSlideInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------ Desktop ----- */
@media (min-width: 48rem) {
  .pl-masthead__inner {
    min-height: 60px;
    padding-block: 0;
  }

  .pl-masthead__brand {
    min-height: 44px;
  }

  .pl-masthead__wordmark {
    font-size: 1.125rem;
  }

  .pl-logo {
    width: 26px;
    height: 26px;
  }

  /* Hide mobile floating sticker on desktop */
  .pl-mobile-cta {
    display: none !important;
  }

  .pl-masthead__disclosure {
    display: none;
  }

  .pl-masthead__nav {
    display: flex;
    width: auto;
    background: transparent;
    border-top: 0;
    padding-block: 0;
    margin-left: var(--sp-4);
  }

  .pl-masthead__menu {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3);
  }

  .pl-masthead__menu a {
    min-height: 60px;
    padding: 0 var(--sp-1);
    font-size: var(--step--1, 0.8125rem);
    letter-spacing: var(--track-label, 0.04em);
  }

  /* Show header CTA button on desktop */
  .pl-masthead__cta {
    display: inline-flex;
  }
}
