/* =====================================================================
 * Tax Network USA -- Locations (single office + /locations/ archive)
 *
 * Enqueued by inc/tnusa-locations.php on location pages only, after the
 * theme's stylesheets/screen.css. Everything is namespaced .tnusa-loc* so it
 * cannot touch the rest of the site. Palette matches the news templates:
 * blue #0355A1, red #B52022, pale blue #F2F6FC, border #E4EBF3.
 * ===================================================================== */

/* The theme's .header is in normal flow; on the news CPT pages it is laid over
   the hero. Same here, so the hero's dark overlay runs behind the nav. */
.single-location .header,
.post-type-archive-location .header {
	position: absolute;
	z-index: 9;
	width: 100%;
}

.tnusa-loc {
	color: #333;
}

/* ---------- Hero ---------- */
.tnusa-loc-hero {
	background-color: rgba(0, 0, 0, 0.72);
	background-image: url('/wp-content/uploads/2022/02/service-single-bg.png');
	background-size: cover;
	background-position: center;
	padding: 230px 20px 90px;
}

.tnusa-loc-hero__inner {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.tnusa-loc-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.tnusa-loc-hero__eyebrow a {
	color: #fff;
	text-decoration: none;
	border-bottom: 2px solid #B52022;
	padding-bottom: 2px;
}

.tnusa-loc-hero__title {
	margin: 0 0 18px;
	font-size: 44px;
	line-height: 52px;
	font-weight: 700;
	color: #fff;
}

.tnusa-loc-hero__intro {
	max-width: 760px;
	margin: 0 0 28px;
	font-size: 20px;
	line-height: 30px;
	color: #fff;
}

.tnusa-loc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
}

.tnusa-loc-hero__phone {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.tnusa-loc-hero__phone:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Buttons: .main_button supplies the red + hover wipe; sizing is ours ---------- */
.tnusa-loc-btn {
	display: inline-block;
	padding: 0 34px;
	height: 56px;
	line-height: 56px;
	border-radius: 5px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 13px 26px rgba(181, 33, 34, 0.33);
}

.tnusa-loc-btn:hover {
	color: #fff;
	text-decoration: none;
}

.tnusa-loc-btn--block {
	display: block;
	width: 100%;
	padding: 0 12px;
}

/* ---------- Body ---------- */
.tnusa-loc-body {
	padding: 60px 0;
}

.tnusa-loc-content {
	font-size: 18px;
	line-height: 1.75;
	color: #333;
}

.tnusa-loc-content p {
	margin: 0 0 24px;
}

.tnusa-loc-content h2 {
	margin: 40px 0 16px;
	font-size: 28px;
	line-height: 36px;
	font-weight: 700;
	color: #0355A1;
}

.tnusa-loc-content h2:first-child {
	margin-top: 0;
}

.tnusa-loc-content h3 {
	margin: 32px 0 12px;
	font-size: 22px;
	line-height: 30px;
	font-weight: 700;
	color: #0355A1;
}

.tnusa-loc-content a {
	color: #0355A1;
	text-decoration: none;
	border-bottom: 1px solid #B52022;
}

.tnusa-loc-content ul,
.tnusa-loc-content ol {
	margin: 0 0 24px;
	padding-left: 22px;
}

.tnusa-loc-content li {
	margin-bottom: 8px;
}

.tnusa-loc-photo {
	margin: 0 0 32px;
}

.tnusa-loc-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* ---------- Details card ---------- */
.tnusa-loc-card {
	padding: 32px 28px 28px;
	background: #F2F6FC;
	border: 1px solid #E4EBF3;
	border-radius: 6px;
}

.tnusa-loc-card__title {
	margin: 0 0 22px;
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	color: #0355A1;
}

.tnusa-loc-detail {
	margin: 0 0 22px;
}

.tnusa-loc-detail__label {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #B52022;
}

.tnusa-loc-address {
	margin: 0 0 8px;
	font-style: normal;
	font-size: 18px;
	line-height: 1.5;
	color: #333;
}

.tnusa-loc-link {
	font-size: 15px;
	font-weight: 700;
	color: #0355A1;
	text-decoration: none;
	transition: color 0.2s;
}

.tnusa-loc-link:hover {
	color: #B52022;
}

.tnusa-loc-link--plain {
	font-size: 18px;
	font-weight: 500;
}

.tnusa-loc-hours {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.tnusa-loc-hours li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 16px;
	padding: 4px 0;
	border-bottom: 1px solid #E4EBF3;
}

.tnusa-loc-hours li:last-child {
	border-bottom: 0;
}

.tnusa-loc-hours__days {
	font-weight: 600;
}

/* ---------- Map ---------- */
.tnusa-loc-map {
	line-height: 0;
	background: #E4EBF3;
}

.tnusa-loc-map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}

/* ---------- Other offices ---------- */
.tnusa-loc-others {
	padding: 60px 20px;
	background: #fff;
}

.tnusa-loc-others__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.tnusa-loc-eyebrow {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: #B52022;
}

.tnusa-loc-others__title {
	margin: 0 0 28px;
	font-size: 30px;
	line-height: 38px;
	font-weight: 700;
	color: #0355A1;
}

.tnusa-loc-others__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.tnusa-loc-others__list a {
	display: block;
	height: 100%;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #E4EBF3;
	border-radius: 6px;
	text-decoration: none;
	transition: box-shadow 0.25s, transform 0.25s;
}

.tnusa-loc-others__list a:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.tnusa-loc-others__name {
	display: block;
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
	color: #0355A1;
}

.tnusa-loc-others__city {
	display: block;
	font-size: 14px;
	color: #555;
}

.tnusa-loc-others__all {
	margin: 0;
}

/* ---------- Archive grid ---------- */
.tnusa-loc-body--archive {
	padding: 60px 0 70px;
}

.tnusa-loc-grid__col {
	margin-bottom: 30px;
}

.tnusa-loc-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 26px 22px 22px;
	background: #fff;
	border: 1px solid #E4EBF3;
	border-radius: 6px;
	transition: box-shadow 0.25s, transform 0.25s;
}

.tnusa-loc-tile:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.tnusa-loc-tile__title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
}

.tnusa-loc-tile__title a {
	color: #0355A1;
	text-decoration: none;
}

.tnusa-loc-tile__title a:hover {
	color: #B52022;
}

.tnusa-loc-tile__address {
	margin: 0 0 12px;
	font-style: normal;
	font-size: 16px;
	line-height: 1.55;
	color: #444;
}

.tnusa-loc-tile__phone {
	margin: 0 0 18px;
	font-size: 16px;
}

.tnusa-loc-tile__phone a {
	color: #333;
	text-decoration: none;
	font-weight: 600;
}

.tnusa-loc-tile__phone a:hover {
	color: #B52022;
}

.tnusa-loc-tile__link {
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 700;
	color: #0355A1;
	text-decoration: none;
	transition: color 0.2s;
}

.tnusa-loc-tile__link:hover {
	color: #B52022;
}

.tnusa-loc-empty {
	padding: 40px 0;
	font-size: 17px;
	color: #555;
}

/* ---------- CTA band ---------- */
.tnusa-loc-cta {
	padding: 80px 20px;
	background: #0355A1;
}

.tnusa-loc-cta__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.tnusa-loc-cta__title {
	margin: 0 0 14px;
	font-size: 36px;
	line-height: 46px;
	font-weight: 700;
	color: #fff;
}

.tnusa-loc-cta__text {
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.tnusa-loc-hero {
		padding: 200px 20px 70px;
	}

	.tnusa-loc-card {
		margin-bottom: 40px;
	}
}

@media (max-width: 768px) {
	.tnusa-loc-hero {
		padding: 170px 20px 50px;
	}

	.tnusa-loc-hero__title {
		font-size: 30px;
		line-height: 38px;
	}

	.tnusa-loc-hero__intro {
		font-size: 17px;
		line-height: 26px;
	}

	.tnusa-loc-body {
		padding: 40px 0;
	}

	.tnusa-loc-content {
		font-size: 16px;
	}

	.tnusa-loc-map iframe {
		height: 320px;
	}

	.tnusa-loc-cta {
		padding: 50px 20px;
	}

	.tnusa-loc-cta__title {
		font-size: 28px;
		line-height: 36px;
	}

	.tnusa-loc-btn {
		padding: 0 24px;
	}
}

.tnusa-loc-tile__phone .fa-phone,
.tnusa-loc-hero__phone .fa-phone {
  display: inline-block;
  transform: scaleX(-1);
}