/* Shared public pages. Every selector is scoped so internal DeltaBooks screens stay unchanged. */
.aa-public-page,
.aa-service-page,
.aa-reviews,
.aa-trust-strip,
.aa-trustpilot {
	box-sizing: border-box;
	color: #243647;
	font-family: Arial, sans-serif;
}

.aa-public-page *,
.aa-service-page *,
.aa-reviews *,
.aa-trust-strip *,
.aa-trustpilot * {
	box-sizing: border-box;
}

.aa-public-container {
	margin: 0 auto;
	max-width: 1180px;
	padding-left: 28px;
	padding-right: 28px;
	width: 100%;
}

.aa-public-eyebrow {
	color: #087ba6;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 1.4px;
	line-height: 1.4 !important;
	margin: 0 0 14px !important;
	text-transform: uppercase;
}

.aa-public-note {
	background: #edf6fa;
	border-left: 4px solid #00a9e0;
	margin: 0;
	padding: 16px 18px;
}

.aa-public-page h1,
.aa-public-page h2,
.aa-public-page h3,
.aa-service-page h1,
.aa-service-page h2,
.aa-service-page h3,
.aa-reviews h2,
.aa-trustpilot h2 {
	color: #17324d;
	font-family: FSMatthew, "Trebuchet MS", Arial, sans-serif;
	font-weight: 500;
}

.aa-public-page h1,
.aa-service-page h1 {
	font-size: 48px;
	font-size: clamp(36px, 4vw, 56px);
	letter-spacing: -0.8px;
	line-height: 1.06;
	margin: 0;
}

.aa-public-page h2,
.aa-service-page h2,
.aa-reviews h2,
.aa-trustpilot h2 {
	font-size: 34px;
	font-size: clamp(27px, 3vw, 39px);
	line-height: 1.15;
	margin: 0;
}

.aa-public-page h3,
.aa-service-page h3 {
	font-size: 23px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.aa-public-page p,
.aa-public-page li,
.aa-service-page p,
.aa-service-page li {
	font-size: 17px;
	line-height: 1.65;
}

.aa-public-hero,
.aa-service-hero {
	background: #edf6fa;
	border-bottom: 1px solid #d8e7ee;
	padding: 54px 0;
}

.aa-public-hero__grid,
.aa-service-hero__grid {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.aa-public-hero__copy,
.aa-service-hero__copy {
	padding-right: 52px;
	width: 55%;
}

.aa-public-hero__copy > p:last-child,
.aa-service-hero__intro {
	font-size: 20px !important;
	line-height: 1.55 !important;
	margin: 21px 0 0;
}

.aa-public-hero__media,
.aa-service-hero__media {
	box-shadow: 0 20px 40px rgba(23, 50, 77, 0.2);
	margin: 0;
	overflow: hidden;
	width: 45%;
}

.aa-public-hero__media img,
.aa-service-hero__media img {
	display: block;
	height: 380px;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

.aa-service-hero__media--product {
	background: -webkit-linear-gradient(135deg, #ffffff 0%, #dff1f7 100%);
	background: linear-gradient(135deg, #ffffff 0%, #dff1f7 100%);
}

.aa-service-hero__media--product img {
	box-sizing: border-box;
	object-fit: contain;
	padding: 18px 24px;
}

.aa-public-content,
.aa-service-details,
.aa-service-coverage,
.aa-trustpilot {
	background: #ffffff;
	padding: 66px 0;
}

.aa-public-content--soft,
.aa-service-coverage {
	background: #f4f8fa;
}

.aa-public-grid,
.aa-service-details__grid {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: -10px;
}

.aa-public-card {
	background: #ffffff;
	border: 1px solid #dce8ee;
	margin: 10px;
	padding: 26px;
	width: calc(33.333% - 20px);
}

.aa-service-details__copy {
	margin: 10px;
	padding-right: 34px;
	width: calc(56% - 20px);
}

.aa-service-details__copy > p:first-of-type {
	font-size: 19px;
}

.aa-service-list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	list-style: none;
	margin: 23px -8px 0;
	padding: 0;
}

.aa-service-list li {
	margin: 6px 8px;
	padding-left: 25px;
	position: relative;
	width: calc(50% - 16px);
}

.aa-service-list li:before {
	color: #087ba6;
	content: "\2713";
	font-weight: 700;
	left: 0;
	position: absolute;
	top: 0;
}

.aa-service-estimate {
	background: #ffffff;
	border-top: 5px solid #00a9e0;
	box-shadow: 0 16px 34px rgba(23, 50, 77, 0.15);
	margin: 10px;
	padding: 16px 24px 10px;
	text-align: center;
	width: calc(44% - 20px);
}

.aa-service-estimate .portlet-header,
.aa-contact-estimate .portlet-header {
	color: #17324d;
	font-size: 29px;
	line-height: 1.2;
	margin: 10px auto 7px;
	text-align: center;
}

.aa-service-estimate .portlet-sub-header,
.aa-contact-estimate .portlet-sub-header {
	color: #087ba6;
	font-size: 17px;
	line-height: 1.4;
	margin: 10px auto 18px;
	text-align: center;
	width: 100%;
}

.aa-service-estimate #portlet-form-wrapper,
.aa-contact-estimate #portlet-form-wrapper {
	margin: 0 auto 25px;
	max-width: 560px;
	width: 100%;
}

.aa-service-estimate #portlet-form table,
.aa-contact-estimate #portlet-form table {
	border-collapse: separate;
	border-spacing: 0 8px;
	width: 100%;
}

.aa-service-estimate #portlet-form td,
.aa-contact-estimate #portlet-form td {
	padding-left: 0 !important;
	text-align: center;
}

/* LeadPortlet uses legacy Bootstrap span3 columns; stack them inside public cards. */
.aa-service-estimate #portlet-form form > .row-fluid:first-of-type,
.aa-contact-estimate #portlet-form form > .row-fluid:first-of-type {
	display: block;
	margin: 0;
	width: 100%;
}

.aa-service-estimate #portlet-form form > .row-fluid:first-of-type > [class*="span"],
.aa-contact-estimate #portlet-form form > .row-fluid:first-of-type > [class*="span"] {
	float: none;
	margin: 0 0 10px;
	padding-left: 0 !important;
	width: 100%;
}

.aa-service-estimate #portlet-form select,
.aa-service-estimate #portlet-form input[type="text"],
.aa-contact-estimate #portlet-form select,
.aa-contact-estimate #portlet-form input[type="text"] {
	background-color: #ffffff;
	border: 1px solid #9cc8d9;
	border-radius: 0;
	box-sizing: border-box;
	display: block;
	font-size: 17px;
	height: 54px;
	line-height: 1.35;
	margin-left: auto;
	margin-right: auto;
	max-width: none;
	min-height: 54px;
	padding: 11px 14px;
	text-align: left;
	width: 100% !important;
}

.aa-service-estimate #portlet-form select,
.aa-contact-estimate #portlet-form select {
	padding-right: 40px;
}

.aa-service-estimate #portlet-form .btn-theme-match,
.aa-contact-estimate #portlet-form .btn-theme-match {
	background: #007da9;
	border: 2px solid #007da9;
	border-radius: 0;
	font-size: 16px;
	padding: 13px 18px;
	width: 100%;
}

.aa-service-coverage__heading {
	margin-bottom: 28px;
	max-width: 720px;
}

.aa-branch-grid {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: -7px;
}

.aa-branch-grid__link {
	background: #ffffff;
	border: 1px solid #d8e7ee;
	color: #17324d !important;
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin: 7px;
	padding: 14px 16px;
	text-decoration: none !important;
	width: calc(25% - 14px);
}

.aa-branch-grid__link:hover,
.aa-branch-grid__link:focus {
	border-color: #007da9;
	color: #007da9 !important;
}

.aa-trust-strip {
	background: #17324d;
	color: #ffffff;
	padding: 48px 0;
}

.aa-trust-strip__heading {
	margin-bottom: 25px;
	max-width: 760px;
}

.aa-trust-strip__heading .aa-public-eyebrow {
	color: #7ed7f3;
}

.aa-trust-strip__heading h2 {
	color: #ffffff;
	font-size: 30px;
	line-height: 1.2;
	margin: 0;
}

.aa-trust-strip__grid {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: -8px;
}

.aa-trust-strip__grid > div {
	background: #ffffff;
	border-top: 4px solid #00a9e0;
	margin: 8px;
	padding: 22px;
	width: calc(25% - 16px);
}

.aa-trust-strip__item img {
	display: block;
	height: 82px;
	margin: 0 0 17px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	width: auto;
}

.aa-trust-strip strong,
.aa-trust-strip span {
	display: block;
}

.aa-trust-strip strong {
	color: #17324d;
	font-family: FSMatthew, "Trebuchet MS", Arial, sans-serif;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.25;
}

.aa-trust-strip span {
	color: #536879;
	font-size: 14px;
	line-height: 1.5;
	margin-top: 6px;
}

.aa-reviews {
	background: #ffffff;
	padding: 64px 0;
}

.aa-reviews__heading {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: end;
	-ms-flex-align: end;
	align-items: flex-end;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	margin-bottom: 27px;
}

.aa-reviews__controls {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}

.aa-reviews__controls button {
	background: #ffffff;
	border: 1px solid #9cc8d9;
	border-radius: 0;
	color: #17324d;
	font-size: 22px;
	height: 44px;
	line-height: 40px;
	padding: 0;
	width: 44px;
}

.aa-reviews__controls button:hover,
.aa-reviews__controls button:focus {
	background: #17324d;
	border-color: #17324d;
	color: #ffffff;
}

.aa-reviews__track {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 3px 3px 15px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.aa-review-card.carousel-internal {
	background: #f4f8fa;
	border: 1px solid #dce8ee;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-direction: normal;
	-webkit-box-orient: vertical;
	-ms-flex-direction: column;
	flex: 0 0 340px;
	flex-direction: column;
	height: auto;
	margin: 0;
	min-height: 250px;
	padding: 24px;
	scroll-snap-align: start;
	white-space: normal;
	width: 340px;
}

.aa-review-card__rating {
	color: #d46723;
	font-size: 20px;
	letter-spacing: 2px;
}

.aa-review-card > p {
	font-size: 16px;
	line-height: 1.6;
	margin: 17px 0 24px;
}

.aa-review-card footer {
	background: #17324d;
	color: #ffffff;
	margin: auto -24px -24px;
	padding: 14px 24px 16px;
}

.aa-review-card footer strong,
.aa-review-card footer span {
	display: block;
}

.aa-review-card footer strong {
	color: #ffffff;
}

.aa-review-card footer span {
	color: #ffffff;
}

.aa-trustpilot__list {
	margin-top: 40px;
}

.aa-contact-layout {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	gap: 30px;
}

.aa-contact-details {
	width: 43%;
}

.aa-contact-estimate {
	background: #ffffff;
	border-top: 5px solid #00a9e0;
	box-shadow: 0 16px 34px rgba(23, 50, 77, 0.15);
	padding: 18px 24px 12px;
	text-align: center;
	width: 57%;
}

.aa-contact-list {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.aa-contact-list li {
	border-top: 1px solid #dce8ee;
	padding: 15px 0;
}

.aa-contact-list strong {
	color: #17324d;
	display: block;
	font-size: 14px;
	text-transform: uppercase;
}

.aa-contact-list a {
	color: #007da9;
	font-size: 18px;
	font-weight: 700;
}

/* Image-backed homepage cards added during the Stage 1 content pass. */
.aa-home__service-card {
	overflow: hidden;
}

.aa-home__service-image {
	height: 160px;
	margin: -29px -26px 21px;
	overflow: hidden;
}

.aa-home__service-image-file {
	display: block;
	height: 100%;
	object-fit: cover;
	-webkit-transition: -webkit-transform 220ms ease;
	transition: transform 220ms ease;
	width: 100%;
}

.aa-home__service-image--product {
	background: #edf6fa;
}

.aa-home__service-image-file--contain {
	object-fit: contain;
	padding: 7px 14px;
}

.aa-home__service-card:hover .aa-home__service-image-file {
	-webkit-transform: scale(1.025);
	transform: scale(1.025);
}

.aa-public-page a:focus,
.aa-service-page a:focus,
.aa-reviews button:focus,
.aa-reviews__track:focus {
	outline: 3px solid #f6b93b;
	outline-offset: 3px;
}

@media (max-width: 979px) {
	.aa-trust-strip__grid > div {
		width: calc(50% - 16px);
	}

	.aa-public-card {
		width: calc(50% - 20px);
	}

	.aa-branch-grid__link {
		width: calc(33.333% - 14px);
	}

	.aa-public-hero__copy,
	.aa-service-hero__copy {
		padding-right: 32px;
	}
}

@media (max-width: 767px) {
	.aa-public-container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.aa-public-hero,
	.aa-service-hero,
	.aa-public-content,
	.aa-service-details,
	.aa-service-coverage,
	.aa-reviews,
	.aa-trustpilot {
		padding-bottom: 43px;
		padding-top: 43px;
	}

	.aa-public-hero__grid,
	.aa-service-hero__grid,
	.aa-contact-layout,
	.aa-trust-strip__grid {
		display: block;
	}

	.aa-public-hero__copy,
	.aa-service-hero__copy,
	.aa-public-hero__media,
	.aa-service-hero__media,
	.aa-service-details__copy,
	.aa-service-estimate,
	.aa-contact-details,
	.aa-contact-estimate {
		padding-right: 0;
		width: 100%;
	}

	.aa-public-hero__copy,
	.aa-service-hero__copy {
		padding-bottom: 28px;
	}

	.aa-public-hero__media img,
	.aa-service-hero__media img {
		height: 300px;
	}

	.aa-service-details__copy {
		padding-bottom: 25px;
	}

	.aa-service-estimate,
	.aa-contact-estimate {
		padding-left: 18px;
		padding-right: 18px;
	}

	.aa-contact-estimate {
		margin-top: 28px;
	}

	.aa-service-list li,
	.aa-public-card,
	.aa-branch-grid__link {
		width: calc(100% - 16px);
	}

	.aa-trust-strip__grid > div {
		margin: 14px 0;
		width: 100%;
	}

	.aa-reviews__heading {
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
		-webkit-box-direction: normal;
		-webkit-box-orient: vertical;
		-ms-flex-direction: column;
		flex-direction: column;
	}

	.aa-reviews__controls {
		margin-top: 18px;
	}

	.aa-review-card.carousel-internal {
		flex-basis: 84vw;
		width: 84vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aa-reviews__track {
		scroll-behavior: auto;
	}

	.aa-home__service-image-file {
		-webkit-transition: none;
		transition: none;
	}
}
