/*
 * ASALCOM polish layer (Schuah Solutions, 2026-11-25).
 * Loaded after the mirrored Astra/Spectra CSS. Changes colour, hover and focus only;
 * layout, fonts and spacing stay as built.
 *
 * Colours, all from the existing site:
 *   #FFEC59  brand yellow (Astra global accent; button fills)
 *   #171500  heading ink (computed h2/h3 colour) - text on yellow: 13.9:1
 *   #8d001d  logo maroon (sampled from the logo PNG) - text on white: 11.6:1
 * Before this file, button labels were white on yellow and yellow on white: 1.21:1.
 */

:root {
	--asal-yellow: #FFEC59;
	--asal-yellow-deep: #F5DB1E;
	--asal-ink: #171500;
	--asal-maroon: #8d001d;
}

/* Filled yellow buttons: header CTA, hero, "Read More", Get in Touch */
.ast-custom-button-link .ast-custom-button,
.ast-custom-button-link,
a.uagb-buttons-repeater.wp-block-button__link,
a.uagb-infobox-cta-link.wp-block-button__link {
	color: var(--asal-ink) !important;
	transition: background-color .18s ease-out, color .18s ease-out;
}
.ast-custom-button-link:hover .ast-custom-button,
.ast-custom-button-link:hover,
a.uagb-buttons-repeater.wp-block-button__link:hover,
a.uagb-infobox-cta-link.wp-block-button__link:hover {
	background-color: var(--asal-ink) !important;
	color: var(--asal-yellow) !important;
}

/* White "Locate Us" buttons: dark label, yellow fill on hover */
a.uagb-buttons-repeater.ast-outline-button,
a.uagb-infobox-cta-link.ast-outline-button {
	color: var(--asal-ink) !important;
	transition: background-color .18s ease-out, color .18s ease-out;
}
a.uagb-buttons-repeater.ast-outline-button:hover,
a.uagb-infobox-cta-link.ast-outline-button:hover {
	background-color: var(--asal-yellow) !important;
	color: var(--asal-ink) !important;
}

/* Mobile menu: current page was yellow on white */
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .ast-menu-toggle,
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link:hover {
	color: var(--asal-maroon) !important;
}

/* Footer credit (SOP: accent colour, semi-bold) */
.ast-footer-copyright a {
	color: var(--asal-maroon) !important;
	font-weight: 600;
	text-underline-offset: 3px;
}
.ast-footer-copyright a:hover { text-decoration: underline; }

/* Links from the Products page to the brand pages (seo_build.py) */
.asal-more { margin: 14px 0 0; padding: 0 var(--wp--preset--spacing--50); }
.asal-more a {
	font-family: "PT Sans", sans-serif;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--asal-ink);
	text-decoration: none;
	border-bottom: 2px solid var(--asal-yellow);
	padding-bottom: 2px;
}
.asal-more a:hover { border-bottom-color: var(--asal-ink); }

/* Products dropdown (seo_build.py): readable on the white sub-menu panel */
.main-header-menu .sub-menu { background: #fff; border: 1px solid #e4e0c4 !important; }
.main-header-menu .sub-menu .menu-link,
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-item > .menu-link { color: var(--asal-ink) !important; }
.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .current-menu-item > .menu-link { color: var(--asal-maroon) !important; }
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .ast-menu-toggle { color: var(--asal-maroon) !important; }

/* Skip link becomes visible on focus: make it readable */
.skip-link.screen-reader-text:focus {
	color: var(--asal-ink) !important;
	background: var(--asal-yellow) !important;
}

/* Keyboard focus: one consistent ring, visible on white and on the photo bands */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid var(--asal-ink) !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 5px var(--asal-yellow);
}

/* Browser surfaces */
::selection { background: var(--asal-yellow); color: var(--asal-ink); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
