/* Homepage styles (mobile-first) */

.homepage {
	color: #1a1a1a;
}

.home-section {
	padding: 2.5rem 1rem;
}

.home-section__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.home-section__header {
	margin-bottom: 1.5rem;
}

.home-section__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	line-height: 1.25;
}

.home-section__subtitle {
	margin: 0;
	color: #4a4a4a;
	max-width: 42rem;
}

.home-section__footer-link {
	margin-top: 1.5rem;
	text-align: center;
}

.home-section__footer-link a {
	font-weight: 600;
	text-decoration: none;
}

.home-section__footer-link a:hover,
.home-section__footer-link a:focus {
	text-decoration: underline;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
	background: #1a4d8f;
	color: #fff;
}

.btn--primary:hover,
.btn--primary:focus {
	background: #153d72;
	color: #fff;
}

.btn--secondary {
	background: #fff;
	color: #1a4d8f;
	border-color: #1a4d8f;
}

.btn--secondary:hover,
.btn--secondary:focus {
	background: #f0f6fc;
	color: #153d72;
}

/* Hero */
.home-hero {
	background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.home-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1a4d8f;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.home-hero__title {
	margin: 0 0 1rem;
	font-size: 2rem;
	line-height: 1.2;
	max-width: 36rem;
}

.home-hero__text {
	margin: 0 0 1.5rem;
	font-size: 1.0625rem;
	color: #4a4a4a;
	max-width: 36rem;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.home-hero__areas {
	margin: 0;
	font-size: 0.9375rem;
	color: #5a5a5a;
}

/* Trust */
.home-trust {
	background: #fff;
	border-top: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
}

.home-trust__grid {
	display: grid;
	gap: 1rem;
}

.home-trust__item {
	padding: 1.25rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fafafa;
	text-align: center;
}

.home-trust__value {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a4d8f;
}

.home-trust__label {
	margin: 0 0 0.35rem;
	font-weight: 600;
}

.home-trust__meta {
	margin: 0;
	font-size: 0.875rem;
	color: #5a5a5a;
}

/* Cards */
.home-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.home-card__image-link {
	display: block;
}

.home-card__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.home-card__image-placeholder {
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, #e8eef5 0%, #d9e3ee 100%);
}

.home-card__body {
	padding: 1rem;
}

.home-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.home-card__title a {
	text-decoration: none;
}

.home-card__title a:hover,
.home-card__title a:focus {
	text-decoration: underline;
}

.home-card__text {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: #4a4a4a;
}

.home-card__link {
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	color: #1a4d8f;
}

.home-card__link:hover,
.home-card__link:focus {
	text-decoration: underline;
}

/* Services grid */
.home-services {
	background: #fff;
}

.home-services__grid {
	display: grid;
	gap: 1rem;
}

/* Why choose us */
.home-why {
	background: #f7f9fc;
}

.home-why__grid {
	display: grid;
	gap: 1rem;
}

.home-why__item {
	padding: 1.25rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e5e5e5;
}

.home-why__title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

.home-why__text {
	margin: 0;
	font-size: 0.9375rem;
	color: #4a4a4a;
}

/* Service areas */
.home-areas {
	background: #fff;
}

.home-areas__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.home-areas__link {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	background: #fafafa;
}

.home-areas__link:hover,
.home-areas__link:focus {
	background: #f0f6fc;
	border-color: #1a4d8f;
	color: #1a4d8f;
}

/* Gallery */
.home-gallery {
	background: #f7f9fc;
}

.home-gallery__grid {
	display: grid;
	gap: 1rem;
}

.home-gallery__empty {
	margin: 0;
	padding: 1.25rem;
	border: 1px dashed #c8c8c8;
	border-radius: 8px;
	background: #fff;
	color: #5a5a5a;
}

/* Testimonials */
.home-testimonials {
	background: #fff;
}

.home-testimonials__grid {
	display: grid;
	gap: 1rem;
}

.home-testimonial {
	margin: 0;
	padding: 1.25rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fafafa;
}

.home-testimonial__rating {
	margin-bottom: 0.75rem;
}

.home-testimonial__stars {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	background: #1a4d8f;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	font-style: normal;
}

.home-testimonial__quote {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: #333;
}

.home-testimonial__author {
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	color: #5a5a5a;
}

/* Final CTA */
.home-cta {
	background: #1a4d8f;
	color: #fff;
	text-align: center;
}

.home-cta__title {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
}

.home-cta__text {
	margin: 0 auto 1.5rem;
	max-width: 36rem;
	color: #e8f1fb;
}

.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.home-cta .btn--primary {
	background: #fff;
	color: #1a4d8f;
}

.home-cta .btn--primary:hover,
.home-cta .btn--primary:focus {
	background: #f0f6fc;
	color: #153d72;
}

.home-cta .btn--secondary {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.home-cta .btn--secondary:hover,
.home-cta .btn--secondary:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* Tablet */
@media (min-width: 768px) {
	.home-section {
		padding: 3.5rem 1.5rem;
	}

	.home-section__title {
		font-size: 2rem;
	}

	.home-hero__title {
		font-size: 2.5rem;
	}

	.home-trust__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-why__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-areas__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-gallery__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-testimonials__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.home-services__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-why__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-areas__list {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-why__item:last-child {
		grid-column: span 1;
	}
}

@media (min-width: 1200px) {
	.home-services__grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* Block editor compatibility */
.homepage .entry-content {
	margin: 0;
}

.homepage .entry-content > .wp-block-group.home-section {
	margin: 0;
	max-width: none;
}

.homepage .home-section.wp-block-group > .wp-block-group {
	margin: 0;
}

.homepage .wp-block-columns.home-trust__grid,
.homepage .wp-block-columns.home-why__grid,
.homepage .wp-block-columns.home-testimonials__grid {
	display: grid;
	gap: 1rem;
	margin-bottom: 0;
}

.homepage .wp-block-columns.home-trust__grid {
	grid-template-columns: 1fr;
}

.homepage .wp-block-columns.home-why__grid {
	grid-template-columns: 1fr;
}

.homepage .wp-block-columns.home-testimonials__grid {
	grid-template-columns: 1fr;
}

.homepage .wp-block-columns.home-trust__grid > .wp-block-column,
.homepage .wp-block-columns.home-why__grid > .wp-block-column,
.homepage .wp-block-columns.home-testimonials__grid > .wp-block-column {
	flex-basis: auto;
}

.homepage .home-testimonial.wp-block-quote {
	margin: 0;
	padding: 1.25rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fafafa;
}

.homepage .home-testimonial.wp-block-quote p {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: #333;
}

.homepage .home-testimonial.wp-block-quote cite {
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	color: #5a5a5a;
}

@media (min-width: 768px) {
	.homepage .wp-block-columns.home-trust__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.homepage .wp-block-columns.home-why__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.homepage .wp-block-columns.home-testimonials__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.homepage .wp-block-columns.home-why__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
