/**
 * IDW — Elementor section widgets.
 *
 * One block per widget, in the same order they appear on the demo homepage.
 * All of these classes are also usable in plain PHP templates.
 */

/* ==========================================================================
   1. Video hero
   ========================================================================== */

.idw-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--idw-hero-min, 100svh);
	padding-block: calc(var(--idw-header-h) + 3rem) clamp(4rem, 9vh, 7rem);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: var(--idw-primary-800);
}

.idw-hero--compact { --idw-hero-min: 78svh; }
.idw-hero--auto { --idw-hero-min: auto; }

.idw-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.idw-hero__media video,
.idw-hero__media img,
.idw-hero__media iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

/* Cover the viewport with a 16:9 embed without letterboxing. */
.idw-hero__media--embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.77vh;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* Poster image doubles as the fallback when no video is set. */
.idw-hero__poster {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.idw-hero__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.idw-hero--kenburns .idw-hero__poster img {
	animation: idw-ken-burns 22s var(--idw-ease-soft) infinite alternate;
}

/* Overlay: a soft brand veil plus a bottom-weighted scrim for text contrast. */
.idw-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(105deg, rgba(28, 21, 40, calc(var(--idw-hero-overlay, 0.62) + 0.12)) 0%, rgba(28, 21, 40, calc(var(--idw-hero-overlay, 0.62) * 0.5)) 55%, transparent 100%),
		linear-gradient(180deg, rgba(28, 21, 40, 0.5) 0%, transparent 30%, rgba(28, 21, 40, 0.55) 100%);
}

.idw-hero__overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 82% 24%, rgba(18, 165, 148, 0.28), transparent 46%);
}

/* Optional fine grid texture — adds depth without a heavy gradient. */
.idw-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.16;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
	background-size: 84px 84px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 72%);
	mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 72%);
	pointer-events: none;
}

.idw-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.idw-hero__content {
	max-width: 46rem;
}

.idw-hero--center .idw-hero__content {
	max-width: 54rem;
	margin-inline: auto;
	text-align: center;
}

.idw-hero--center .idw-hero__actions { justify-content: center; }
.idw-hero--center .idw-eyebrow::before { display: none; }

.idw-hero__eyebrow {
	color: var(--idw-accent-300);
}

.idw-hero__title {
	margin: 0 0 var(--idw-space-5);
	color: #fff;
	font-size: var(--idw-fs-display);
	line-height: 1.03;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

/* Highlighted word inside the headline. */
.idw-hero__title mark,
.idw-hero__title .idw-mark {
	position: relative;
	background: none;
	color: var(--idw-accent-300);
	white-space: nowrap;
}

.idw-hero__title .idw-mark::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0.06em;
	height: 0.09em;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.45;
	transform-origin: left;
	animation: idw-underline 900ms var(--idw-ease) 500ms both;
}

@keyframes idw-underline {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.idw-hero__text {
	margin: 0 0 var(--idw-space-7);
	max-width: 56ch;
	font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
	color: rgba(255, 255, 255, 0.86);
}

.idw-hero--center .idw-hero__text { margin-inline: auto; }

.idw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--idw-space-4);
}

/* Trust strip beneath the CTAs. */
.idw-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.idw-hero__trust-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.idw-hero__trust-value {
	font-family: var(--idw-font-heading);
	font-size: clamp(1.5rem, 2vw, 2rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}

.idw-hero__trust-label {
	font-size: var(--idw-fs-xs);
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.04em;
}

.idw-hero__scroll {
	position: absolute;
	inset-block-end: clamp(1.25rem, 3vh, 2.25rem);
	inset-inline-start: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

/* Mute / play control for the background video. */
.idw-hero__video-toggle {
	position: absolute;
	inset-block-end: clamp(1.25rem, 3vh, 2.25rem);
	inset-inline-end: var(--idw-gutter);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(6px);
	color: #fff;
	transition: background-color var(--idw-dur-fast) var(--idw-ease-soft);
}

.idw-hero__video-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.idw-hero__video-toggle svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
	.idw-hero { --idw-hero-min: 92svh; }
	.idw-hero__trust { gap: 1rem 1.75rem; }
	.idw-hero__scroll { display: none; }
}

/* ==========================================================================
   2. Appointment booking
   ========================================================================== */

.idw-appointment {
	position: relative;
}

/* Card can be pulled up over the hero for the overlapping look. */
.idw-appointment--overlap {
	margin-top: clamp(-7rem, -8vw, -4rem);
	z-index: 5;
}

.idw-appointment__card {
	position: relative;
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	border-radius: var(--idw-radius-xl);
	background: var(--idw-surface);
	box-shadow: var(--idw-shadow-xl);
	overflow: hidden;
}

@media (max-width: 900px) {
	.idw-appointment__card { grid-template-columns: 1fr; }
}

.idw-appointment__aside {
	position: relative;
	padding: clamp(2rem, 4vw, 3.25rem);
	background: var(--idw-grad-brand);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.idw-appointment__aside::after {
	content: "";
	position: absolute;
	inset-block-start: -30%;
	inset-inline-end: -25%;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(18, 165, 148, 0.28);
	filter: blur(50px);
	z-index: -1;
}

.idw-appointment__aside h2 {
	color: #fff;
	font-size: var(--idw-fs-h3);
}

.idw-appointment__aside p {
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--idw-fs-sm);
}

.idw-appointment__points {
	margin: var(--idw-space-6) 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
	font-size: var(--idw-fs-sm);
}

.idw-appointment__points li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: rgba(255, 255, 255, 0.86);
}

.idw-appointment__points svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 0.15em;
	color: var(--idw-accent-300);
}

.idw-appointment__hotline {
	margin-top: clamp(1.75rem, 4vw, 2.75rem);
	padding-top: var(--idw-space-5);
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.idw-appointment__hotline-label {
	font-size: var(--idw-fs-xs);
	letter-spacing: var(--idw-tracking-wide);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.idw-appointment__hotline a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.35rem;
	font-family: var(--idw-font-heading);
	font-size: var(--idw-fs-h5);
	font-weight: 800;
	color: #fff;
	text-decoration: none;
}

.idw-appointment__form {
	padding: clamp(2rem, 4vw, 3.25rem);
}

.idw-appointment__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--idw-space-4);
}

.idw-appointment__grid .idw-field--full { grid-column: 1 / -1; }

@media (max-width: 560px) {
	.idw-appointment__grid { grid-template-columns: 1fr; }
}

.idw-appointment__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: var(--idw-fs-xs);
	color: var(--idw-muted);
	line-height: 1.5;
}

.idw-appointment__consent input {
	width: 18px;
	height: 18px;
	margin-top: 0.15em;
	accent-color: var(--idw-primary);
	flex: none;
}

/* Inline spinner while the form posts. */
.idw-btn.is-busy {
	pointer-events: none;
	opacity: 0.75;
}

.idw-btn.is-busy .idw-btn__icon {
	animation: idw-spin 800ms linear infinite;
}

/* ==========================================================================
   3. About + statistics
   ========================================================================== */

.idw-about__media {
	position: relative;
}

.idw-about__media-main {
	position: relative;
	border-radius: var(--idw-radius-xl);
	overflow: hidden;
	box-shadow: var(--idw-shadow-lg);
	aspect-ratio: 4 / 5;
}

.idw-about__media-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Smaller inset image that overlaps the main one. */
.idw-about__media-inset {
	position: absolute;
	inset-block-end: -2rem;
	inset-inline-end: -1.5rem;
	width: 46%;
	border-radius: var(--idw-radius-lg);
	overflow: hidden;
	border: 6px solid var(--idw-surface);
	box-shadow: var(--idw-shadow);
	aspect-ratio: 1;
}

.idw-about__media-inset img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Floating experience badge. */
.idw-about__badge {
	position: absolute;
	inset-block-start: 1.5rem;
	inset-inline-start: -1.5rem;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.35rem;
	border-radius: var(--idw-radius-lg);
	background: var(--idw-surface);
	box-shadow: var(--idw-shadow-lg);
	z-index: 2;
}

.idw-about__badge-value {
	font-family: var(--idw-font-heading);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	color: var(--idw-primary);
}

.idw-about__badge-label {
	font-size: var(--idw-fs-xs);
	line-height: 1.35;
	color: var(--idw-muted);
	max-width: 12ch;
}

@media (max-width: 900px) {
	.idw-about__media-inset { inset-inline-end: 0; width: 40%; }
	.idw-about__badge { inset-inline-start: 0; }
}

.idw-about__list {
	margin: var(--idw-space-6) 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.9rem;
}

.idw-about__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: var(--idw-fs-sm);
}

.idw-about__list svg {
	width: 22px;
	height: 22px;
	flex: none;
	margin-top: 0.1em;
	color: var(--idw-accent-ink);
}

/* Stats row */

.idw-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: var(--idw-space-5);
}

.idw-stat {
	position: relative;
	padding: var(--idw-space-5) var(--idw-space-4);
	text-align: center;
}

/* Divider between stats instead of boxes — lighter, more premium. */
.idw-stat + .idw-stat::before {
	content: "";
	position: absolute;
	inset-block: 12%;
	inset-inline-start: 0;
	width: 1px;
	background: var(--idw-line);
}

@media (max-width: 700px) {
	.idw-stat + .idw-stat::before { display: none; }
}

.idw-stat__value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.05em;
	font-family: var(--idw-font-heading);
	font-size: clamp(2.25rem, 3.4vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
	color: var(--idw-primary);
	letter-spacing: -0.03em;
}

.idw-stat__suffix { color: var(--idw-accent); }

.idw-stat__label {
	margin-top: 0.6rem;
	font-size: var(--idw-fs-sm);
	color: var(--idw-muted);
}

.idw-invert .idw-stat__value { color: #fff; }
.idw-invert .idw-stat__label { color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   4. Services / services cards
   ========================================================================== */

.idw-service-card {
	--idw-card-ratio: 16 / 10;
	padding: var(--idw-space-6) var(--idw-space-5) var(--idw-space-6);
	gap: var(--idw-space-4);
	background: var(--idw-surface);
	overflow: visible;
}

/* Brand wash that fills the card from the bottom on hover. */
.idw-service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: var(--idw-grad-brand);
	opacity: 0;
	transition: opacity var(--idw-dur) var(--idw-ease-soft);
}

.idw-service-card > * { position: relative; z-index: 1; }

.idw-service-card:hover::before,
.idw-service-card:focus-within::before { opacity: 1; }

/*
 * Everything the wash sits behind has to lift with it. The wash is switched on
 * by :hover AND :focus-within, so the text colours must answer to both — a
 * keyboard user tabbing into the card gets the dark wash either way, and any
 * child left on its resting colour becomes dark-on-dark and unreadable.
 */
.idw-service-card:hover .idw-card__title,
.idw-service-card:hover .idw-card__title a,
.idw-service-card:hover .idw-card__text,
.idw-service-card:hover .idw-card__price-value,
.idw-service-card:hover .idw-link,
.idw-service-card:focus-within .idw-card__title,
.idw-service-card:focus-within .idw-card__title a,
.idw-service-card:focus-within .idw-card__text,
.idw-service-card:focus-within .idw-card__price-value,
.idw-service-card:focus-within .idw-link { color: #fff; }

.idw-service-card:hover .idw-card__price-note,
.idw-service-card:focus-within .idw-card__price-note { color: rgba(255, 255, 255, 0.72); }

.idw-service-card:hover .idw-icon-tile,
.idw-service-card:focus-within .idw-icon-tile {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.idw-service-card__index {
	position: absolute;
	inset-block-start: var(--idw-space-5);
	inset-inline-end: var(--idw-space-5);
	font-family: var(--idw-font-heading);
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--idw-primary-100);
	transition: color var(--idw-dur) var(--idw-ease-soft);
	pointer-events: none;
	z-index: 1;
}

.idw-service-card:hover .idw-service-card__index {
	color: rgba(255, 255, 255, 0.2);
}

/* Media variant — card with a photo header. */
.idw-service-card--media {
	padding: 0;
	overflow: hidden;
}

.idw-service-card--media .idw-card__body {
	padding: var(--idw-space-5);
}

.idw-service-card--media .idw-icon-tile {
	position: absolute;
	inset-block-start: -54px;
	inset-inline-start: var(--idw-space-5);
	box-shadow: var(--idw-shadow);
	background: var(--idw-surface);
}

.idw-service-card--media .idw-card__body {
	position: relative;
	padding-top: calc(var(--idw-space-5) + 18px);
}

/* ==========================================================================
   5. Why choose us
   ========================================================================== */

.idw-feature {
	display: flex;
	gap: var(--idw-space-5);
	padding: var(--idw-space-6);
	border-radius: var(--idw-radius-lg);
	background: var(--idw-surface);
	box-shadow: var(--idw-shadow-ring);
	transition:
		transform var(--idw-dur) var(--idw-ease),
		box-shadow var(--idw-dur) var(--idw-ease),
		background-color var(--idw-dur) var(--idw-ease-soft);
}

.idw-feature:hover {
	transform: translateY(-6px);
	box-shadow: var(--idw-shadow-ring), var(--idw-shadow-lg);
}

.idw-feature--stacked {
	flex-direction: column;
	text-align: start;
}

.idw-feature--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.idw-feature__title {
	margin: 0 0 0.5rem;
	font-size: var(--idw-fs-h6);
}

.idw-feature__text {
	margin: 0;
	font-size: var(--idw-fs-sm);
	color: var(--idw-body);
}

.idw-feature:hover .idw-icon-tile {
	background: var(--idw-primary);
	color: #fff;
	transform: rotate(-6deg) scale(1.05);
}

/* Split "why choose us" with an image column. */
.idw-why__media {
	position: relative;
	border-radius: var(--idw-radius-xl);
	overflow: hidden;
	aspect-ratio: 3 / 4;
	box-shadow: var(--idw-shadow-lg);
}

.idw-why__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.idw-why__list {
	display: grid;
	gap: var(--idw-space-4);
}

/* ==========================================================================
   6. People
   ========================================================================== */

.idw-person-card {
	--idw-card-ratio: 4 / 5;
	text-align: center;
}

.idw-person-card .idw-card__media {
	background: linear-gradient(180deg, var(--idw-primary-50), var(--idw-primary-100));
}

/* Social rail that slides up from the bottom of the portrait. */
.idw-person-card__socials {
	position: absolute;
	inset-block-end: 0.75rem;
	inset-inline: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--idw-dur) var(--idw-ease), transform var(--idw-dur) var(--idw-ease);
}

.idw-person-card:hover .idw-person-card__socials,
.idw-person-card:focus-within .idw-person-card__socials {
	opacity: 1;
	transform: translateY(0);
}

.idw-person-card__socials a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--idw-primary);
	backdrop-filter: blur(4px);
	transition: background-color var(--idw-dur-fast), color var(--idw-dur-fast);
}

.idw-person-card__socials a:hover {
	background: var(--idw-primary);
	color: #fff;
}

.idw-person-card__socials svg { width: 16px; height: 16px; }

.idw-person-card__role {
	font-size: var(--idw-fs-xs);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--idw-accent-ink);
}

.idw-person-card__dept {
	font-size: var(--idw-fs-sm);
	color: var(--idw-muted);
}

.idw-person-card__langs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 0.35rem;
}

/* ==========================================================================
   7. Quotes
   ========================================================================== */

.idw-quote {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--idw-space-5);
	height: 100%;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border-radius: var(--idw-radius-lg);
	background: var(--idw-surface);
	box-shadow: var(--idw-shadow-ring), var(--idw-shadow-sm);
}

.idw-quote__mark {
	position: absolute;
	inset-block-start: clamp(1.25rem, 2vw, 1.75rem);
	inset-inline-end: clamp(1.25rem, 2vw, 1.75rem);
	width: 46px;
	height: 46px;
	color: var(--idw-primary-100);
}

.idw-quote__quote {
	margin: 0;
	font-size: var(--idw-fs-lg);
	line-height: var(--idw-lh-relaxed);
	color: var(--idw-ink);
	font-weight: 500;
}

.idw-quote__quote::before { content: "\201C"; }
.idw-quote__quote::after { content: "\201D"; }

.idw-quote__foot {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: auto;
	padding-top: var(--idw-space-4);
	border-top: 1px solid var(--idw-line);
}

.idw-quote__avatar {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	background: var(--idw-primary-100);
}

.idw-quote__name {
	font-family: var(--idw-font-heading);
	font-weight: 700;
	color: var(--idw-ink);
	line-height: 1.3;
}

.idw-quote__role {
	font-size: var(--idw-fs-xs);
	color: var(--idw-muted);
}

/* Slider shell — shared by quotes and the person carousel. */

.idw-slider {
	position: relative;
}

.idw-slider__viewport {
	overflow: hidden;
	/* Let card shadows breathe without being clipped. */
	margin: -12px;
	padding: 12px;
}

.idw-slider__track {
	display: flex;
	gap: var(--idw-space-5);
	transition: transform var(--idw-dur-slow) var(--idw-ease);
	will-change: transform;
}

.idw-slider__slide {
	flex: 0 0 auto;
	width: var(--idw-slide-width, 100%);
	min-width: 0;
}

.idw-slider--dragging .idw-slider__track {
	transition: none;
	cursor: grabbing;
}

.idw-slider__nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.idw-slider__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--idw-line-strong);
	background: var(--idw-surface);
	color: var(--idw-primary);
	transition: all var(--idw-dur-fast) var(--idw-ease-soft);
}

.idw-slider__btn:hover:not(:disabled) {
	background: var(--idw-primary);
	border-color: var(--idw-primary);
	color: #fff;
}

.idw-slider__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.idw-slider__btn svg { width: 18px; height: 18px; }

[dir="rtl"] .idw-slider__btn svg { transform: scaleX(-1); }

.idw-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin-top: var(--idw-space-6);
}

.idw-slider__dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--idw-line-strong);
	transition: all var(--idw-dur) var(--idw-ease);
}

.idw-slider__dot[aria-current="true"] {
	width: 28px;
	background: var(--idw-primary);
}

/* ==========================================================================
   8. Partner marquee
   ========================================================================== */

.idw-partner__logo {
	display: grid;
	place-items: center;
	min-width: 150px;
	height: 74px;
	padding: 0 1.25rem;
	flex: none;
}

.idw-partner__logo img {
	max-height: 100%;
	max-width: 190px;
	width: auto;
	object-fit: contain;
	/* Neutralise mismatched partner logos, restore colour on hover. */
	filter: grayscale(1);
	opacity: 0.62;
	transition: filter var(--idw-dur) var(--idw-ease-soft), opacity var(--idw-dur) var(--idw-ease-soft), transform var(--idw-dur) var(--idw-ease);
}

.idw-partner__logo:hover img {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.06);
}

/*
 * Logo grids on dark bands. Logos are drawn for light backgrounds, so each
 * one sits on a compact white plate with a soft halo, and the plates gather
 * in a centred row rather than stretching across the grid columns.
 */
.idw-invert .idw-grid:has(> .idw-partner__logo) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--idw-space-5);
}

.idw-invert .idw-partner__logo {
	min-width: 0;
	max-width: 100%;
	height: auto;
	padding: 0.75rem 1.75rem;
	background: #fff;
	border-radius: var(--idw-radius);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.55);
	transition: transform var(--idw-dur) var(--idw-ease), box-shadow var(--idw-dur) var(--idw-ease);
}

.idw-invert .idw-partner__logo:hover {
	transform: translateY(-3px);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 22px 44px -18px rgba(0, 0, 0, 0.6);
}

.idw-invert .idw-partner__logo img,
.idw-invert .idw-partner__logo:hover img {
	height: clamp(104px, 11vw, 140px);
	width: auto;
	max-height: none;
	max-width: 100%;
	filter: none;
	opacity: 1;
	transform: none;
}

/* A logo row is a supporting section, so its heading steps down a size. */
.elementor-widget-container:has(> .idw-grid > .idw-partner__logo) .idw-section-head {
	margin-bottom: var(--idw-space-6);
}

.elementor-widget-container:has(> .idw-grid > .idw-partner__logo) .idw-section-head__title {
	font-size: var(--idw-fs-h3);
}

.idw-partner--card .idw-partner__logo {
	background: var(--idw-surface);
	border-radius: var(--idw-radius);
	box-shadow: var(--idw-shadow-ring);
	min-width: 190px;
}

/* ==========================================================================
   9. FAQ accordion
   ========================================================================== */

/* FAQ section eyebrow ("FAQ") — larger than the default eyebrow. */
.elementor-widget-idw-faq .idw-eyebrow {
	font-size: 30px;
}

.idw-faq {
	display: grid;
	gap: var(--idw-space-3);
}

.idw-faq__item {
	border: 1px solid var(--idw-line);
	border-radius: var(--idw-radius-lg);
	background: var(--idw-surface);
	overflow: hidden;
	transition: border-color var(--idw-dur) var(--idw-ease-soft), box-shadow var(--idw-dur) var(--idw-ease-soft);
}

.idw-faq__item[open] {
	border-color: color-mix(in srgb, var(--idw-primary) 35%, transparent);
	box-shadow: var(--idw-shadow);
}

.idw-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--idw-space-4);
	padding: clamp(1rem, 2vw, 1.4rem) clamp(1.15rem, 2.5vw, 1.75rem);
	font-family: var(--idw-font-heading);
	font-size: var(--idw-fs-h6);
	font-weight: 700;
	color: var(--idw-ink);
	cursor: pointer;
	list-style: none;
	transition: color var(--idw-dur-fast) var(--idw-ease-soft);
}

/* Hide the native disclosure triangle in every engine. */
.idw-faq__q::-webkit-details-marker { display: none; }
.idw-faq__q::marker { content: ""; }

.idw-faq__item[open] .idw-faq__q { color: var(--idw-primary); }

.idw-faq__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--idw-primary-50);
	color: var(--idw-primary);
	flex: none;
	transition: background-color var(--idw-dur) var(--idw-ease-soft), color var(--idw-dur) var(--idw-ease-soft);
}

.idw-faq__item[open] .idw-faq__icon {
	background: var(--idw-primary);
	color: #fff;
}

/* Plus that becomes a minus. */
.idw-faq__icon::before,
.idw-faq__icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--idw-dur) var(--idw-ease), opacity var(--idw-dur-fast);
}

.idw-faq__icon::before { width: 13px; height: 2px; }
.idw-faq__icon::after { width: 2px; height: 13px; }

.idw-faq__item[open] .idw-faq__icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

.idw-faq__a {
	padding: 0 clamp(1.15rem, 2.5vw, 1.75rem) clamp(1.15rem, 2.5vw, 1.6rem);
	font-size: var(--idw-fs-sm);
	line-height: var(--idw-lh-relaxed);
	color: var(--idw-body);
}

.idw-faq__a > :last-child { margin-bottom: 0; }

/* Animated open/close; JS sets the height so <details> stays semantic. */
.idw-faq__panel {
	overflow: hidden;
}

.idw-faq--animating .idw-faq__panel {
	transition: height var(--idw-dur) var(--idw-ease-soft);
}

/* Two-column FAQ layout with an aside. */
.idw-faq-split {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

@media (max-width: 900px) {
	.idw-faq-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. Blog cards
   ========================================================================== */

.idw-post-card {
	--idw-card-ratio: 3 / 2;
}

.idw-post-card__date {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: var(--idw-radius);
	background: var(--idw-surface);
	box-shadow: var(--idw-shadow-sm);
	font-family: var(--idw-font-heading);
	line-height: 1.05;
	text-align: center;
}

.idw-post-card__day {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--idw-primary);
}

.idw-post-card__month {
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--idw-muted);
}

/* Featured (first) post spans two columns on wide screens. */
.idw-blog-grid--featured > :first-child {
	grid-column: span 2;
}

.idw-blog-grid--featured > :first-child .idw-card__media {
	--idw-card-ratio: 21 / 9;
}

.idw-blog-grid--featured > :first-child .idw-card__title {
	font-size: var(--idw-fs-h4);
}

@media (max-width: 900px) {
	.idw-blog-grid--featured > :first-child { grid-column: span 1; }
	.idw-blog-grid--featured > :first-child .idw-card__media { --idw-card-ratio: 3 / 2; }
}

/* ==========================================================================
   11. CTA band
   ========================================================================== */

.idw-cta {
	position: relative;
	padding: clamp(2.5rem, 6vw, 4.5rem);
	border-radius: var(--idw-radius-xl);
	background: var(--idw-grad-brand);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.idw-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle at 88% 18%, rgba(18, 165, 148, 0.4), transparent 48%),
		radial-gradient(circle at 4% 92%, rgba(168, 128, 173, 0.42), transparent 46%);
}

.idw-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--idw-space-6);
}

.idw-cta h2 {
	margin: 0 0 0.6rem;
	color: #fff;
	font-size: var(--idw-fs-h2);
	max-width: 18ch;
}

.idw-cta p {
	margin: 0;
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.82);
}

.idw-cta--full {
	border-radius: 0;
	padding-block: var(--idw-section-y);
}

/* ==========================================================================
   12. Shared: section heading widget
   ========================================================================== */

.idw-heading__title mark,
.idw-heading__title .idw-mark {
	background: none;
	color: var(--idw-primary);
	position: relative;
}

/*
 * Underline behind the highlighted word. Painted as a background on the inline box rather than a pseudo-element,
 * so the underline follows the words when the highlight wraps onto a
 * second line instead of landing under the last fragment only.
 */
.idw-heading__title .idw-mark {
	--idw-mark-line: var(--idw-accent-100);

	background: linear-gradient(var(--idw-mark-line), var(--idw-mark-line)) no-repeat 0 96% / 100% 0.34em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.idw-heading__title .idw-mark { z-index: 0; }

/* On dark bands the primary colour disappears into the background. */
.idw-invert .idw-heading__title mark,
.idw-invert .idw-heading__title .idw-mark {
	color: var(--idw-accent-300);
}

/* The coloured word is enough on a dark band; the bar only muddies it. */
.idw-invert .idw-heading__title .idw-mark {
	background: none;
}

/* ==========================================================================
   Elementor editor niceties
   ========================================================================== */

/* Give empty widget states a visible outline inside the editor only. */
.elementor-editor-active .idw-empty {
	display: block;
}

/* Elementor wraps every widget; make sure full-bleed sections can escape. */
.idw-full-bleed {
	width: 100vw;
	margin-inline-start: 50%;
	transform: translateX(-50%);
}

/* Slider footer: dots and arrows together under a centred heading. */
.idw-slider__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--idw-space-5);
	margin-top: var(--idw-space-6);
	flex-wrap: wrap;
}

.idw-slider__footer .idw-slider__dots {
	margin-top: 0;
}

/* Full-colour variant of the marquee. */
.idw-partner--colour .idw-partner__logo img {
	filter: none;
	opacity: 1;
}

/* ------------------------------------------------ Linked feature cards
 * A feature card with a per-item link. The anchor is stretched over the
 * whole tile so the card behaves like one target, while the accessible
 * name stays on the title text.
 */
.idw-feature--linked {
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idw-feature__link {
	color: inherit;
	text-decoration: none;
}

.idw-feature__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.idw-feature--linked:hover,
.idw-feature--linked:focus-within {
	transform: translateY(-2px);
}

.idw-feature--linked:hover .idw-feature__title,
.idw-feature--linked:focus-within .idw-feature__title {
	color: var(--idw-primary);
}

.idw-feature__link:focus-visible::after {
	outline: 2px solid var(--idw-accent, currentColor);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.idw-feature--linked { transition: none; }
	.idw-feature--linked:hover,
	.idw-feature--linked:focus-within { transform: none; }
}

/* ------------------------------------------------------- Service pricing
 * Indicative "from" pricing on a service card. Deliberately quiet: it sits
 * between the description and the read-more, and never competes with the
 * card title.
 */
.idw-card__price {
	margin: var(--idw-space-3, 0.75rem) 0 0;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.idw-card__price-value {
	font-weight: 700;
	color: var(--idw-ink);
	font-size: var(--idw-fs-lg, 1.05rem);
}

.idw-card__price-note {
	font-size: var(--idw-fs-xs);
	color: var(--idw-muted);
}

/*
 * Inverted bands flip the surface to dark but not the ink scale, so a price
 * left on --idw-ink disappears. Restate both parts for that context.
 */
.idw-invert .idw-card__price-value { color: #fff; }
.idw-invert .idw-card__price-note { color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------------- Price tables
 * A price table authored as prose. Styled here so it reads as part of the
 * design rather than as a browser default table.
 */
.idw-prose table,
.elementor-widget-text-editor table {
	width: 100%;
	max-width: 860px;
	/* Separate borders, so the rounded corners can clip the cells. */
	border-collapse: separate;
	border-spacing: 0;
	margin: var(--idw-space-5, 1.5rem) 0 var(--idw-space-6, 2rem);
	border-radius: var(--idw-radius-lg, 22px);
	background: var(--idw-surface);
	box-shadow: var(--idw-shadow-ring), var(--idw-shadow);
	overflow: hidden;
	font-size: var(--idw-fs-base, 1rem);
}

.idw-prose thead th,
.elementor-widget-text-editor thead th {
	text-align: start;
	padding: 1.05rem 1.6rem;
	border: 0;
	background: var(--idw-primary);
	color: #fff;
	font-family: var(--idw-font-heading);
	font-size: var(--idw-fs-xs);
	font-weight: 700;
	letter-spacing: var(--idw-tracking-wide, 0.08em);
	text-transform: uppercase;
}

.idw-prose thead th:last-child,
.elementor-widget-text-editor thead th:last-child {
	text-align: end;
}

.idw-prose tbody td,
.elementor-widget-text-editor tbody td {
	padding: 0.95rem 1.6rem;
	border: 0;
	border-bottom: 1px solid var(--idw-line, rgba(0, 0, 0, 0.1));
	background: transparent;
	vertical-align: middle;
	color: var(--idw-ink);
	font-weight: 500;
	transition: background-color var(--idw-dur-fast) var(--idw-ease-soft);
}

.idw-prose tbody tr:nth-child(even) td,
.elementor-widget-text-editor tbody tr:nth-child(even) td {
	background: var(--idw-surface-alt);
}

.idw-prose tbody tr:hover td,
.elementor-widget-text-editor tbody tr:hover td {
	background: var(--idw-accent-50);
}

.idw-prose tbody tr:last-child td,
.elementor-widget-text-editor tbody tr:last-child td {
	border-bottom: 0;
}

/* The figure is what the visitor is scanning for. */
.idw-prose tbody td:last-child,
.elementor-widget-text-editor tbody td:last-child {
	text-align: end;
	white-space: nowrap;
	font-family: var(--idw-font-heading);
	font-size: 1.0625em;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--idw-accent-ink);
}

.idw-invert .idw-prose thead th,
.idw-invert .elementor-widget-text-editor thead th {
	background: rgba(255, 255, 255, 0.1);
}

.idw-invert .idw-prose tbody tr:hover td,
.idw-invert .elementor-widget-text-editor tbody tr:hover td {
	background: var(--idw-surface-tint);
}

.idw-invert .idw-prose tbody td:last-child,
.idw-invert .elementor-widget-text-editor tbody td:last-child {
	color: var(--idw-accent-300);
}

@media (max-width: 480px) {
	.idw-prose table,
	.elementor-widget-text-editor table { font-size: var(--idw-fs-sm); }

	.idw-prose thead th,
	.elementor-widget-text-editor thead th,
	.idw-prose tbody td,
	.elementor-widget-text-editor tbody td { padding: 0.8rem 1rem; }
}

/* ==========================================================================
   Dark bands: brand-coloured text
   --------------------------------------------------------------------------
   .idw-invert flips the neutral scale and the surfaces, but anything that
   sets its text to the primary or accent-ink colour stayed dark and vanished
   into the band. Every such rule that sits on an inverted surface is
   re-pointed here. Elements with their own fixed light plate (icon tiles,
   badges, play button) are deliberately left alone.
   ========================================================================== */

.idw-invert .idw-about__badge-value,
.idw-invert .idw-about__list svg,
.idw-invert .idw-person-card__role,
.idw-invert .idw-post-card__day,
.idw-invert .idw-link,
.idw-invert .idw-faq__item[open] .idw-faq__q,
.idw-invert .idw-feature--linked:hover .idw-feature__title,
.idw-invert .idw-feature--linked:focus-within .idw-feature__title {
	color: var(--idw-accent-300);
}

.idw-invert .idw-slider__btn {
	color: #fff;
}
