/* ==========================================================
   Zenwice — global (approved component CSS only)
   Colours/typography/spacing/layout are Elementor settings.
   Colour references use Elementor Global Colours with fallbacks,
   so changing a Global Colour updates these components too.
   ========================================================== */

@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--zw-ink: var(--e-global-color-primary, #0b0d14);
	--zw-ink-2: var(--e-global-color-secondary, #4b5262);
	--zw-accent: var(--e-global-color-accent, #1f5bff);
	--zw-line: rgba(10, 11, 14, .12);
	--zw-ease: cubic-bezier(.22, 1, .36, 1);
	--zw-bar-h: 44px;
	--zw-nav-h: 72px;
}

body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--zw-accent); color: #fff; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- #1 Buttons: sliding fill + arrow chip ----------
   Elementor Button widget + CSS class zw-btn (outline/white),
   zw-btn--dark (ink) or zw-btn--light (white on dark media),
   zw-btn--ghost (transparent, white outline). Arrow = button icon. */
/* Remove the inline baseline gap under Elementor buttons (it pushed centred buttons ~3px up). */
.elementor-widget-button.zw-btn, .elementor-widget-button.zw-link,
.elementor-widget-button.zw-burger, .elementor-widget-button.zw-mobile-close, .elementor-widget-button.zw-bar-close,
.zw-btn .elementor-button-wrapper, .zw-link .elementor-button-wrapper { line-height: 0; }
.zw-btn .elementor-button { position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--zw-ease), border-color .4s var(--zw-ease); }
.zw-btn .elementor-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--zw-accent); transform: translateY(101%); transition: transform .5s var(--zw-ease); }
.zw-btn .elementor-button:hover::before, .zw-btn .elementor-button:focus-visible::before { transform: none; }
.zw-btn .elementor-button-icon { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: var(--zw-ink); color: #fff; fill: #fff; transition: background .4s var(--zw-ease), transform .4s var(--zw-ease), color .4s; }
.zw-btn .elementor-button-icon svg { width: 11px; height: 11px; }
.zw-btn .elementor-button:hover .elementor-button-icon { background: #fff; color: var(--zw-accent); fill: var(--zw-accent); transform: rotate(45deg); }
.zw-btn--dark .elementor-button-icon, .zw-btn--ghost .elementor-button-icon { background: rgba(255, 255, 255, .18); }
.zw-btn--solid .elementor-button-icon { background: #fff; color: var(--zw-ink); fill: var(--zw-ink); }
.zw-btn--ghost .elementor-button::before { background: #fff; }
.zw-btn--ghost .elementor-button:hover .elementor-button-icon { background: var(--zw-ink); color: #fff; fill: #fff; }

/* Text link with arrow chip (Button widget, transparent, class zw-link) */
.zw-link .elementor-button-icon { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: rgba(127, 127, 127, .22); color: var(--zw-accent); fill: var(--zw-accent); transition: transform .4s var(--zw-ease), background .4s, color .4s; }
.zw-link .elementor-button-icon svg { width: 11px; height: 11px; }
.zw-link .elementor-button:hover .elementor-button-icon,
a:hover > .zw-link .elementor-button-icon,
.e-con[href]:hover .zw-link .elementor-button-icon { transform: rotate(45deg); background: var(--zw-accent); color: #fff; fill: #fff; }

/* Arrow chip inside a linked card (Icon widget, class zw-arrow): rotates on card hover */
.zw-arrow .elementor-icon { transition: transform .4s var(--zw-ease), background-color .4s; }
a:hover .zw-arrow .elementor-icon, a:focus-visible .zw-arrow .elementor-icon { transform: rotate(45deg); background-color: var(--zw-accent) !important; color: #fff !important; fill: #fff !important; }
a:hover .zw-arrow .elementor-icon svg, a:focus-visible .zw-arrow .elementor-icon svg { color: #fff; fill: none; stroke: #fff; }

/* ---------- #11 Split-word masks + reveal initial state ----------
   Only applied when JS runs (html.js), never inside the Elementor editor. */
.zw-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.zw-w > span { display: inline-block; will-change: transform; }
.js .zw-reveal:not(.zw-in) { opacity: 0; transform: translateY(34px); }
/* Elementor containers transition `transform` (for hover effects); on elements that GSAP
   animates every frame this makes tweens lag or stop short, so switch it off there. */
.zw-hero-body, .zw-trust, .zw-tcard, .zw-zcard, .zw-step, .zw-site-head, .zw-reveal:not(a) { transition-property: background, border, box-shadow, opacity !important; }
/* Pinned media hero: no CSS transitions at all, or the pin release animates as a visible jump. */
.zw-vhero, .zw-vhero .zw-vpanel, .zw-vhero .zw-vhero-text { transition: none !important; }
.reduced .zw-reveal { opacity: 1 !important; transform: none !important; }
/* ---------- #3 Page-transition curtain ---------- */
.zw-curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: grid; place-items: center; background: #0a0b0e; transform: translateY(100%); will-change: transform; visibility: hidden; }
.zw-curtain img { width: 84px; height: auto; filter: brightness(0) invert(1); opacity: 0; transform: scale(.8); }
html.is-entering .zw-curtain { transform: none; visibility: visible; }
.zw-curtain::before, .zw-curtain::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; background: #0a0b0e; }
.zw-curtain::before { top: 0; transform: translateY(-99%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.zw-curtain::after { bottom: 0; transform: translateY(99%); border-radius: 0 0 50% 50% / 0 0 100% 100%; }

/* ---------- #7 Marquee ----------
   Container zw-marquee > container zw-marquee-track > Heading widgets (one per item). */
.zw-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.zw-marquee-track { width: max-content !important; flex-wrap: nowrap !important; animation: zw-marq 38s linear infinite; }
.zw-marquee:hover .zw-marquee-track { animation-play-state: paused; }
.zw-marquee-track > .elementor-widget { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.zw-marquee-track > .elementor-widget::after { content: ""; width: 7px; height: 7px; margin-left: 34px; background: currentColor; opacity: .6; transform: rotate(45deg); }
@keyframes zw-marq { to { transform: translateX(-50%); } }
/* Logo slider variant (home hero "Trusted by"): no diamond separators, logos fade up on hover */
.zw-logos .zw-marquee-track > .elementor-widget::after { display: none; }
.zw-logos .elementor-widget-image img { width: auto; max-width: none; transition: opacity .3s; }
.zw-logos .zw-marquee-track { animation-duration: 32s; }

/* Chips (Heading widgets with class zw-chip): the leading dot */
.zw-chip .elementor-heading-title { display: inline-flex; align-items: center; gap: 8px; }
.zw-chip .elementor-heading-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zw-accent); flex: none; }

/* ---------- Media hero (bluesqx.com/about style) ----------
   About: panel on the right, widens to the left. Service pages (.zw-vhero--rev): panel on the
   left, copy on the right, panel widens to the right. animations.js pins + animates on desktop. */
.zw-vpanel { position: absolute !important; top: calc(var(--zw-bar-h) + var(--zw-nav-h)); right: 8px; bottom: 8px; left: 50%; width: auto !important; z-index: 2; }
.zw-vhero--rev .zw-vpanel { left: 8px; right: 50%; }
.zw-vpanel .elementor-background-video-container { border-radius: inherit; }
.zw-vhero-text { position: relative; z-index: 1; transform-origin: 0 50%; will-change: transform, opacity; }
.zw-vhero--rev .zw-vhero-text { transform-origin: 100% 50%; padding-left: calc(50% + clamp(20px, 4vw, 60px)) !important; }
@media (max-width: 1080px) {
	.zw-vpanel, .zw-vhero--rev .zw-vpanel { position: relative !important; top: auto; right: auto; bottom: auto; left: auto; width: calc(100% - 2 * clamp(20px, 4vw, 60px)) !important; height: auto; min-height: 0 !important; aspect-ratio: 16 / 10; max-height: 60vh; margin: 0 auto clamp(36px, 5vw, 70px); }
	.zw-vhero--rev .zw-vhero-text { padding-left: clamp(20px, 4vw, 60px) !important; }
	/* Service pages: image first, copy below */
	.zw-vhero--rev .zw-vpanel { order: -1; margin: clamp(20px, 4vw, 36px) auto 0; }
}
@media (max-width: 560px) { .zw-vpanel, .zw-vhero--rev .zw-vpanel { aspect-ratio: 4 / 3; } }
/* Service bands (pillar pages): photo fills the panel and zooms on hover (like the home work cards) */
.zw-band-panel { position: relative; isolation: isolate; }
.zw-band-img { position: absolute !important; inset: 0; z-index: 0; width: 100% !important; height: 100%; margin: 0 !important; }
.zw-band-img img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--zw-ease); }
.zw-band:hover .zw-band-img img, .zw-band:focus-visible .zw-band-img img { transform: scale(1.06); }

/* "Where to go next" round arrow (Icon widget, class zw-next-arrow): exact 64px circle */
.zw-next-arrow { box-sizing: border-box; width: 64px !important; height: 64px; padding: 0 !important; display: grid !important; place-items: center; flex: none; transition: transform .6s var(--zw-ease), background-color .4s, border-color .4s; }
.zw-next-arrow .elementor-icon-wrapper { line-height: 0; }
.zw-next-arrow .elementor-icon svg { width: 22px; height: 22px; }
a:hover .zw-next-arrow { transform: rotate(45deg); background-color: var(--zw-accent) !important; border-color: var(--zw-accent) !important; }
a:hover .zw-next-arrow .elementor-icon, a:hover .zw-next-arrow svg { color: #fff !important; fill: #fff !important; }

/* Sticky photo beside the problem/solution rows */
.zw-sticky { position: sticky !important; top: calc(var(--zw-bar-h) + var(--zw-nav-h) + 24px); }
@media (max-width: 820px) { .zw-sticky { position: relative !important; top: auto; } }

/* Visually hidden helper */
.zw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.zw-marquee-track { animation: none; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}

/* Custom scrollbar (thin, rounded thumb, accent on hover) */
html { scrollbar-width: thin; scrollbar-color: #b9bcc6 #f2f2ef; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f2f2ef; }
::-webkit-scrollbar-thumb { background: #b9bcc6; border-radius: 99px; border: 2px solid #f2f2ef; }
::-webkit-scrollbar-thumb:hover { background: #4965f7; }

/* Service pages: list rows ("What you get", "Choosing the right channels") */
.zw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zw-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.zw-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--zw-accent); }

/* Service page paragraphs: word-by-word highlight (animations.js, same as About story) */
.js .zw-words .zw-wd { opacity: .14; }

/* Chips: leading dot removed site-wide (client request) */
.zw-chip .elementor-heading-title { gap: 0; }
.zw-chip .elementor-heading-title::before { content: none !important; display: none !important; }

/* About video panel: shorter, centred vertically (client request). Desktop only; phones keep the 4:3 box. */
@media (min-width: 1081px) { .zw-vhero:not(.zw-vhero--rev) .zw-vpanel { top: calc(var(--zw-bar-h) + var(--zw-nav-h) + 10vh); bottom: 10vh; } }

/* "Where to start" situation -> service table (pages-services.php 'match') */
.zw-match-row.e-con { transition: background-color .3s, padding .3s; }
a.zw-match-row:hover { background-color: #F6F6F4; padding-left: 16px !important; padding-right: 16px !important; }
.zw-match-row .elementor-widget-text-editor p { margin: 0; }
@media (max-width: 640px) { .zw-match-head > :last-child { display: none; } }

/* Service/pillar hero intro: smaller text + space between paragraphs (client request) */
.zw-vhero .zw-lede, .zw-vhero .zw-lede p { font-size: clamp(.98rem, 1.05vw, 1.06rem) !important; line-height: 1.6 !important; }
.zw-vhero .zw-lede p + p { margin-top: .8em; }

/* Multi-paragraph text widgets (e.g. About credentials): space between paragraphs, as in the HTML */
.elementor-widget-text-editor p + p { margin-top: .75em; }

/* Service bands: no extra gap above the first row (client request) */
.zw-band-grid .zw-band:nth-child(-n+2 of .zw-band) { margin-top: 0 !important; }
@media (max-width: 880px) { .zw-band-grid .zw-band:nth-child(2 of .zw-band) { margin-top: clamp(20px,3vw,40px) !important; } }

/* Photo cards (.zw-bcard) on every page: the number tag stays dark on its white pill when the card inverts on hover; photo zooms (was About/home only via about.css) */
.zw-bcard:hover .zw-bcard-media .elementor-heading-title { color: var(--zw-ink) !important; }
.zw-bcard .zw-bcard-img img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.zw-bcard:hover .zw-bcard-img img { transform: scale(1.06); }

/* Service bands: number, name and 'Learn more' stay on one line on phones (as in the HTML) */
.zw-band > .e-con:first-child, .zw-band > .e-con-inner > .e-con:first-child { flex-wrap: nowrap !important; }

/* Short rows (e.g. "Is this you?"): the photo is exactly as tall as the text beside it on desktop, min 240px (client request).
   The image is taken out of the flow so the text alone sets the row height. Phones keep the 16:10 photo. */
@media (min-width: 821px) {
	.zw-rows-short > .zw-sticky { position: relative !important; top: auto; align-self: stretch; min-height: 240px; }
	.zw-rows-short > .zw-sticky .elementor-widget-container { position: absolute; inset: 0; }
	.zw-rows-short > .zw-sticky img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
}
