/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================================================
   Services mega menu (inc/mega-menu.php, assets/js/mega-menu.js)
   Content is managed in Appearance > Menus > Main Menu > Services.
   ========================================================================== */

.duy-mega,
.duy-caret {
	display: none;
}

/* The image card is desktop-only; keep it out of the mobile menu */
.mobile-menu li.duy-promo {
	display: none;
}

#medical,
#ai-solutions,
#digital,
#dispatch,
#operations {
	scroll-margin-top: 110px;
}

@media (min-width: 1000px) {
	#header .header-menu-1,
	#header .header-menu-1 > .menu,
	#header .header-menu-1 .duy-mega-item {
		position: static;
	}

	#header [data-row] {
		position: relative;
	}

	/* Caret next to "Services" */
	#header .duy-mega-item > a .duy-caret {
		display: inline-block;
		width: 6px;
		height: 6px;
		margin: -3px 0 0 7px;
		border-right: 1.6px solid currentColor;
		border-bottom: 1.6px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s ease, margin .2s ease;
	}

	#header .duy-mega-item:hover > a .duy-caret,
	#header .duy-mega-item.duy-open > a .duy-caret {
		transform: rotate(-135deg);
		margin-top: 3px;
	}

	/* Panel */
	#header .duy-mega {
		display: block;
		position: absolute;
		top: 100%;
		left: 50%;
		z-index: 999;
		width: min(1280px, calc(100vw - 32px));
		transform: translate(-50%, 8px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .22s;
		text-align: left;
		cursor: default;
	}

	#header .duy-mega-item:not(.duy-suppress):hover > .duy-mega,
	#header .duy-mega-item:not(.duy-suppress):focus-within > .duy-mega,
	#header .duy-mega-item.duy-open > .duy-mega {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translate(-50%, 0);
		transition-delay: 0s;
	}

	.duy-mega__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		max-height: calc(100vh - 150px);
		padding: 20px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		border: 1px solid #DDE4EE;
		border-radius: 16px;
		box-shadow: 0 24px 60px -18px rgba(6, 26, 66, .28);
		scrollbar-width: thin;
	}

	.duy-mega__inner.has-promo {
		grid-template-columns: minmax(0, 1fr) 230px;
	}

	.duy-mega__cols {
		display: grid;
		grid-template-columns: repeat(var(--duy-cols, 4), minmax(0, 1fr));
		gap: 16px;
		align-items: start;
	}

	.duy-mega__group + .duy-mega__group {
		margin-top: 14px;
	}

	/* Column heading */
	#header .duy-mega a.duy-mega__head {
		display: flex;
		align-items: center;
		gap: 8px;
		height: auto;
		min-height: 30px;
		padding: 0 10px 9px;
		margin-bottom: 4px;
		border-bottom: 1px solid #DDE4EE;
		color: #0A2A66;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .06em;
		line-height: 1.25;
		text-transform: uppercase;
	}

	.duy-mega__head svg {
		flex: none;
	}

	/* Links */
	.duy-mega__list,
	.duy-mega__list li {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	#header .duy-mega__list a {
		display: block;
		height: auto;
		padding: 6px 10px;
		border-radius: 8px;
		line-height: 1.3;
		transition: background-color .15s ease;
	}

	#header .duy-mega__list a:hover,
	#header .duy-mega__list a:focus-visible {
		background: #F1F5FB;
	}

	.duy-mega__title {
		display: block;
		color: #0B1F45;
		font-size: 14.5px;
		font-weight: 600;
		transition: color .15s ease;
	}

	#header .duy-mega__list a:hover .duy-mega__title {
		color: #0A2A66;
	}

	.duy-mega__desc {
		display: -webkit-box;
		margin-top: 2px;
		overflow: hidden;
		color: #5B6B82;
		font-size: 12.5px;
		font-weight: 400;
		line-height: 1.4;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	/* Image card (menu item with class duy-promo) */
	#header .duy-mega a.duy-mega__promo {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		gap: 8px;
		height: auto;
		min-height: 240px;
		padding: 20px;
		border-radius: 12px;
		background-color: #0A2A66;
		background-image: linear-gradient(180deg, rgba(10, 42, 102, 0) 20%, rgba(6, 26, 66, .94) 85%), var(--duy-promo-img, none);
		background-size: cover;
		background-position: center top;
		color: #fff;
		transition: transform .2s ease;
	}

	#header .duy-mega a.duy-mega__promo:hover {
		transform: translateY(-2px);
	}

	.duy-mega__promo-title {
		font-size: 22px;
		font-weight: 700;
		line-height: 1.15;
	}

	.duy-mega__promo-cta {
		font-size: 13.5px;
		font-weight: 600;
	}
}

/* Small laptops: drop the image card so the columns keep their width */
@media (min-width: 1000px) and (max-width: 1279px) {
	.duy-mega__inner.has-promo {
		grid-template-columns: minmax(0, 1fr);
	}

	#header .duy-mega a.duy-mega__promo {
		display: none;
	}

	.duy-mega__cols {
		gap: 10px;
	}
}

/* Short screens: titles only */
@media (min-width: 1000px) and (max-height: 720px) {
	.duy-mega__desc {
		display: none;
	}

	#header .duy-mega a.duy-mega__promo {
		min-height: 0;
	}
}

/* ==========================================================================
   Clickable cards
   Add the CSS class "duy-card" to an Elementor box (container or icon box) and
   give its title (Icon Box link / Heading link) a URL: the whole box becomes clickable.
   ========================================================================== */

.duy-card {
	position: relative;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.duy-card:hover {
	transform: translateY(-3px);
}

.e-con.duy-card:hover {
	box-shadow: 0 18px 40px -22px rgba(6, 26, 66, .35);
}

.duy-card .elementor-element,
.duy-card .elementor-widget-container,
.duy-card .elementor-icon-box-wrapper,
.duy-card .elementor-icon-box-content,
.duy-card .elementor-icon-box-title,
.duy-card .elementor-heading-title {
	position: static;
}

.duy-card .elementor-icon-box-title a,
.duy-card .elementor-heading-title a {
	color: inherit;
}

.duy-card .elementor-icon-box-title a::after,
.duy-card .elementor-heading-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.duy-card .elementor-icon-box-title a:focus-visible {
	outline: none;
}

.duy-card:focus-within {
	outline: 2px solid #1463F3;
	outline-offset: 3px;
}

/* Buttons, toggles and other controls inside a card stay clickable on their own */
.duy-card .elementor-button,
.duy-card .elementor-widget-toggle,
.duy-card .elementor-widget-accordion,
.duy-card .elementor-widget-image a,
.duy-card .elementor-widget-text-editor a,
.duy-card .elementor-widget-icon-list a {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.duy-card,
	.duy-card:hover {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   Specialty tooltips (inc/specialty-tooltips.php, assets/js/specialty-tooltips.js)
   Icon Lists with the CSS class "duy-spec-tips"; texts in Appearance > Specialty Tooltips.
   ========================================================================== */

.duy-spec-tips .elementor-icon-list-item.has-duy-tip {
	cursor: help;
}

.duy-spec-tips .elementor-icon-list-item.has-duy-tip:focus-visible {
	outline: 2px solid #1463F3;
	outline-offset: 2px;
	border-radius: 999px;
}

.duy-tip {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	display: block;
	width: max-content;
	max-width: min(360px, calc(100vw - 24px));
	padding: 12px 14px;
	border-radius: 12px;
	background: #0B1F45;
	box-shadow: 0 16px 36px -14px rgba(6, 26, 66, .55);
	color: #DCE6F5;
	font-family: Inter, sans-serif;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
	pointer-events: none;
}

.duy-tip.is-below {
	transform: translateY(-4px);
}

.duy-tip.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
	pointer-events: auto;
}

.duy-tip__title {
	display: block;
	margin-bottom: 3px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
}

.duy-tip__text {
	display: block;
}

.duy-tip__arrow {
	position: absolute;
	top: 100%;
	left: var(--duy-tip-arrow, 50%);
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	background: #0B1F45;
	transform: rotate(45deg);
}

.duy-tip.is-below .duy-tip__arrow {
	top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.duy-tip,
	.duy-tip.is-below {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   Sticky columns
   Elementor container with the CSS class "duy-sticky" stays in view while its row scrolls (desktop only).
   ========================================================================== */

@media (min-width: 1025px) {
	.e-con.duy-sticky {
		position: sticky;
		top: 120px;
		align-self: flex-start;
	}
}

/* ==========================================================================
   Footer
   Columns: Appearance > Widgets (Footer Widget Area 1-4).
   Link lists: Appearance > Menus > "Footer Services" and "Footer Company".
   ========================================================================== */

#footer .duy-footer-logo {
	display: inline-block;
}

#footer .duy-footer-logo img {
	display: block;
	width: 160px;
	height: auto;
	filter: brightness(0) invert(1);
}

#footer .duy-footer-brand p {
	max-width: 340px;
	margin: 18px 0 22px;
	color: #C3CEDF;
	font-size: 15px;
	line-height: 1.7;
}

#footer .widget-title {
	margin: 0 0 18px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}

#footer .widget_nav_menu ul,
#footer .duy-footer-contact ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#footer .widget_nav_menu li {
	margin: 0 0 12px;
}

#footer .widget_nav_menu a {
	display: inline-block;
	color: #C3CEDF;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s ease, transform .15s ease;
}

#footer .widget_nav_menu a:hover,
#footer .widget_nav_menu a:focus-visible {
	color: #FFFFFF;
	transform: translateX(3px);
}

#footer .duy-footer-contact li {
	margin: 0 0 16px;
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1.55;
}

#footer .duy-fc-label {
	display: block;
	margin-bottom: 2px;
	color: #4DA3FF;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

#footer .duy-footer-contact li a {
	color: #FFFFFF;
	text-decoration: none;
}

#footer .duy-footer-contact li a:hover {
	color: #4DA3FF;
}

#footer .duy-footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#footer .duy-footer-cta:hover {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: #0A2A66;
}

#footer .duy-footer-social {
	gap: 10px;
	margin: 0;
}

#footer .duy-footer-social .wp-social-link {
	background: rgba(255, 255, 255, .1);
	color: #FFFFFF;
	transition: background-color .15s ease, transform .15s ease;
}

#footer .duy-footer-social .wp-social-link:hover {
	background: #1463F3;
	transform: translateY(-2px);
}

#footer .duy-footer-social .wp-social-link a {
	padding: 9px;
}

#footer [data-row*="bottom"] {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

#footer [data-row*="bottom"] .ct-footer-copyright {
	color: #9FB2CF;
	font-size: 14px;
}

#footer [data-row*="bottom"] .ct-footer-copyright a {
	color: #FFFFFF;
}

/* Tablet: two columns, brand and contact full width rows of their own */
@media (min-width: 690px) and (max-width: 999.98px) {
	#footer [data-row*="middle"] > div {
		--grid-template-columns: repeat(2, 1fr) !important;
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Mobile: brand and contact full width, the two link lists side by side */
@media (max-width: 689.98px) {
	#footer [data-row*="middle"] > div {
		--grid-template-columns: repeat(2, 1fr) !important;
		grid-template-columns: repeat(2, 1fr) !important;
		column-gap: 20px;
	}

	#footer [data-row*="middle"] > div > [data-column="widget-area-1"],
	#footer [data-row*="middle"] > div > [data-column="widget-area-4"] {
		grid-column: 1 / -1;
	}

	#footer .duy-footer-logo img {
		width: 130px;
	}

	#footer .widget_nav_menu a {
		font-size: 14px;
	}
}

/* ==========================================================================
   Collapsible lists (assets/js/collapse-lists.js)
   Elementor Icon List with the CSS class "duy-collapse-list" shows 4 items and a Show all button.
   ========================================================================== */

.duy-collapse-list .duy-collapse__list {
	overflow: hidden;
	transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
}

.duy-collapse-list.is-ready:not(.is-open) .duy-collapse__list {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent);
}

body .duy-collapse-list .duy-collapse__toggle {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 9px 16px;
	min-height: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	border: 1px solid #DDE4EE;
	border-radius: 999px;
	background: #FFFFFF;
	color: #0A2A66;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

body .duy-collapse-list .duy-collapse__toggle:hover,
body .duy-collapse-list .duy-collapse__toggle:focus-visible {
	border-color: #1463F3;
	background: #1463F3;
	color: #FFFFFF;
}

body .duy-collapse-list .duy-collapse__toggle:focus-visible {
	outline: 2px solid #1463F3;
	outline-offset: 2px;
}

.duy-collapse__toggle svg {
	transition: transform .25s ease;
}

.duy-collapse-list.is-open .duy-collapse__toggle svg {
	transform: rotate(180deg);
}

/* Dark cards */
body .duy-collapse-list.duy-collapse-dark .duy-collapse__toggle {
	border-color: rgba(255, 255, 255, .3);
	background: transparent;
	color: #FFFFFF;
}

body .duy-collapse-list.duy-collapse-dark .duy-collapse__toggle:hover {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: #0A2A66;
}

@media (prefers-reduced-motion: reduce) {
	.duy-collapse-list .duy-collapse__list,
	.duy-collapse__toggle svg {
		transition: none;
	}
}

/* ==========================================================================
   Tile and chip lists
   Icon List class "duy-tile-list": two-column tiles with an icon badge.
   Icon List class "duy-chip-list": rounded chips (used with duy-spec-tips).
   Text Editor class "duy-card-note": small footnote with a top divider.
   ========================================================================== */

.duy-tile-list .elementor-icon-list-items {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.duy-tile-list .elementor-icon-list-items .elementor-icon-list-item {
	display: flex;
	align-items: center;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1px solid #E3E9F2;
	border-radius: 14px;
	background: #F5F7FA;
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.duy-tile-list .elementor-icon-list-items .elementor-icon-list-item:hover {
	border-color: #1463F3;
	background: #FFFFFF;
	transform: translateY(-2px);
}

.duy-tile-list .elementor-icon-list-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #E6EEFE;
}

.duy-chip-list .elementor-icon-list-items .elementor-icon-list-item {
	margin-bottom: 10px !important;
	padding: 9px 16px !important;
	border: 1px solid #DDE4EE;
	border-radius: 999px;
	background: #F5F7FA;
	transition: border-color .15s ease, background-color .15s ease;
}

.duy-chip-list .elementor-icon-list-items .elementor-icon-list-item:hover {
	border-color: #1463F3;
	background: #FFFFFF;
}

.duy-card-note {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #E3E9F2;
}

.duy-card-note p {
	margin: 0;
}

.duy-card-note a {
	color: #1463F3;
	font-weight: 600;
	white-space: nowrap;
}

.duy-card-note a:hover {
	color: #0A2A66;
}

@media (max-width: 479.98px) {
	.duy-tile-list .elementor-icon-list-items {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.duy-tile-list .elementor-icon-list-items .elementor-icon-list-item {
		padding: 8px 12px !important;
	}

	.duy-tile-list .elementor-icon-list-icon {
		width: 32px;
		height: 32px;
	}
}

/* ==========================================================================
   Privacy Policy page: readable line length and heading scale
   ========================================================================== */

.page-id-3 .hero-section .page-title {
	font-size: clamp(32px, 4vw, 44px);
}

.page-id-3 .hero-section .entry-header {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.page-id-3 .entry-content {
	--theme-block-max-width: 820px;
	--wp--style--global--content-size: 820px;
	font-size: 16px;
	line-height: 1.75;
}

.page-id-3 .entry-content h2 {
	margin-top: 2.2em;
	margin-bottom: .6em;
	padding-top: 1.2em;
	border-top: 1px solid #DDE4EE;
	font-size: clamp(22px, 2.4vw, 26px);
	line-height: 1.3;
}

.page-id-3 .entry-content h3 {
	margin-top: 1.6em;
	margin-bottom: .5em;
	font-size: 18px;
}

.page-id-3 .entry-content ul {
	padding-left: 1.2em;
}

.page-id-3 .entry-content li {
	margin-bottom: .55em;
}

.page-id-3 .entry-content a {
	color: #1463F3;
}
/* ==========================================================================
   Mega menu aside column
   Headings with the CSS class "duy-aside" sit in the right column, above the image card.
   ========================================================================== */

@media (min-width: 1000px) {
	.duy-mega__inner.has-aside {
		grid-template-columns: minmax(0, 1fr) 250px;
	}

	.duy-mega__aside {
		display: flex;
		flex-direction: column;
		gap: 14px;
		min-width: 0;
	}

	.duy-mega__aside .duy-mega__group + .duy-mega__group {
		margin-top: 0;
	}

	#header .duy-mega .duy-mega__aside a.duy-mega__promo {
		flex: 1 1 auto;
		min-height: 170px;
		padding: 18px;
		gap: 6px;
		background-position: center 25%;
	}

	.duy-mega__aside .duy-mega__promo-title {
		font-size: 19px;
	}
}

@media (min-width: 1000px) and (max-width: 1279px) {
	.duy-mega__inner.has-aside {
		grid-template-columns: minmax(0, 1fr) 210px;
	}

	#header .duy-mega .duy-mega__aside a.duy-mega__promo {
		display: flex;
		min-height: 150px;
		padding: 16px;
	}

	.duy-mega__aside .duy-mega__promo-title {
		font-size: 17px;
	}
}
