/* ==========================================================================
	Locations Archive (archive-office.php + CSA Locations Directory plugin)
	Ported from HTML/locations.html. Uses theme CSS variables from style.css.
========================================================================== */

/* --- Hero (banner) --- */
section.page-banner.loc-hero {
	background: linear-gradient(135deg, var(--color-blue), var(--color-blue-deep));
	color: var(--color-white);
	padding: 50px 0 50px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
body section.page-banner.loc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 20%, rgba(110, 190, 60, 0.16), transparent 45%);
	background: linear-gradient(135deg, rgba(0, 65, 160, 0.6), rgba(0, 48, 122, 0.6));
	pointer-events: none;
}

.loc-hero .wrap {
	position: relative;
	z-index: 2;
}

.loc-hero .page-banner-crumbs {
	color: #cfddf4;
}
.loc-hero .page-banner-crumbs a{
	color: #fff;
}
.loc-hero .page-banner-heading{
	color: #fff;
}
.loc-hero .page-banner-lead {
	color: #dce7f8;
	margin: 20px auto 0;
	line-height: 1.45;
}


/* --- Hero stats --- */
.loc-stats {
	margin-top: 28px;
	display: flex;
	gap: 18px;
	justify-content: center;
	flex-wrap: wrap;
}
.loc-stats .st {
	background: rgba(255, 255, 255, 0.13);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	padding: 21px 18px;
	text-align: center;
	min-width: 144px;
	line-height: 1;
}
.loc-stats .st b {
	display: block;
	color: var(--color-white);
	font-size: 31px;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 15px 0;
}
.loc-stats .st span {
	font-size: 15px;
	color: #cfddf4;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	font-weight: 700;
	line-height: 1;
}

/* --- Jump nav --- */
.loc-jump {
	background: var(--color-blue-tint);
	border-top: 1px solid #e5edf7;
	border-bottom: 1px solid #e5edf7;
	padding: 17px 0;
}
.loc-jump .csa-loc-wrap {
	display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.loc-jump .csa-loc-wrap > span {
	font-weight: 700;
  color: #75787B;
  font-size: 17px;
}
.loc-jump a {
padding: 12px 17px;
  border: 1px solid #d1def3;
  background: var(--color-white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-blue-deep);
  transition: 0.2s;
  text-decoration: none;
  line-height: 1.35;
}
.loc-jump a:hover {
	background: var(--color-blue-deep);
	border-color: var(--color-blue-deep);
	color: #fff;
}

/* --- State / County sections --- */
.loctions-section{
	padding: 55px 0;
}
.loctions-section .loc-sec {
	padding-bottom: 78px;
}
.loctions-section .loc-sec:last-child {
	padding-bottom: 0;
}
.state-head {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--color-blue-soft);
	border-bottom: 2px solid var(--color-green);
	padding-bottom: 8px;
	gap: 20px;
	line-height: 1;
}

.state-head .state-head-title {
	font-size: 38px;
	color: var(--color-blue-deep);
	margin: 0;
	line-height: 1.5;
	font-weight: 800;
}
.state-head .cnt {
	color: #5aa52f;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	padding: 10px 13px;
	border-radius: 50px;
	background-color: #eef7e6;
}
.county-head {
	margin: 27px 0 15px;
	color: var(--color-blue-deep);
	font-size: 21.7px;
	padding-left: 25px;
	line-height: 1.3;
	text-transform: uppercase;
	position: relative;
	font-weight: 800;
}
.county-head:first-child{
	margin-top: 0;
}
.county-head::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: var(--color-green);
	position: absolute;
	inset: 10px 0 0 6px;
}
.county-head a {
	color: inherit;
	text-decoration: none;
}
.county-head a:hover {
	color: var(--color-blue);
}

/* --- Office cards --- */
.loc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 22px;
}
.loc-grid:last-child {
	margin-bottom: 0;
}
.loc-card {
	background: var(--color-white);
	border: 1px solid #e6ecf5;
	border-radius: 16px;
	padding: 30px 33px;
	transition: 0.2s;
	position: relative;
}
.loc-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
	border-color: #dbe6f5;
}
.loc-card.hq {
	border: 2px solid var(--color-blue);
	/*background: linear-gradient(180deg, var(--color-white), #f0f6ff);*/
}
.loc-card .city {
	font-weight: 800;
	color: var(--color-blue-deep);
	margin-bottom: 13px;
	font-size: 23px;
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.25;
}
.hqtag {
	background: var(--color-blue);
	color: var(--color-white);
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 800;
}
.loc-card address {
	font-style: normal;
	color: #4a4f57;
	font-size: 18.5px;
	line-height: 1.45;
	margin-bottom: 20px;
}
.loc-card .acts {
	display: flex;
	gap: 12px;
	font-size: 17px;
	font-weight: 700;
	border-top: 1px solid #eef1f5;
	padding: 17px 0 0 0;
}
.loc-card .acts a {
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.loc-card .acts .dir {
	color: var(--color-blue);
}
.loc-card .acts .dir:hover {
	color: var(--color-green);
}
.loc-card .acts .cl {
	color: var(--color-gray-d);
}
.loc-card .acts .cl:hover {
	color: var(--color-blue);
}

.loc-card .acts svg{
	width: 18px; height: 18px;
}


.post-type-archive-office section.final-cta{
	background: #f3f7fd;
}
.post-type-archive-office .final-cta-intro{
	max-width: 864px;
}

/* --- Responsive --- */

@media (max-width: 1360px) {
.state-head .state-head-title {
	font-size: 36px;
}
.loc-stats .st b{
	font-size: 28px;
}
.loctions-section .loc-sec {
	padding-bottom: 60px;
}
.loc-card .acts{
	font-size: 16px;
}
}

@media (max-width: 1200px) {
	section.page-banner.loc-hero{
		min-height: auto;
	}
	.loctions-section {
		padding: 45px 0;
	}	
	.state-head .state-head-title {
		font-size: 34px;
	}
	.loc-card{
		padding: 30px;
	}
	.loc-jump a {
		padding: 9px 15px;
	}
	.county-head {
		font-size: 20px;
	}
	.county-head::before {
		inset: 8px 0 0 6px;
	}
	.loc-card .city{
		font-size: 20px;
	}
	.hqtag{
		font-size: 11px;
	}
	.loc-card address{
		font-size: 17px;
	}
}

@media (max-width: 1199px) {
	.loc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
}


@media (max-width: 920px) {
	
	.loc-card {
		padding: 25px 20px;
	}
	.loc-stats .st b {
		font-size: 26px;
	}
	.state-head .state-head-title {
		font-size: 32px;
	}
	.state-head .cnt{
		font-size: 14px;
	}
	.loctions-section .loc-sec {
		padding-bottom: 45px;
	}
}

@media (max-width: 767px) {
	.loc-grid {
		grid-template-columns: 1fr;
	}
	.loc-jump .csa-loc-wrap {
		gap: 15px 10px;
	}
}

@media (max-width: 640px) {
	.loc-stats .st {
		min-width: 46.5%;
		padding: 15px 14px;
	}
	.loc-stats .st b {
		font-size: 24px; margin: 0 0 10px 0;
	}
	.loc-stats .st span {
  		font-size: 14px;
	}
	.loc-jump .csa-loc-wrap > span,
	.loc-jump a {
		font-size: 16px;
	}
}

@media (max-width: 400px) {
	.loc-card .acts {
		flex-direction: column;
		gap: 6px;
	}
	.loc-stats .st {
		min-width: 30%;
	}
	.loc-stats .st b {
		font-size: 22px;
	}
}
