/**
 * A-Key Brand Colors
 * Gold tones sampled from the shield logo (akey-logo.png):
 *   highlight #F2D27A / #F8D068, mid #D8A840, metallic #C9A13B, shadow #8C6A1E.
 * Black #111 / #0d0d0d. Scoped to the above-header bar and call-button CTAs.
 * Does not restyle the header logo, menus, hero photo, layout, or ordinary text links.
 */

/* -------------------------------------------------------------------------
 * Top bar (Astra above-header)
 * Theme uses background var(--ast-global-color-0) = #ee6c4e. Do not change
 * that global token — it also colors unrelated theme buttons.
 * ------------------------------------------------------------------------- */
.ast-above-header-bar,
.ast-above-header.ast-above-header-bar,
.ast-header-break-point .ast-above-header-bar,
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-above-header-bar {
	background-color: #111111 !important;
	background-image: none !important;
	border-bottom-width: 1px !important;
	border-bottom-style: solid !important;
	border-bottom-color: #C9A13B !important;
}

.ast-above-header-bar,
.ast-above-header-bar h6,
.ast-above-header-bar p,
.ast-above-header-bar .ast-builder-html-element,
.ast-above-header-bar .ast-header-html,
.ast-above-header-bar a,
.ast-above-header-bar a.menu-link,
.ast-above-header-bar .ast-builder-html-element span,
.ast-above-header-bar .ast-builder-html-element span[style*="color"] {
	color: #F2D27A !important;
}

.ast-above-header-bar a:hover,
.ast-above-header-bar a:focus,
.ast-above-header-bar a.menu-link:hover,
.ast-above-header-bar a.menu-link:focus {
	color: #F8D068 !important;
}

/* CALL NOW in the top bar: gold button, black type, sitting on the black bar. */
.ast-above-header-bar .ast-custom-button,
.ast-above-header-bar .ast-custom-button-link .ast-custom-button,
.ast-header-button-1 .ast-custom-button {
	background-color: #D8A840 !important;
	background-image: linear-gradient(180deg, #F8D068 0%, #D8A840 100%) !important;
	color: #111111 !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	border-color: #C9A13B !important;
	box-shadow: 0 1px 0 rgba(255, 254, 213, 0.35) inset, 0 1px 4px rgba(0, 0, 0, 0.35);
}

.ast-above-header-bar .ast-custom-button-link:hover .ast-custom-button,
.ast-above-header-bar .ast-custom-button:hover,
.ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
.ast-header-button-1 .ast-custom-button:hover {
	background-color: #C9A13B !important;
	background-image: linear-gradient(180deg, #F2D27A 0%, #C9A13B 100%) !important;
	color: #111111 !important;
	border-color: #8C6A1E !important;
}

/* -------------------------------------------------------------------------
 * Call buttons in page content
 * Hero (inline #d9534f, also forced red by akey-hero-bg), content-depth
 * .akey-cd-hero-call, gallery .akey-gal-call, and any other tel: link
 * styled as a red/button CTA. Ordinary tel text links are left alone.
 * ------------------------------------------------------------------------- */
body.home .entry-content > .wp-block-spectra-container.alignfull:first-of-type a[href^="tel:"],
body:not(.home) .entry-content > div:first-child[style*="background-color:#111"] a[href^="tel:"],
.entry-content a[href^="tel:"][style*="background-color:#d9534f"],
.entry-content a[href^="tel:"][style*="background-color: #d9534f"],
a.akey-cd-hero-call,
.akey-gal-cta a.akey-gal-call {
	background-color: #D8A840 !important;
	background-image: linear-gradient(180deg, #F8D068 0%, #D8A840 100%) !important;
	color: #111111 !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	text-decoration: none !important;
	border: 1px solid #C9A13B;
	box-shadow: 0 1px 0 rgba(255, 254, 213, 0.35) inset, 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

body.home .entry-content > .wp-block-spectra-container.alignfull:first-of-type a[href^="tel:"]:hover,
body.home .entry-content > .wp-block-spectra-container.alignfull:first-of-type a[href^="tel:"]:focus,
body:not(.home) .entry-content > div:first-child[style*="background-color:#111"] a[href^="tel:"]:hover,
body:not(.home) .entry-content > div:first-child[style*="background-color:#111"] a[href^="tel:"]:focus,
.entry-content a[href^="tel:"][style*="background-color:#d9534f"]:hover,
.entry-content a[href^="tel:"][style*="background-color:#d9534f"]:focus,
.entry-content a[href^="tel:"][style*="background-color: #d9534f"]:hover,
.entry-content a[href^="tel:"][style*="background-color: #d9534f"]:focus,
a.akey-cd-hero-call:hover,
a.akey-cd-hero-call:focus,
.akey-gal-cta a.akey-gal-call:hover,
.akey-gal-cta a.akey-gal-call:focus {
	background-color: #C9A13B !important;
	background-image: linear-gradient(180deg, #F2D27A 0%, #C9A13B 100%) !important;
	color: #111111 !important;
	border-color: #8C6A1E;
	box-shadow: 0 1px 0 rgba(255, 254, 213, 0.25) inset, 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* -------------------------------------------------------------------------
 * Existing gold accents: shift #ffcc00 toward the sampled logo gold so
 * the "Open 24/7" lines, hero kicker, gallery sub-line, and yellow CTA
 * boxes match the new buttons. Black text on the CTA boxes stays AA.
 * Black call buttons that sit on those yellow boxes are left black
 * (gold-on-gold would fail contrast) — only the box gold is updated.
 * ------------------------------------------------------------------------- */
.akey-cd-hero-sub,
.akey-gal-cta .akey-gal-sub,
.entry-content p[style*="color:#ffcc00"],
.entry-content p[style*="color: #ffcc00"] {
	color: #F8D068 !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}

.entry-content div[style*="background-color:#ffcc00"],
.entry-content div[style*="background-color: #ffcc00"] {
	background-color: #F8D068 !important;
}

.entry-content div[style*="background-color:#ffcc00"] a[href^="tel:"],
.entry-content div[style*="background-color: #ffcc00"] a[href^="tel:"] {
	background-color: #111111 !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 1px solid #111111;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
	text-shadow: none !important;
}

.entry-content div[style*="background-color:#ffcc00"] a[href^="tel:"]:hover,
.entry-content div[style*="background-color:#ffcc00"] a[href^="tel:"]:focus,
.entry-content div[style*="background-color: #ffcc00"] a[href^="tel:"]:hover,
.entry-content div[style*="background-color: #ffcc00"] a[href^="tel:"]:focus {
	background-color: #0d0d0d !important;
	background-image: none !important;
	color: #F8D068 !important;
	border-color: #8C6A1E;
}

/* Visible keyboard focus without shifting layout. */
.ast-above-header-bar .ast-custom-button-link:focus-visible,
.entry-content a[href^="tel:"][style*="background-color"]:focus-visible,
a.akey-cd-hero-call:focus-visible,
.akey-gal-cta a.akey-gal-call:focus-visible {
	outline: 2px solid #F2D27A;
	outline-offset: 3px;
}

/* Higher specificity so the gold/black hero call buttons win over akey-hero-bg regardless of load order. */
html body.home .entry-content > .wp-block-spectra-container.alignfull:first-of-type a[href^="tel:"],
html body:not(.home) .entry-content > div:first-child[style*="background-color:#111"] a[href^="tel:"] {
	background-color: #D8A840 !important;
	background-image: linear-gradient(180deg, #F8D068 0%, #D8A840 100%) !important;
	color: #111111 !important;
	text-shadow: none !important;
}
html body.home .entry-content > .wp-block-spectra-container.alignfull:first-of-type a[href^="tel:"]:hover,
html body:not(.home) .entry-content > div:first-child[style*="background-color:#111"] a[href^="tel:"]:hover {
	background-image: linear-gradient(180deg, #F2D27A 0%, #C9A13B 100%) !important;
	color: #111111 !important;
}

/* -------------------------------------------------------------------------
 * 1.0.2 — Homepage service cards + town cards (front page only)
 * (1) The four service cards under the hero: the only flex row on the home
 *     page whose inline style has max-width:1220px (review cards excluded).
 * (2) The nine town cards in #service-areas .akey-town-page-cards
 *     (akey-town-pages plugin).
 * Inline styles set #0056b3 everywhere, so !important is required.
 * Contrast: #111 on #fff 18.88:1; #333 on #fff 12.63:1; #111 on gold
 * button #F8D068→#D8A840 12.78–8.63:1; hover #F2D27A→#C9A13B 12.84–7.77:1;
 * heading hover #8C6A1E on #fff 5.01:1. Gold is never used as text on white.
 * ------------------------------------------------------------------------- */
body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review),
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] {
	border: 2px solid #C9A13B !important;
	box-shadow: 0 2px 10px rgba(17, 17, 17, 0.08);
}

body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > h3,
body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > h3 > a,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > h3,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > h3 > a,
body.home #service-areas .akey-town-page-cards > h3 {
	color: #111111 !important;
	font-weight: 700 !important;
}

body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > h3 > a:hover,
body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > h3 > a:focus,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > h3 > a:hover,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > h3 > a:focus {
	color: #8C6A1E !important;
	text-decoration: underline !important;
}

body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > p,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > p {
	color: #333333 !important;
}

body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > a[style*="background-color:#0056b3"],
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > a[style*="background-color:#0056b3"] {
	background-color: #D8A840 !important;
	background-image: linear-gradient(180deg, #F8D068 0%, #D8A840 100%) !important;
	color: #111111 !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	text-decoration: none !important;
	border: 1px solid #C9A13B !important;
	box-shadow: 0 1px 0 rgba(255, 254, 213, 0.35) inset, 0 2px 6px rgba(0, 0, 0, 0.18) !important;
}

body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > a[style*="background-color:#0056b3"]:hover,
body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) > a[style*="background-color:#0056b3"]:focus,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > a[style*="background-color:#0056b3"]:hover,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] > a[style*="background-color:#0056b3"]:focus {
	background-color: #C9A13B !important;
	background-image: linear-gradient(180deg, #F2D27A 0%, #C9A13B 100%) !important;
	color: #111111 !important;
	border-color: #8C6A1E !important;
}

body.home .entry-content div[style*="display:flex"][style*="max-width:1220px"] > div[style*="border:2px solid #0056b3"]:not(.akey-cd-review) a:focus-visible,
body.home #service-areas .akey-town-page-cards div[style*="border:2px solid #0056b3"] a:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * 1.0.3 — Homepage icons (replace emojis). Lucide line icons, ISC License.
 * Markup comes from akey_brand_icon_filter() (front page only).
 *   .akey-ico--badge  : 44px black circle, gold #C9A13B stroke icon. Sits
 *                       on its own line above card headings (h3/h4) so the
 *                       heading text keeps its width; inline-left of the
 *                       wider section heading (h2).
 *   .akey-ico--inline : 1.1em icon in the text color (call buttons).
 * Contrast: #C9A13B on #111 = 8.0:1 (non-text graphic, needs 3:1).
 * ------------------------------------------------------------------------- */
.entry-content .akey-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none !important;
}

.entry-content .akey-ico svg {
	display: block;
	fill: none !important;
	stroke: currentColor !important;
	overflow: visible;
}

.entry-content .akey-ico--badge {
	width: 44px;
	height: 44px;
	margin: 0 12px 0 0;
	border-radius: 50%;
	background-color: #111111;
	border: 1px solid #8C6A1E;
	box-shadow: 0 0 0 2px rgba(201, 161, 59, 0.18), 0 2px 6px rgba(17, 17, 17, 0.18);
	color: #C9A13B !important;
	vertical-align: middle;
	position: relative;
	top: -2px;
}

.entry-content .akey-ico--badge svg {
	width: 24px;
	height: 24px;
	stroke-width: 1.9;
}

.entry-content h2 .akey-ico--badge {
	width: 48px;
	height: 48px;
}

.entry-content h2 .akey-ico--badge svg {
	width: 26px;
	height: 26px;
}

/* Card headings (h3/h4): badge stacked above the title. */
.entry-content h3 .akey-ico--badge,
.entry-content h4 .akey-ico--badge {
	display: flex;
	margin: 0 0 14px 0;
	top: 0;
}

/* Badge keeps its gold on heading-link hover (link text turns #8C6A1E). */
.entry-content a:hover .akey-ico--badge,
.entry-content a:focus .akey-ico--badge {
	color: #F2D27A !important;
	border-color: #C9A13B;
}

.entry-content .akey-ico--inline {
	width: 1.1em;
	height: 1.1em;
	margin-right: 0.45em;
	vertical-align: -0.17em;
	color: inherit;
}

.entry-content .akey-ico--inline svg {
	width: 100%;
	height: 100%;
	stroke-width: 2.2;
}

@media (max-width: 544px) {
	.entry-content .akey-ico--badge {
		width: 40px;
		height: 40px;
		margin-right: 10px;
	}
	.entry-content h3 .akey-ico--badge,
	.entry-content h4 .akey-ico--badge {
		margin: 0 0 12px 0;
	}
	.entry-content h2 .akey-ico--badge {
		width: 42px;
		height: 42px;
	}
	.entry-content h2 .akey-ico--badge svg {
		width: 21px;
		height: 21px;
	}
	.entry-content .akey-ico--badge svg {
		width: 22px;
		height: 22px;
	}
}

@media (forced-colors: active) {
	.entry-content .akey-ico--badge {
		border-color: CanvasText;
		color: CanvasText !important;
	}
}
