/* ==========================================================================
   Custom widgets and layout helper classes for Elementor pages.
   Colours come from Elementor Site Settings variables.
   ========================================================================== */

/* Layout helpers (add via Advanced > CSS Classes) ------------------------ */
.e29-box {
	background: var(--e-global-color-white);
	border: 1px solid var(--e-global-color-border);
	border-radius: 12px;
	transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

/* Outline button on any background: add class "e29-btn-outline" to a Button widget. */
html body .e29-btn-outline .elementor-button,
html body .elementor-button.e29-btn-outline {
	background: transparent;
	color: var(--e-global-color-primary);
	box-shadow: inset 0 0 0 2px currentColor;
}
html body .e29-btn-outline .elementor-button:is(:hover, :focus),
html body .elementor-button.e29-btn-outline:is(:hover, :focus) {
	background: var(--e-global-color-primary);
	color: var(--e-global-color-white);
	box-shadow: inset 0 0 0 2px var(--e-global-color-primary);
}
html body .e29-on-dark .e29-btn-outline .elementor-button { color: var(--e-global-color-white); }
html body .e29-on-dark .e29-btn-outline .elementor-button:is(:hover, :focus) {
	background: var(--e-global-color-white);
	color: var(--e-global-color-primary);
	box-shadow: inset 0 0 0 2px var(--e-global-color-white);
}

/* Step number badge used in "How it works". */
.e29-step-num .elementor-heading-title {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--e-global-color-white);
	box-shadow: inset 0 0 0 1px var(--e-global-color-border);
}

/* Partner logos: greyscale until hover. */
.e29-logos .swiper-slide-image { filter: grayscale(1); opacity: 0.75; transition: filter 0.25s, opacity 0.25s; }
.e29-logos .swiper-slide:hover .swiper-slide-image { filter: none; opacity: 1; }

/* Nested tabs on light background: clear active state. */
.e29-tabs .e-n-tab-title[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--e-global-color-accent); }

/* Logo carousel dots: 24 × 24 touch and click target around the small visible dot. */
.e29-logos .swiper-pagination-bullet { box-sizing: border-box; width: 1.5rem; height: 1.5rem; padding: 0.5625rem; background-clip: content-box; margin: 0 0.125rem !important; }

/* Breadcrumbs ------------------------------------------------------------ */
.e29-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; font-size: var(--e-global-typography-small-font-size, 0.875rem); }
.e29-breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.e29-breadcrumbs li + li::before { content: "/" / ""; opacity: 0.6; }
.e29-breadcrumbs a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.e29-breadcrumbs a:hover { text-decoration-thickness: 2px; }
.e29-on-dark .e29-breadcrumbs a, .e29-on-dark .e29-breadcrumbs { color: var(--e-global-color-white); }

/* Page cards (related services, services overview) ---------------------- */
.e29-page-cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.e29-page-card {
	position: relative;
	display: flex; flex-direction: column; gap: 0.625rem;
	padding: 28px;
	background: var(--e-global-color-white);
	border: 1px solid var(--e-global-color-border);
	border-radius: 12px;
	transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
/* Hover and focus: the card system (.e29-card, assets/css/cards.css). */
.e29-page-card__icon { color: var(--e-global-color-accent); font-size: 44px; line-height: 1; margin-bottom: 0.375rem; }
html body .e29-page-card__title {
	margin: 0;
	font-family: var(--e-global-typography-secondary-font-family, inherit);
	font-size: var(--e-global-typography-secondary-font-size, 1.25rem);
	font-weight: var(--e-global-typography-secondary-font-weight, 600);
	line-height: var(--e-global-typography-secondary-line-height, 1.3);
}
html body .e29-page-card__title a { color: var(--e-global-color-primary); text-decoration: none; }
.e29-page-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.e29-page-card__title a:focus-visible { outline: none; }
.e29-page-card__text { margin: 0; color: var(--e-global-color-text); }
.e29-page-card__arrow { margin-top: auto; padding-top: 0.5rem; color: var(--e-global-color-accent); }
@media (max-width: 1024px) { .e29-page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .e29-page-cards { grid-template-columns: minmax(0, 1fr); } }

/* Chips: add class "e29-chips" to an Icon List widget set to inline. */
html body .e29-chips .elementor-icon-list-items { gap: 10px; margin: 0; }
html body .e29-chips .elementor-icon-list-items .elementor-icon-list-item {
	margin: 0;
	padding: 0.5rem 1rem;
	background: var(--e-global-color-surface);
	border: 1px solid var(--e-global-color-border);
	border-radius: 999px;
}
html body .e29-chips .elementor-icon-list-item::after { display: none; }

/* Check list: add class "e29-checks" to an Icon List widget. */
.e29-checks .elementor-icon-list-icon { align-self: flex-start; padding-top: 0.2em; }

/* FAQ: add class "e29-faq" to a Nested Accordion widget. Rows separated by a rule, icon on the right. */
html body .e29-faq { --n-accordion-icon-normal-color: var(--e-global-color-accent); --n-accordion-icon-active-color: var(--e-global-color-accent); --n-accordion-icon-hover-color: var(--e-global-color-accent); }
html body .e29-faq .e-n-accordion { gap: 0; }
html body .e29-faq .e-n-accordion-item { margin: 0; border-bottom: 1px solid var(--e-global-color-border); }
html body .e29-faq .e-n-accordion-item:first-child { border-top: 1px solid var(--e-global-color-border); }
html body .e29-faq .e-n-accordion-item-title {
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
html body .e29-faq .e-n-accordion-item-title-text { margin: 0; color: var(--e-global-color-primary); }
html body .e29-faq .e-n-accordion-item-title-icon { order: 2; color: var(--e-global-color-accent); font-size: 1.25rem; }
html body .e29-faq .e-n-accordion-item-title:focus-visible { outline: 3px solid var(--e-global-color-accent); outline-offset: 2px; }

/* In-page targets (e.g. #enquiry) clear the sticky header. */
.e29-anchor { scroll-margin-top: calc(var(--e29-header-h, 76px) + var(--e29-admin-bar, 0px) + 16px); }

/* Links inside running text are underlined, not marked by colour alone (WCAG 1.4.1). */
html body .elementor-widget-text-editor a:not(.elementor-button) { text-decoration: underline; text-underline-offset: 0.15em; }
html body .elementor-widget-text-editor a:not(.elementor-button):hover { text-decoration-thickness: 2px; }

/* Contact channels and offices ------------------------------------------- */
.e29-channels__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.e29-channels__item { display: flex; gap: 0.875rem; align-items: flex-start; }
.e29-channels__icon {
	display: grid; place-items: center; flex-shrink: 0;
	width: 44px; height: 44px; border-radius: 50%;
	background: color-mix(in srgb, var(--e-global-color-accent) 10%, var(--e-global-color-white));
	color: var(--e-global-color-accent);
}
.e29-channels__body { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; padding-top: 0.125rem; }
.e29-channels__label { color: var(--e-global-color-muted); font-size: var(--e-global-typography-small-font-size, 0.875rem); }
.e29-channels__value { color: var(--e-global-color-primary); font-weight: 600; overflow-wrap: break-word; min-width: 0; }
.e29-channels__value address { font-style: normal; }
html body .e29-channels__value a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.e29-channels__social { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.e29-channels--cards .e29-channels__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.e29-channels--cards .e29-channels__item { padding: 20px; background: var(--e-global-color-white); border: 1px solid var(--e-global-color-border); border-radius: 12px; }

.e29-offices { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.e29-office {
	display: flex; flex-direction: column; gap: 1rem;
	padding: 28px;
	background: var(--e-global-color-white);
	border: 1px solid var(--e-global-color-border);
	border-radius: 12px;
}
html body .e29-office__name {
	margin: 0;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-secondary-font-family, inherit);
	font-size: var(--e-global-typography-secondary-font-size, 1.25rem);
	font-weight: var(--e-global-typography-secondary-font-weight, 600);
}
.e29-office__note { margin: 0; color: var(--e-global-color-muted); }
.e29-office .e29-channels__icon { width: 36px; height: 36px; }
.e29-office__map { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.e29-office__map-notice { margin: 0; color: var(--e-global-color-muted); font-size: var(--e-global-typography-small-font-size, 0.875rem); }
html body .e29-office__map-button { display: inline-flex; flex-direction: row; align-items: center; gap: 0.5rem; border: 0; }
.e29-office__frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 8px; }
@media (max-width: 1024px) { .e29-offices { grid-template-columns: minmax(0, 1fr); } }

/* Warning list (Verify page): add class "e29-warn" to an Icon List widget. */
.e29-warn .elementor-icon-list-icon { align-self: flex-start; padding-top: 0.2em; }

/* Team photos: add class "e29-team-photo" to an Image widget. */
.e29-team-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--e-global-color-surface); }

/* Long legal texts: add class "e29-legal" to the container. Calmer heading sizes for reading. */
html body .e29-legal h2 { margin: 2.25rem 0 0.75rem; color: var(--e-global-color-primary); font-family: var(--e-global-typography-secondary-font-family, inherit); font-size: 1.5rem; line-height: 1.3; }
html body .e29-legal h3 { margin: 1.5rem 0 0.5rem; color: var(--e-global-color-primary); font-size: 1.125rem; line-height: 1.4; }
html body .e29-legal h2:first-child { margin-top: 0; }
.e29-legal ul { padding-left: 1.25rem; }
.e29-legal li + li { margin-top: 0.375rem; }

/* Highlighted note (add class "e29-note" to a Text Editor widget), e.g. the PKK and visa notes. */
.elementor-widget-text-editor.e29-note {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--e-global-color-border);
	border-left: 4px solid var(--e-global-color-accent);
	border-radius: 0 10px 10px 0;
	background: var(--e-global-color-white);
	font-weight: 600;
}
.elementor-widget-text-editor.e29-note p:last-child { margin-bottom: 0; }

/* FAQ rows: a light tint and blue question on hover (rows, not cards: no lift). */
html body .e29-faq .e-n-accordion-item-title { transition: background-color 250ms cubic-bezier(0.2, 0.8, 0.2, 1); }
html body .e29-faq .e-n-accordion-item-title:hover { background-color: var(--e-global-color-surface); }

/* Text block left empty by a hidden line (inc/elementor.php): no box, no gap. */
.elementor-widget-text-editor:not(:has(:not(.elementor-widget-container))) { display: none; }
