/* Pulsenet365 theme helpers. Layout, colours and type come from Elementor Site Settings;
   this file only covers what Elementor controls can't express. */

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.pn-main { display: block; }
img { max-width: 100%; height: auto; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000; top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: #101b33; }
:focus-visible { outline: 2px solid var(--e-global-color-primary, #00a0e3); outline-offset: 2px; }

/* Two-tone headings: wrap the highlighted words in a span with one of these classes. */
.pn-accent { color: var(--e-global-color-primary, #00a0e3); }
.pn-accent-light { color: var(--e-global-color-pnsky, #7cc9f4); }
.pn-accent-gradient { background: linear-gradient(146.6deg, #00a0e3 0%, #2a4a98 86%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Decorative artwork (orbs, rings, glows) never takes clicks or causes overflow. */
.pn-decor, .pn-decor * { pointer-events: none; user-select: none; }
.pn-decor img { max-width: none; display: block; }

/* Button variants. The global button (Site Settings) is the blue gradient; these switch it off. */
.pn-btn-white .elementor-button,
.pn-btn-ghost .elementor-button,
.pn-btn-glass .elementor-button,
.pn-btn-flat .elementor-button,
.pn-btn-white .elementor-button:hover, .pn-btn-white .elementor-button:focus,
.pn-btn-ghost .elementor-button:hover, .pn-btn-ghost .elementor-button:focus,
.pn-btn-glass .elementor-button:hover, .pn-btn-glass .elementor-button:focus,
.pn-btn-flat .elementor-button:hover, .pn-btn-flat .elementor-button:focus { background-image: none !important; }
.elementor-button { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.elementor-widget-button .elementor-button:hover { transform: translateY(-1px); }
.pn-btn-white .elementor-button:hover { background-color: #eef6fe; }
.pn-btn-ghost .elementor-button:hover { border-color: var(--e-global-color-primary, #00a0e3); }
.pn-btn-glass .elementor-button:hover { background-color: rgba(255,255,255,.2); }
.elementor-button { transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.elementor-button:hover { transform: translateY(-1px); }

/* Text links with arrows ("See Self-Service →"). */
.pn-link a { transition: opacity .2s ease; }
.pn-link a:hover { opacity: .8; }

/* CTA dot grids and tinted squares. */
.pn-dots { background-image: radial-gradient(circle, rgba(191,227,255,.35) 2px, transparent 2.2px); background-size: 16px 16px; }
.pn-dots--wide { background-size: 18px 18px; }
.pn-sq { border-radius: 13px; }
.pn-rot-8 { transform: rotate(8deg); }
.pn-rot-10 { transform: rotate(10deg); }
.pn-rot--10 { transform: rotate(-10deg); }
.pn-rot--12 { transform: rotate(-12deg); }
.pn-rot--16 { transform: rotate(-16deg); }
.pn-rot-12 { transform: rotate(12deg); }

/* Footer link lists use Icon List without icons. */
.pn-links .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--e-global-color-primary, #00a0e3); }

/* Fallback templates (posts without Elementor). */
.pn-wrap { max-width: 1360px; margin: 0 auto; padding: 64px 20px; }
.pn-single__title { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; color: #101b33; }
.pn-single__meta { color: #9aa3bf; font-size: 13px; }
.pn-single__content { max-width: 760px; font-size: 17px; line-height: 1.7; color: #46556f; }
.pn-single__media img { border-radius: 18px; width: 100%; height: auto; }

/* Containers that should shrink to their content (badges, pills, chips). */
.e-con.e-flex.pn-fit, .e-con.pn-fit { --width: auto; width: auto; flex-grow: 0; flex-shrink: 0; }
.e-con.pn-fit > .e-con-inner { width: auto; }

/* Text Editor paragraphs: spacing comes from container gaps, not browser margins. */
.elementor-widget-text-editor p { margin: 0 0 1em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-heading .elementor-heading-title a { color: inherit; }
.e-con.pn-noshrink { flex-shrink: 0; flex-grow: 0; }
/* Single-line tick rows that may extend past their column (as in the Figma hero). */
.elementor-widget.pn-nowrap { max-width: none; width: max-content; }
.elementor-widget.pn-nowrap .elementor-icon-list-items.elementor-inline-items { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1024px) { .elementor-widget.pn-nowrap { width: auto; max-width: 100%; } .elementor-widget.pn-nowrap .elementor-icon-list-items.elementor-inline-items { flex-wrap: wrap; white-space: normal; } }

/* Arrow after text links and "Read article" (drawn with CSS so it matches the Figma arrow at any size). */
.pn-link a::after, .pn-post__more::after {
	content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .55em; vertical-align: -0.05em;
	background: currentColor; transition: transform .2s ease;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12.2M8.6 3.2 13.4 8l-4.8 4.8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12.2M8.6 3.2 13.4 8l-4.8 4.8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pn-link a:hover::after, .pn-post__more:hover::after { transform: translateX(3px); }

/* Round tick badges in feature lists. */
.pn-checks .elementor-icon-list-icon { width: 20px; height: 20px; min-width: 20px; border-radius: 10px; background: #E1F1FB; display: inline-flex; align-items: center; justify-content: center; }
.pn-checks .elementor-icon-list-icon svg, .pn-checks .elementor-icon-list-icon i { width: 10px; height: 10px; font-size: 10px; }
/* Figma "screen" blend glows. */
.elementor-widget.pn-screen { mix-blend-mode: screen; }
.elementor-widget.pn-fit-w { width: auto; flex: 0 0 auto; }
.pn-fit-w .elementor-icon { display: flex; }
/* Header: desktop menu may shrink between 1025–1366px; tablet/mobile use the flyout menu. */
.pn-nav-desktop { min-width: 0; }
.elementor-widget.pn-nav-mobile { width: auto; flex: 0 0 auto; }

/* Figma "flex-[1_0_0]" children: share the row equally (basis 0) and may shrink below content width. */
.e-con.pn-row > .pn-grow { flex: 1 1 0%; min-width: 0; }
@media (max-width: 1024px) {
	.e-con.pn-stack-t > .pn-grow, .e-con.pn-wrap-t > .pn-grow { flex: 0 0 auto; }
}

/* ---------------------------------------------------------------------------------
   Motion (same vocabulary as the live PulseNet365 site).
   Entrance animations are Elementor's own "Entrance Animation" control (fadeInUp);
   here they are re-timed to a short, soft rise instead of Elementor's full-height slide.
   --------------------------------------------------------------------------------- */
@keyframes pnRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pnFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pnBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pnSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.elementor-element.animated.fadeInUp { animation-name: pnRise; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.elementor-element.animated.animated-fast { animation-duration: .7s; }
.pn-float img { animation: pnFloat 7s ease-in-out 1s infinite; }
.e-con.pn-bob { animation: pnBob 6s ease-in-out infinite; }
.e-con.pn-bob-2 { animation-delay: -2s; }
.e-con.pn-bob-3 { animation-delay: -4s; }
.e-con.pn-lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.e-con.pn-lift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(32, 47, 96, .35); }
.pn-shot img { transition: transform .3s ease, box-shadow .3s ease; }
.pn-shot img:hover { transform: translateY(-3px); }
[class*="pn-gt-"] { background-size: 200% 100% !important; animation: pnSheen 8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	.pn-float img, .e-con.pn-bob, [class*="pn-gt-"] { animation: none; }
	.elementor-element.animated { animation: none !important; }
	.e-con.pn-lift:hover, .pn-shot img:hover { transform: none; }
}

/* Home hero: keep the right-hand floating chip fully on screen (it hangs ~100px past the dashboard). */
@media (min-width: 1367px) { .e-con.pn-hero-visual { margin-right: max(0px, calc(125px - (100vw - 1360px) / 2)); } }
@media (min-width: 1025px) and (max-width: 1366px) { .e-con.pn-hero-visual { margin-right: 100px; } }

/* Auto-width (pn-fit) and fixed boxes never grow wider than their parent; on tablet/mobile they may shrink so text wraps. */
.e-con.e-flex.pn-fit { max-width: 100%; }
@media (max-width: 1024px) {
	.e-con.e-flex.pn-fit { flex-shrink: 1; min-width: 0; }
	.e-con.pn-fit > .elementor-widget { max-width: 100%; }
}
@media (max-width: 767px) {
	.e-con.pn-noshrink { max-width: 100%; }
}
.e-con.pn-float-con { animation: pnFloat 7s ease-in-out 1s infinite; }
@media (prefers-reduced-motion: reduce) { .e-con.pn-float-con { animation: none; } }
/* Floating chips keep their one-line size even when they hang outside their box. */
.e-con.pn-bob { width: max-content; max-width: none; }
.e-con.pn-bob .elementor-heading-title { white-space: nowrap; }
/* Topic icons on text cards */
.pn-card-icon .elementor-icon { transition: background-color .25s ease, color .25s ease, fill .25s ease; }
.e-con.pn-lift:hover .pn-card-icon .elementor-icon { background-color: #00A0E3; color: #fff; fill: #fff; }
.e-con.pn-lift:hover .pn-card-icon .elementor-icon svg { fill: #fff; }

/* Sticky header: stays on top while scrolling and tightens once the page has scrolled. */
body #masthead, .ehf-header #masthead { position: sticky; top: 0; z-index: 990; }
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar #masthead { top: 0; } }
.e-con.pn-header { transition: padding .25s ease, box-shadow .25s ease, background-color .25s ease; }
.pn-scrolled .e-con.pn-header { --padding-top: 12px; --padding-bottom: 12px; background-color: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -14px rgba(13, 26, 64, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 1024px) { .pn-scrolled .e-con.pn-header { --padding-top: 10px; --padding-bottom: 10px; } }
/* Stacked rows on tablet/mobile: auto-width children become full width. */
@media (max-width: 1024px) { .e-con.pn-stack-t > .e-con.e-flex.pn-fit { --width: 100%; width: 100%; max-width: 100%; } }
/* Footer office flags: five equal columns, labels centred and allowed to wrap neatly. */
.e-con.pn-flags > .e-con.pn-flag { flex: 1 1 0%; min-width: 0; }
.pn-flag .elementor-widget-heading:last-child .elementor-heading-title { text-align: center; text-wrap: balance; }
.pn-flag .elementor-widget-heading:last-child .elementor-heading-title { line-height: 1.25 !important; }

/* ---------------------------------------------------------------------------------
   CTA particles: the background objects in every call-to-action box drift, turn and
   swap places continuously, with a soft field of light particles rising behind them.
   Uses the individual translate/rotate/scale properties so each object keeps its own
   Figma rotation.
   --------------------------------------------------------------------------------- */
@keyframes pnDriftA { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 26px -18px; rotate: 14deg; } 50% { translate: 44px 10px; rotate: 28deg; } 75% { translate: 12px 24px; rotate: 10deg; } }
@keyframes pnDriftB { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: -30px 16px; rotate: -18deg; } 60% { translate: -12px -26px; rotate: -32deg; } 80% { translate: 18px -10px; rotate: -8deg; } }
@keyframes pnDriftC { 0%, 100% { translate: 0 0; } 33% { translate: 18px 28px; } 66% { translate: -22px 12px; } }
@keyframes pnRing { 0%, 100% { scale: 1; translate: 0 0; opacity: 1; } 50% { scale: 1.06; translate: -14px 10px; opacity: .75; } }
@keyframes pnDotsMove { 0%, 100% { translate: 0 0; opacity: .9; } 50% { translate: 16px -12px; opacity: .45; } }
@keyframes pnParticles { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 140px -420px, -90px -300px, 60px -220px; } }
@keyframes pnTwinkle { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }

.pn-cta-anim .pn-decor { will-change: translate, rotate; }
/* Shapes (rounded squares, small circles) */
.pn-cta-anim .e-con.pn-decor:not(.pn-dots):nth-of-type(3n+1) { animation: pnDriftA 16s ease-in-out infinite; }
.pn-cta-anim .e-con.pn-decor:not(.pn-dots):nth-of-type(3n+2) { animation: pnDriftB 19s ease-in-out infinite -4s; }
.pn-cta-anim .e-con.pn-decor:not(.pn-dots):nth-of-type(3n) { animation: pnDriftC 13s ease-in-out infinite -7s; }
/* Rings and glows (image decor) */
.pn-cta-anim .elementor-widget.pn-decor:nth-of-type(odd) { animation: pnRing 18s ease-in-out infinite; }
.pn-cta-anim .elementor-widget.pn-decor:nth-of-type(even) { animation: pnDriftC 22s ease-in-out infinite -9s; }
.pn-cta-anim .elementor-widget.pn-decor:nth-of-type(4n+3) { animation: pnDriftA 24s ease-in-out infinite -6s; }
/* Dot grids */
.pn-cta-anim .pn-dots { animation: pnDotsMove 11s ease-in-out infinite; }
.pn-cta-anim .pn-dots:nth-of-type(even) { animation-duration: 14s; animation-delay: -5s; }
/* Particle field behind the content */
.e-con.pn-cta-card { isolation: isolate; }
.e-con.pn-cta-card::before { content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(255,255,255,.55) 1.2px, transparent 1.6px),
		radial-gradient(circle, rgba(127,224,255,.45) 1.6px, transparent 2.2px),
		radial-gradient(circle, rgba(255,255,255,.25) 2.4px, transparent 3px);
	background-size: 140px 140px, 90px 100px, 220px 220px;
	background-position: 0 0, 30px 40px, 70px 20px;
	animation: pnParticles 38s linear infinite, pnTwinkle 6s ease-in-out infinite;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%); }
.e-con.pn-cta-card > .e-con:not(.pn-decor), .e-con.pn-cta-card > .e-con-inner > .e-con:not(.pn-decor) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
	.pn-cta-anim .pn-decor, .pn-cta-anim .pn-dots, .e-con.pn-cta-card::before { animation: none !important; }
}
