/* ==========================================================================
   GetOnData — components.css
   Reusable UI used across templates (values match the live site).
   Page-specific layout lives in assets/css/pages/*.css.
   Contents: headings · links/buttons · lists · carousel · tabs · cards ·
             marquee · clients band · page hero · video modal · CTA band ·
             contact cards · embeds · forms (CF7)
   ========================================================================== */

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: 40px; }
.section-heading--center { text-align: center; }
.section-heading__text { max-width: 720px; margin: 14px auto 0; color: var(--gd-text-80); font-size: 18px; font-weight: 500; }
.section-heading--left .section-heading__text { margin-inline: 0; }
.section-heading--light .section-heading__title,
.section-heading--light .section-heading__text { color: #fff; }

/* "Title max width" fields (gd_title_style): desktop only, like the original page. */
.section-heading--center .gd-title[style*="max-width"],
.page-hero__title[style*="max-width"] { margin-inline: auto; }
@media (max-width: 1024px) {
	.gd-title[style*="max-width"],
	.page-hero__title[style*="max-width"] { max-width: none !important; }
}

/* ---------- Links & buttons ---------- */
.gd-btn__icon { flex: none; }
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gd-ink);
	font: 500 18px/24px var(--gd-font);
	text-decoration: none;
}
.text-link > span { text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--gd-blue); }

/* ---------- Check list (orange check-circle icons) ---------- */
.check-list { display: grid; gap: 10px 20px; }
/* Two columns filled top-to-bottom (first half left), as on the original page. */
.check-list--2col { display: block; columns: 2; column-gap: 20px; }
.check-list--2col li { break-inside: avoid; margin-bottom: 10px; }
.check-list--2col li:last-child { margin-bottom: 0; }
.check-list li {
	position: relative;
	padding-left: 29px;
	color: var(--gd-text-80);
	font: 600 18px/30px var(--gd-font);
}
.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--gd-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list a { color: inherit; text-decoration: none; }
.check-list a:hover { color: var(--gd-orange); }
@media (max-width: 575px) { .check-list--2col { columns: 1; } }

/* ---------- Carousel (scroll-snap; see js/components/carousel.js) ---------- */
.carousel { position: relative; }
.carousel__track {
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel--cards .carousel__slide { flex-basis: calc((100% - 60px) / 3); }
@media (max-width: 1023px) { .carousel--cards .carousel__slide { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 639px) {
	.carousel--cards .carousel__track { gap: 16px; }
	.carousel--cards .carousel__slide { flex-basis: 85%; }
}

/* Round outline arrows (case studies) */
.carousel-nav { display: flex; gap: 20px; }
.carousel-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid #000;
	border-radius: 500px;
	background: transparent;
	color: #000;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s;
}
.carousel-nav__btn:hover:not(:disabled) { border-color: var(--gd-blue); background: var(--gd-blue); color: #fff; }
.carousel-nav__btn:disabled { opacity: .35; cursor: default; }
.carousel-nav__btn .is-prev { transform: rotate(90deg); }
.carousel-nav__btn .is-next { transform: rotate(-90deg); }

/* Dots: orange, active blue (live swiper bullets). */
.carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: 15px; }
.carousel__dot {
	position: relative;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 90px;
	background: var(--gd-orange);
	cursor: pointer;
}
.carousel__dot[aria-current="true"] { background: var(--gd-blue); }
.carousel__dot::after { content: ""; position: absolute; inset: -12px -4px; } /* larger hit area */

/* ---------- Tabs (see js/components/tabs.js) ---------- */
.tabs__tab { cursor: pointer; }
.tabs__panel[hidden] { display: none !important; }
.tabs__panel:focus-visible { outline-offset: 6px; }

/* ---------- Case-study card (listing pages) ---------- */
.cs-card { height: 100%; }
.cs-card__link { display: flex; flex-direction: column; height: 100%; color: var(--gd-muted); text-decoration: none; }
.cs-card__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px 8px 0 0; background: var(--gd-bg-soft); }
.cs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--gd-ease); }
.cs-card__link:hover .cs-card__media img { transform: scale(1.04); }
.cs-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding-top: 16px; }
.cs-card__tag { color: var(--gd-orange); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.cs-card__title { margin: 0; font: 500 18px/28px var(--gd-font); letter-spacing: .32px; text-transform: capitalize; }
.cs-card__more { color: var(--gd-blue); font-weight: 500; }

/* ---------- Insight card (live "post-card") ---------- */
.insight-card { height: 100%; }
.insight-card__link {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100%;
	min-height: 530px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--gd-ink);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}
.insight-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.insight-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .85) 100%);
}
.insight-card__title {
	margin: 0;
	padding: 36px;
	color: #fff;
	font: 500 18px/30px var(--gd-font);
	letter-spacing: .32px;
	text-transform: capitalize;
	transition: opacity .3s;
}
/* Hover panel (blue) */
.insight-card__hover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 36px;
	background: var(--gd-blue) url(../images/card-hover-bg.webp) center / cover;
	color: #fff;
	text-align: left;
	opacity: 0;
	transition: opacity .3s;
}
.insight-card__author { font-weight: 500; }
.insight-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 8px; }
.insight-card__type { font: 700 22px/30px var(--gd-font); }
.insight-card__meta .insight-card__author { align-self: flex-end; font-size: 18px; }
button.insight-card__link { width: 100%; padding: 0; border: 0; font: inherit; text-align: left; cursor: pointer; }
.insight-card__hover-title { font: 700 22px/30px var(--gd-font); text-transform: capitalize; }
.insight-card__excerpt { font: 500 18px/28px var(--gd-font); }
.insight-card__expand { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; margin-top: auto; }
.insight-card__link:hover .insight-card__hover,
.insight-card__link:focus-visible .insight-card__hover { opacity: 1; }
.insight-card__link:hover .insight-card__title,
.insight-card__link:focus-visible .insight-card__title { opacity: 0; }
@media (max-width: 767px) { .insight-card__link { min-height: 420px; } }

/* ---------- Logo tiles: two continuously scrolling rows (pure CSS) ---------- */
.marquee { display: flex; overflow: hidden; }
.marquee__track {
	display: flex;
	flex: none;
	gap: 30px;
	padding-right: 30px;
	animation: gd-marquee 30s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 166px;
	height: 76px;
	padding: 6px 10px;
	border-radius: 4px;
	background: #fff;
}
.marquee__item img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; }
@keyframes gd-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee, .marquee__track { flex-wrap: wrap; }
	.marquee__track { animation: none; }
	.marquee__track[aria-hidden="true"] { display: none; }
}

/* ---------- Case studies showcase (see js/components/cases.js) ----------
   Left: details of the active case study + arrows. Right: 3 cards, the
   active one enlarged 10% (live: swiper-slide-active scale 1.1). */
.cases .section-heading { margin-bottom: 60px; }
.cases__layout { display: grid; grid-template-columns: 413px minmax(0, 1fr); align-items: center; gap: 20px; }
.cases__detail { padding-left: 10px; }
.cases__category { margin: 0 0 16px; color: var(--gd-ink); font: 600 22px/28px var(--gd-font); }
.cases__summary { margin: 0 0 16px; color: var(--gd-muted); font: 500 18px/28px var(--gd-font); }
.cases__link { display: inline-flex; align-items: center; gap: 10px; color: var(--gd-muted); font: 500 18px/30px var(--gd-font); text-decoration: none; }
.cases__link:hover { color: var(--gd-blue); }
.cases__nav { margin-top: 20px; }
.cases__nav .carousel-nav__btn:hover:not(:disabled) { border-color: #000; background: transparent; color: #000; } /* no hover change on live */
.cases__track { gap: 30px; padding-block: 30px; }
.cases__slide { flex-basis: calc((100% - 90px) / 3); transition: transform .4s var(--gd-ease), margin .4s var(--gd-ease); }
.cases__slide.is-active { margin-right: 0; transform: none; } /* All cards the same size (no enlarged active card). */
.cases__card { display: block; color: var(--gd-muted); text-decoration: none; }
.cases__media { display: block; aspect-ratio: 414 / 280; overflow: hidden; border-radius: 8px 8px 0 0; }
.cases__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cases__title { margin: 20px 0 0; color: var(--gd-muted); font: 500 18px/28px var(--gd-font); letter-spacing: .32px; text-transform: capitalize; }
@media (max-width: 1199px) {
	.cases__layout { grid-template-columns: 1fr; gap: 10px; }
	.cases__detail { padding-left: 0; }
	.cases__slide,
	.cases__slide.is-active { flex-basis: calc((100% - 30px) / 2); margin-right: 0; transform: none; }
}
@media (max-width: 767px) {
	/* Live shows a plain card carousel on mobile (no text panel). */
	.cases__layout { display: flex; flex-direction: column; }
	.cases__layout > * { min-width: 0; width: 100%; }
	.cases__detail { order: 2; }
	.cases__category,
	.cases__summary,
	.cases__link { display: none !important; }
	.cases__nav { margin-top: 0; justify-content: center; }
	.cases__track { padding-block: 0 10px; }
	.cases__slide,
	.cases__slide.is-active { flex-basis: 85%; }
}

/* ---------- Insights carousel ---------- */
.insights .section-heading { margin-bottom: 50px; }

/* ---------- Contact section (cards + CF7 form) ---------- */
.contact-section .section-heading { margin-bottom: 30px; }
.contact-section__grid { display: grid; grid-template-columns: 550px minmax(0, 1fr); gap: 40px; align-items: start; padding-inline: 10px; }
.contact-section__grid--form { grid-template-columns: 1fr; }
@media (max-width: 1199px) {
	.contact-section__grid { grid-template-columns: 1fr; padding-inline: 0; }
	.contact-section .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .contact-section .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Clients band ("Trusted by": text + logo marquees) ---------- */
.clients-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 94px;
	color: #fff;
}
.clients-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* No overlay: original "Trusted by" section has none (image is pre-darkened). */
.clients-band__inner { display: grid; grid-template-columns: 490px minmax(0, 754px); align-items: center; justify-content: space-between; gap: 40px; }
.clients-band__title { margin: 0 0 30px; color: #fff; font: 600 42px/58px var(--gd-font); letter-spacing: .32px; text-transform: capitalize; }
.clients-band__intro p { margin: 0; color: #fff; font: 500 18px/30px var(--gd-font); }
.clients-band__logos { display: grid; gap: 27px; min-width: 0; }
@media (max-width: 1199px) { .clients-band__inner { grid-template-columns: 1fr; } .clients-band__intro { text-align: center; } }
@media (max-width: 1024px) { .clients-band__title { font-size: 30px; line-height: 42px; } } /* As live. */ /* Stacked: intro centred, as live. */
@media (max-width: 767px) {
	.clients-band { padding-block: 60px; }
	.clients-band__title { font-size: 30px; line-height: 42px; }
}

/* ---------- Page hero (inner pages: image + overlay + H1) ---------- */
.page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 115px;
	background: var(--gd-ink);
	color: #fff;
	text-align: center;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* No overlay: the original hero images are already darkened (Elementor had
   no background overlay on these sections). */
.page-hero__title { margin: 0; color: #fff; font: 700 56px/68px var(--gd-font); letter-spacing: .32px; text-transform: capitalize; }
.page-hero__text { max-width: 820px; margin: 30px auto 0; color: #fff; font: 500 18px/30px var(--gd-font); }
.page-hero__btn { margin-top: 40px; }
@media (max-width: 1024px) {
	.page-hero { padding-block: 70px; }
	.page-hero__title { font-size: 36px; line-height: 50px; } /* As live. */
}
@media (max-width: 767px) {
	.page-hero { padding-block: 50px; }
	.page-hero__title { font-size: 36px; line-height: 50px; } /* As live. */
}

/* ---------- Video modal (see js/components/video.js) ---------- */
.video-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--gd-ink);
	cursor: pointer;
}
.video-trigger img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--gd-ease); }
.video-trigger:hover img { transform: scale(1.03); }
.video-trigger__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	color: var(--gd-blue);
	transform: translate(-50%, -50%);
}
.video-trigger__play::before,
.video-trigger__play::after {
	content: "";
	position: absolute;
	inset: -30px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	animation: gd-ripple 2.4s linear infinite;
}
.video-trigger__play::after { animation-delay: 1.2s; }
.video-trigger__play svg { position: relative; border-radius: 50%; background: #fff; }
@keyframes gd-ripple { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.4); } }

.video-modal {
	width: min(960px, calc(100% - 32px));
	max-width: none;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}
.video-modal::backdrop { background: rgba(0, 0, 0, .8); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	display: inline-flex;
	padding: 6px;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

/* ---------- CTA band ---------- */
.cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 100px;
	background: var(--gd-ink);
	color: #fff;
	text-align: center;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* No overlay: original CTA sections have none (images are pre-darkened). */
.cta-band--plain::before { display: none; } /* Image already tinted (e.g. navy "Join our team"). */
/* Left-aligned variant (service pages): title 80% wide, 150px padding. */
.cta-band--left { padding-block: 150px; text-align: left; }
.cta-band--left .cta-band__title { max-width: 80%; margin: 0 0 40px; }
.cta-band--left .cta-band__text { margin-inline: 0; }
@media (max-width: 1024px) {
	.cta-band--left { padding-block: 70px; text-align: center; }
	.cta-band--left .cta-band__title { max-width: none; margin: 0 auto 20px; font-size: 30px; line-height: 42px; }
	.cta-band--left .cta-band__text { margin-inline: auto; }
}
@media (max-width: 767px) { .cta-band--left { padding-block: 70px 80px; } }
.cta-band__title { margin: 0 auto 30px; color: #fff; }
.cta-band__text { max-width: 900px; margin: 0 auto 30px; color: #fff; font: 500 18px/30px var(--gd-font); }
.cta-band__contact a { color: var(--gd-orange); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta-band__contact a + a::before { content: "|"; margin: 0 6px; color: #fff; font-weight: 500; }
.cta-band__contact a:hover { text-decoration: underline; }
@media (max-width: 767px) {
	.cta-band { padding-block: 60px; }
	/* Email and phone on their own lines, no dangling separator. */
	.cta-band__contact { display: flex; flex-direction: column; align-items: center; margin: 4px 0 0; }
	.cta-band__contact a + a::before { display: none; }
}

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 20px; align-content: start; }
.contact-card {
	display: flex;
	gap: 15px;
	padding: 25px;
	border: 1px solid rgba(27, 68, 175, .3);
	border-radius: 15px;
	background: #fff;
}
.contact-card__icon { display: inline-flex; flex: none; align-self: flex-start; color: var(--gd-orange); }
.contact-card__icon svg { width: 35px; height: 35px; } /* Not stretched to the card height. */
.contact-card__title { margin: 0 0 5px; color: var(--gd-ink); font: 700 22px/30px var(--gd-font); }
.contact-card a { color: var(--gd-text-80); font: 500 18px/30px var(--gd-font); text-decoration: none; word-break: break-word; }
.contact-card { transition: background-color .3s; }
.contact-card:hover { background: rgba(53, 63, 232, .1); }
.contact-card a:hover { color: var(--gd-ink); }

/* ---------- Lazy embed (Power BI etc.) ---------- */
.embed {
	position: relative;
	height: var(--embed-h, 600px);
	max-height: 80vh;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--gd-muted);
	font-weight: 500;
}
.embed.is-loaded .embed__placeholder { display: none; }
.embed__spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--gd-line);
	border-top-color: var(--gd-orange);
	border-radius: 50%;
	animation: gd-spin .8s linear infinite;
}
@keyframes gd-spin { to { transform: rotate(360deg); } }
@media (max-width: 540px) { .embed { height: 260px; } }

/* ---------- Forms (Contact Form 7) — underline fields as on live ----------
   CF7 markup still uses the old Bootstrap classes (.row/.col-md-*);
   they are mapped to a CSS grid here so form markup needs no changes. */
.gd-form .wpcf7-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.gd-form .wpcf7-form .row > [class*="col-"] { min-width: 0; }
.gd-form .wpcf7-form .col-md-12 { grid-column: 1 / -1; }
@media (max-width: 575px) { .gd-form .wpcf7-form .row { grid-template-columns: 1fr; } }
.gd-form p { margin: 0; }
.gd-form .wpcf7-form-control-wrap { display: block; margin-bottom: 15px; }
.gd-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.gd-form select,
.gd-form textarea {
	width: 100%;
	height: 48px;
	padding: 0 15px;
	border: 0;
	border-bottom: 2px solid rgba(16, 23, 32, .3);
	border-radius: 0;
	background: transparent;
	color: var(--gd-muted);
	font: 400 16px/48px var(--gd-font);
	transition: border-color .3s;
}
.gd-form textarea { height: 65px; padding: 15px; line-height: 28px; resize: vertical; }
.gd-form select {
	appearance: none;
	padding-right: 36px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2340454d' d='M7 10h10l-5 6z'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
	color: var(--gd-ink);
}
.gd-form ::placeholder { color: var(--gd-muted); opacity: 1; }
.gd-form input:focus,
.gd-form select:focus,
.gd-form textarea:focus { border-bottom-color: var(--gd-blue); outline: 0; }
.gd-form [type="submit"],
.gd-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 12px 24px;
	border: 0;
	border-radius: 5px;
	background: var(--gd-blue);
	color: #fff;
	font: 500 14px/26px var(--gd-font); /* 14px, as live. */
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .3s;
}
.gd-form button[type="submit"] { position: relative; transition: background-color .5s; }
.gd-form button[type="submit"] span { position: relative; left: 0; transition: left .5s; }
.gd-form [type="submit"]:hover,
.gd-form button[type="submit"]:hover { background: var(--gd-orange); }
.gd-form button[type="submit"]:hover span { left: -10px; }
.gd-form button[type="submit"] i { display: none; } /* Font Awesome icon from the CF7 markup (FA is not loaded). */
.gd-form button[type="submit"]::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 25px;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 7 5 5-5 5M13 7l5 5-5 5'/%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'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 7 5 5-5 5M13 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0;
	transform: translateY(-50%);
	transition: .5s;
}
.gd-form button[type="submit"]:hover::after { right: 15px; opacity: 1; }
.gd-form .wpcf7-not-valid { border-bottom-color: #d93025 !important; }
.gd-form .wpcf7-not-valid-tip { margin-top: 6px; color: #d93025; font-size: 14px; line-height: 20px; }
.gd-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border-radius: 5px; font-size: 15px; line-height: 22px; }
.gd-form .wpcf7-spinner { margin: 0 0 0 12px; }
/* Country phone field (intl-tel-input, separate dial code): give the
   "flag +1 ▾" block its room again (our input padding overrode the plugin). */
.gd-form .intl-tel-input,
.gd-form .iti { display: block; width: 100%; }
.gd-form .intl-tel-input .flag-container,
.gd-form .iti__flag-container { top: 0; bottom: 2px; }
.gd-form .intl-tel-input .selected-flag,
.gd-form .iti__selected-flag { background: transparent !important; padding-left: 15px; }
.gd-form .intl-tel-input .selected-dial-code,
.gd-form .iti__selected-dial-code { color: var(--gd-muted); font-size: 16px; }
.gd-form .intl-tel-input.separate-dial-code.allow-dropdown input { padding-left: 92px; }
.gd-form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-2 input { padding-left: 84px; }
.gd-form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input { padding-left: 92px; }
.gd-form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input { padding-left: 100px; }
.gd-form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-5 input { padding-left: 108px; }
.gd-form .intl-tel-input.allow-dropdown:not(.separate-dial-code) input,
.gd-form .iti--allow-dropdown input { padding-left: 60px; }
.gd-form .intl-tel-input .country-list { z-index: 20; max-width: 320px; font-size: 15px; line-height: 22px; white-space: normal; }

/* ---------- Enquiry forms (theme forms, inc/features/enquiries) ----------
   Field look comes from the .gd-form rules above (underline inputs, blue
   submit). This adds the grid, phone country picker, file input, errors. */
.gd-enquiry__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.gd-enquiry__field { position: relative; min-width: 0; margin-bottom: 15px; }
.gd-enquiry__field--full { grid-column: 1 / -1; }
@media (max-width: 575px) { .gd-enquiry__grid { grid-template-columns: 1fr; } }
.gd-enquiry__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gd-form .gd-enquiry__field.is-invalid input,
.gd-form .gd-enquiry__field.is-invalid select,
.gd-form .gd-enquiry__field.is-invalid textarea { border-bottom-color: #d93025; }
.gd-enquiry__err { display: block; color: #d93025; font-size: 14px; line-height: 20px; }
.gd-enquiry__err:empty { display: none; }
.gd-enquiry__err:not(:empty) { margin-top: 6px; }
.gd-enquiry__actions { margin-top: 10px; }
.gd-enquiry[aria-busy="true"] .gd-enquiry__submit { opacity: .7; cursor: progress; }
.gd-enquiry__status { margin: 16px 0 0; padding: 12px 16px; border-radius: 5px; font-size: 15px; line-height: 22px; }
.gd-enquiry__status.is-ok { background: #e8f6ec; color: #17633a; }
.gd-enquiry__status.is-error { background: #fdecea; color: #a1261b; }
/* reCAPTCHA v3: Google's own badge (bottom right) shows the required notice, as on the original site. */

/* Blog post sidebar (Elementor "Blog details" template): same look as the
   original CF7 forms there. */
.blog-subscribe-form .gd-enquiry__field { margin-bottom: 10px; }
.blog-subscribe-form .gd-form input:not([type="hidden"]) { margin-bottom: 0 !important; } /* Elementor widget CSS (very specific) added 20px. */
.blog-subscribe-form button.gd-enquiry__submit,
.blog-frm button.gd-enquiry__submit { width: 100%; font-size: 16px; text-transform: capitalize; letter-spacing: 0; }
.blog-subscribe-form .gd-enquiry__submit span,
.blog-frm .gd-enquiry__submit span { left: 0 !important; } /* No arrow slide in a full-width button. */
.blog-subscribe-form .gd-enquiry__submit::after,
.blog-frm .gd-enquiry__submit::after { display: none; }
.blog-frm .gd-enquiry__field { margin-bottom: 30px; }
.blog-frm .gd-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.blog-frm .gd-form select,
.blog-frm .gd-form textarea { font-size: 18px; }
/* Empty "related" boxes in the sidebar (were hidden by a script in the old child theme). */
.related-blogs-section:not(:has(.e-con-inner *)),
.related-case-study-section:not(:has(.e-con-inner *)) { display: none !important; }
.gd-enquiry__captcha { margin: 6px 0 12px; }
/* Phone: country picker (native select, invisible) over a "🇺🇸 +1 ▾" label. */
.gd-phone { position: relative; display: flex; align-items: stretch; }
.gd-form .gd-phone .gd-phone__cc { position: absolute; top: 0; left: 0; z-index: 2; width: 100px; height: 48px; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.gd-phone__dial { position: absolute; top: 0; left: 15px; display: flex; align-items: center; height: 48px; padding-right: 14px; color: var(--gd-muted); font: 400 15px/1 var(--gd-font); pointer-events: none; white-space: nowrap; }
.gd-phone__flag { flex: none; width: 20px; height: 15px; margin-right: 8px; background: #dbdbdb url("../img/flags.png") no-repeat 20px 0; box-shadow: 0 0 1px 0 #888; }
@media (min-resolution: 2dppx) { .gd-phone__flag { background-image: url("../img/flags@2x.png"); background-size: 5630px 15px; } }
/* Custom country picker (enquiry-form.js): the "flag +1 ▾" label becomes the
   button and opens a searchable list with flags. */
.gd-phone.is-enhanced .gd-phone__cc { display: none; }
.gd-phone.is-enhanced .gd-phone__dial { z-index: 2; cursor: pointer; pointer-events: auto; border-radius: 4px; }
.gd-phone.is-enhanced .gd-phone__dial:focus-visible { outline: 2px solid var(--gd-blue-2); outline-offset: 2px; }
.gd-cc-panel { position: absolute; top: 52px; left: 0; z-index: 40; width: 340px; max-width: calc(100vw - 40px); overflow: hidden; border: 1px solid var(--gd-line); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(16, 23, 32, .16); }
.gd-cc-panel[hidden] { display: none; }
.gd-form .gd-cc-panel input.gd-cc-search:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
	height: 44px; margin: 0; padding: 0 14px 0 38px; border: 0; border-bottom: 1px solid var(--gd-line); border-radius: 0; color: var(--gd-ink); font-size: 15px; line-height: 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%237a808a' stroke-width='2' stroke-linecap='round' d='m21 21-4.3-4.3M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14z'/%3E%3C/svg%3E") 12px center / 16px no-repeat;
}
.gd-cc-list { max-height: 264px; margin: 0; padding: 6px 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.gd-cc-item { display: flex; align-items: center; gap: 0; padding: 8px 14px; color: var(--gd-ink); font: 400 15px/22px var(--gd-font); cursor: pointer; }
.gd-cc-item[hidden] { display: none; }
.gd-cc-item .gd-phone__flag { margin-right: 12px; }
.gd-cc-item.is-active { background: var(--gd-soft, #f3f4fe); }
.gd-cc-item[aria-selected="true"] .gd-cc-name { font-weight: 600; }
.gd-cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-cc-dial { margin-left: 10px; color: var(--gd-muted); font-size: 14px; }
.gd-cc-sep { height: 1px; margin: 6px 0; background: var(--gd-line); }
.gd-cc-sep[hidden] { display: none; }
.gd-phone__dial::after { content: ""; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.gd-phone .gd-phone__cc:focus-visible + .gd-phone__dial { outline: 2px solid var(--gd-blue-2); outline-offset: 2px; }
.gd-form .gd-phone input[type="tel"]:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { padding-left: 108px; } /* Beats the base input rule's :not() chain. */
/* File input: whole underline field clickable, shows the chosen file name. */
.gd-file { position: relative; }
.gd-file input[type="file"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gd-file__label { display: block; height: 48px; overflow: hidden; padding: 0 15px 0 40px; border-bottom: 2px solid rgba(16, 23, 32, .3); color: var(--gd-muted); font: 400 16px/48px var(--gd-font); text-overflow: ellipsis; white-space: nowrap; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2340454d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 16V4m0 0-4 4m4-4 4 4M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") 12px center / 18px no-repeat; }
.gd-file input:focus-visible + .gd-file__label { outline: 2px solid var(--gd-blue-2); outline-offset: 2px; }
.gd-enquiry__field.is-invalid .gd-file__label { border-bottom-color: #d93025; }
.gd-file__name { display: block; margin-top: 10px; color: var(--gd-ink); font: 400 16px/30px var(--gd-font); overflow-wrap: anywhere; }


/* ---------- Popups (inc/features/popups.php, native <dialog>) ----------
   Same look as the old Popup Maker popups: white box with rounded corners on
   a dark overlay, × top right, the enquiry form inside. */
/* Values from the old Popup Maker theme (#32071 "lightbox") + the site's
   custom popup CSS: 20px padding, 15px radius, shadow 0 0 20px 8px at 20%,
   70% black overlay, black "×" (Arial 24px) 5px from the top-right corner,
   title Satoshi 24/32 semibold, 350ms fade. Width per popup (50% / 60% of the
   screen), 90% on phones. */
.gd-popup {
	width: var(--gd-popup-w, 60vw);
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 40px);
	margin: auto;
	padding: 20px;
	overflow: auto;
	border: 0;
	border-radius: 15px;
	background: #fff;
	color: #000;
	box-shadow: 0 0 20px 8px rgba(2, 2, 2, .2);
}
.gd-popup::backdrop { background: rgba(0, 0, 0, .7); }
.gd-popup[open] { animation: gd-popup-in .35s ease; }
@keyframes gd-popup-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gd-popup[open] { animation: none; } }
.gd-popup__close {
	position: absolute;
	top: 5px;
	right: 5px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 26px;
	background: transparent;
	color: #000;
	cursor: pointer;
}
.gd-popup__close svg { width: 18px; height: 18px; }
.gd-popup__close svg path { stroke-width: 2.5px; } /* Elementor page CSS sets "path { stroke-width: 0 }". */
.gd-popup__close:hover { color: var(--gd-blue); }
.gd-popup__close:focus-visible { outline: 2px solid var(--gd-blue-2); outline-offset: 2px; }
.gd-popup__title { margin: 0 30px 10px 0; color: #000; font: 600 24px/32px var(--gd-font); letter-spacing: .4px; text-align: left; }
.gd-popup__form { margin-top: 0; }
html.gd-popup-open { overflow: hidden; }
@media (max-width: 767px) {
	.gd-popup { width: 90vw; }
	.gd-popup__title { font-size: 20px; line-height: 28px; }
}

/* ---------- Filterable listing (template-parts/components/listing.php) ----------
   Insights + Customer Success Stories: filter tabs, option pills, Reset All,
   3-column card grid, Load more. Same look as the original FacetWP pages. */
.ins { padding-block: 70px 40px; }

/* Tabs */
.ins-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ins-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 32px;
	border: 1px solid rgba(16, 23, 32, .2);
	border-left-width: 0;
	background: transparent;
	color: var(--gd-ink);
	font: 600 24px/32px var(--gd-font);
	text-align: left;
	cursor: pointer;
	transition: color .2s, background-color .2s;
}
.ins-tab:first-child { border-left-width: 1px; }
.ins-tab:hover { color: var(--gd-blue); }
.ins-tab.is-active { border-bottom-color: transparent; color: var(--gd-blue); }
.ins-tab:focus-visible { outline: 2px solid var(--gd-blue-2); outline-offset: -2px; }
.ins-tab__icon { position: relative; flex: none; width: 18px; height: 18px; }
.ins-tab__icon::before,
.ins-tab__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.ins-tab__icon::after { transform: rotate(90deg); }
.ins-tab.is-active .ins-tab__icon::after { transform: rotate(0deg); } /* "+" becomes "−". */

/* Options */
.ins-panel { padding-top: 10px; }
.ins-options { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ins-option { position: relative; margin-top: 14px; cursor: pointer; }
.ins-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ins-option span {
	display: inline-block;
	padding: 16px 32px;
	border: 1px solid rgba(16, 23, 32, .2);
	color: var(--gd-muted);
	font: 600 22px/30px var(--gd-font);
	transition: background-color .2s, color .2s;
}
.ins-option:hover span,
.ins-option input:checked + span { background: rgba(53, 63, 232, .1); }
.ins-option input:checked + span { color: var(--gd-ink); box-shadow: inset 0 0 0 1px rgba(53, 63, 232, .45); }
.ins-option input:focus-visible + span { outline: 2px solid var(--gd-blue-2); outline-offset: 2px; }
.ins-option.is-extra { display: none; }
.ins-panel.is-expanded .ins-option.is-extra { display: block; }
.ins-more { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--gd-blue); font: 600 18px/28px var(--gd-font); cursor: pointer; }
.ins-more:hover { text-decoration: underline; }

/* Actions */
.ins-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.ins-filters.is-enhanced .ins-apply { display: none; } /* Instant filtering with JS. */
.ins-reset {
	display: inline-block;
	padding: 16px 32px;
	border: 1px solid var(--gd-blue);
	background: var(--gd-blue);
	color: #fff;
	font: 600 22px/30px var(--gd-font);
	text-decoration: none;
	transition: background-color .3s, border-color .3s;
}
.ins-reset:hover { border-color: var(--gd-orange); background: var(--gd-orange); color: #fff; }
.ins-reset[hidden] { display: none; }

/* Grid */
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; transition: opacity .2s; }
.ins-grid[aria-busy="true"] { opacity: .5; }
.ins-grid .insight-card__link { border-radius: 0; } /* Square cards, as on the original page. */
.ins-grid .insight-card__title { padding: 20px 45px 30px 27px; } /* Title text 345px wide in a 417px card, as live. */
.ins-grid .insight-card__title { text-transform: capitalize; } /* As live. */
.ins-grid .insight-card__hover-title { text-transform: none; } /* Titles as written. */
.ins-empty { margin: 30px 0 0; color: var(--gd-muted); font: 500 18px/28px var(--gd-font); }
.ins-empty[hidden] { display: none; }

/* Load more */
.ins-loadmore { margin-top: 40px; text-align: center; }
.ins-loadmore[hidden] { display: none; }
.ins-loadmore__btn {
	display: inline-block;
	padding: 12px 25px;
	border: 1px solid var(--gd-ink);
	color: var(--gd-ink);
	font: 600 16px/24px var(--gd-font);
	text-decoration: none;
	transition: background-color .3s, border-color .3s, color .3s;
}
.ins-loadmore__btn:hover { border-color: var(--gd-blue); background: var(--gd-blue); color: #fff; }
.ins-tabs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ins-tabs--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) {
	.ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ins-tab { padding: 14px 20px; font-size: 20px; }
}
@media (max-width: 767px) {
	.ins { padding-block: 40px 30px; }
	.ins-tabs, .ins-tabs--2 { grid-template-columns: 1fr; }
	.ins-tab { border-left-width: 1px; border-top-width: 0; font-size: 18px; line-height: 26px; }
	.ins-tab:first-child { border-top-width: 1px; }
	.ins-tab.is-active { border-bottom-color: rgba(16, 23, 32, .2); }
	.ins-options { gap: 0 12px; }
	.ins-option { margin-top: 10px; }
	.ins-option span { padding: 8px 16px; font-size: 18px; line-height: 26px; }
	.ins-reset { padding: 12px 24px; font-size: 18px; }
	.ins-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 767px) { .ins-grid .insight-card__link { min-height: 530px; } } /* Listing cards 530px tall on phones, as live. */

/* Sidebar subscribe button 14px regular, as live; listing filter labels 30px line. */
.cs-box.blog-subscribe-form button.gd-enquiry__submit { font-size: 14px; font-weight: 400; } /* Case-study sidebar only; blog keeps 16/500. */
.ins-tab { line-height: 30px; }
/* Desktop: dashboards keep their full height (no 80vh cap), so Power BI fits the panel width as on live. */
@media (min-width: 1200px) { .embed { max-height: none; } }

/* Popup forms as live: one field per line, roomier box, boxed 185px message
   field, spaced-out button. */
.gd-popup { padding: 38px 38px 50px; }
.gd-popup .gd-enquiry__grid { grid-template-columns: 1fr; }
.gd-popup .gd-form textarea { height: 185px; border: 1px solid #ececec; border-bottom: 2px solid rgba(16, 23, 32, .3); } /* Same bottom line as the other fields. */
.gd-popup .gd-form button.gd-enquiry__submit { height: 63px; padding-inline: 30px; font-weight: 400; letter-spacing: 3px; }
@media (max-width: 767px) { .gd-popup { padding: 30px 20px 30px; } .gd-popup .gd-form textarea { height: 140px; } }