/**
 * Locations Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Screen reader text for accessibility */
.locations .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* Locations Container */
.locations {
	width: 100%;
	padding: 95px 0 100px;
}

.locations-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0;
	width: 97%;
}

/* Main Title */
.locations-main-title {
	font-size: 74px;
	line-height: 81px;
	font-weight: 100;
	margin: 0 0 40px;
	text-align: left;
	color: inherit;
}

/* Locations Grid */
.locations-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 100px;
	width: 100%;
}

/* Location Item */
.locations-item {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Location Item Title */
.locations-item-title {
	font-size: 16px;
	line-height: 33px;
	font-weight: 100;
	margin: 0;
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.13rem;
	font-family: 'Inter';
}

/* Location Item Content (Address + Buttons wrapper) */
.locations-item-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 35px;
}

/* Location Item Address */
.locations-item-address {
	font-size: 17px;
	line-height: 27px;
	margin: 0;
	color: inherit;
	flex: 1;
	min-width: 0;
}

.locations-item-address p {
	margin: 0 0 0.5rem 0;
}

.locations-item-address p:last-child {
	margin-bottom: 0;
}

/* Location Item Buttons */
.locations-item-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	flex-shrink: 0;
}

/* Button */
.locations-button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 30px;
	background-color: var(--button-bg-color, #013D36);
	color: #ffffff!important;
	text-decoration: none;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 100;
	transition: background-color 0.3s ease, transform 0.2s ease, outline 0.2s ease;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	height: 57px;
}

.locations-button:hover,
.locations-button:focus {
	background-color: #6B7861;
}

.locations-button:active {
	transform: translateY(0);
}

.locations-button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

/* Button Icon Wrapper */
.locations-button-icon-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Button Icon */
.locations-button-icon {
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
	display: inline-block;
}

.locations-button-icon.fa-regular,
.locations-button-icon.fa-solid {
	font-size: 1.25rem;
	line-height: 1;
	width: auto;
	height: auto;
}

/* Button Text */
.locations-button-text {
	white-space: nowrap;
}

/* Location Item Image Wrapper */
.locations-item-image-wrapper {
	margin: 0;
	width: 100%;
	order: 4;
}

/* Location Item Image */
.locations-item-image {
	width: 100%;
	height: 382px;
	display: block;
	object-fit: cover;
	border-radius: 35px;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
	.locations {
		padding: 2.5rem 0;
	}

	.locations-container {
		padding: 0 1.25rem;
	}

	.locations-main-title {
	}

	.locations-grid {
		gap: 2rem;
	}
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
	.locations {
		padding: 2rem 0 80px;
	}

	.locations-item-image {
		border-radius:0;
	}
	.locations-container {
		padding: 0 1rem;
	}

	.locations-main-title {
	font-size: 61px;
	margin: 0 0 20px;
	}

	.locations-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.locations-item {
		gap: 1.25rem;
	}

	.locations-item-title {
		font-size: 16px;
	}

	.locations-item-content {
		flex-direction: column;
		align-items: flex-start;
	}

	.locations-item-address {
		font-size: 0.9375rem;
		width: 100%;
	}

	.locations-item-buttons {
		width: 100%;
	}

	.locations-button {
		justify-content: center;
	}
}

@media (max-width: 500px) {
	.locations {
		padding: 30px 0 60px;
	}

	.locations-container {
		padding: 0 30px;
	}

	.locations-main-title {
		font-size: 61px;
		margin-bottom: 20px;
	}

	.locations-grid {
		gap: 50px;
	}

	.locations-item {
		gap: 20px;
	}
	.locations-item-content {
		margin-bottom:20px;
	}
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	.locations-button {
		transition: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.locations-button {
		border: 2px solid currentColor;
	}

	.locations-item-image {
		border: 2px solid currentColor;
	}
}

/* Print Styles */
@media print {
	.locations {
		background-color: #f5f5f5;
		padding: 1rem 0;
	}

	.locations-item {
		page-break-inside: avoid;
		margin-bottom: 1.5rem;
	}

	.locations-button {
		background-color: #000000;
		color: #ffffff;
		border: 1px solid #000000;
		page-break-inside: avoid;
	}

	.locations-item-image {
		max-width: 300px;
	}
}

/* Focus States for Accessibility */
.locations-item:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Ensure text color inheritance from block settings */
.locations,
.locations * {
	color: inherit;
}

