/* ==========================================================================
   مؤسسة الشهري للألمنيوم والزجاج — brand layer on top of Blocksy
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Readex Pro";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../../fonts/readex-pro-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Readex Pro";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("../../fonts/readex-pro-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../../fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../../fonts/ibm-plex-sans-arabic-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../../fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../../fonts/ibm-plex-sans-arabic-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--navy: #0F2B46;
	--glass: #2F6FA8;
	--stone: #6B6257;
	--text: #3C4A57;
	--sand: #F5F1EA;
	--white: #FFFFFF;
	--line: #E2DACB;
	--amber: #A65E0E;
	--amber-hover: #7E4709;
	--whatsapp: #1E7F4F;
	--whatsapp-hover: #17663F;

	--on-navy: #F5F1EA;
	--on-navy-muted: #C9D3DD;
	--glass-on-navy: #7FB3E0;

	--font-heading: "Readex Pro", sans-serif;
	--font-body: "IBM Plex Sans Arabic", sans-serif;

	/* One spacing scale: 8 / 16 / 24 / 32 / 48 / 80 / 96 */
	--sp-1: 8px;
	--sp-2: 16px;
	--sp-3: 24px;
	--sp-4: 32px;
	--sp-5: 48px;
	--sp-6: 80px;
	--sp-7: 96px;

	--radius: 16px;
	--radius-sm: 8px;
	--radius-pill: 999px;
	--container: 1200px;
	--gutter: var(--sp-3);
	--gutter-end: var(--gutter); /* physical left side, reserved for the floating buttons */
	--section-y: var(--sp-7);
	--header-h: 80px;
	--measure: 40rem; /* ~70 Arabic characters at 18px */
	--ease: 150ms ease;

	/* Hand Blocksy's own variables the brand values. */
	--theme-font-family: var(--font-body);
	--theme-text-color: var(--text);
	--theme-link-initial-color: var(--glass);
	--theme-link-hover-color: var(--navy);
	--theme-headings-color: var(--navy);
	--theme-border-color: var(--line);
	--theme-button-border-radius: var(--radius-pill);
	--theme-palette-color-1: var(--glass);
	--theme-palette-color-2: var(--navy);
	--theme-palette-color-3: var(--text);
	--theme-palette-color-4: var(--stone);
	--theme-palette-color-5: var(--line);
	--theme-palette-color-6: var(--sand);
	--theme-palette-color-7: var(--white);
	--theme-palette-color-8: var(--amber);
}

@media (max-width: 1023px) {
	:root { --section-y: var(--sp-6); --header-h: 72px; }
}
@media (max-width: 767px) {
	:root { --section-y: var(--sp-5); --gutter: var(--sp-2); --header-h: 64px; }
}
/* 1024–1391px: keep a strip free on the left for the floating buttons. */
@media (min-width: 1024px) and (max-width: 1391px) {
	:root { --gutter-end: var(--sp-7); }
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + var(--sp-2)); }

body.ash-site {
	background: var(--sand);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.9;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
}
body.ash-site #main-container,
body.ash-site .site-main { background: var(--sand); }

.ash-site h1, .ash-site h2, .ash-site h3, .ash-site h4,
.ash-site .wp-block-heading {
	font-family: var(--font-heading);
	color: var(--navy);
	font-weight: 700;
	letter-spacing: 0;
	text-wrap: balance;
}
.ash-site h1 { font-size: 48px; line-height: 1.3; margin: 0 0 var(--sp-3); }
.ash-site h2 { font-size: 32px; line-height: 1.4; margin: 0 0 var(--sp-2); }
.ash-site h3 { font-size: 22px; line-height: 1.5; margin: 0 0 var(--sp-1); font-weight: 500; }
.ash-site h4 { font-size: 19px; line-height: 1.5; margin: 0 0 var(--sp-1); font-weight: 500; }
@media (max-width: 767px) {
	.ash-site h1 { font-size: 32px; }
	.ash-site h2 { font-size: 26px; }
	.ash-site h3 { font-size: 20px; }
}

.ash-site p { margin: 0 0 var(--sp-2); text-wrap: pretty; }
.ash-site p:last-child { margin-bottom: 0; }

.ash-site a {
	color: var(--glass);
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: color var(--ease);
}
.ash-site a:hover { color: var(--navy); }

.ash-site :focus-visible {
	outline: 3px solid var(--glass);
	outline-offset: 3px;
	border-radius: 6px;
}
.ash-site img { max-width: 100%; height: auto; }
.ash-ico { flex: none; display: block; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.ash-skip-link {
	position: absolute;
	inset-inline-start: var(--sp-2);
	top: -100px;
	z-index: 2000;
	background: var(--navy);
	color: #fff !important;
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--radius-pill);
	font-weight: 700;
}
.ash-skip-link:focus { top: var(--sp-2); }

.ash-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) + var(--gutter-end));
	margin-inline: auto;
	padding-right: var(--gutter);
	padding-left: var(--gutter-end);
	box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.ash-btn,
.ash-site .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	box-sizing: border-box;
	transition: background-color var(--ease), color var(--ease), border-color var(--ease);
	cursor: pointer;
}
.ash-btn--amber,
.ash-site .wp-block-button:not([class*="ash-btn-"]) .wp-block-button__link,
.ash-site .ash-btn-amber .wp-block-button__link { background: var(--amber); color: #fff !important; }
.ash-btn--amber:hover,
.ash-site .wp-block-button:not([class*="ash-btn-"]) .wp-block-button__link:hover,
.ash-site .ash-btn-amber .wp-block-button__link:hover { background: var(--amber-hover); color: #fff !important; }
.ash-btn--wa,
.ash-site .ash-btn-wa .wp-block-button__link { background: var(--whatsapp); color: #fff !important; }
.ash-btn--wa:hover,
.ash-site .ash-btn-wa .wp-block-button__link:hover { background: var(--whatsapp-hover); color: #fff !important; }
.ash-site .ash-btn-ghost .wp-block-button__link { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.ash-site .ash-btn-ghost .wp-block-button__link:hover { background: var(--navy); color: #fff !important; }

.ash-site .ash-btn-amber .wp-block-button__link::before,
.ash-site .ash-btn-wa .wp-block-button__link::before {
	content: "";
	width: 24px;
	height: 24px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--ash-btn-icon) center / contain no-repeat;
	mask: var(--ash-btn-icon) center / contain no-repeat;
}
.ash-site .ash-btn-amber { --ash-btn-icon: var(--ash-i-phone); }
.ash-site .ash-btn-wa { --ash-btn-icon: var(--ash-i-whatsapp); }
.ash-site .wp-block-buttons { gap: 12px; }

/* ---------- Header ---------- */
.ash-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--white);
	border-bottom: 1px solid transparent;
	transition: border-color var(--ease);
}
.ash-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .ash-header { top: var(--wp-admin--admin-bar--height, 32px); }

.ash-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: var(--header-h);
	transition: min-height var(--ease);
}
.ash-header.is-scrolled .ash-header__inner { min-height: calc(var(--header-h) - var(--sp-2)); }

.ash-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	flex: none;
	min-height: 44px;
}
.ash-brand .ash-mark { flex: none; transition: width var(--ease), height var(--ease); }
.ash-header.is-scrolled .ash-brand .ash-mark { width: 40px; height: 40px; }
.ash-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.ash-brand__name { font-family: var(--font-heading); font-weight: 700; font-size: 26px; color: var(--navy); }
.ash-brand__tag { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--stone); margin-top: 3px; line-height: 1.3; }
.ash-brand--dark .ash-brand__name { color: var(--on-navy); }
.ash-brand--dark .ash-brand__tag { color: #CFC6B8; }

.ash-nav { margin-inline-start: auto; }
.ash-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ash-menu a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 var(--sp-2);
	color: var(--navy) !important;
	font-weight: 500;
	font-size: 17px;
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: background-color var(--ease), color var(--ease);
}
.ash-menu a:hover { background: var(--sand); }
.ash-menu a::after {
	content: "";
	position: absolute;
	inset-inline: var(--sp-2);
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: transparent;
	transition: background-color var(--ease);
}
.ash-menu .current-menu-item > a,
.ash-menu .current_page_item > a { color: var(--glass) !important; }
.ash-menu .current-menu-item > a::after,
.ash-menu .current_page_item > a::after { background: var(--glass); }

.ash-header__call { padding: 10px 22px; min-height: 48px; }

.ash-burger,
.ash-drawer__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	margin-inline-start: auto;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	color: var(--navy);
	cursor: pointer;
}
.ash-drawer__close { display: inline-flex; margin: 0; }

@media (max-width: 1023px) {
	.ash-nav, .ash-header__call { display: none; }
	.ash-burger { display: inline-flex; }
	.ash-brand__name { font-size: 23px; }
	.ash-brand .ash-mark { width: 40px; height: 40px; }
}

/* ---------- Off-canvas drawer ---------- */
.ash-drawer { position: fixed; inset: 0; z-index: 1500; }
.ash-drawer[hidden] { display: none; }
.ash-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 43, 70, .55); }
.ash-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: min(380px, 90vw);
	background: var(--white);
	padding: var(--sp-2) var(--sp-3) var(--sp-4);
	overflow-y: auto;
	box-sizing: border-box;
	transform: translateX(100%);
	transition: transform .22s ease;
}
[dir="ltr"] .ash-drawer__panel { transform: translateX(-100%); }
.ash-drawer.is-open .ash-drawer__panel { transform: none; }
.ash-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	padding-bottom: var(--sp-2);
	border-bottom: 1px solid var(--line);
}
.ash-drawer__actions { display: grid; gap: 12px; margin: var(--sp-3) 0; }
.ash-drawer__actions .ash-btn { min-height: 56px; }
.ash-drawer__menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ash-drawer__menu a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 var(--sp-1);
	border-bottom: 1px solid var(--line);
	color: var(--navy) !important;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 20px;
	text-decoration: none;
}
.ash-drawer__menu .current-menu-item > a { color: var(--glass) !important; }
.ash-drawer__hours {
	display: flex;
	gap: var(--sp-1);
	align-items: flex-start;
	margin-top: var(--sp-3) !important;
	font-size: 16px;
	line-height: 1.8;
	color: var(--stone);
}
.ash-drawer__hours .ash-ico { color: var(--glass); margin-top: 3px; }
html.ash-drawer-open { overflow: hidden; }

/* ---------- Footer ---------- */
.ash-footer { background: var(--navy); color: var(--on-navy); font-size: 16px; line-height: 1.8; }
.ash-footer a { color: var(--on-navy-muted); text-decoration: none; }
.ash-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ash-footer :focus-visible { outline-color: var(--on-navy); }
.ash-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr .8fr 1.3fr;
	gap: var(--sp-5);
	padding-block: var(--sp-6) var(--sp-5);
}
.ash-footer__about p { color: var(--on-navy-muted); margin: var(--sp-2) 0 var(--sp-3); }
.ash-footer__about strong { color: var(--on-navy); font-weight: 500; }
.ash-site .ash-footer__title { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 var(--sp-2); }
.ash-footer__links, .ash-footer__contact { list-style: none; margin: 0; padding: 0; }
.ash-footer__links li { margin: 0; }
.ash-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.ash-footer__links--two { columns: 2; column-gap: var(--sp-3); }
.ash-footer__links--two li { break-inside: avoid; }
.ash-footer__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--sp-2); color: var(--on-navy-muted); }
.ash-footer__contact .ash-ico { color: var(--glass-on-navy); margin-top: 3px; }
.ash-footer__contact a { min-height: 32px; display: inline-flex; align-items: center; gap: .35em; }

.ash-social { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.ash-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(245, 241, 234, .3);
	color: var(--on-navy);
	transition: background-color var(--ease), border-color var(--ease);
}
.ash-social a:hover { background: rgba(245, 241, 234, .12); border-color: var(--on-navy); text-decoration: none; }

.ash-footer__bottom { border-top: 1px solid rgba(245, 241, 234, .16); padding-block: var(--sp-3); font-size: 15px; color: var(--on-navy-muted); }
.ash-footer__bottom p { margin: 0; }

@media (max-width: 1199px) {
	.ash-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); }
}
@media (max-width: 640px) {
	.ash-footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); padding-block: var(--sp-5) var(--sp-4); }
}

/* ---------- Floating contact buttons ---------- */
.ash-float {
	position: fixed;
	z-index: 800;
	display: flex;
	gap: 12px;
}
.ash-float__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-1);
	color: #fff !important;
	text-decoration: none !important;
	transition: background-color var(--ease);
}
.ash-float__btn--call { background: var(--amber); }
.ash-float__btn--call:hover { background: var(--amber-hover); }
.ash-float__btn--wa { background: var(--whatsapp); }
.ash-float__btn--wa:hover { background: var(--whatsapp-hover); }
.ash-float__btn:focus-visible { outline-color: var(--navy); }

/* Desktop: two round buttons on the physical LEFT edge, clear of the content. */
@media (min-width: 1024px) {
	.ash-float { left: var(--sp-3); bottom: var(--sp-3); flex-direction: column; }
	.ash-float__btn { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 2px 8px rgba(15, 43, 70, .18); }
	.ash-float__label {
		border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
		height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap;
	}
}
/* Below 1024px: a full-width two-button bar; the page reserves room for it. */
@media (max-width: 1023px) {
	.ash-float {
		inset-inline: 0;
		bottom: 0;
		padding: var(--sp-1) var(--sp-2) calc(var(--sp-1) + env(safe-area-inset-bottom));
		background: var(--white);
		border-top: 1px solid var(--line);
	}
	.ash-float__btn { flex: 1; height: 52px; border-radius: var(--radius-pill); font-weight: 700; font-size: 17px; }
	body.ash-site { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Breadcrumbs ---------- */
.ash-breadcrumbs { font-size: 15px; line-height: 1.6; color: var(--stone); padding-top: var(--sp-3); }
.ash-breadcrumbs p { margin: 0; }
.ash-breadcrumbs a { color: var(--stone); text-decoration: none; }
.ash-breadcrumbs a:hover { color: var(--glass); text-decoration: underline; }
.ash-breadcrumbs .separator { margin-inline: 6px; color: var(--line); }
.ash-breadcrumbs .last { color: var(--text); }

/* ---------- Article typography (service posts, simple pages) ---------- */
.ash-prose { font-size: 18px; line-height: 1.9; color: var(--text); }
.ash-prose > * { max-width: var(--measure); }
.ash-prose > img, .ash-prose > p:has(> img:only-child), .ash-prose > figure, .ash-prose > table, .ash-prose > .wp-block-table { max-width: none; }
.ash-prose h2 { margin: var(--sp-5) 0 var(--sp-2); }
.ash-prose h3 { margin: var(--sp-4) 0 var(--sp-1); }
.ash-prose h4 { margin: var(--sp-3) 0 var(--sp-1); }
.ash-prose p { margin: 0 0 var(--sp-2); }
.ash-prose ul { list-style: none; padding-inline-start: 0; margin: 0 0 var(--sp-3); }
.ash-prose ul > li { position: relative; padding-inline-start: var(--sp-3); margin-bottom: var(--sp-1); }
.ash-prose ul > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 4px;
	top: .8em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--glass);
	transform: rotate(45deg);
}
.ash-prose ol { padding-inline-start: var(--sp-3); margin: 0 0 var(--sp-3); }
.ash-prose ol > li { margin-bottom: var(--sp-1); }
.ash-prose ol > li::marker { color: var(--glass); font-weight: 700; }
.ash-prose img { border-radius: 12px; display: block; margin: var(--sp-3) auto; }
.ash-prose table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0; font-size: 16px; background: var(--white); border: 1px solid var(--line); }
.ash-prose th, .ash-prose td { border: 1px solid var(--line); padding: 12px var(--sp-2); text-align: start; vertical-align: top; }
.ash-prose th { background: var(--navy); color: #fff; font-weight: 700; }
.ash-prose tbody tr:nth-child(even) td { background: var(--sand); }
.ash-prose blockquote {
	margin: var(--sp-4) 0;
	padding: var(--sp-2) var(--sp-3);
	border-inline-start: 4px solid var(--glass);
	background: var(--white);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--navy);
	font-size: 19px;
}
[dir="rtl"] .ash-prose blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.ash-prose iframe { max-width: 100%; }

/* Rank Math FAQ block inside articles */
.ash-prose #rank-math-faq { max-width: var(--measure); margin: var(--sp-3) 0 var(--sp-5); }
.ash-prose .rank-math-list { display: grid; gap: 12px; }
.ash-prose .rank-math-list-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: var(--sp-3);
}
.ash-site .ash-prose .rank-math-question {
	margin: 0 0 var(--sp-1);
	font-size: 19px;
	line-height: 1.5;
	color: var(--navy);
}
.ash-prose .rank-math-answer { color: var(--text); font-size: 17px; line-height: 1.85; }
.ash-prose .rank-math-answer p:last-child { margin-bottom: 0; }

/* ---------- Single service page ---------- */
.ash-single { max-width: calc(860px + var(--gutter) + var(--gutter-end)); padding-bottom: var(--section-y); }
.ash-single__header { margin: var(--sp-2) 0 var(--sp-3); }
.ash-single__title { margin: 0; }
.ash-single__media { margin: 0 0 var(--sp-4); }
.ash-single__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--white);
}

.ash-cta { margin-top: var(--sp-5); padding: var(--sp-4); border-radius: var(--radius); }
.ash-cta--navy { background: var(--navy); color: var(--on-navy); }
.ash-site .ash-cta__title { margin: 0 0 var(--sp-1); font-size: 26px; color: #fff; }
.ash-cta p { margin-bottom: var(--sp-3); color: var(--on-navy-muted); }
.ash-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ash-cta :focus-visible { outline-color: var(--on-navy); }

.ash-related { margin-top: var(--sp-6); }
.ash-site .ash-related h2 { font-size: 26px; margin: 0 0 var(--sp-3); }
.ash-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-2);
}
.ash-related__item { margin: 0; display: flex; }
.ash-related__card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	width: 100%;
	padding: var(--sp-3);
	box-sizing: border-box;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text) !important;
	text-decoration: none !important;
	transition: border-color var(--ease), transform var(--ease);
}
.ash-related__title { font-family: var(--font-heading); font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--navy); }
.ash-related__excerpt { font-size: 15.5px; line-height: 1.7; color: var(--stone); }
.ash-related__more { margin-top: auto; padding-top: var(--sp-1); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15.5px; color: var(--glass); }
.ash-related__more .ash-ico { width: 20px; height: 20px; }
.ash-related__links { margin-top: var(--sp-3) !important; font-size: 16px; }
@media (max-width: 860px) {
	.ash-related__list { grid-template-columns: 1fr; }
	.ash-cta { padding: var(--sp-3); }
	.ash-cta__actions .ash-btn { width: 100%; }
}

/* ---------- Clickable cards: one link, equal heights, hover lift ---------- */
.ash-related__card:hover,
.ash-card--post:hover,
.ash-site .ash-card-link:hover {
	border-color: var(--glass);
	transform: translateY(-2px);
}
.ash-related__card:focus-visible { outline: 3px solid var(--glass); outline-offset: 3px; }

/* ---------- Simple page template ---------- */
.ash-page__header { padding-block: var(--sp-2) var(--sp-1); }
.ash-page__body { max-width: calc(860px + var(--gutter) + var(--gutter-end)); padding-bottom: var(--section-y); }

/* ---------- Category archive ---------- */
.ash-archive { padding-bottom: var(--section-y); }
.ash-archive__header { margin: var(--sp-2) 0 var(--sp-4); max-width: var(--measure); }
.ash-archive__title { margin: 0 0 var(--sp-1); }
.ash-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-3);
}
.ash-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A lone card on the last row spans the row as a horizontal card. */
@media (min-width: 1024px) {
	.ash-cards:not(.ash-cards--2) > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
	.ash-cards:not(.ash-cards--2) > li:last-child:nth-child(3n+1) .ash-card__link { flex-direction: row; }
	.ash-cards:not(.ash-cards--2) > li:last-child:nth-child(3n+1) .ash-card__media { flex: 0 0 40%; }
	.ash-cards:not(.ash-cards--2) > li:last-child:nth-child(3n+1) .ash-card__media img { height: 100%; }
	.ash-cards:not(.ash-cards--2) > li:last-child:nth-child(3n+1) .ash-card__body { justify-content: center; padding: var(--sp-4); }
}
@media (min-width: 641px) and (max-width: 1023px) {
	.ash-cards > li:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
	.ash-cards > li:last-child:nth-child(2n+1) .ash-card__link { flex-direction: row; }
	.ash-cards > li:last-child:nth-child(2n+1) .ash-card__media { flex: 0 0 40%; }
	.ash-cards > li:last-child:nth-child(2n+1) .ash-card__media img { height: 100%; }
	.ash-cards > li:last-child:nth-child(2n+1) .ash-card__body { justify-content: center; padding: var(--sp-4); }
}
@media (max-width: 1023px) { .ash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ash-cards { grid-template-columns: 1fr; } }
.ash-card {
	display: flex;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color var(--ease), transform var(--ease);
}
.ash-card__link { display: flex; flex-direction: column; width: 100%; color: inherit !important; text-decoration: none !important; }
.ash-card__link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.ash-card__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ash-card__body { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); flex: 1; }
.ash-card__title { font-family: var(--font-heading); font-weight: 500; font-size: 20px; color: var(--navy); line-height: 1.5; text-wrap: balance; }
.ash-card__excerpt { font-size: 16px; color: var(--stone); line-height: 1.75; }
.ash-archive .nav-links { display: flex; gap: var(--sp-1); justify-content: center; margin-top: var(--sp-4); }
.ash-archive .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--radius-pill);
	background: var(--white); text-decoration: none;
}
.ash-archive .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ==========================================================================
   Block-built pages (homepage, services hub, gallery, about, contact)
   ========================================================================== */
.ash-blocks {
	--wp--style--global--content-size: var(--container);
	--wp--style--global--wide-size: var(--container);
	--theme-block-max-width: var(--container);
	--theme-block-wide-max-width: var(--container);
}
.ash-blocks > * { margin-block: 0; }
.ash-blocks .wp-block-heading { margin-top: 0; }

.ash-section {
	padding: var(--section-y) var(--gutter) !important;
	padding-left: var(--gutter-end) !important;
	margin: 0 !important;
	box-sizing: border-box;
}
.ash-section.alignfull { width: 100%; max-width: none !important; }
.ash-blocks .ash-section > * { margin-top: 0; margin-bottom: 0; }
.ash-blocks .ash-section > * + * { margin-top: var(--sp-4) !important; }
.ash-bg-white { background: var(--white); }
.ash-bg-sand { background: var(--sand); }
.ash-bg-navy { background: var(--navy); color: var(--on-navy); }
.ash-site .ash-bg-navy h2, .ash-site .ash-bg-navy h3 { color: #fff; }
.ash-bg-navy a { color: var(--on-navy); }
.ash-bg-navy p { color: var(--on-navy-muted); }
.ash-bg-navy :focus-visible { outline-color: var(--on-navy); }
.ash-line-top { border-top: 1px solid var(--line); }

.ash-eyebrow { font-size: 15px !important; font-weight: 700; color: var(--glass); margin-bottom: var(--sp-1) !important; line-height: 1.6; }
.ash-bg-navy .ash-eyebrow { color: var(--glass-on-navy); }
.ash-lead { font-size: 20px; color: var(--text); }

/* Section heads span the content width; their lines stay readable. */
.ash-blocks .ash-section-head, .ash-blocks .ash-family { max-width: var(--container) !important; }
.ash-blocks .ash-section-head > *, .ash-blocks .ash-family > * { max-width: var(--measure); }
.ash-blocks .ash-bg-navy .ash-section-head > p:not(.ash-eyebrow) { color: var(--on-navy-muted); }
.ash-section-head + * { margin-top: var(--sp-5) !important; }
.ash-center { text-align: center; }
.ash-blocks .ash-center > * { margin-inline: auto !important; }
.ash-blocks .ash-center .wp-block-buttons { justify-content: center; }
.ash-subhead { margin-top: var(--sp-5) !important; }
.ash-after-grid { margin-top: var(--sp-4) !important; }
.ash-blocks .ash-textwrap { max-width: var(--container) !important; }
.ash-blocks .ash-textwrap > * { max-width: var(--measure); }

/* Grids */
.ash-grid { display: grid !important; gap: var(--sp-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ash-grid > * { margin: 0 !important; max-width: none !important; }
.ash-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ash-grid-3, .ash-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ash-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
	.ash-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.ash-grid-3, .ash-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ash-grid, .ash-grid-2, .ash-grid-3, .ash-grid-4, .ash-grid-cards { grid-template-columns: 1fr; gap: var(--sp-2); }
	.ash-gallery-2m { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Cards built from blocks */
.ash-site .ash-card-b {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: var(--sp-3);
	box-sizing: border-box;
	transition: border-color var(--ease), transform var(--ease);
}
.ash-bg-white .ash-card-b { background: var(--sand); }
.ash-card-b > * { margin: 0 0 var(--sp-1) !important; max-width: none !important; }
.ash-card-b > *:last-child { margin-bottom: 0 !important; }
.ash-site .ash-card-b h3 { font-size: 21px; }
.ash-card-b p { font-size: 16.5px; line-height: 1.8; }
.ash-card-b .ash-more { margin-top: auto !important; padding-top: var(--sp-1); font-weight: 700; font-size: 16px; color: var(--glass); display: flex; align-items: center; gap: 6px; }
.ash-card-b .ash-more::after {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ash-i-arrow) center / contain no-repeat;
	mask: var(--ash-i-arrow) center / contain no-repeat;
}

/* Whole card is one link (stretched heading link) */
.ash-site .ash-card-link { position: relative; }
.ash-card-link h3 a { color: var(--navy); text-decoration: none; }
.ash-card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ash-card-link h3 a:focus-visible { outline: none; }
.ash-card-link:focus-within { outline: 3px solid var(--glass); outline-offset: 3px; }
.ash-card-link:hover h3 a { color: var(--glass); }
.ash-card-cta { background: var(--navy) !important; border-color: var(--navy) !important; }
.ash-site .ash-card-cta h3 a { color: #fff; }
.ash-card-cta p { color: var(--on-navy-muted); }
.ash-card-cta .ash-more { color: #fff; }
.ash-card-cta:hover { border-color: var(--glass) !important; }
.ash-card-cta:hover h3 a { color: #fff; }

/* Hero */
.ash-hero { padding-top: var(--sp-6) !important; }
.ash-hero .wp-block-columns { gap: var(--sp-5); align-items: center; margin: 0; }
.ash-hero h1 { margin: 0 0 var(--sp-2); }
.ash-hero .ash-lead { margin-bottom: var(--sp-3); }
.ash-hero .ash-hero-img { border-radius: var(--radius) !important; border: 1px solid var(--line) !important; }
.ash-trustline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-1) var(--sp-3);
	list-style: none;
	padding: 0 !important;
	margin: var(--sp-3) 0 0 !important;
}
.ash-trustline li {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--navy);
	line-height: 1.5;
}
.ash-trustline li::before,
.ash-hours-line::before {
	content: "";
	width: 24px;
	height: 24px;
	flex: none;
	background: var(--glass);
	-webkit-mask: var(--ash-ti) center / contain no-repeat;
	mask: var(--ash-ti) center / contain no-repeat;
}
.ash-trustline li:nth-child(1) { --ash-ti: var(--ash-i-shield); }
.ash-trustline li:nth-child(2) { --ash-ti: var(--ash-i-ruler); }
.ash-trustline li:nth-child(3) { --ash-ti: var(--ash-i-bank); }
.ash-hours-line {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	font-size: 16px !important;
	color: var(--stone);
	margin-top: var(--sp-2) !important;
	--ash-ti: var(--ash-i-clock);
}
@media (max-width: 781px) {
	.ash-hero { padding-top: var(--sp-4) !important; }
	.ash-hero .wp-block-columns { gap: var(--sp-4); }
	.ash-hero .wp-block-buttons > .wp-block-button { flex: 1 1 140px; }
	.ash-hero .wp-block-button__link { width: 100%; }
}

/* Pills */
.ash-pills { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0 !important; margin: 0; }
.ash-blocks .ash-section > .ash-pills { max-width: var(--container) !important; }
.ash-pills li { margin: 0; }
.ash-pills a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--sp-2);
	border-radius: var(--radius-pill);
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--navy);
	font-weight: 500;
	font-size: 16px;
	text-decoration: none;
	transition: border-color var(--ease), color var(--ease);
}
.ash-bg-white .ash-pills a { background: var(--sand); }
.ash-pills a:hover { border-color: var(--glass); color: var(--glass); }

/* Lists of links (services hub) */
.ash-link-list { list-style: none; padding: 0 !important; margin: 0; }
.ash-link-list li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.7; }
.ash-link-list li:last-child { border-bottom: 0; }
.ash-link-list a { font-weight: 700; text-decoration: none; }
.ash-link-list a:hover { text-decoration: underline; }
.ash-hub { display: grid; gap: var(--sp-3); }
.ash-hub > * { margin: 0 !important; }

/* Steps */
.ash-steps { counter-reset: ash-step; }
.ash-step { position: relative; padding-top: calc(var(--sp-3) + 56px) !important; }
.ash-step::before {
	counter-increment: ash-step;
	content: counter(ash-step);
	position: absolute;
	top: var(--sp-3);
	inset-inline-start: var(--sp-3);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 19px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Families (long-form text blocks) */
.ash-family { padding-top: var(--sp-4) !important; border-top: 1px solid var(--line); }
.ash-section-head + .ash-family { border-top: 0; padding-top: 0 !important; }
.ash-blocks .ash-section > .ash-family + .ash-family { margin-top: var(--sp-4) !important; }

/* Photos: uniform 4:3 crops that keep the work in frame and push printed text out. */
.ash-site .ash-ph {
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--white);
	border: 1px solid var(--line);
}
.ash-site .ash-ph img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3 !important;
	object-fit: cover !important;
	object-position: var(--ash-pos, 50% 50%);
	transform: scale(var(--ash-z, 1));
	transform-origin: var(--ash-origin, 50% 50%);
}
.ash-site .ash-ph figcaption {
	margin: 0;
	padding: 12px var(--sp-2);
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--stone);
	text-align: start;
	position: relative;
	background: var(--white);
	border-top: 1px solid var(--line);
}
.ash-site .ash-ph .lightbox-trigger { z-index: 2; }
.ash-ph-1  { --ash-pos: 50% 50%; --ash-z: 1.65; --ash-origin: 50% 44%; }
.ash-ph-2  { --ash-pos: 50% 50%; --ash-z: 1.2; }
.ash-ph-3  { --ash-pos: 50% 45%; }
.ash-ph-4  { --ash-pos: 50% 34%; }
.ash-ph-5  { --ash-pos: 50% 50%; }
.ash-ph-6  { --ash-pos: 50% 50%; }
.ash-ph-8  { --ash-pos: 50% 45%; --ash-z: 1.35; --ash-origin: 50% 40%; }
.ash-ph-9  { --ash-pos: 50% 0%; --ash-z: 1.85; --ash-origin: 50% 0%; }
.ash-ph-10 { --ash-pos: 50% 50%; }
.ash-ph-11 { --ash-pos: 50% 52%; }
.ash-ph-12 { --ash-pos: 50% 50%; }
.ash-ph-13 { --ash-pos: 50% 50%; }
.ash-ph-14 { --ash-pos: 50% 50%; }
.ash-gallery { gap: var(--sp-3); }

/* Core lightbox overlay: brand colours */
.wp-lightbox-overlay .scrim { background-color: var(--navy) !important; opacity: .92 !important; }
.wp-lightbox-overlay .close-button { color: #fff !important; min-width: 44px; min-height: 44px; }

/* Licence / document images: whole image, never cropped. */
.ash-site .ash-doc { margin: 0 !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ash-site .ash-doc img { border-radius: var(--radius-sm); width: 100%; height: auto; }
.ash-site .ash-doc figcaption { font-size: 15.5px; color: var(--stone); text-align: center; margin: 12px 0 0; }

/* FAQ (core/details) */
.ash-blocks .ash-faq { max-width: var(--container) !important; }
.ash-faq .wp-block-details {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 var(--sp-3);
	margin: 0 0 12px !important;
	transition: border-color var(--ease);
}
.ash-bg-white .ash-faq .wp-block-details { background: var(--sand); }
.ash-faq .wp-block-details[open] { border-color: var(--glass); }
.ash-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	min-height: 64px;
	margin: 0;
	padding: 12px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 19px;
	color: var(--navy);
	line-height: 1.5;
}
.ash-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ash-faq .wp-block-details summary::after {
	content: "+";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--glass);
	font-size: 22px;
	line-height: 1;
}
.ash-faq .wp-block-details[open] summary::after { content: "–"; }
.ash-faq .wp-block-details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: var(--sp-2); }
.ash-faq .wp-block-details > :not(summary) { margin: 0 0 var(--sp-3); max-width: var(--measure); }

/* Map */
.ash-map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius);
	background: var(--white);
}
@media (max-width: 767px) { .ash-map iframe { height: 300px; } }

/* Contact list */
.ash-contact-list { list-style: none; padding: 0 !important; margin: 0 0 var(--sp-3); }
.ash-contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ash-contact-list li:last-child { border-bottom: 0; }
.ash-contact-list strong { color: var(--navy); }

/* Columns on block pages */
.ash-blocks .wp-block-columns { margin-bottom: 0; gap: var(--sp-5); }
.ash-blocks .wp-block-column > *:first-child { margin-top: 0; }
.ash-near-cols { align-items: center; }

/* CTA band */
.ash-cta-band { text-align: center; }
.ash-cta-band .ash-section-head > p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.ash-site .ash-card-link:hover, .ash-related__card:hover, .ash-card--post:hover { transform: none; }
}

/* Blocksy's own back-to-top button is not used. */
.ct-back-to-top { display: none !important; }
