/**
 * Astra Child - Header styling to match the Blessed Lite theme.
 *
 * This reproduces the Blessed Lite header look on top of Astra's
 * Header Footer Builder markup. Configure the builder rows/components
 * in the Customizer (see the setup notes shipped with this theme):
 *
 *   Primary header row  ->  Left: Site Identity (logo/title)
 *                           Right: HTML-1 (the .header-right contact strip)
 *   Below header row    ->  Left: Menu-1 (primary menu)
 *                           Right: Social Icons-1 + Button-1 ("Donate Now")
 */

:root {
	--blessed-primary: #387478;   /* teal  */
	--blessed-secondary: #243642; /* navy  */
}

/* -----------------------------------------------------------------
 * Prevent the full-width colored strips from causing overflow.
 * ----------------------------------------------------------------- */
html,
body {
	overflow-x: hidden;
}

/* -----------------------------------------------------------------
 * PRIMARY ROW - branding (left) + contact strip (right)
 * ----------------------------------------------------------------- */
.ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row {
	align-items: stretch;
}

/* Logo / site-title area: teal background extending off-screen left. */
.ast-primary-header-bar .site-branding,
.ast-primary-header-bar .ast-site-identity {
	position: relative;
	display: flex;
	align-items: center;
}

.ast-primary-header-bar .site-branding::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 0;
	height: 100%;
	width: 2000%;
	background-color: var(--blessed-primary);
	z-index: 0;
}

.ast-primary-header-bar .site-branding > * {
	position: relative;
	z-index: 1;
}

.ast-primary-header-bar .site-title a,
.ast-primary-header-bar .site-title a:focus {
	color: var(--blessed-primary);
}

.ast-primary-header-bar .site-title a:hover {
	color: var(--blessed-secondary);
}

/* Contact strip lives inside the HTML component on the right. */
.header-right {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	background-color: var(--blessed-primary);
	height: 100%;
}

.header-right::after {
	content: '';
	position: absolute;
	right: -99999px;
	width: 99999px;
	top: 0;
	bottom: 0;
	background-color: var(--blessed-primary);
	z-index: -1;
}

.header-right .top-header-col {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 35px 35px 35px 10px;
}

.header-right .top-header-col:not(:first-child) {
	padding-left: 25px;
}

.header-right .top-header-col::before {
	content: '';
	width: 70px;
	height: 100%;
	position: absolute;
	top: 0;
	left: -45px;
	bottom: 0;
	background-color: var(--blessed-primary);
	transform: skewX(20deg);
	z-index: 0;
}

.header-right .top-header-col:nth-child(2) {
	background-color: var(--blessed-secondary);
}

.header-right .top-header-col:nth-child(2)::before {
	background-color: var(--blessed-secondary);
}

.header-right .top-header-col:not(:first-child)::before {
	left: -24px;
}

.header-right .top-header-col > * {
	position: relative;
	z-index: 1;
}

/* Icon box */
.header-right .thc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffffff;
	padding: 4px 8px;
	flex: 0 0 auto;
}

.header-right .thc-icon img {
	width: 16px;
	height: 16px;
	object-fit: cover;
	vertical-align: middle;
}

.header-right .top-header-col h5 {
	margin: 0;
	color: #ffffff;
	font-size: 16px;
	line-height: 1.3;
}

.header-right .top-header-col p {
	margin: 0;
	color: #ffffff;
	font-size: 13px;
	line-height: 1.4;
}

.header-right .top-header-col a {
	color: #ffffff;
}

/* -----------------------------------------------------------------
 * BELOW ROW - white nav bar with menu (left), social + donate (right)
 * ----------------------------------------------------------------- */
.ast-below-header-bar {
	background-color: #ffffff;
}

.ast-below-header-bar .main-header-menu,
.ast-below-header-bar .main-header-menu a {
	letter-spacing: 2px;
}

/* Social icons: square -> circle on hover (Blessed Lite behaviour). */
.ast-below-header-bar .ast-header-social-1-wrap a,
.ast-below-header-bar .ast-header-social-wrap a {
	border: 2px solid var(--blessed-secondary);
	background-color: transparent;
	transition: all 0.2s ease-in-out;
}

.ast-below-header-bar .ast-header-social-1-wrap a svg,
.ast-below-header-bar .ast-header-social-wrap a svg {
	fill: var(--blessed-secondary);
}

.ast-below-header-bar .ast-header-social-1-wrap a:hover,
.ast-below-header-bar .ast-header-social-wrap a:hover {
	border-radius: 50%;
	border-color: var(--blessed-primary);
}

.ast-below-header-bar .ast-header-social-1-wrap a:hover svg,
.ast-below-header-bar .ast-header-social-wrap a:hover svg {
	fill: var(--blessed-primary);
}

/* Donate button: navy, square corners, bold. */
.ast-below-header-bar .ast-header-button-1 .ast-custom-button-link,
.ast-below-header-bar .ast-header-button-1 .menu-link,
.ast-below-header-bar .ast-header-button-1 a.ast-button {
	background-color: var(--blessed-secondary);
	color: #ffffff;
	border-radius: 0;
	font-size: 18px;
	font-weight: 600;
}

/* -----------------------------------------------------------------
 * Responsive - mirror Blessed Lite breakpoints.
 * ----------------------------------------------------------------- */
@media (max-width: 992px) {
	.ast-primary-header-bar .site-branding::before {
		content: none;
	}
	.header-right::after {
		content: none;
	}
	.header-right .top-header-col::before {
		content: none;
	}
	.header-right .top-header-col {
		width: 100%;
	}
}

@media (max-width: 544px) {
	.ast-below-header-bar .ast-header-social-1-wrap,
	.ast-below-header-bar .ast-header-social-wrap {
		display: none !important;
	}
}
