/**
 * A-Key Layout Polish 1.0.0 (batch 1 of the Nov 2026 layout review)
 * Brand: black #111111, gold #C9A13B, gold text on white #8C6A1E.
 * Loaded after Astra, Spectra, Call Now Button and all akey-* styles.
 * Breakpoints: desktop >= 922px (Astra desktop header), tablet 768-921px, phone <= 767px.
 */

/* =========================================================================
 * 5a. Astra accent (was coral #ee6c4e). Drives active/hover menu items,
 *     submenu border, footer widget headings, mobile toggle, outline buttons.
 *     Gold-dark keeps text-on-white contrast (#8C6A1E on #fff = 5.2:1).
 * ========================================================================= */
:root {
	--ast-global-color-0: #8C6A1E !important;
	--akey-black: #111111;
	--akey-gold: #C9A13B;
	--akey-gold-text: #8C6A1E;
	--akey-sticky-h: 58px;
}

::selection {
	background-color: #C9A13B;
	color: #111111;
}

/* =========================================================================
 * 1. Heading hierarchy (title > section > sub-section), site-wide content.
 *    Footer widget titles are outside .site-content and untouched.
 * ========================================================================= */
.site-content h1,
.site-content .entry-title,
.site-content h1[style] {
	font-size: 54px !important;
	line-height: 1.08 !important;
	letter-spacing: 0.01em;
}

.site-content .entry-content h2:not(.widget-title) {
	font-size: 40px !important;
	line-height: 1.12 !important;
	margin-top: 1.4em;
	margin-bottom: 0.5em;
}

.site-content .entry-content h3 {
	font-size: 26px !important;
	line-height: 1.2 !important;
}

/* Box headings coded as h2 at 24px (homepage Commercial Security box) sit at h3 scale. */
.site-content .entry-content h2[style*="font-size:24px"] {
	font-size: 26px !important;
	margin-top: 0;
}

/* First heading inside a block should not push the block open. */
.site-content .entry-content :is(div, section) > h2:first-child,
.site-content .entry-content :is(div, section) > h3:first-child {
	margin-top: 0;
}

/* Pages that show the Astra page title (Photos page): give it room under the header. */
.site-content .entry-header:not(.ast-no-title) {
	margin-top: 48px;
	margin-bottom: 20px;
}

.site-content .entry-header .entry-title {
	color: #111111;
}

@media (max-width: 921px) {
	.site-content h1,
	.site-content .entry-title,
	.site-content h1[style],
	html body .site-content .entry-content div[style*="background-color:#111"] h1 {
		font-size: 44px !important;
	}
	.site-content .entry-content h2:not(.widget-title) {
		font-size: 34px !important;
	}
	.site-content .entry-content h3 {
		font-size: 24px !important;
	}
}

@media (max-width: 767px) {
	.site-content h1,
	.site-content .entry-title,
	.site-content h1[style],
	html body .site-content .entry-content div[style*="background-color:#111"] h1 {
		font-size: 36px !important;
		line-height: 1.1 !important;
	}
	.site-content .entry-content h2:not(.widget-title) {
		font-size: 28px !important;
		line-height: 1.15 !important;
	}
	.site-content .entry-content h3,
	.site-content .entry-content h2[style*="font-size:24px"] {
		font-size: 22px !important;
	}
	.site-content .entry-header:not(.ast-no-title) {
		margin-top: 28px;
		margin-bottom: 12px;
	}
}

/* =========================================================================
 * 2. Header: compact logo and bar, one-row desktop menu, black/gold dropdowns.
 * ========================================================================= */
#masthead .site-logo-img .custom-logo-link img,
#masthead .site-logo-img img.custom-logo {
	height: 80px !important;
	width: auto !important;
	max-height: 80px !important;
	max-width: none !important;
}

#masthead #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap,
#masthead #ast-desktop-header .ast-primary-header-bar {
	min-height: 96px !important;
}

#masthead #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap {
	padding-top: 8px;
	padding-bottom: 8px;
}

#masthead .site-branding {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Desktop menu: single row once the menu is regrouped (<= 7 top-level items).
   With the old 9-item menu it may still wrap, but never overflows sideways. */
.ast-desktop .ast-builder-menu-1 .main-header-menu {
	flex-wrap: wrap;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu:not(:has(> li:nth-child(8))) {
	flex-wrap: nowrap;
}

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	color: #111111;
	font-weight: 600;
	white-space: nowrap;
}

.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item:focus-within > .menu-link {
	color: #8C6A1E !important;
}

.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-parent > .menu-link {
	color: #111111 !important;
	box-shadow: inset 0 -3px 0 #C9A13B;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link .dropdown-menu-toggle,
.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link .ast-icon {
	color: inherit;
}

/* Desktop dropdowns (Services, Service Areas). */
.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu {
	background-color: #111111 !important;
	border: 0 !important;
	border-top: 3px solid #C9A13B !important;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	padding: 6px 0;
	min-width: 230px;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item {
	border: 0 !important;
	line-height: 1.3;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu .menu-link {
	color: #ffffff !important;
	background: transparent !important;
	padding: 11px 20px !important;
	font-size: 15px;
	font-weight: 500;
	border: 0 !important;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu .menu-link .ast-icon.icon-arrow {
	display: none;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu .menu-item:hover > .menu-link,
.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu .menu-link:focus,
.ast-desktop .ast-builder-menu-1 .main-header-menu .sub-menu .current-menu-item > .menu-link {
	color: #C9A13B !important;
	background-color: rgba(201, 161, 59, 0.1) !important;
}

/* Tablet/phone header (Astra switches to the mobile header under 922px). */
@media (max-width: 921px) {
	#masthead .site-logo-img .custom-logo-link img,
	#masthead .site-logo-img img.custom-logo {
		height: 60px !important;
		max-height: 60px !important;
	}
	#masthead .ast-mobile-header-wrap .ast-primary-header-bar,
	#masthead .ast-mobile-header-wrap .ast-primary-header-bar .site-primary-header-wrap {
		min-height: 72px !important;
	}
	#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}
}

/* Mobile menu toggle (was coral). */
.ast-header-break-point [data-section="section-header-mobile-trigger"] .ast-button-wrap .menu-toggle,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
	color: #111111 !important;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	fill: #111111 !important;
}

/* Mobile menu list. */
.ast-header-break-point #ast-hf-mobile-menu .menu-item > .menu-link {
	color: #111111 !important;
	font-weight: 600;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}

.ast-header-break-point #ast-hf-mobile-menu .menu-item.current-menu-item > .menu-link,
.ast-header-break-point #ast-hf-mobile-menu .menu-item > .menu-link:hover,
.ast-header-break-point #ast-hf-mobile-menu .menu-item > .menu-link:focus {
	color: #8C6A1E !important;
}

.ast-header-break-point #ast-hf-mobile-menu .sub-menu {
	background-color: #faf7ef !important;
	border-left: 3px solid #C9A13B !important;
	border-top: 0 !important;
}

.ast-header-break-point #ast-hf-mobile-menu .sub-menu .menu-link {
	font-weight: 500;
	padding-left: 28px !important;
}

.ast-header-break-point #ast-hf-mobile-menu .ast-menu-toggle {
	color: #111111 !important;
	min-width: 48px;
	min-height: 48px;
}

/* =========================================================================
 * 3. "Text us" button beside every call button (markup from the_content filter).
 * ========================================================================= */
.entry-content .akey-cta-pair {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
	max-width: 100%;
	vertical-align: middle;
}

html body .entry-content .akey-cta-pair > a[href] {
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
	line-height: 1.2 !important;
	box-sizing: border-box;
}

.entry-content .akey-cta-pair > a .akey-ico--inline {
	margin: 0 !important;
	flex: 0 0 auto;
}

.entry-content a.akey-text-btn {
	background-color: #111111;
	color: #C9A13B !important;
	border: 2px solid #C9A13B;
	border-radius: 5px;
	padding: 12px 26px;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.entry-content a.akey-text-btn:hover,
.entry-content a.akey-text-btn:focus {
	background-color: #C9A13B;
	color: #111111 !important;
}

.entry-content a.akey-text-btn:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

/* On the gold call-to-action band the call button is black: make Text us outlined black. */
.entry-content div[style*="background-color:#ffcc00"] a.akey-text-btn,
.entry-content div[style*="background-color: #ffcc00"] a.akey-text-btn {
	background-color: transparent;
	color: #111111 !important;
	border-color: #111111;
	box-shadow: none;
}

.entry-content div[style*="background-color:#ffcc00"] a.akey-text-btn:hover,
.entry-content div[style*="background-color: #ffcc00"] a.akey-text-btn:hover,
.entry-content div[style*="background-color:#ffcc00"] a.akey-text-btn:focus,
.entry-content div[style*="background-color: #ffcc00"] a.akey-text-btn:focus {
	background-color: #111111;
	color: #C9A13B !important;
}

/* Photos page CTA (dark box): match its call button size. */
.akey-gal-cta .akey-cta-pair a.akey-text-btn {
	font-size: 18px;
	padding: 10px 22px;
}

/* Contact page existing Text Us button: brand secondary style. */
.entry-content a[href^="sms:"][style*="background-color:#111111"] {
	color: #C9A13B !important;
	border: 2px solid #C9A13B;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
}

@media (max-width: 767px) {
	.entry-content .akey-cta-pair {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 340px;
		margin-left: auto;
		margin-right: auto;
		gap: 10px;
	}
	html body .entry-content .akey-cta-pair > a[href] {
		display: flex !important;
		width: 100%;
		min-height: 56px;
		font-size: 18px !important;
		padding: 14px 18px !important;
	}
}

/* =========================================================================
 * 4. Mobile sticky Call | Text bar (replaces the green floating Call Now Button).
 * ========================================================================= */
#callnowbutton,
.call-now-button {
	display: none !important;
}

.akey-sticky-cta {
	display: none;
}

@media (max-width: 767px) {
	.akey-sticky-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		height: calc(var(--akey-sticky-h) + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: #111111;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
		font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	}
	.akey-sticky-cta a {
		flex: 1 1 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		font-size: 16px;
		font-weight: 700;
		text-decoration: none !important;
		letter-spacing: 0.01em;
	}
	.akey-sticky-cta__call {
		flex-basis: 60% !important;
		background: #C9A13B;
		color: #111111 !important;
	}
	.akey-sticky-cta__text {
		flex-basis: 40% !important;
		background: #111111;
		color: #C9A13B !important;
		border-left: 1px solid rgba(201, 161, 59, 0.5);
	}
	.akey-sticky-cta a:active {
		filter: brightness(0.92);
	}
	.akey-sticky-cta a:focus-visible {
		outline: 3px solid #ffffff;
		outline-offset: -4px;
	}
	.akey-sticky-cta .akey-ico {
		display: inline-flex;
		width: 20px;
		height: 20px;
	}
	.akey-sticky-cta .akey-ico svg {
		width: 20px;
		height: 20px;
	}
	body {
		padding-bottom: calc(var(--akey-sticky-h) + env(safe-area-inset-bottom, 0px));
	}
	/* Keep Astra's scroll-to-top button above the bar. */
	#ast-scroll-top {
		bottom: calc(var(--akey-sticky-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

@media print {
	.akey-sticky-cta {
		display: none !important;
	}
}

/* =========================================================================
 * 5b. Leftover blue #0056b3 (inline styles) -> brand. Low-specificity rules so the
 *     targeted akey-brand-colors card rules (gold buttons) still win.
 * ========================================================================= */
/* Blue buttons: "See more photos" (akey-photo-gallery class), "Read all reviews on Google" (inline). */
.entry-content .akey-gal-recent-more a,
.entry-content a[style*="background-color:#0056b3"] {
	background-color: #111111 !important;
	color: #ffffff !important;
	border: 2px solid #111111 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.entry-content .akey-gal-recent-more a:hover,
.entry-content .akey-gal-recent-more a:focus,
.entry-content a[style*="background-color:#0056b3"]:hover,
.entry-content a[style*="background-color:#0056b3"]:focus {
	background-color: #C9A13B !important;
	border-color: #C9A13B !important;
	color: #111111 !important;
}

/* Blue headings/links/text (Commercial Security heading, etc.). */
.entry-content [style*="color:#0056b3"]:not([style*="background-color:#0056b3"]) {
	color: #111111 !important;
}

/* Blue card borders (review cards on home + town pages). */
.entry-content [style*="solid #0056b3"] {
	border-color: #C9A13B !important;
}

/* Reviewer names: gold-dark accent (readable on white). */
.entry-content [style*="solid #0056b3"] p[style*="color:#0056b3"],
.entry-content .akey-cd-review p[style*="color:#0056b3"] {
	color: #8C6A1E !important;
}

/* Review stars stay gold (already #f0ad4e-ish); keep consistent with brand. */

/* Footer widget headings (were coral / grey): black with a gold rule. */
.site-footer .widget-title,
.site-footer .footer-widget-area h2,
.site-footer .footer-widget-area .widget-title {
	color: #111111 !important;
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 2px solid #C9A13B;
}

/* Generic links in content and footer that inherited the coral accent. */
.site-footer a:hover,
.site-footer a:focus {
	color: #8C6A1E !important;
}

/* =========================================================================
 * 6. Performance: lighter hero image on phones (768px WebP, ~69 KB vs ~117 KB).
 * ========================================================================= */
@media (max-width: 767px) {
	html body.home .entry-content > .wp-block-spectra-container.alignfull:first-of-type {
		background-image: url(hero/sunset-768.jpg);
		background-image: image-set(
			url(hero/sunset-768.webp) type("image/webp"),
			url(hero/sunset-768.jpg) type("image/jpeg")
		);
	}
	html body:not(.home) .entry-content > div:first-child[style*="background-color:#111"] {
		background-image: url(hero/night-768.jpg);
		background-image: image-set(
			url(hero/night-768.webp) type("image/webp"),
			url(hero/night-768.jpg) type("image/jpeg")
		);
	}
}

/* =========================================================================
 * 1.1.0 — Batches 2 and 3
 * ========================================================================= */

/* ---- 8 + 10. Homepage service cards: five cards (3 + 2 centered), even buttons ---- */
body.home .entry-content .akey-svc-row {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px !important;
}

body.home .entry-content .akey-svc-row > div {
	grid-column: span 2;
	min-width: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

body.home .entry-content .akey-svc-row > div:nth-child(4):nth-last-child(2) {
	grid-column: 2 / span 2;
}

body.home .entry-content .akey-svc-row > div:nth-child(5):last-child {
	grid-column: 4 / span 2;
}

body.home .entry-content .akey-svc-row > div > p {
	flex: 1 1 auto;
}

html body.home .entry-content .akey-svc-row > div > a[href]:last-child {
	margin-top: auto !important;
	white-space: nowrap;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}

@media (max-width: 767px) {
	body.home .entry-content .akey-svc-row {
		grid-template-columns: minmax(0, 1fr);
	}
	body.home .entry-content .akey-svc-row > div,
	body.home .entry-content .akey-svc-row > div:nth-child(4):nth-last-child(2),
	body.home .entry-content .akey-svc-row > div:nth-child(5):last-child {
		grid-column: auto;
	}
}

/* ---- 9. Compact Service Areas: region boxes with town buttons ---- */
body.home #service-areas.akey-areas-compact .akey-region-row {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px !important;
}

body.home #service-areas .akey-region {
	min-width: 0 !important;
	border: 2px solid #C9A13B !important;
	display: flex;
	flex-direction: column;
}

body.home #service-areas .akey-region > p {
	flex: 1 1 auto;
}

.akey-town-chips {
	list-style: none;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.akey-town-chips li {
	margin: 0 !important;
	padding: 0;
}

.entry-content .akey-town-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border-radius: 999px;
	background: #111111;
	color: #ffffff !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	white-space: nowrap;
	box-sizing: border-box;
}

.entry-content .akey-town-chips a:hover,
.entry-content .akey-town-chips a:focus {
	background: #C9A13B;
	color: #111111 !important;
}

.akey-town-chips-more {
	justify-content: center;
	margin-top: 20px !important;
}

@media (max-width: 921px) {
	body.home #service-areas.akey-areas-compact .akey-region-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.akey-town-chips {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.entry-content .akey-town-chips a {
		width: 100%;
		justify-content: center;
		white-space: nowrap;
		text-align: center;
		padding: 8px 6px;
		font-size: 14px;
		letter-spacing: -0.1px;
	}
}

/* ---- 8 + 17. Homepage El Paso photos: tidy row of four; slightly brighter night shots ---- */
.entry-content .akey-ep-grid.akey-ep-row {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 16px !important;
}

.entry-content .akey-ep-grid.akey-ep-row .akey-ep-item,
.entry-content .akey-ep-grid.akey-ep-row .akey-ep-item.is-lead {
	grid-column: auto !important;
	grid-row: auto !important;
	margin: 0;
}

.entry-content .akey-ep-grid.akey-ep-row .akey-ep-item img,
.entry-content .akey-ep-grid.akey-ep-row .akey-ep-item.is-lead img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.entry-content .akey-ep-grid.akey-ep-row .akey-ep-item.is-lead img {
	object-position: 50% 78%;
}

.entry-content .akey-ep-img {
	filter: brightness(1.14) contrast(1.04) saturate(1.05);
}

.entry-content .akey-ep-more {
	text-align: center;
	margin: 18px 0 0;
}

.entry-content .akey-ep-more a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 5px;
	background: #111111;
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.entry-content .akey-ep-more a:hover,
.entry-content .akey-ep-more a:focus {
	background: #C9A13B;
	color: #111111 !important;
}

@media (max-width: 767px) {
	.entry-content .akey-ep-grid.akey-ep-row {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}
}

/* ---- 11. Service + town pages: 760px text column, photos, mid band, FAQ ---- */
body:not(.home) .entry-content > .akey-prose > *,
body:not(.home) .entry-content > :is(p, h2, h3, h4, ul, ol) {
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.akey-page-photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px !important;
	margin-bottom: 28px !important;
}

.akey-page-photo {
	margin: 0;
}

.akey-page-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.akey-page-photo figcaption {
	font-size: 14px;
	color: #555;
	margin-top: 6px;
	line-height: 1.4;
}

@media (max-width: 767px) {
	.akey-page-photos {
		gap: 10px;
	}
	.akey-page-photo figcaption {
		font-size: 13px;
	}
}

.entry-content details.akey-faq {
	border: 1px solid #e5dcc4;
	border-left: 4px solid #C9A13B;
	border-radius: 8px;
	background: #ffffff;
	margin: 0 auto 12px !important;
	padding: 0;
}

.entry-content details.akey-faq > summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	min-height: 48px;
	box-sizing: border-box;
}

.entry-content details.akey-faq > summary::-webkit-details-marker {
	display: none;
}

.entry-content details.akey-faq > summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
	color: #8C6A1E;
}

.entry-content details.akey-faq[open] > summary::after {
	content: "\2212";
}

.entry-content details.akey-faq > summary h3 {
	margin: 0 !important;
	font-size: 22px !important;
	line-height: 1.25 !important;
}

.entry-content details.akey-faq > summary:focus-visible {
	outline: 3px solid #C9A13B;
	outline-offset: 2px;
}

.entry-content .akey-faq__a {
	padding: 0 18px 6px;
}

@media (max-width: 767px) {
	.entry-content details.akey-faq > summary h3 {
		font-size: 19px !important;
	}
}

/* ---- 12. Footer: Service Areas column, Text link, tap targets, copyright ---- */
.site-footer .site-footer-section-2 .footer-widget-area:has(.akey-footer-areas) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
	align-items: start;
}

.site-footer .akey-footer-areas ul,
.site-footer .widget_custom_html ul {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.site-footer .akey-footer-areas li,
.site-footer .widget_custom_html li {
	margin: 0 0 4px !important;
}

.site-footer .site-below-footer-inner-wrap {
	grid-template-columns: minmax(0, 1fr) !important;
}

.site-footer .site-below-footer-inner-wrap .site-footer-section-2:empty,
.site-footer .site-below-footer-inner-wrap .site-footer-section-2:not(:has(*)) {
	display: none !important;
}

.site-footer .site-below-footer-inner-wrap .site-footer-section-1 {
	grid-column: 1 / -1;
	justify-content: center;
	text-align: center;
	max-width: none !important;
	width: 100%;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	max-width: none !important;
	width: 100%;
	text-align: center;
}

@media (max-width: 767px) {
	.site-footer .site-footer-section-2 .footer-widget-area:has(.akey-footer-areas) {
		grid-template-columns: minmax(0, 1fr);
	}
	.site-footer .akey-footer-areas {
		margin-top: 24px;
	}
	.site-footer .akey-footer-areas ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 12px;
	}
	.site-footer .widget_custom_html li a,
	.site-footer .akey-footer-areas li a,
	.site-footer .textwidget a[href^="tel:"],
	.site-footer .textwidget a[href^="sms:"] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 6px;
	}
	.site-footer .widget_custom_html li,
	.site-footer .akey-footer-areas li {
		margin: 0 !important;
	}
	.site-footer .ast-footer-copyright a {
		display: inline-block;
		padding: 12px 2px;
		margin: -12px 0;
		white-space: nowrap;
	}
	.site-footer .ast-footer-copyright p {
		line-height: 1.9;
	}
}

/* ---- 13. Photos page: 4:3 tiles, 4 across / 2 on phones, tall tiles fill the grid ---- */
.entry-content .akey-gal-grid.akey-gal-tidy,
.entry-content .akey-ep-section.akey-ep-tidy .akey-ep-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	grid-auto-flow: row dense;
	gap: 16px !important;
	align-items: stretch;
}

.entry-content .akey-gal-tidy .akey-gal-item,
.entry-content .akey-ep-tidy .akey-ep-item {
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	min-width: 0;
	grid-column: auto !important;
	grid-row: auto !important;
}

.entry-content .akey-gal-tidy .akey-gal-item > a,
.entry-content .akey-ep-tidy .akey-ep-item > picture {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: #f2efe8;
}

.entry-content .akey-gal-tidy .akey-gal-item img,
.entry-content .akey-ep-tidy .akey-ep-item img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover;
	display: block;
	aspect-ratio: auto !important;
	border-radius: 0 !important;
}

.entry-content .akey-gal-tidy .akey-gal-item.akey-tall,
.entry-content .akey-ep-tidy .akey-ep-item.akey-tall {
	grid-row: span 2 !important;
}

.entry-content .akey-gal-tidy .akey-gal-item.akey-tall > a,
.entry-content .akey-ep-tidy .akey-ep-item.akey-tall > picture {
	aspect-ratio: 3 / 5; /* floor when two tall tiles share rows; grows to fill otherwise */
	flex: 1 1 auto;
}

/* Photos page: headings and intro line up with the photo grids. */
body:not(.home) .entry-content:has(.akey-gal-tidy) > :is(h2, p) {
	max-width: 760px !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

body:not(.home) .entry-content:has(.akey-gal-tidy) > h2 {
	max-width: none !important;
}

.entry-content .akey-gal-tidy figcaption,
.entry-content .akey-ep-tidy figcaption {
	font-size: 13px;
	line-height: 1.35;
	margin-top: 6px;
	color: #555;
}

/* Car lockout photo: keep the person in frame. */
.entry-content .akey-gal-tidy .akey-gal-lockout img {
	object-position: 50% 30%;
}

/* Same width for every section (Around El Paso was narrower). */
.entry-content .akey-ep-section.akey-ep-tidy {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media (max-width: 767px) {
	.entry-content .akey-gal-grid.akey-gal-tidy,
	.entry-content .akey-ep-section.akey-ep-tidy .akey-ep-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}
}

/* Photos page call box: gold band like the rest of the site. */
.entry-content .akey-gal-cta {
	background: #F8D068 !important;
	color: #111111 !important;
	border-radius: 8px;
	text-align: center;
	padding: 30px 20px !important;
}

.entry-content .akey-gal-cta p {
	margin-left: auto !important;
	margin-right: auto !important;
	color: #111111 !important;
	font-size: 20px;
	font-weight: 700;
	text-shadow: none !important;
}

html body .entry-content .akey-gal-cta .akey-gal-sub {
	color: #111111 !important;
	text-shadow: none !important;
	font-size: 15px;
	font-weight: 600;
}

html body .entry-content .akey-gal-cta a.akey-gal-call {
	background: #111111 !important;
	background-image: none !important;
	color: #ffffff !important;
	border-color: #111111 !important;
}

html body .entry-content .akey-gal-cta a.akey-gal-call:hover,
html body .entry-content .akey-gal-cta a.akey-gal-call:focus {
	color: #F8D068 !important;
}

html body .entry-content .akey-gal-cta a.akey-text-btn {
	background: transparent;
	color: #111111 !important;
	border-color: #111111;
	box-shadow: none;
}

/* ---- 14. Inline phone link inside gold call bands: plain underlined text, not a black box ---- */
html body .entry-content div[style*="#ffcc00"] p a[href^="tel:"],
html body .entry-content div[style*="#ffcc00"] p strong a[href^="tel:"] {
	background: transparent !important;
	background-image: none !important;
	color: #111111 !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	display: inline !important;
}

/* ---- 15. Readable body text on phones (Privacy/Terms too) ---- */
@media (max-width: 767px) {
	html body .entry-content :is(p, li):not([style*="font-size"]) {
		font-size: 16px !important;
		line-height: 1.6;
	}
	html body .entry-content :is(p, li):not([style*="color"]) {
		color: #333333;
	}
	html body .entry-content div[style*="background-color:#111"] :is(p, li):not([style*="color"]),
	html body .entry-content .akey-gal-cta p {
		color: inherit;
	}
}

/* ---- 16. Socorro (and any town page) reviews: 2 x 2 ---- */
.entry-content .akey-review-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px !important;
}

.entry-content .akey-review-grid > div {
	min-width: 0 !important;
	margin: 0 !important;
}

@media (max-width: 599px) {
	.entry-content .akey-review-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
