/* Devio Care: shared system details loaded last: line icons, home service cards,
   light page banners with breadcrumb, footer. */

/*--------------------------------------------------------------
# Line icons (inline Lucide SVG, see inc/icons.php)
--------------------------------------------------------------*/
.dc-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}
.dc-hero__badge .dc-icon {
	width: 40px;
	height: 40px;
	stroke-width: 1.5;
}
.dc-offer__icon .dc-icon {
	width: 28px;
	height: 28px;
}
.dc-features__icon .dc-icon {
	width: 24px;
	height: 24px;
}
.main-navigation button.dropdown-toggle .dc-icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	transition: transform 0.2s var(--ease-out);
}
.main-navigation li.dc-sub-open > button.dropdown-toggle .dc-icon {
	transform: rotate(180deg);
}

/* Desktop menu: a thin chevron instead of the Font Awesome caret. */
.main-navigation .menu-item-has-children > a:after {
	content: "" !important;
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: var(--dc-space-xs);
	padding: 0 !important;
	vertical-align: -2px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s var(--ease-out);
}
@media screen and (min-width: 1024px) {
	.main-navigation .menu-item-has-children:hover > a:after,
	.main-navigation .menu-item-has-children.focus > a:after {
		transform: rotate(180deg);
	}
}
@media screen and (max-width: 1023px) {
	.main-navigation .menu-item-has-children > a:after {
		display: none;
	}
}

/* Back to top: chevron drawn with a mask (the theme printed a Font Awesome caret). */
.backtotop i {
	display: none;
}
.backtotop::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin: 13px auto;
	background-color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/*--------------------------------------------------------------
# Typography weights: 700 is the heaviest (800 looked "bubbly" in Nunito)
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6,
.section-title,
.entry-title,
.page-title {
	font-weight: 700;
}
.main-navigation ul.nav-menu > li > a {
	font-weight: 600;
}

/*--------------------------------------------------------------
# Home: services as photo cards (.dc-cards, see pages.css), left-aligned title
--------------------------------------------------------------*/
#services .dc-services-header {
	margin-bottom: var(--dc-space-l);
	text-align: left;
}
#services .dc-services-cards {
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
#services .dc-services-cards li::before {
	content: none;
}
#services .dc-services-cards h3 {
	color: var(--dc-ink);
}

/*--------------------------------------------------------------
# Inner page banner: light, compact, aligned with the content, breadcrumb on top
--------------------------------------------------------------*/
#page-site-header {
	position: relative;
	padding: var(--dc-space-xxl) 0;
	background-image: none !important;
	background-color: var(--dc-blue-light);
	text-align: left;
}
#page-site-header .overlay {
	display: none;
}
#page-site-header .page-header {
	position: static;
	transform: none;
	text-align: left;
}
#page-site-header .page-title {
	display: block;
	max-width: 820px;
	margin: 0;
	padding: 0;
	color: var(--dc-ink);
	font-size: clamp(2.1rem, 4vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-shadow: none;
	text-wrap: balance;
}
/* One line: on narrow screens the current page shortens with an ellipsis instead of
   wrapping with a lone "/" at the start of the next line. */
.dc-breadcrumb ol {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--dc-space-xs);
	margin: 0 0 var(--dc-space-s);
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
}
.dc-breadcrumb li {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	color: var(--dc-gray);
}
.dc-breadcrumb li:last-child {
	display: block;
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dc-breadcrumb li::before {
	content: none !important;
}
.dc-breadcrumb li + li::before {
	content: "/" !important;
	margin-right: var(--dc-space-xs);
	color: #9fb3c8;
	font-family: inherit;
}
.dc-breadcrumb a {
	color: var(--dc-blue);
}
@media (hover: hover) and (pointer: fine) {
	.dc-breadcrumb a:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}
/* The banner now carries the wayfinding: the in-page back link is redundant. */
.dc-page .dc-back {
	display: none;
}

/* Integrated hero (functions.php, opt-in with .dc-intro--hero): no banner; the
   breadcrumb sits S above the page's own H1, on white, under the header. */
.dc-has-integrated-hero .page-section.dc-page-top {
	padding-top: var(--dc-space-l);
}
.dc-page-top > .dc-breadcrumb {
	padding: 0 15px; /* the same left edge as #primary */
}
@media screen and (max-width: 600px) {
	.dc-page-top > .dc-breadcrumb {
		padding: 0 var(--dc-space-m);
	}
}
.dc-page-top > .dc-breadcrumb ol {
	margin-bottom: var(--dc-space-s);
}
.dc-page .dc-intro--hero h1 {
	margin: 0 0 var(--dc-space-s);
}
/* Text-only intros take the old banner title's size; intros beside a photo or a
   form keep their own, tuned to fit two lines. */
.dc-page .dc-intro--center.dc-intro--hero h1 {
	font-size: clamp(2.1rem, 4vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
@media screen and (max-width: 767px) {
	.dc-has-integrated-hero .page-section.dc-page-top {
		padding-top: var(--dc-space-m);
	}
}
@media screen and (max-width: 767px) {
	#page-site-header {
		padding: var(--dc-space-xl) 0;
	}
}

/*--------------------------------------------------------------
# Footer: dark brand blue, white clouds hanging from the page above
--------------------------------------------------------------*/
.dc-site-footer {
	position: relative;
	padding: calc(var(--dc-cloud-footer) + var(--dc-space-l)) 0 var(--dc-space-xxl);
	background-color: var(--dc-blue-dark);
}
.dc-site-footer__clouds {
	position: absolute;
	top: -1px;
	left: -15%;
	width: 130%;
	max-width: none;
	pointer-events: none;
}
.dc-site-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: var(--dc-space-xl);
}
.dc-site-footer__grid::before,
.dc-site-footer__grid::after {
	display: none;
}
.dc-site-footer__logo img {
	display: block;
	width: auto;
	height: 60px;
	margin-bottom: var(--dc-space-m);
}
#colophon .dc-site-footer__brand p {
	max-width: 300px;
	margin: 0 0 var(--dc-space-l);
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.6;
}
#colophon .dc-site-footer .btn.dc-btn-white {
	background: #fff;
	border-color: #fff;
	color: var(--dc-blue);
	min-height: 48px;
	padding: 0 var(--dc-space-l);
	font-size: 16px;
}
@media (hover: hover) and (pointer: fine) {
	#colophon .dc-site-footer .btn.dc-btn-white:hover {
		background: var(--dc-blue-light);
		border-color: var(--dc-blue-light);
		color: var(--dc-blue-dark);
	}
}
.dc-site-footer__col h2 {
	margin: 0 0 var(--dc-space-m);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.dc-site-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#colophon .dc-site-footer__col li {
	margin: 0 0 var(--dc-space-s);
	padding: 0;
	color: rgba(255, 255, 255, 0.78);
}
#colophon .dc-site-footer__col li::before {
	content: none;
}
#colophon .dc-site-footer__col a,
#colophon .dc-site-footer__col span {
	display: inline-flex;
	align-items: center;
	gap: var(--dc-space-xs);
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	transition: color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
	#colophon .dc-site-footer__col a:hover {
		color: #fff;
	}
}
.dc-site-footer__contact .dc-icon {
	width: 18px;
	height: 18px;
	color: #8fb8e6;
}
.dc-site-footer__social {
	display: flex;
	gap: var(--dc-space-s);
	margin-top: var(--dc-space-m);
}
#colophon .dc-site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background-color 0.15s ease, transform 0.16s var(--ease-out);
}
#colophon .dc-site-footer__social a:active {
	transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
	#colophon .dc-site-footer__social a:hover {
		background: rgba(255, 255, 255, 0.2);
	}
}
.dc-site-footer__social .dc-icon {
	width: 20px;
	height: 20px;
}
.site-info.dc-site-info {
	margin: 0;
	padding: var(--dc-space-l) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--dc-blue-dark);
}
#colophon .dc-site-info .copy-right {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	text-align: left;
}
@media screen and (max-width: 991px) {
	.dc-site-footer {
	}
	.dc-site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--dc-space-xl) var(--dc-space-l);
	}
	.dc-site-footer__brand {
		grid-column: 1 / -1;
	}
}
@media screen and (max-width: 560px) {
	.dc-site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/*--------------------------------------------------------------
# Sticky header: translucent white material once the page scrolls
--------------------------------------------------------------*/
#masthead.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
.dc-scrolled #masthead.site-header {
	background-color: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
	box-shadow: 0 1px 0 rgba(10, 61, 112, 0.08);
}
/* Home: transparent over the hero, white bar with the colour logo once scrolled.
   Both logos share one grid cell and cross-fade at the pace of the bar's background;
   the white one keeps the link's accessible name, so it is never display:none. */
.home .site-logo .custom-logo-link {
	display: grid;
	justify-items: start;
}
.home .site-logo img.dc-logo {
	grid-area: 1 / 1;
	transition: opacity 0.2s ease;
}
.dc-logo--color,
.dc-scrolled .home .dc-logo--white {
	opacity: 0;
}
.dc-scrolled .home .dc-logo--color {
	opacity: 1;
}
.dc-scrolled .home .menu-toggle span {
	background-color: var(--dc-ink);
}
@media screen and (min-width: 1024px) {
	.dc-scrolled .home #masthead.site-header {
		transform: translateY(calc(-1 * var(--dc-space-l))); /* hides the header's top padding above the screen */
	}
	.dc-scrolled .home .main-navigation ul.nav-menu > li > a,
	.dc-scrolled .home .main-navigation ul.nav-menu > li.current-menu-item > a,
	.dc-scrolled .home .main-navigation ul.nav-menu > li > a:after {
		color: var(--dc-ink);
	}
	.dc-scrolled .home .main-navigation ul.nav-menu > li:last-child > a {
		background: var(--dc-blue);
		color: #fff !important;
	}
}
@media (prefers-reduced-transparency: reduce) {
	.dc-scrolled #masthead.site-header {
		background-color: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* Text link with a trailing arrow icon: the text keeps the underline, the
   arrow nudges forward on hover (pointer devices only). */
.dc-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--dc-space-xs);
	text-decoration: none !important;
}
.dc-link-arrow > span {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.dc-link-arrow .dc-icon {
	width: 18px;
	height: 18px;
	stroke-width: 2;
	transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.dc-link-arrow:hover .dc-icon {
		transform: translateX(4px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.dc-link-arrow .dc-icon {
		transition: none;
	}
}
/* WhatsApp variant: the logo (Phosphor duotone, in the link's blue) before a
   short label, no underline; only the arrow moves on hover. */
.dc-link-whatsapp > span {
	text-decoration: none;
}
.dc-link-whatsapp .dc-ph {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

/* Decorative clouds bleed past the edges on phones: clip them instead of
   letting the page pan sideways (clip, not hidden, keeps the sticky header). */
#featured-slider,
.dc-site-footer {
	overflow-x: clip;
}

/*--------------------------------------------------------------
# Spacing: the parent theme's sections on the same scale
--------------------------------------------------------------*/
/* Cloud bands are full-width images that scale with the viewport. Their depth (down
   to where 90% of the white is gone) belongs to the gap, so the padding next to a
   cloud is "depth + one step" and the visible space stays on the scale. */
:root {
	--dc-cloud-services: 8.23vw;  /* cloud-down.png, white hanging into the about band */
	--dc-cloud-about: 7.45vw;     /* about-cloud-up.png, about colour hanging into the quote band */
	--dc-cloud-rise: 7.29vw;      /* cloud-up.png, white rising at the bottom of the quote band */
	--dc-cloud-footer: 10.7vw;    /* cloud-down.png at 130% width, over the footer */
}

/* Inner pages: one section gap under the banner, the cloud gap before the footer. */
.page-section {
	padding: var(--dc-gap-section) 0 var(--dc-gap-cloud);
}

/* Home. The hero's 180px cloud bank is solid white for its last 96px: the services
   title sits one XXXL under that floor instead of 176px below it. */
#services {
	padding: 0 0 var(--dc-gap-cloud);
}
#services .dc-services-header {
	position: relative;
	z-index: 4; /* above the hero clouds it now overlaps */
}
@media screen and (min-width: 768px) {
	#services {
		margin-top: calc(var(--dc-space-xxxl) - 96px);
	}
}
#services + #about,
#about {
	padding: calc(var(--dc-cloud-services) + var(--dc-space-l)) 0 var(--dc-space-xl);
}
#about .entry-header {
	margin-bottom: var(--dc-space-s);
}
#about .featured-image {
	margin-bottom: var(--dc-space-l);
}
#about .more-link {
	margin-top: var(--dc-space-l);
}
@media screen and (min-width: 767px) {
	#about .featured-image {
		margin-bottom: 0;
	}
	/* Text beside the photo: the vertical padding also sets the photo's height. */
	#about .entry-container {
		padding: var(--dc-space-xxxl) 0 var(--dc-space-xxxl) var(--dc-space-xxl);
	}
}
#cta {
	padding: calc(var(--dc-cloud-about) + var(--dc-space-l)) 0 calc(var(--dc-cloud-rise) + var(--dc-space-l));
}
#cta .section-header {
	margin-bottom: var(--dc-space-l);
}
#cta .section-title {
	margin-bottom: var(--dc-space-s);
}
