/* =========================================================================
   Armour Roofing
   Design tokens taken from Armour_Roofing_MobileSite_Mockup.xd.
   Body copy is set at 16px rather than the mockup's literal 11px, which
   would fail readability; every heading keeps its mockup value.
   ========================================================================= */

:root {
	--ar-navy:      #172333;
	--ar-black:     #080808;
	--ar-gold:      #CEA01E;
	--ar-gold-dark: #A87F13;
	/* Text-safe variants. The mockup's steel (#5F85B5) scores 3.81:1 on white
	   and the mid gold 3.68:1, both under the 4.5:1 AA floor for the 14px bold
	   eyebrow and body links. These keep the hue and clear 4.5:1 on white and
	   on the grey band. The original values stay for icons and fills, where the
	   3:1 non-text threshold applies. */
	--ar-steel-text: #4A6F9F;
	--ar-gold-text:  #8A6810;
	--ar-steel:     #5F85B5;
	--ar-slate:     #343B43;
	--ar-offwhite:  #FAFAFA;
	--ar-grey:      #F0F0F0;
	--ar-white:     #FFFFFF;
	--ar-rule:      rgba(23, 35, 51, .18);
	--ar-rule-light:rgba(255, 255, 255, .22);

	--ar-font-head: 'Oswald', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
	--ar-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Mockup sizes at a 375px frame, scaling up to the desktop values. */
	--ar-fs-display: clamp(2.1875rem, 1.55rem + 2.7vw, 4rem);      /* 35 -> 64 */
	--ar-fs-heading: clamp(1.75rem,  1.45rem + 1.28vw, 2.75rem);   /* 28 -> 44 */
	--ar-fs-sub:     clamp(1.25rem,  1.1rem  + 0.64vw, 1.75rem);   /* 20 -> 28 */
	--ar-fs-eyebrow: clamp(0.875rem, 0.84rem + 0.15vw, 1rem);      /* 14 -> 16 */
	--ar-fs-lead:    clamp(1.125rem, 1.09rem + 0.15vw, 1.25rem);   /* 18 -> 20 */
	--ar-fs-body:    1rem;
	--ar-fs-small:   0.8125rem;

	--ar-gutter:  1.5rem;   /* mockup uses a 36px margin at 375px */
	--ar-max:     1200px;
	--ar-max-narrow: 760px;
	--ar-space:   3.5rem;
	--ar-space-lg: 5rem;
}

@media (min-width: 48em) {
	:root { --ar-gutter: 2.5rem; }
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ar-white);
	color: var(--ar-slate);
	font-family: var(--ar-font-body);
	font-size: var(--ar-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }

a { color: var(--ar-gold-text); }
a:hover, a:focus { color: var(--ar-navy); }

:focus-visible {
	outline: 3px solid var(--ar-steel);
	outline-offset: 2px;
}

.ar-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ar-skip {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--ar-gold);
	color: var(--ar-navy);
	font-weight: 700;
}
.ar-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Layout ---------- */

.ar-container {
	width: 100%;
	max-width: var(--ar-max);
	margin-inline: auto;
	padding-inline: var(--ar-gutter);
}
.ar-container--narrow { max-width: var(--ar-max-narrow); }

.ar-section { padding-block: var(--ar-space); }
.ar-section--tight { padding-block: 1.25rem; }

@media (min-width: 62em) {
	.ar-section { padding-block: var(--ar-space-lg); }
}

.ar-section--light { background: var(--ar-white); color: var(--ar-slate); }
.ar-section--grey  { background: var(--ar-grey);  color: var(--ar-slate); }
.ar-section--navy  { background: var(--ar-navy);  color: var(--ar-offwhite); }

.ar-section--photo {
	position: relative;
	background-image: var(--ar-section-image);
	background-size: cover;
	background-position: center;
	color: var(--ar-offwhite);
}
.ar-section--photo::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23,35,51,.86), rgba(23,35,51,.78));
}
.ar-section--photo > * { position: relative; }

.ar-section--navy a,
.ar-section--photo a { color: var(--ar-gold); }

.ar-row {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 48em) {
	.ar-row { grid-template-columns: var(--ar-row-cols, 1fr); }
}

.ar-row + .ar-row { margin-top: 2.5rem; }

/* ---------- Typography ---------- */

.ar-heading,
.ar-hero__title,
.ar-band__title,
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .75rem;
	font-family: var(--ar-font-head);
	font-weight: 700;
	line-height: 1.1;
	text-wrap: balance;
}

h1, .ar-hero__title { font-size: var(--ar-fs-display); }
h2, .ar-heading     { font-size: var(--ar-fs-heading); }
h3                  { font-size: var(--ar-fs-lead); }

.ar-section--light h1, .ar-section--light h2, .ar-section--light h3,
.ar-section--grey  h1, .ar-section--grey  h2, .ar-section--grey  h3 { color: var(--ar-navy); }

.ar-section--navy h1, .ar-section--navy h2, .ar-section--navy h3,
.ar-section--photo h1, .ar-section--photo h2, .ar-section--photo h3 { color: var(--ar-white); }

.ar-eyebrow {
	margin: 0 0 .35rem;
	color: var(--ar-steel-text);
	font-size: var(--ar-fs-eyebrow);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ar-lead {
	font-size: var(--ar-fs-lead);
	font-weight: 700;
	line-height: 1.55;
}

.ar-prose > :first-child { margin-top: 0; }
.ar-prose > :last-child  { margin-bottom: 0; }
.ar-prose p  { margin: 0 0 1.1em; }
.ar-prose ul, .ar-prose ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
.ar-prose li { margin-bottom: .4em; }
.ar-prose h2, .ar-prose h3, .ar-prose h4 { margin-top: 1.6em; }
.ar-prose img { display: block; height: auto; }

.ar-meta { color: var(--ar-steel-text); font-size: var(--ar-fs-small); margin: 0 0 .75rem; }

.ar-rule {
	height: 1px;
	margin: 2rem 0;
	border: 0;
	background: var(--ar-rule);
}
.ar-rule--top { margin: 0 0 1.5rem; }
.ar-section--navy .ar-rule,
.ar-section--photo .ar-rule { background: var(--ar-rule-light); }

/* ---------- Buttons ---------- */

/* Width, colour and type are measured from the mockup: 211px wide, label
   #FAFAFA, Oswald 700, no tracking. Height deliberately departs from the
   mockup's 37px: the client set this padding directly and it lands around 52px,
   which reads better in the browser than the comp's tighter box.
   The off-white-on-gold pairing is 2.32:1 and does not meet WCAG AA; that is the
   client's explicit decision to match the comp and the existing live-site
   buttons. See logs.md before changing it. */
.ar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 13.2rem;
	padding: .85rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--ar-gold);
	color: var(--ar-offwhite);
	font-family: var(--ar-font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ar-btn:hover, .ar-btn:focus { background: var(--ar-gold-dark); color: var(--ar-offwhite); }

/* Phone button on dark backgrounds: gold hairline, off-white label. */
.ar-btn--outline {
	background: transparent;
	border-color: var(--ar-gold);
	color: var(--ar-offwhite);
}
.ar-btn--outline:hover, .ar-btn--outline:focus { background: var(--ar-gold); color: var(--ar-offwhite); }

/* Same button on a light background, where an off-white label would vanish. */
.ar-btn--outline-dark {
	background: transparent;
	border-color: var(--ar-navy);
	color: var(--ar-navy);
}
.ar-btn--outline-dark:hover, .ar-btn--outline-dark:focus { background: var(--ar-navy); color: var(--ar-offwhite); }

.ar-btn--block { display: flex; width: 100%; }
.ar-btn--sm { min-width: 0; min-height: 0; padding: .6rem 1.25rem; font-size: .9375rem; }

/* Housecall Pro buttons come from Divi code modules on 11 pages, each shipping
   an inline <style> block from the old build that paints them #EFC300 with black
   labels. That block has the same specificity as `button.hcp-button.cFP` but
   appears later in the document, so it used to win. Prefixing with `body` lifts
   these rules above it without resorting to !important.
   main.js routes their clicks to the booking modal. */
body button.hcp-button,
body button.hcp-button.cFP {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 13.2rem;
	padding: .85rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--ar-gold);
	color: var(--ar-offwhite);
	font-family: var(--ar-font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}
body button.hcp-button:hover,
body button.hcp-button.cFP:hover { background: var(--ar-gold-dark); color: var(--ar-offwhite); }

.ar-btn-wrap { margin: 1.5rem 0 0; }

.ar-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.75rem;
}
@media (max-width: 30em) {
	.ar-btn-group { flex-direction: column; }
	.ar-btn-group .ar-btn { width: 100%; }
}

.ar-link-arrow {
	display: inline-block;
	margin-top: .75rem;
	color: var(--ar-gold-text);
	font-weight: 700;
	text-decoration: none;
}
.ar-link-arrow::after { content: ' \203A'; }
.ar-link-arrow:hover, .ar-link-arrow:focus { text-decoration: underline; }
.ar-link-arrow--gold { color: var(--ar-gold); }

/* ---------- Announcement bar ---------- */

.ar-announce {
	background: var(--ar-navy);
	color: var(--ar-white);
	font-size: var(--ar-fs-small);
	font-weight: 700;
	text-align: center;
}
.ar-announce__inner { padding-block: .6rem; }
.ar-announce__text { margin: 0; }
.ar-announce__link { color: var(--ar-gold); text-decoration: none; margin-left: .35rem; }
.ar-announce__link:hover, .ar-announce__link:focus { text-decoration: underline; color: var(--ar-gold); }

/* ---------- Header ---------- */

.ar-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--ar-white);
	border-bottom: 1px solid var(--ar-rule);
}
.ar-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}
.ar-logo { display: block; line-height: 0; }
.ar-logo img,
.ar-header__brand img { width: auto; max-height: 54px; }

.ar-header__actions { display: flex; align-items: center; gap: .75rem; }
.ar-header__cta { display: none; }

.ar-nav--desktop { display: none; }
.ar-nav__list {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ar-nav__list a {
	color: var(--ar-navy);
	font-family: var(--ar-font-head);
	font-weight: 500;
	font-size: .9375rem;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.ar-nav__list a:hover, .ar-nav__list a:focus { color: var(--ar-gold-text); }

.ar-nav__list li { position: relative; }
.ar-nav__list .menu-item-has-children > a::after { content: ' \25BE'; font-size: .8em; }

.ar-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 13rem;
	margin: 0;
	padding: .5rem 0;
	list-style: none;
	background: var(--ar-navy);
	box-shadow: 0 12px 28px rgba(8, 8, 8, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ar-nav__list li:hover > .sub-menu,
.ar-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.ar-nav__list .sub-menu a {
	display: block;
	padding: .55rem 1rem;
	color: var(--ar-offwhite);
	font-size: .875rem;
	text-transform: none;
	letter-spacing: 0;
}
.ar-nav__list .sub-menu a:hover, .ar-nav__list .sub-menu a:focus { color: var(--ar-gold); }

.ar-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 8px;
	border: 0;
	background: none;
	cursor: pointer;
}
.ar-burger__bar {
	display: block;
	height: 3px;
	background: var(--ar-navy);
	transition: transform .2s ease, opacity .2s ease;
}
.ar-burger[aria-expanded="true"] .ar-burger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ar-burger[aria-expanded="true"] .ar-burger__bar:nth-child(2) { opacity: 0; }
.ar-burger[aria-expanded="true"] .ar-burger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 64em) {
	.ar-nav--desktop { display: block; }
	.ar-header__cta { display: inline-flex; }
	.ar-burger { display: none; }
}

/* ---------- Mobile nav ---------- */

.ar-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(8, 8, 8, .6);
}
.ar-mobile-nav[hidden] { display: none; }

.ar-mobile-nav__panel {
	position: absolute;
	inset-block: 0;
	right: 0;
	width: min(88vw, 380px);
	padding: 1.5rem var(--ar-gutter) 2.5rem;
	overflow-y: auto;
	background: var(--ar-navy);
	color: var(--ar-offwhite);
}
.ar-mobile-nav__close {
	margin-left: auto;
	display: block;
	width: 44px; height: 44px;
	border: 0;
	background: none;
	color: var(--ar-offwhite);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}
.ar-mobile-nav__list { margin: 1rem 0 2rem; padding: 0; list-style: none; }
.ar-mobile-nav__list li { border-bottom: 1px solid var(--ar-rule-light); }
.ar-mobile-nav__list a {
	display: block;
	padding: .9rem 0;
	color: var(--ar-offwhite);
	font-family: var(--ar-font-head);
	font-size: 1.0625rem;
	text-decoration: none;
	text-transform: uppercase;
}
.ar-mobile-nav__list a:hover, .ar-mobile-nav__list a:focus { color: var(--ar-gold); }
.ar-mobile-nav__list .sub-menu { margin: 0 0 .5rem .75rem; padding: 0; list-style: none; }
.ar-mobile-nav__list .sub-menu a { font-size: .9375rem; text-transform: none; padding: .5rem 0; }
.ar-mobile-nav__list .sub-menu li:last-child { border-bottom: 0; }
.ar-mobile-nav__actions { display: grid; gap: .75rem; }

/* !important because one page carries legacy inline CSS from the old Divi build
   that sets `body, html { overflow: auto !important }`, which would otherwise
   defeat the scroll lock while an overlay is open. */
body.ar-overlay-open { overflow: hidden !important; }

/* ---------- Hero ---------- */

/* Height is content-driven on phones so the authority logos below the hero sit
   within the first screen. min-height: 78vh with 4rem padding was centring the
   copy inside a 630px band on a 375x667 screen, leaving 64px dead above and
   below and pushing the badges to 771px, past the fold. Desktop keeps the tall
   hero, restored at 64em. */
.ar-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 0;
	padding-block: 1.5rem 1rem;
	background-image: var(--ar-hero-image);
	background-size: cover;
	background-position: center;
	color: var(--ar-offwhite);
	text-align: center;
}
.ar-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23,35,51,.78), rgba(23,35,51,.88));
}
.ar-hero__inner { position: relative; max-width: 40rem; }

.ar-hero__title {
	color: var(--ar-offwhite);
	text-transform: uppercase;
}
.ar-hero__sub {
	margin: 0 0 1.25rem;
	color: var(--ar-gold);
	font-size: var(--ar-fs-sub);
	font-weight: 500;
	line-height: 1.25;
}
.ar-hero__body { margin: 0 auto 1.25rem; max-width: 34rem; }

/* Buttons are the mockup's fixed 211px, centred under the copy. */
.ar-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .75rem;
}

/* The booking form is desktop-only; the modal covers it below this width. */
.ar-hero__booking { display: none; }

@media (min-width: 64em) {
	.ar-hero {
		text-align: left;
		min-height: 78vh;
		padding-block: 4rem;
	}
	.ar-hero__body { margin-bottom: 2rem; }
	.ar-hero__actions { gap: 1rem; }
	.ar-section--tight { padding-block: 1.75rem; }
	.ar-hero__inner {
		display: grid;
		grid-template-columns: 3fr 2fr;
		align-items: center;
		gap: 3rem;
		max-width: var(--ar-max);
	}
	.ar-hero__body { margin-left: 0; margin-right: 0; }
	.ar-hero__actions { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
	.ar-hero__booking { display: block; }
}

/* ---------- Certification strip ---------- */

.ar-certs__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 1.75rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 48em) {
	.ar-certs__list { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.ar-certs__item { display: flex; justify-content: center; }
.ar-certs__item img { max-height: 62px; width: auto; object-fit: contain; }

/* ---------- Service cards ---------- */

.ar-services {
	display: grid;
	gap: 2.5rem;
	margin-top: 2rem;
}
@media (min-width: 48em) {
	.ar-services { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
.ar-service__media { margin: 0 0 1.25rem; }
.ar-service__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ar-service__title { margin-bottom: .6rem; font-family: var(--ar-font-body); font-weight: 700; }
.ar-service__body { margin: 0; }

/* ---------- Blurbs ---------- */

.ar-blurbs {
	display: grid;
	gap: 3rem;
	text-align: center;
}
@media (min-width: 62em) {
	.ar-blurbs { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.ar-blurb__icon { margin: 0 auto .9rem; width: 56px; color: var(--ar-steel); }
.ar-blurb__icon svg { width: 100%; height: auto; display: block; }
.ar-blurb__title { margin-bottom: .5rem; font-family: var(--ar-font-body); font-weight: 700; }
.ar-blurb__body { margin: 0; }
.ar-blurb__media { margin-bottom: 1rem; }
.ar-blurb__media img { width: 100%; }

/* ---------- Experience band ---------- */

.ar-band {
	display: flex;
	align-items: center;
	min-height: 20rem;
	padding-block: 4rem;
	background-image: linear-gradient(90deg, rgba(23,35,51,.94) 0%, rgba(23,35,51,.55) 60%, rgba(23,35,51,.35) 100%), var(--ar-band-image);
	background-size: cover;
	background-position: center;
}
.ar-band__title {
	max-width: 22ch;
	margin: 0;
	color: var(--ar-white);
	font-family: var(--ar-font-body);
	font-size: var(--ar-fs-sub);
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}
.ar-band__title span { display: block; }
.ar-band__accent { color: var(--ar-gold); }

/* ---------- Figures, images, embeds ---------- */

.ar-figure, .ar-image { margin: 0 0 1.75rem; }
.ar-figure img, .ar-image__img { display: block; width: 100%; height: auto; }


.ar-video { margin: 0 0 1.75rem; }
.ar-video iframe, .ar-video__el {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.ar-embed { margin: 0 0 1.5rem; }
.ar-embed:last-child { margin-bottom: 0; }

/* ---------- Checklist ---------- */

.ar-checklist { margin: 1.75rem 0; padding: 0; list-style: none; }
.ar-checklist__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .8rem 0;
	border-top: 1px solid var(--ar-rule-light);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.ar-checklist__item:last-child { border-bottom: 1px solid var(--ar-rule-light); }
.ar-checklist__mark { font-size: 1.5rem; line-height: 1; }

/* ---------- Accordion ---------- */

.ar-accordion { margin: 1.5rem 0; }
.ar-accordion__item { border-bottom: 1px solid var(--ar-rule); }
.ar-accordion__summary {
	padding: 1rem 0;
	font-family: var(--ar-font-head);
	font-size: 1.0625rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.ar-accordion__summary::-webkit-details-marker { display: none; }
.ar-accordion__summary::after { content: '+'; float: right; font-size: 1.25rem; line-height: 1; }
.ar-accordion__item[open] .ar-accordion__summary::after { content: '\2013'; }
.ar-accordion__body { padding: 0 0 1.25rem; }

/* ---------- Forms ---------- */

.ar-form { max-width: 40rem; margin-top: 1.5rem; }
.ar-form__row { margin: 0 0 1.1rem; }
.ar-form__label { display: block; margin-bottom: .35rem; font-weight: 600; }
.ar-form__input {
	width: 100%;
	padding: .75rem .9rem;
	border: 1px solid var(--ar-rule);
	border-radius: 0;
	background: var(--ar-white);
	color: var(--ar-slate);
	font-family: inherit;
	font-size: 1rem;
}
.ar-form__input:focus { border-color: var(--ar-steel); }
.ar-form__hp { position: absolute; left: -9999px; }

/* ---------- Cards ---------- */

.ar-cards {
	display: grid;
	gap: 2rem;
	margin-top: 1.5rem;
}
@media (min-width: 48em) { .ar-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .ar-cards { grid-template-columns: repeat(3, 1fr); } }

.ar-card { display: flex; flex-direction: column; background: var(--ar-white); }
.ar-card__media { display: block; line-height: 0; }
.ar-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ar-card__body { padding: 1.25rem 0 0; }
.ar-card__title { font-size: 1.1875rem; margin-bottom: .4rem; }
.ar-card__title a { color: var(--ar-navy); text-decoration: none; }
.ar-card__title a:hover, .ar-card__title a:focus { color: var(--ar-gold-text); }
.ar-card__excerpt { margin: 0 0 .75rem; }
.ar-card__more { font-weight: 700; text-decoration: none; }
.ar-card__more::after { content: ' \203A'; }

/* ---------- Pagination ---------- */

.ar-pagination { margin-top: 2.5rem; }
.ar-pagination .page-numbers {
	display: inline-block;
	padding: .5rem .85rem;
	color: var(--ar-navy);
	text-decoration: none;
}
.ar-pagination .page-numbers.current { background: var(--ar-navy); color: var(--ar-white); }

/* ---------- Page headers ---------- */

.ar-page__header { padding-block: var(--ar-space); }
.ar-single__media { margin: 0; }
.ar-single__img { width: 100%; max-height: 30rem; object-fit: cover; }

/* ---------- Footer ---------- */

.ar-footer {
	padding-block: var(--ar-space);
	background: var(--ar-black);
	color: var(--ar-white);
}
.ar-footer__brand { margin-bottom: 2.5rem; }
.ar-footer__brand img { max-width: 190px; height: auto; }

.ar-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}
@media (min-width: 48em) {
	.ar-footer__cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.ar-footer__title {
	margin: 0 0 1rem;
	color: var(--ar-white);
	font-family: var(--ar-font-body);
	font-size: 1.0625rem;
	font-weight: 700;
}
.ar-footer__list { margin: 0; padding: 0; list-style: none; }
.ar-footer__list li { margin-bottom: .55rem; }
.ar-footer__list a { color: var(--ar-white); text-decoration: none; }
.ar-footer__list a:hover, .ar-footer__list a:focus { color: var(--ar-gold); text-decoration: underline; }
.ar-footer__phone { color: var(--ar-gold) !important; }

.ar-footer__legal {
	margin: 2.5rem 0 0;
	color: rgba(255, 255, 255, .72);
	font-size: var(--ar-fs-small);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Header phone ---------- */

.ar-header__phone {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: var(--ar-navy);
	font-family: var(--ar-font-head);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.ar-header__phone:hover, .ar-header__phone:focus { color: var(--ar-gold-text); }
.ar-header__phone-icon { display: block; width: 20px; color: var(--ar-gold-text); }
.ar-header__phone-icon svg { display: block; width: 100%; height: auto; }
.ar-header__phone-text { display: none; }

@media (min-width: 30em) { .ar-header__phone-text { display: inline; } }

/* ---------- Homepage videos ---------- */

.ar-videos { display: grid; gap: 2rem; }
@media (min-width: 48em) { .ar-videos { grid-template-columns: repeat(2, 1fr); } }

.ar-videos .ar-video { margin: 0; }

/* ---------- Theme Builder layouts ---------- */

/* Per-page Divi Theme Builder content, rendered around the page body. */
.ar-tb > .ar-section:first-child { padding-top: var(--ar-space); }

/* The primary CTA renders as a <button> when Housecall Pro booking is enabled.
   Deliberately no `font: inherit` here: that shorthand would reset family, size
   and weight back to body text and override .ar-btn's own type. */
button.ar-btn { appearance: none; -webkit-appearance: none; }
button.ar-btn.ar-btn--block { display: flex; width: 100%; }

/* Hrefless dropdown parents are focusable via tabindex; show the pointer. */
.ar-nav__list .menu-item-has-children > a:not([href]) { cursor: default; }
.ar-nav__list li > a:focus-visible + .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Booking modal ---------- */

.ar-modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(8, 8, 8, .68);
}
.ar-modal[hidden] { display: none; }

.ar-modal__panel {
	display: flex;
	flex-direction: column;
	width: min(100%, 620px);
	max-height: min(100%, 860px);
	background: var(--ar-white);
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(8, 8, 8, .35);
	overflow: hidden;
}

.ar-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 1.25rem;
	background: var(--ar-navy);
	color: var(--ar-offwhite);
}
.ar-modal__title {
	margin: 0;
	color: var(--ar-offwhite);
	font-size: 1.125rem;
	line-height: 1.2;
}
.ar-modal__close {
	flex: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--ar-offwhite);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.ar-modal__close:hover, .ar-modal__close:focus { color: var(--ar-gold); }

.ar-modal__body { flex: 1 1 auto; min-height: 0; }
.ar-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 60vh;
	border: 0;
}

.ar-modal__fallback {
	margin: 0;
	padding: .6rem 1.25rem;
	background: var(--ar-grey);
	color: var(--ar-slate);
	font-size: var(--ar-fs-small);
	text-align: center;
}

/* ---------- Inline booking embed (desktop hero) ---------- */

.ar-booking {
	width: 100%;
	background: var(--ar-white);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
	overflow: hidden;
}
.ar-booking__frame {
	display: block;
	width: 100%;
	height: 750px;
	border: 0;
}

/* Portrait media beside body copy.
   The products clip is 1216x2160. Stacked full width on a desktop container it
   ran past 1100px tall with roughly 500px of dead space either side, so from
   64em up it moves into a fixed narrow column and the heading, copy and CTA
   fill the space next to it. */
.ar-media-split {
	display: grid;
	gap: 2rem;
}
.ar-media-split__media {
	width: 100%;
	max-width: 22rem;
	margin-inline: auto;
}
.ar-media-split__body > :first-child { margin-top: 0; }
/* The body column is ~728px at 1440, which runs past 100 characters a line.
   Cap the running text for readability; the heading keeps the full width. */
.ar-media-split__body .ar-prose { max-width: 38rem; }

@media (min-width: 64em) {
	.ar-media-split {
		grid-template-columns: minmax(0, 21rem) 1fr;
		align-items: center;
		gap: 3.5rem;
	}
	.ar-media-split__media { max-width: none; margin-inline: 0; }
}

.ar-video--lead { margin: 0; }
.ar-video--lead .ar-video__el {
	aspect-ratio: 9 / 16;
	background: var(--ar-navy);
	object-fit: cover;
}

/* ---------- Reviews carousel ---------- */
/* Mockup: heading above, then one review at a time between two steel-blue
   circular arrows. Quote in curly quotes, "- Name" beneath. No stars, no card.
   The comp draws the arrows at 23px; they are 40px here because 23px is under
   the 24px minimum target size in WCAG 2.2 and awkward to tap on a phone. */

.ar-reviews__viewport {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

@media (min-width: 48em) {
	.ar-reviews__viewport { gap: 2rem; }
}

.ar-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ar-steel);
	color: var(--ar-white);
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}
.ar-carousel__btn svg { width: 1.125rem; height: 1.125rem; display: block; }
.ar-carousel__btn:hover:not(:disabled),
.ar-carousel__btn:focus-visible:not(:disabled) { background: var(--ar-navy); }
.ar-carousel__btn:disabled { opacity: .35; cursor: default; }

.ar-reviews__track {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.ar-reviews__track::-webkit-scrollbar { display: none; }

/* One review per view, at every width, as the comp shows. */
.ar-review {
	flex: 0 0 100%;
	scroll-snap-align: start;
	min-width: 0;
}

/* The comp keeps the arrows at the container edges and centres the quote in the
   gap between them, so the block is centred rather than stretched to fill. */
.ar-review__quote,
.ar-review__author { max-width: 46rem; margin-inline: auto; }

.ar-review__quote { margin: 0 auto; }
.ar-review__quote p {
	margin: 0;
	color: var(--ar-slate);
	font-weight: 700;
	line-height: 1.5;
}
.ar-review__quote p::before { content: '\201C'; }
.ar-review__quote p::after  { content: '\201D'; }

.ar-review__author {
	margin: 1.25rem auto 0;
	color: var(--ar-slate);
	font-weight: 700;
}
.ar-review__author a { color: inherit; text-decoration: none; }
.ar-review__author a:hover, .ar-review__author a:focus { color: var(--ar-gold-text); text-decoration: underline; }

/* ---------- Interior page hero ---------- */

/* Shorter than the homepage hero: one heading and the calls to action. */
.ar-hero--page {
	min-height: 0;
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
	text-align: left;
}
.ar-hero--page .ar-hero__inner {
	display: block;
	max-width: var(--ar-max);
}
.ar-hero--page .ar-hero__title { margin-bottom: 1.75rem; }
.ar-hero--page .ar-hero__actions {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
}
@media (max-width: 30em) {
	.ar-hero--page .ar-hero__actions { flex-direction: column; align-items: stretch; }
}

/* Three-up card grid, for location pages that carry three services. */
@media (min-width: 62em) {
	.ar-services--three { grid-template-columns: repeat(3, 1fr); }
}

/* Card bodies on interior pages inherit prose spacing; keep them tight. */
.ar-service__body p:last-child { margin-bottom: 0; }

/* Location cert logos are the pages' own full-colour badges, so they sit on the
   grey band and get a consistent height rather than the homepage's navy strip. */
.ar-certs-band .ar-certs__item img { max-height: 74px; }
