/* ==========================================================================
   Whoosh — global.css
   Tokens (aliased to Elementor Site Settings globals), base elements,
   typography helpers, buttons, chips, checklists, icon badges, notes.
   Breakpoints match Elementor: tablet ≤1024px, mobile ≤767px.
   ========================================================================== */

:root {
	/* Colours come from Elementor → Site Settings → Global Colors (fallbacks in case the kit is missing). */
	--wh-ink: var(--e-global-color-wh_ink, #14103F);
	--wh-indigo: var(--e-global-color-wh_indigo, #1B1464);
	--wh-blue: var(--e-global-color-wh_blue, #0068D0);
	--wh-blue-d: var(--e-global-color-wh_blue_d, #0057B8);
	--wh-draft: var(--e-global-color-wh_draft, #0B4A9A);
	--wh-cyan: var(--e-global-color-wh_cyan, #5CD0F5);
	--wh-sky: var(--e-global-color-wh_sky, #9FD2FF);
	--wh-magenta: var(--e-global-color-wh_magenta, #D4147F);
	--wh-magenta-d: var(--e-global-color-wh_magenta_d, #B80E68);
	--wh-slate: var(--e-global-color-wh_slate, #2D3050);
	--wh-muted: var(--e-global-color-wh_muted, #5A5F80);
	--wh-paper: var(--e-global-color-wh_paper, #F3F7FD);
	--wh-ice: var(--e-global-color-wh_ice, #E8F1FC);
	--wh-mist: var(--e-global-color-wh_mist, #DCEBFC);
	--wh-line: var(--e-global-color-wh_line, #D5DEEF);
	--wh-line-2: var(--e-global-color-wh_line2, #C9D3E8);
	--wh-blush: var(--e-global-color-wh_blush, #FDE8F3);
	--wh-ondark: var(--e-global-color-wh_ondark, #D9DCF5);

	--wh-font-head: 'Poppins', 'Nunito Sans', system-ui, sans-serif;
	--wh-font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
	--wh-font-body: 'Nunito Sans', system-ui, sans-serif;

	--wh-ease: cubic-bezier(.32, .72, 0, 1);
	--wh-r-sm: 10px;
	--wh-r-md: 16px;
	--wh-r-lg: 20px;
	--wh-r-xl: 24px;
	--wh-shadow-card: 0 20px 40px -16px rgba(27, 20, 100, .22);
	--wh-shadow-lift: 0 24px 48px -16px rgba(27, 20, 100, .24);
	--wh-shadow-photo: 0 30px 60px -24px rgba(0, 0, 0, .45);
	--wh-focus: #0096BE;
}

/* ---------- Base ---------- */
html { scrollbar-color: var(--wh-indigo) var(--wh-paper); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--wh-blue); color: #FFFFFF; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wh-focus);
	outline-offset: 3px;
}
.elementor-heading-title { text-wrap: balance; }
.wh-text p { text-wrap: pretty; }
.wh-text p:last-child { margin-bottom: 0; }
.wh-text p + p { margin-top: .75em; }
.wh-text a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Visually hidden (skip link target labels etc.) */
.wh-sr-only {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Eyebrow label ---------- */
.wh-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.wh-eyebrow .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 28px;
	height: 2px;
	background: var(--wh-magenta);
}
.wh-eyebrow--dark .elementor-heading-title::before { background: #FF4DA6; }

/* ---------- Buttons (Button widget + .wh-btn--{variant}) ---------- */
.elementor-widget.wh-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--wh-r-sm);
	white-space: nowrap;
	transition: background-color .3s var(--wh-ease), color .3s, box-shadow .3s, transform .4s var(--wh-ease);
}
.elementor-widget.wh-btn .elementor-button:active { transform: scale(.98); }
.elementor-widget.wh-btn .elementor-button-content-wrapper { align-items: center; gap: 10px; }
.elementor-widget.wh-btn .elementor-button-icon { display: inline-flex; }
.elementor-widget.wh-btn .elementor-button-icon svg {
	width: 18px;
	height: 18px;
	transition: transform .4s var(--wh-ease);
}
/* Trailing arrow nudges right on hover (leading icons such as WhatsApp/phone stay put). */
.elementor-widget.wh-btn:not(.wh-btn--icon-first) .elementor-button:hover .elementor-button-icon svg { transform: translateX(4px); }

.elementor-widget.wh-btn--sm .elementor-button { min-height: 46px; padding: 0 20px; font-size: 15px; }
.elementor-widget.wh-btn--lg .elementor-button { min-height: 58px; padding: 0 34px; font-size: 17px; }

.elementor-widget.wh-btn--primary .elementor-button { background-color: var(--wh-magenta); color: #FFFFFF; }
.elementor-widget.wh-btn--primary .elementor-button:hover { background-color: var(--wh-magenta-d); color: #FFFFFF; }
.elementor-widget.wh-btn--blue .elementor-button { background-color: var(--wh-blue); color: #FFFFFF; }
.elementor-widget.wh-btn--blue .elementor-button:hover { background-color: var(--wh-blue-d); color: #FFFFFF; }
.elementor-widget.wh-btn--line .elementor-button { background-color: transparent; color: var(--wh-ink); box-shadow: inset 0 0 0 2px var(--wh-ink); }
.elementor-widget.wh-btn--line .elementor-button:hover { background-color: var(--wh-ink); color: #FFFFFF; }
.elementor-widget.wh-btn--white .elementor-button { background-color: #FFFFFF; color: var(--wh-ink); }
.elementor-widget.wh-btn--white .elementor-button:hover { background-color: var(--wh-ice); color: var(--wh-ink); }
.elementor-widget.wh-btn--ghost .elementor-button { background-color: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.elementor-widget.wh-btn--ghost .elementor-button:hover { background-color: rgba(255, 255, 255, .12); color: #FFFFFF; }
/* Hero slider buttons: square-ish corners */
.elementor-widget.wh-btn--light .elementor-button { min-height: 50px; padding: 0 26px; border-radius: 4px; background-color: #FFFFFF; color: var(--wh-indigo); }
.elementor-widget.wh-btn--light .elementor-button:hover { background-color: var(--wh-ice); color: var(--wh-indigo); }
.elementor-widget.wh-btn--outline .elementor-button { min-height: 50px; padding: 0 26px; border-radius: 4px; background-color: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.elementor-widget.wh-btn--outline .elementor-button:hover { background-color: rgba(255, 255, 255, .14); color: #FFFFFF; }
/* Text link with arrow */
.elementor-widget.wh-btn--text .elementor-button {
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--wh-blue-d);
	box-shadow: none;
}
.elementor-widget.wh-btn--text .elementor-button:hover { background: none; color: var(--wh-blue); }
.elementor-widget.wh-btn--text .elementor-button-icon svg { width: 16px; height: 16px; }

/* "Learn more →" label inside linked cards (a Heading widget, so cards never nest links) */
.wh-tlink .elementor-heading-title { display: inline-flex; align-items: center; gap: 8px; }
.wh-tlink .elementor-heading-title::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .4s var(--wh-ease);
}
a.e-con:hover .wh-tlink .elementor-heading-title { color: var(--wh-blue); }
a.e-con:hover .wh-tlink .elementor-heading-title::after { transform: translateX(4px); }

.wh-btn-row.e-con { --container-widget-width: auto; --container-widget-flex-grow: 0; }

/* ---------- Chips (Icon List, inline view) ---------- */
.wh-chips .elementor-icon-list-items {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 !important;
}
.wh-chips .elementor-icon-list-item {
	margin: 0 !important;
	padding: 0 !important;
}
.wh-chips .elementor-icon-list-item::after { display: none !important; }
.wh-chips .elementor-icon-list-item > a,
.wh-chips .elementor-icon-list-item > .elementor-icon-list-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 8px;
	background: var(--wh-ice);
	color: var(--wh-draft);
	font: 800 14px/1.3 var(--wh-font-ui);
	transition: background-color .2s, color .2s;
}
.wh-chips .elementor-icon-list-item > a .elementor-icon-list-text { color: inherit; padding: 0; }
.wh-chips .elementor-icon-list-item > a:hover { background: var(--wh-mist); }
/* Home/About service chips: all blue at rest; pink is the hover state (user, 12 Nov 2026). Class name kept so stored Elementor data needs no change. */
.wh-chips--lastpink .elementor-icon-list-item > * { cursor: default; }
.wh-chips--lastpink .elementor-icon-list-item:hover > * { background: var(--wh-blush); color: var(--wh-magenta-d); }
.wh-chips--dark .elementor-icon-list-item > a,
.wh-chips--dark .elementor-icon-list-item > .elementor-icon-list-text { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.wh-chips--dark .elementor-icon-list-item > a:hover { background: rgba(255, 255, 255, .26); }
.wh-chips--white .elementor-icon-list-item > a,
.wh-chips--white .elementor-icon-list-item > .elementor-icon-list-text { background: #FFFFFF; border: 1.5px solid var(--wh-line); color: var(--wh-ink); }

/* ---------- Checklists (Icon List, traditional view) ---------- */
.wh-checks .elementor-icon-list-items { display: grid; gap: 14px; }
.wh-checks--two .elementor-icon-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.wh-checks .elementor-icon-list-item {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	align-items: start !important;
	margin: 0 !important;
	padding: 0 !important;
}
.wh-checks .elementor-icon-list-icon {
	width: 22px;
	padding: 0 !important;
	margin-top: 1px;
	color: var(--e-icon-list-icon-color, var(--wh-blue));
}
.wh-checks .elementor-icon-list-icon svg { width: 22px !important; height: 22px !important; }
.wh-checks .elementor-icon-list-text { padding: 0 !important; color: var(--wh-ink); }
.wh-checks--dark .elementor-icon-list-text { color: #FFFFFF; }
.wh-checks--dark .elementor-icon-list-icon { color: var(--e-icon-list-icon-color, var(--wh-cyan)); }

/* Factor tiles (cost band) */
/* Equal rows: every tile takes the height of the tallest one (user, 12 Nov 2026). */
.wh-checks--tiles .elementor-icon-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.wh-checks--tiles .elementor-icon-list-item {
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: center !important;
	padding: 12px 16px !important;
	border-radius: 12px;
	background: var(--wh-paper);
}
.wh-checks--tiles .elementor-icon-list-icon,
.wh-checks--tiles .elementor-icon-list-icon svg { width: 20px !important; height: 20px !important; margin: 0; }
.wh-checks--tiles .elementor-icon-list-text { font-size: 15.5px; line-height: 1.4; }

/* ---------- Icon badges (Icon widget, stacked) ---------- */
.wh-ib .elementor-icon { display: inline-flex; line-height: 1; }
.wh-ib .elementor-icon svg { width: 1em; height: 1em; }
.wh-ib--square .elementor-icon { border-radius: 14px; }

/* ---------- Images ---------- */
/* Photos always crop to their box (never stretch); certificates/logos override with contain/auto. */
.wh-img img { display: block; width: 100%; object-fit: cover; object-position: center; }
.wh-img--frame img { border-radius: var(--wh-r-xl); background: #281870; }
.wh-img--r20 img { border-radius: var(--wh-r-lg); }
.wh-img--photo img { border-radius: var(--wh-r-lg); border: 1px solid rgba(255, 255, 255, .35); box-shadow: var(--wh-shadow-photo); }

/* ---------- "Content to confirm" notes (editors only — see inc/theme-functions.php) ---------- */
.elementor-widget.wh-note {
	padding: 14px 18px;
	border: 1.5px dashed #D9A21B;
	border-radius: 12px;
	background: #FFF8E6;
	color: #5C4300;
	font: 400 15px/1.55 var(--wh-font-body);
}
.elementor-widget.wh-note::before {
	content: "Content to confirm · visible to editors only";
	display: block;
	margin-bottom: 4px;
	font: 800 11px/1.4 var(--wh-font-ui);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8A5A00;
}
.elementor-widget.wh-note p { margin: 0; }
.e-con.wh-admin-only { outline: 2px dashed #D9A21B; outline-offset: 6px; }
.e-con.wh-admin-only::before {
	content: "Hidden from visitors until real content is added";
	position: relative;
	z-index: 2;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 6px;
	background: #FFF8E6;
	color: #8A5A00;
	font: 800 11px/1.4 var(--wh-font-ui);
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ---------- Entrance animations (Elementor Motion Effects) ----------
   Elementor's fadeInUp slides content up by its full height; for large cards that
   is too much. Keep the animation chosen in Elementor, but use a gentle 24px lift. */
/* "Settle": rise 32px, overshoot by 4px, then ease to rest. */
@keyframes wh-settle {
	0% { opacity: 0; transform: translate3d(0, 32px, 0) scale(.985); }
	60% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1); }
	100% { opacity: 1; transform: none; }
}
@keyframes wh-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
.elementor-element.animated.fadeInUp {
	animation-name: wh-settle;
	animation-timing-function: cubic-bezier(.22, 1, .36, 1);
	will-change: transform, opacity;
}
.elementor-element.animated.fadeIn { animation-name: wh-fade; animation-timing-function: ease-out; }
.elementor-element.animated.animated-fast { animation-duration: .9s; }

/* CTA section directly under another paper section (e.g. blog "More guides"): no doubled gap. */
.e-con.wh-bg-paper + .e-con.wh-bg-paper.wh-cta-sec { padding-top: 0 !important; }

/* ---------- Utilities ---------- */
.wh-measure { max-width: 720px; }
@media (max-width: 767px) {
	.wh-hide-m { display: none !important; }
}
@media (min-width: 768px) {
	.wh-show-m { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
