/* ==========================================================================
   Typeset design pattern library

   Everything in this file is opinionated design. Trim aggressively per
   site — keep only the patterns the site actually uses. Add new patterns
   here before they graduate to the starter baseline.

   Load order: after brand.css tokens, before site.css overrides.
   ========================================================================== */

/* ------------------------------------------------------------------------- *
 * Section header — heading with trailing separator line
 * ------------------------------------------------------------------------- */

.section-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
}

.section-header h3 {
	margin: 0;
	white-space: nowrap;
	font-weight: 500;
	letter-spacing: 0;
	font-size: 1.5rem;
}

.section-header::after {
	content: '';
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.3;
}

/* ------------------------------------------------------------------------- *
 * Page hero — two-column band with text + image.
 * Full-bleed gray background, inner .page-hero-container is the grid.
 * ------------------------------------------------------------------------- */

.page-hero {
	background: var(--card);
	padding: 2em 0 3em;
}

.page-hero-container {
	max-width: 1380px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 12fr 9fr;
	gap: 72px;
}

.page-hero-content {
	display: flex;
	flex-direction: column;
	padding: 40px 0;
}

.page-hero-content h1 {
	font-size: 2.9em;
	line-height: 1.2;
	margin: 0 0 20px;
	max-width: 650px;
}

.page-hero-content p {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 2em;
	max-width: 500px;
}

.page-hero-image {
	position: relative;
	min-height: 540px;
	overflow: hidden;
}

.page-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: 5px;
}

/* Spacing between hero band and first body .container on hub pages */
.page-hero + .container {
	padding-top: clamp(40px, 5vw, 72px);
}

@media (max-width: 968px) {
	.page-hero-container {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.page-hero-image {
		min-height: 400px;
	}

	.page-hero-content {
		padding: 60px 40px;
	}

	.page-hero-content h1 {
		font-size: 36px;
	}

	.page-hero-content p {
		font-size: 16px;
	}
}

@media (max-width: 640px) {
	.page-hero-image {
		min-height: 300px;
	}

	.page-hero-content {
		padding: 30px 20px;
	}

	.page-hero-content h1 {
		font-size: 32px;
	}
}

/* ------------------------------------------------------------------------- *
 * Background-image hero — full-bleed bg photo + dark overlay, for sites
 * that want a photo-driven hero instead of the .page-hero split layout.
 * Usage: <section class="hero-row" style="background-image:url(...)">…</section>
 * ------------------------------------------------------------------------- */

.hero {
	color: #fff;
}

.hero-text {
	color: #fff;
	font-size: 1.3rem;
	font-weight: 500;
}

h1.hero {
	font-size: 4em;
}

.hero-row {
	position: relative;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.hero-row::before {
	content: '';
	display: block;
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

/* ------------------------------------------------------------------------- *
 * Testimonials
 * ------------------------------------------------------------------------- */

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin: 1.5em 0;
}

.testimonial-grid-single {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 1.5em 0;
}

.testimonial-grid .testimonial-card-link,
.testimonial-grid-single .testimonial-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.testimonial-card {
	background: var(--card);
	border-radius: 20px;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
}

.testimonial-card .hero-stars {
	margin-bottom: 0.75rem;
}

.testimonial-card .hero-star {
	width: 16px;
	height: 16px;
}

.testimonial-text p {
	margin-bottom: 0.75rem;
}

.testimonial-text p:last-child {
	margin-bottom: 0;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
}

.testimonial-logo {
	flex-shrink: 0;
}

.testimonial-name {
	font-weight: 600;
}

@media (max-width: 1024px) {
	.testimonials-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.testimonials-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.testimonial-text {
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------------- *
 * Stats / numbers — generic stat block (KPIs, "by the numbers" rows,
 * verdicts, etc.)
 * ------------------------------------------------------------------------- */

.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;
	padding-top: 2em;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin-top: 4em;
}

.stats-grid--flat {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
	gap: 40px;
	justify-content: space-between;
}

.stat-item {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stat-number {
	font-family: var(--font-heading);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
}

.stat-label {
	font-size: 16px;
	color: var(--gray-500);
	line-height: 1.4;
}

@media (max-width: 968px) {
	.stats-grid {
		gap: 25px;
		margin-top: 40px;
		padding-top: 30px;
	}

	.stat-number {
		font-size: 48px;
	}

	.stat-label {
		font-size: 14px;
	}
}

@media (max-width: 640px) {
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.stat-number {
		font-size: 42px;
	}
}

/* ------------------------------------------------------------------------- *
 * Feature list — icon + heading + text row
 * ------------------------------------------------------------------------- */

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 36px 0 44px;
}

.feature-icon {
	width: 60px;
	height: 60px;
	min-width: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--card);
}

.feature-icon .icon-check {
	width: 34px;
	height: 34px;
	color: var(--button-color);
}

.feature-content h4 {
	margin: 0 0 8px;
}

.feature-content p {
	margin: 0;
}

/* ------------------------------------------------------------------------- *
 * Service cards — 4-up linked tiles (image + title)
 * ------------------------------------------------------------------------- */

.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.service-card {
	border: 1px solid #e0e0e0;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: border-color 0.3s ease;
}

.service-card:hover {
	border-color: #999;
}

.service-image {
	width: 100%;
	aspect-ratio: 596 / 956;
	overflow: hidden;
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-content {
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.service-content h3 {
	margin: 0;
	flex: 1;
	font-size: 18px;
}

.service-content .icon-arrow-forward {
	margin-left: 10px;
}

@media (max-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.services-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ------------------------------------------------------------------------- *
 * Service row — image-on-top, title + link-list below
 * ------------------------------------------------------------------------- */

.service-row {
	font-size: 16px;
}

.service-row img {
	margin-bottom: 1rem;
	border-radius: 5px;
}

.service-links {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	line-height: 1rem;
}

.service-links li a {
	display: flex;
	align-items: center;
	padding: 5px 0;
	font-weight: 600;
	color: var(--button-color);
}

.service-links li a::after {
	content: '';
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	mask-image: url('../../typeset/icons/arrow_forward.svg');
	-webkit-mask-image: url('../../typeset/icons/arrow_forward.svg');
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	margin-left: 4px;
	margin-bottom: -1px;
}

.decorated-link {
	display: flex;
	align-items: center;
	padding: 5px 0;
	font-weight: 600;
	color: var(--button-color);
}

.decorated-link::after {
	content: '';
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	mask-image: url('../../typeset/icons/arrow_forward.svg');
	-webkit-mask-image: url('../../typeset/icons/arrow_forward.svg');
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	margin-left: 4px;
	margin-bottom: -1px;
}

/* ------------------------------------------------------------------------- *
 * Trust badges — horizontal row of logos
 * ------------------------------------------------------------------------- */

.trust-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	row-gap: 20px;
}

.trust-badges img {
	height: 70px;
	width: auto;
}

/* ------------------------------------------------------------------------- *
 * Trust row — 2-up content + media (video, image)
 * ------------------------------------------------------------------------- */

.trust-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	margin: 3em 0;
}

.trust-text > :first-child { margin-top: 0; }

@media (max-width: 968px) {
	.trust-row {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ------------------------------------------------------------------------- *
 * Contact page — 2-col content + form, no hero band
 * ------------------------------------------------------------------------- */

.contact-row {
	display: grid;
	grid-template-columns: 12fr 9fr;
	gap: 72px;
	padding: clamp(32px, 4vw, 60px) 0 clamp(48px, 6vw, 80px);
	align-items: start;
}

.contact-row > :first-child > :first-child { margin-top: 0; }

.contact-map {
	line-height: 0;
}

.contact-map iframe {
	display: block;
	width: 100%;
}

@media (max-width: 968px) {
	.contact-row {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* ------------------------------------------------------------------------- *
 * Reviews-page intro copy
 * ------------------------------------------------------------------------- */

.reviews-intro {
	max-width: 720px;
	margin: 0 auto;
	padding-top: clamp(32px, 4vw, 60px);
	padding-bottom: clamp(24px, 3vw, 40px);
}

/* ------------------------------------------------------------------------- *
 * Why-choose row — 2-col features + form
 * ------------------------------------------------------------------------- */

.why-choose-row {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 48px;
	align-items: start;
	margin: 3em 0;
}

.why-choose-features > :first-child { margin-top: 0; }

@media (max-width: 968px) {
	.why-choose-row {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ------------------------------------------------------------------------- *
 * Content + image row — generic 2-col with border card on the content side
 * ------------------------------------------------------------------------- */

.section-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.content-side {
	border: 1px solid #e0e0e0;
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.content-side .button-services {
	margin-top: auto;
	align-self: flex-start;
}

.image-side img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 768px) {
	.section-container {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.content-side {
		padding: 20px;
	}

	.content-side .button-services {
		margin-top: 0;
		align-self: auto;
	}

	.image-side {
		order: -1;
	}
}

/* ------------------------------------------------------------------------- *
 * Phone call — phone-with-icon inline element
 *
 * NOTE: the ::before uses mask-image pointing at the parent theme's
 * /icons/call.svg, not a child-theme path. If the icon moves, update
 * this URL.
 * ------------------------------------------------------------------------- */

.phonecall {
	font-size: 2.2rem;
	font-weight: 600;
	font-family: var(--font-heading);
}

.phonecall::before {
	content: '';
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	background-color: currentColor;
	mask-image: url('../../typeset/icons/call.svg');
	-webkit-mask-image: url('../../typeset/icons/call.svg');
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	vertical-align: middle;
	margin-top: -4px;
	margin-right: 7px;
}

/* ------------------------------------------------------------------------- *
 * Footer top-CTA — colored band heading style
 * ------------------------------------------------------------------------- */

.footer-top-cta {
	color: #fff;
	font-size: 2.5em;
}

/* ------------------------------------------------------------------------- *
 * Utilities
 * ------------------------------------------------------------------------- */

.max-880 {
	max-width: 880px;
	margin-right: auto;
}

.sm-head {
	font-weight: 700;
}

.bigh2 {
	font-size: 3em;
}

@media (min-width: 1100px) {
	.bigh2 {
		font-size: 3.5em;
	}
}
