/* ============================================================
   Locations — Main (v4)  ·  page-locations-main-v4.css
   ------------------------------------------------------------
   Homepage-inspired directory of office locations. The page
   wrapper carries `.mdl-home-v4 .mdl-locs-v4`, so the home design
   tokens (--mdl-prussian, --mdl-gold, fonts), the `.mdl-h2`,
   `.mdl-section-head`, `.mdl-btn` and `.mdl-cta` components are all
   inherited from home-v4.css. This file styles the hero, the intro
   band and the location-card grid.
   ============================================================ */

/* ---------- Hero ---------- */
.mdl-locs-v4 .mdl-locs-hero {
	background-color: var(--mdl-prussian); /* fallback / shows when no banner image is set */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	min-height: 600px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	text-align: center;
	padding: 120px 24px 80px;
}
.mdl-locs-v4 .mdl-locs-hero__inner {
	max-width: 1038px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.mdl-locs-v4 .mdl-locs-hero__title {
	font-family: var(--mdl-font);
	font-weight: 700;
	font-size: 46px;
	line-height: 56px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
}
.mdl-locs-v4 .mdl-locs-hero__sub {
	font-family: var(--mdl-font);
	font-weight: 600;
	font-size: 21px;
	line-height: 31px;
	color: #FFFFFF;
	margin: 0;
	max-width: 820px;
}

/* ---------- Intro (page content) ---------- */
.mdl-locs-v4 .mdl-locs-intro {
	background: var(--mdl-light-blue);
	padding: 48px 0;
}
.mdl-locs-v4 .mdl-locs-intro__wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
	color: var(--mdl-paynes);
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
}
.mdl-locs-v4 .mdl-locs-intro__wrap p { margin: 0 0 16px; }
.mdl-locs-v4 .mdl-locs-intro__wrap p:last-child { margin-bottom: 0; }

/* ---------- Grid section ---------- */
.mdl-locs-v4 .mdl-locs {
	background: #fff;
	padding: var(--mdl-section-y) 0;
}
.mdl-locs-v4 .mdl-locs__wrap {
	max-width: var(--mdl-container);
	margin: 0 auto;
	padding: 0 var(--mdl-gutter);
}
.mdl-locs-v4 .mdl-section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 48px;
}

.mdl-locs-v4 .mdl-locs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* ---------- Card ---------- */
.mdl-locs-v4 .mdl-loc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--mdl-rule);
	border-radius: 4px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.mdl-locs-v4 .mdl-loc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

/* Each card opens with an embedded Google map of that office (no photo). */
.mdl-locs-v4 .mdl-loc-card__map {
	position: relative;
	width: 100%;
	height: 220px;
	background: var(--mdl-bg-light);
	overflow: hidden;
	border-bottom: 1px solid var(--mdl-rule);
}
.mdl-locs-v4 .mdl-loc-card__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.mdl-locs-v4 .mdl-loc-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	flex: 1 1 auto;
}
.mdl-locs-v4 .mdl-loc-card__title {
	font-family: var(--mdl-font);
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	color: var(--mdl-prussian);
	margin: 0;
}
.mdl-locs-v4 .mdl-loc-card__title a {
	color: inherit;
	text-decoration: none;
}
.mdl-locs-v4 .mdl-loc-card__title a:hover { color: var(--mdl-gold); }

.mdl-locs-v4 .mdl-loc-card__address,
.mdl-locs-v4 .mdl-loc-card__phone {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--mdl-slate);
}
.mdl-locs-v4 .mdl-loc-card__phone {
	align-items: center;
	color: var(--mdl-prussian);
	font-weight: 600;
	text-decoration: none;
}
.mdl-locs-v4 .mdl-loc-card__phone:hover { color: var(--mdl-gold); }
.mdl-locs-v4 .mdl-loc-card__pin,
.mdl-locs-v4 .mdl-loc-card__phone svg {
	flex: 0 0 auto;
	color: var(--mdl-gold);
	margin-top: 2px;
}
.mdl-locs-v4 .mdl-loc-card__phone svg { margin-top: 0; }

.mdl-locs-v4 .mdl-loc-card__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--mdl-slate);
}

.mdl-locs-v4 .mdl-loc-card__actions {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.mdl-locs-v4 .mdl-loc-card__dir {
	color: var(--mdl-gold-dark);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.mdl-locs-v4 .mdl-loc-card__dir:hover { text-decoration: underline; }

.mdl-locs-v4 .mdl-locs__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--mdl-slate);
	font-size: 18px;
	padding: 24px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.mdl-locs-v4 .mdl-locs__grid { grid-template-columns: repeat(2, 1fr); }
	.mdl-locs-v4 .mdl-locs-hero { min-height: 480px; padding: 96px 20px 64px; }
	.mdl-locs-v4 .mdl-locs-hero__title { font-size: 36px; line-height: 44px; }
	.mdl-locs-v4 .mdl-locs-hero__sub { font-size: 18px; line-height: 28px; }
}

@media (max-width: 600px) {
	.mdl-locs-v4 .mdl-locs__grid { grid-template-columns: 1fr; }
	.mdl-locs-v4 .mdl-locs { padding: 56px 0; }
	.mdl-locs-v4 .mdl-locs-hero { min-height: 380px; padding: 72px 16px 48px; }
	.mdl-locs-v4 .mdl-locs-hero__title { font-size: 28px; line-height: 36px; }
	.mdl-locs-v4 .mdl-locs-hero__sub { font-size: 16px; line-height: 26px; }
	.mdl-locs-v4 .mdl-loc-card__map { height: 190px; }
}
