/*
Theme Name: Twenty Twenty-Five Child - Sum Of Us
Template: twentytwentyfive
Version: 1.0.0
Description: Custom child theme for modern Services and Staff CPT templates.
Text Domain: sumofus-tt5-child
*/

:root {
	--sumofus-content-max: 1140px;
	--sumofus-shell-pad: max(1rem, calc((100vw - var(--sumofus-content-max)) / 2));
}

.sumofus-global-header {
	background: #f6f6f4;
	border-bottom: 1px solid #dbdbd6;
}

.sumofus-global-header__inner {
	max-width: var(--sumofus-content-max);
	margin: 0 auto;
	padding: 1.15rem var(--sumofus-shell-pad);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
}

.sumofus-global-header__brand {
	justify-self: start;
}

.sumofus-global-header__brand .custom-logo {
	display: block;
	width: auto;
	max-height: 88px;
}

.sumofus-global-header__brand-link {
	color: #2d2f31;
	text-decoration: none;
	font-size: 1.25rem;
}

.sumofus-global-header__nav {
	min-width: 0;
}

.sumofus-global-header__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.7rem;
}

.sumofus-global-header__menu a {
	color: #2d2f31;
	text-decoration: none;
	font-size: 0.98rem;
	font-weight: 500;
}

.sumofus-global-header__menu li {
	position: relative;
	list-style: none;
}

.sumofus-global-header__menu .sub-menu {
	position: absolute;
	top: calc(100% + 0.6rem);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.6rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #dbdbd6;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 20;
}

.sumofus-global-header__menu li:hover > .sub-menu,
.sumofus-global-header__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sumofus-global-header__menu .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.92rem;
	font-weight: 400;
}

.sumofus-global-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.8rem;
}

.sumofus-global-header__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border-radius: 10px;
	background: #2d2f31;
	color: #fff;
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sumofus-site-content {
	min-height: 1px;
}

footer.wp-block-template-part {
	background: #f6f6f4;
	border-top: 1px solid #dbdbd6;
}

footer.wp-block-template-part .wp-block-group {
	padding-left: var(--sumofus-shell-pad) !important;
	padding-right: var(--sumofus-shell-pad) !important;
}

footer.wp-block-template-part .wp-block-columns {
	gap: clamp(1.2rem, 3vw, 2.6rem);
}

footer.wp-block-template-part h2,
footer.wp-block-template-part h3,
footer.wp-block-template-part h4 {
	letter-spacing: 0;
	font-size: clamp(1.1rem, 1.2vw, 1.35rem);
	margin-bottom: 0.7rem;
}

footer.wp-block-template-part p,
footer.wp-block-template-part li,
footer.wp-block-template-part a {
	color: #3f3f3a;
	font-size: 0.95rem;
	line-height: 1.6;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

footer.wp-block-template-part ul {
	margin: 0.2rem 0 0;
	padding-left: 1rem;
}

.elementor-5590 .elementor-widget-call-to-action > .elementor-widget-container {
	height: 100%;
	border-radius: 28px;
	overflow: hidden;
	background: #f5f5f2;
	border: 1px solid #e6e4de;
	box-shadow: 0 8px 18px rgba(31, 31, 26, 0.045);
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta__bg-wrapper {
	min-height: clamp(320px, 28vw, 430px);
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.7rem 1.9rem;
	text-align: center;
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta__title {
	margin: 0 0 0.95rem;
	color: #34363a;
	font-size: clamp(1.65rem, 2.1vw, 2.2rem);
	line-height: 1.08;
}

.elementor-5590 .sumofus-team-card__role {
	margin: 0 0 1rem;
	color: #414247;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.35;
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta__description {
	margin: 0;
	width: 100%;
	max-width: none;
	color: #53565b;
	font-size: 0.95rem;
	line-height: 1.58;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	min-height: calc(0.95rem * 1.58 * 4);
	max-height: calc(0.95rem * 1.58 * 4);
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta__button-wrapper {
	margin-top: auto;
	padding-top: 1.7rem;
}

.elementor-5590 .elementor-widget-call-to-action .elementor-cta__button {
	min-width: 0;
	padding: 0.95rem 1.55rem;
	border: 2px solid #34363a;
	border-radius: 12px;
	background: transparent;
	color: #34363a;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.2;
}

.elementor-5590 .elementor-widget-call-to-action .elementor-ribbon {
	display: none !important;
}

@media (max-width: 980px) {
	.sumofus-global-header__inner {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.sumofus-global-header__menu {
		justify-content: center;
		gap: 1rem 1.2rem;
	}

	.sumofus-global-header__menu .sub-menu {
		position: static;
		min-width: 0;
		margin-top: 0.45rem;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0;
	}

	.sumofus-global-header__actions {
		justify-content: center;
		flex-wrap: wrap;
	}
}
