/* ============================================================
   JADT Premium Page Header — reusable inner-page hero
   Matched to page-header-premium.html (navy + orange)
   ============================================================ */
:root {
  --jadt-ph-navy-900: #0A1730;
  --jadt-ph-navy-800: #0E1F3F;
  --jadt-ph-navy-700: #13285A;
  --jadt-ph-orange: #F5A623;
  --jadt-ph-orange-soft: #ffcb70;
  --jadt-ph-white: #ffffff;
  --jadt-ph-ink-soft: rgba(255, 255, 255, 0.82);
  --jadt-ph-bg: #F4F6FA;
}

.jadt-page-header {
  position: relative;
  /* Clip creates the tilt — next section bg shows through (no hard-coded fill color) */
  overflow: visible;
  z-index: 2;
  background:
    radial-gradient(ellipse 800px 420px at 85% -5%, rgba(245, 166, 35, 0.16), transparent 55%),
    radial-gradient(ellipse 600px 380px at 10% 110%, rgba(27, 59, 122, 0.4), transparent 50%),
    linear-gradient(135deg, var(--jadt-ph-navy-900) 0%, var(--jadt-ph-navy-800) 50%, var(--jadt-ph-navy-700) 100%);
  padding: 72px 24px 114px;
  margin-bottom: -50px;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
}

/* Next section sits under the clipped corner so its bg fills the tilt gap */
.jadt-page-header + * {
  position: relative;
  z-index: 1;
}

.jadt-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.75) 0%, transparent 58%);
          mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.75) 0%, transparent 58%);
  pointer-events: none;
}

.jadt-page-header__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.jadt-page-header__compass {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 360px;
  height: 360px;
  opacity: 0.10;
  pointer-events: none;
}

.jadt-page-header__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.jadt-page-header__frame {
  position: relative;
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.jadt-page-header .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(245, 166, 35, 0.55);
  border-style: solid;
  border-width: 0;
}
.jadt-page-header .corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.jadt-page-header .corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.jadt-page-header .corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.jadt-page-header .corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.jadt-page-header__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jadt-ph-orange);
  opacity: 0;
  animation: jadtPhReveal 0.6s ease-out 0.05s forwards;
}
.jadt-page-header__eyebrow::before {
  content: none;
  display: none;
}
.jadt-page-header__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jadt-ph-orange);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.55);
  animation: jadtPhPulse 2.2s ease-in-out infinite;
}

.jadt-page-header__title {
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.015em;
  line-height: 1.14;
  color: var(--jadt-ph-white);
  max-width: 20ch;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: jadtPhReveal 0.6s ease-out 0.15s forwards;
}
.jadt-page-header__title .accent {
  background: linear-gradient(90deg, var(--jadt-ph-orange-soft), var(--jadt-ph-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jadt-page-header__rule {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--jadt-ph-orange);
  opacity: 0;
  animation: jadtPhReveal 0.6s ease-out 0.22s forwards;
}

.jadt-page-header__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--jadt-ph-ink-soft);
  max-width: 560px;
  margin: 0;
  opacity: 0;
  animation: jadtPhReveal 0.6s ease-out 0.28s forwards;
}

.jadt-page-header__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  animation: jadtPhReveal 0.6s ease-out 0.36s forwards;
}
.jadt-page-header__crumbs a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--jadt-ph-ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.jadt-page-header__crumbs a:hover { color: var(--jadt-ph-white); }
.jadt-page-header__crumbs svg { width: 13px; height: 13px; flex-shrink: 0; }
.jadt-page-header__crumbs .sep { color: rgba(255, 255, 255, 0.3); }
.jadt-page-header__crumbs .current { color: var(--jadt-ph-orange); font-weight: 600; }

.jadt-page-header__divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  display: block;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.jadt-page-header__divider path {
  vector-effect: non-scaling-stroke;
}

@keyframes jadtPhReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes jadtPhPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .jadt-page-header__eyebrow,
  .jadt-page-header__title,
  .jadt-page-header__rule,
  .jadt-page-header__desc,
  .jadt-page-header__crumbs { animation: none; opacity: 1; }
  .jadt-page-header__eyebrow .dot { animation: none; }
}

@media (max-width: 640px) {
  .jadt-page-header {
    padding: 56px 16px 88px;
    margin-bottom: -40px;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
            clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }
  .jadt-page-header__divider { height: 40px; }
  .jadt-page-header__frame { padding: 26px 22px; }
  .jadt-page-header__title { font-size: 30px; max-width: 100%; }
  .jadt-page-header__compass { width: 220px; height: 220px; }
}
