/* ==========================================================================
   COUNTRY (SINGLE-LOCATION) PAGE - Plan 06 Phase 5
   --------------------------------------------------------------------------
   The page renders inside `.em3-svc .em3-locp`, so it INHERITS the whole v2 light
   layer from services.css: the --sv-* tokens, band classes, eyebrow, accent, section
   head, prose, reveal, focus rings, reset.css guards and the motion diet.

   This file holds ONLY what is unique to a country page. If you find yourself
   re-declaring a --sv-* value or a band here, stop: it belongs in services.css.

   THE ASSET RULE (spec 9c): services.css AND services.js must be enqueued on this
   page. Wearing the `.em3-svc` class is not enough - that mistake cost Plan 04 every
   token, its hero padding and all of its reveals.

   Heading sizes multiply through var(--em3-hN-scale) so the client's Theme Control
   heading slider keeps working here.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.em3-svc.em3-locp .em3-locp__hero { padding-bottom: 0; }

.em3-svc.em3-locp .em3-locp__herobody { margin-top: 20px; }

.em3-svc.em3-locp .em3-locp__heroimg {
	margin: 64px 0 0;
	border-radius: var(--em3-radius-card, 4px);
	overflow: hidden;
	line-height: 0;
}
/* 2 classes so it beats Elementor's `.elementor img { height:auto }` (0,1,1) */
.em3-svc.em3-locp .em3-locp__heroimg img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 8;
	object-fit: cover;
}

/* ---- Industries ---------------------------------------------------------- */
.em3-svc.em3-locp .em3-locp__indgrid {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.em3-svc.em3-locp .em3-locp__ind {
	display: block;
	padding: 18px 20px;
	background: var(--sv-white, #fff);
	border: 1px solid var(--sv-line, rgba(11, 16, 56, 0.12));
	border-radius: var(--em3-radius-card, 4px);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--sv-head, #0a1858);
	text-decoration: none;
	transition: border-color .18s, transform .18s var(--sv-ease, cubic-bezier(.2,.7,.2,1));
}
/* (0,3,0) so the reset.css `a:hover { color:#333366 }` (0,1,1) cannot win */
.em3-svc.em3-locp .em3-locp__ind:hover,
.em3-svc.em3-locp .em3-locp__ind:focus {
	border-color: var(--em3-accent, #2e5dff);
	color: var(--em3-accent, #2e5dff);
	transform: translateY(-2px);
}
.em3-svc.em3-locp .em3-locp__ind:focus-visible {
	outline: 3px solid var(--em3-accent, #2e5dff);
	outline-offset: 2px;
}
.em3-svc.em3-locp .em3-locp__ind.is-plain {
	color: var(--sv-ink-dim, #45506f);
	font-weight: 500;
}

/* ---- Services ------------------------------------------------------------ */
.em3-svc.em3-locp .em3-locp__svcgrid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.em3-svc.em3-locp .em3-locp__svc {
	padding: 28px 26px;
	background: var(--sv-white, #fff);
	border: 1px solid var(--sv-line, rgba(11, 16, 56, 0.12));
	border-radius: var(--em3-radius-card, 4px);
}
.em3-svc.em3-locp .em3-locp__svc h3 {
	margin: 0 0 10px;
	font-size: calc(clamp(17px, 1.3vw, 19px) * var(--em3-h3-scale, 1));
	line-height: 1.3;
	color: var(--sv-head, #0a1858);
}
.em3-svc.em3-locp .em3-locp__svc h3 a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(46, 93, 255, 0.32);
}
.em3-svc.em3-locp .em3-locp__svc h3 a:hover,
.em3-svc.em3-locp .em3-locp__svc h3 a:focus {
	color: var(--em3-accent, #2e5dff);
	border-bottom-color: var(--em3-accent, #2e5dff);
}
.em3-svc.em3-locp .em3-locp__svc h3 a:focus-visible {
	outline: 3px solid var(--em3-accent, #2e5dff);
	outline-offset: 3px;
}
/* the `p` type selector is required: `.on-light p` is (0,2,1) and beats a
   single-class rule, which would silently revert this to full body ink */
.em3-svc.em3-locp .em3-locp__svc p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sv-ink-dim, #45506f);
}
.em3-svc.em3-locp p.em3-locp__svccta { margin: 34px 0 0; }

/* ---- Local presence ------------------------------------------------------ */
.em3-svc.em3-locp .em3-locp__presrow {
	margin-top: 40px;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
/* Tier B has no office aside, so the prose should take the full width rather than
   leaving a hole where the office card would have been. */
.em3-svc.em3-locp .em3-locp__presrow:not(:has(.em3-locp__office)) { grid-template-columns: minmax(0, 1fr); }

.em3-svc.em3-locp .em3-locp__office {
	padding: 26px 24px;
	background: var(--sv-soft, #f5f7fc);
	border: 1px solid var(--sv-line, rgba(11, 16, 56, 0.12));
	border-left: 3px solid var(--em3-accent, #2e5dff);
	border-radius: var(--em3-radius-card, 4px);
}
.em3-svc.em3-locp .em3-locp__officecity {
	margin: 0 0 12px;
	font-size: calc(clamp(18px, 1.4vw, 21px) * var(--em3-h3-scale, 1));
	color: var(--sv-head, #0a1858);
}
.em3-svc.em3-locp p.em3-locp__officerow {
	margin: 0 0 8px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sv-ink-dim, #45506f);
}
.em3-svc.em3-locp p.em3-locp__officerow strong {
	display: block;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sv-ink-mute, #69718a);
	margin-bottom: 2px;
}
.em3-svc.em3-locp .em3-locp__office a { color: var(--sv-eyebrow, #0746c7); }
.em3-svc.em3-locp .em3-locp__office a:hover,
.em3-svc.em3-locp .em3-locp__office a:focus { color: var(--em3-accent, #2e5dff); }

/* ---- Why clients work with EM3 (the one dark band) ----------------------- */
.em3-svc.em3-locp .em3-locp__clientgrid {
	margin-top: 44px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.em3-svc.em3-locp .em3-locp__client {
	padding: 28px 26px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--em3-radius-card, 4px);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}
.em3-svc.em3-locp .em3-locp__client h3 {
	margin: 0 0 10px;
	font-size: calc(clamp(17px, 1.3vw, 19px) * var(--em3-h3-scale, 1));
	color: #fff;
}
.em3-svc.em3-locp .em3-locp__client p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--em3-ink-muted);
}

/* ---- Closing CTA --------------------------------------------------------- */
.em3-svc.em3-locp .em3-locp__ctainner {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}
.em3-svc.em3-locp .em3-locp__ctainner h2 {
	font-size: calc(clamp(28px, 3vw, 40px) * var(--em3-h2-scale, 1));
	line-height: 1.12;
	color: var(--sv-head, #0a1858);
}
.em3-svc.em3-locp .em3-locp__ctainner p {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--sv-ink-dim, #45506f);
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
	.em3-svc.em3-locp .em3-locp__indgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.em3-svc.em3-locp .em3-locp__svcgrid,
	.em3-svc.em3-locp .em3-locp__clientgrid { grid-template-columns: minmax(0, 1fr); }
	.em3-svc.em3-locp .em3-locp__presrow { grid-template-columns: minmax(0, 1fr); }
	.em3-svc.em3-locp .em3-locp__heroimg { margin-top: 44px; }
	.em3-svc.em3-locp .em3-locp__heroimg img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.em3-svc.em3-locp .em3-locp__indgrid { grid-template-columns: minmax(0, 1fr); }
	.em3-svc.em3-locp .em3-locp__heroimg img { aspect-ratio: 4 / 3; }
}

/* ---- Motion diet --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.em3-svc.em3-locp .em3-locp__ind { transition: none; }
	.em3-svc.em3-locp .em3-locp__ind:hover { transform: none; }
}

/* the client's closing paragraph under the industry grid */
.em3-svc.em3-locp .em3-locp__indoutro { margin-top: 34px; max-width: 900px; }
