/* ===== Header modernisation ===== */
#masthead {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 99;
}

#masthead .ast-primary-header-bar {
    padding-top: 14px;
    padding-bottom: 14px;
    transition: padding 0.3s ease;
}

.main-header-bar.sticky-header.item-active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.main-navigation ul.main-header-menu > li > a {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.25s ease;
}

.main-navigation ul.main-header-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--ast-global-color-0);
    transition: width 0.25s ease;
}

.main-navigation ul.main-header-menu > li > a:hover::after,
.main-navigation ul.main-header-menu > li.current-menu-item > a::after {
    width: 100%;
}

.ast-site-identity a img {
    transition: transform 0.3s ease;
}

.ast-site-identity a img:hover {
    transform: scale(1.03);
}

/* ===== Modern buttons ===== */
.ast-custom-button-link,
.wp-block-button__link,
.wp-block-spectra-button {
    border-radius: 50px !important;
    padding: 16px 34px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 18px rgba(93, 160, 50, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
    border: none !important;
}

.ast-custom-button-link:hover,
.wp-block-button__link:hover,
.wp-block-spectra-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(93, 160, 50, 0.4);
    filter: brightness(1.06);
}

.ast-custom-button-link:active,
.wp-block-button__link:active,
.wp-block-spectra-button:active {
    transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ===== Dark header overlay ===== */
#masthead,
#masthead .ast-primary-header-bar,
#masthead .site-header,
.ast-primary-header-bar,
.main-header-bar {
    background-color: #272624 !important;
}

#masthead {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

/* Make nav links light/white so they read clearly on the dark header */
.main-navigation ul.main-header-menu > li > a {
    color: #ffffff !important;
}

.main-navigation ul.main-header-menu > li.current-menu-item > a,
.main-navigation ul.main-header-menu > li > a:hover {
    color: var(--ast-global-color-0) !important;
}

/* Mobile menu toggle icon + off canvas match dark theme */
.ast-mobile-menu-buttons-minimal .menu-toggle-round-icon,
.menu-toggle {
    color: #ffffff !important;
}


/* ===== Sticky header ===== */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
}

/* ===== Above-header contact banner ===== */
.ast-above-header-wrap {
	background-color: #379237;
}
.ast-above-header-wrap .ast-above-header {
	padding-top: 10px;
	padding-bottom: 10px;
}
.topbar-contact {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
	flex-wrap: wrap;
}
.topbar-contact a {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.3s ease;
}
.topbar-contact a:hover {
	color: #EDFBE2;
}
.topbar-icon {
	font-size: 15px;
}
@media (max-width: 544px) {
	.topbar-contact {
		justify-content: center;
		gap: 16px;
	}
}

.ast-above-header-bar {
	background-color: #379237 !important;
}


/* ===== Above-header promo text (right side) ===== */
.topbar-promo {
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}
@media (max-width: 768px) {
	.topbar-promo {
		white-space: normal;
		text-align: center;
		font-size: 13px;
	}
}
