/* =========================================================================
   POINT BLANK — page components
   Location map block, Directions template, ISO certificate links and
   footer extras. Layers on main.css; colours come from its --pb-* tokens.
   Selectors are prefixed with .pb-theme where they must beat the base
   `body.pb-theme a` / light-canvas link rules.
   ========================================================================= */

/* ---- ISO certificate links ---- */

/* Top bar note (whole note is the link). */
.pb-theme a.pb-topbar__note { color: var(--pb-muted); }
.pb-theme a.pb-topbar__note span {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}
.pb-theme a.pb-topbar__note:hover,
.pb-theme a.pb-topbar__note:focus-visible { color: var(--pb-text); }
.pb-theme a.pb-topbar__note:hover span,
.pb-theme a.pb-topbar__note:focus-visible span { text-decoration-color: currentColor; }

/* Phone link joins the utility links: keep each on one line on phones
   (Helpdesk is also in the mobile drawer, so it gives way first). */
.pb-topbar__links a { white-space: nowrap; }
@media (max-width: 480px) {
	.pb-topbar__links { gap: 16px; }
	.pb-topbar__links .pb-topbar__helpdesk { display: none; }
}

/* Hero: kicker pill + "View certificate" link. */
.pb-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 22px; }
.pb-hero__badges .pb-hero__kicker { margin: 0; }
.pb-theme .pb-hero__cert {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 2px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em;
	color: var(--pb-text-soft);
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.pb-theme .pb-hero__cert:hover { color: var(--pb-red-hot); }
.pb-hero__cert .pb-icon { transition: transform 0.15s ease; }
.pb-hero__cert:hover .pb-icon { transform: translateX(3px); }

/* Trust bar: linked item keeps the item layout, adds a hover affordance. */
.pb-theme .pb-trust__link {
	display: flex; gap: 13px; align-items: center;
	color: inherit;
	margin: -8px -10px; padding: 8px 10px;
	border-radius: var(--pb-radius-sm);
	transition: background 0.15s ease;
}
.pb-theme .pb-trust__link:hover { color: inherit; background: var(--pb-surface-2); }
.pb-trust__tail { white-space: nowrap; }
.pb-trust__link strong .pb-icon { display: inline-block; vertical-align: -2px; margin-left: 2px; transition: transform 0.15s ease; }
.pb-theme .pb-trust__link:hover strong,
.pb-theme .pb-trust__link:focus-visible strong { color: var(--pb-red-hot); text-decoration: underline; text-underline-offset: 3px; }
.pb-trust__link:hover strong .pb-icon { transform: translateX(3px); }

/* ---- Location map block ([pb_location_map] + Directions template) ---- */

.pb-locmap {
	/* Dark defaults (site chrome / Directions template). */
	--pb-lm-card: var(--pb-surface);
	--pb-lm-line: var(--pb-line);
	--pb-lm-text: var(--pb-text);
	--pb-lm-soft: var(--pb-text-soft);
	--pb-lm-accent: var(--pb-red-hot);
	--pb-lm-link: var(--pb-text);
	--pb-lm-link-hover: var(--pb-red-hot);
	--pb-lm-note-bg: var(--pb-surface-2);
	--pb-lm-map-bg: var(--pb-surface-2);
	--pb-lm-focus: var(--pb-red-hot);

	container-type: inline-size;
	margin: clamp(24px, 4vw, 40px) 0;
	color: var(--pb-lm-text);
}

/* Light: explicit modifier, or automatically inside the white page card. */
.pb-locmap--light,
.pb-light-canvas .pb-content .pb-locmap:not(.pb-locmap--dark) {
	--pb-lm-card: var(--pb-light-bg);
	--pb-lm-line: var(--pb-light-line);
	--pb-lm-text: var(--pb-light-text);
	--pb-lm-soft: var(--pb-light-text);
	--pb-lm-accent: var(--pb-red-dim);
	--pb-lm-link: var(--pb-red-dim);
	--pb-lm-link-hover: var(--pb-red);
	--pb-lm-note-bg: var(--pb-light-surface);
	--pb-lm-map-bg: var(--pb-light-bg);
	--pb-lm-focus: var(--pb-red-dim);
}

.pb-locmap__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.pb-locmap__card {
	display: flex; flex-direction: column;
	background: var(--pb-lm-card);
	border: 1px solid var(--pb-lm-line);
	border-radius: var(--pb-radius);
	padding: clamp(20px, 3vw, 28px);
}

.pb-theme .pb-locmap .pb-locmap__kicker {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 8px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--pb-lm-accent);
}
.pb-theme .pb-locmap .pb-locmap__title {
	margin: 0 0 18px;
	font-size: clamp(22px, 2.6vw, 28px);
	color: var(--pb-lm-text);
}

.pb-locmap__details { font-style: normal; margin: 0 0 20px; }
.pb-theme .pb-locmap .pb-locmap__details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pb-theme .pb-locmap .pb-locmap__details li {
	display: flex; gap: 12px; align-items: flex-start;
	margin: 0;
	font-size: 15px; line-height: 1.55;
	color: var(--pb-lm-soft);
}
.pb-locmap__details li > span { min-width: 0; overflow-wrap: anywhere; }
.pb-locmap__details .pb-icon { flex-shrink: 0; margin-top: 2px; color: var(--pb-lm-accent); }
.pb-theme .pb-locmap .pb-locmap__details a {
	color: var(--pb-lm-link);
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.pb-theme .pb-locmap .pb-locmap__details a:hover { color: var(--pb-lm-link-hover); }

.pb-theme .pb-locmap .pb-locmap__note {
	margin: 0 0 20px;
	padding: 12px 14px;
	font-size: 14px; line-height: 1.55;
	color: var(--pb-lm-soft);
	background: var(--pb-lm-note-bg);
	border-left: 3px solid var(--pb-lm-accent);
	border-radius: 0 var(--pb-radius-sm) var(--pb-radius-sm) 0;
}
.pb-locmap__note strong { color: var(--pb-lm-text); }

.pb-locmap__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.pb-locmap__actions .pb-btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }

/* Outline button on the light card: the base style is white-on-dark. */
.pb-theme .pb-locmap--light .pb-btn--outline,
.pb-light-canvas .pb-content .pb-locmap:not(.pb-locmap--dark) .pb-btn--outline {
	color: var(--pb-light-text) !important;
	border-color: var(--pb-light-muted);
	background: var(--pb-light-surface);
}
.pb-theme .pb-locmap--light .pb-btn--outline:hover,
.pb-light-canvas .pb-content .pb-locmap:not(.pb-locmap--dark) .pb-btn--outline:hover {
	color: var(--pb-red-dim) !important;
	border-color: var(--pb-red-dim);
}

.pb-theme .pb-locmap a:focus-visible { outline: 2px solid var(--pb-lm-focus); outline-offset: 3px; border-radius: 3px; }
.pb-theme .pb-locmap .pb-btn:focus-visible { border-radius: var(--pb-radius-sm); }

/* Explicit width: a grid item with an aspect-ratio isn't stretched — its
   width came from min-height × 16/10 (512px) and the map overflowed phones. */
.pb-locmap__map {
	position: relative; overflow: hidden;
	width: 100%; min-width: 0;
	aspect-ratio: 16 / 10; min-height: 320px;
	background: var(--pb-lm-map-bg);
	border: 1px solid var(--pb-lm-line);
	border-radius: var(--pb-radius);
}
.pb-locmap__map iframe { position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%; border: 0; display: block; }

/* Side-by-side once the block itself (not the viewport) has room. */
@container (min-width: 760px) {
	.pb-locmap__grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; }
	.pb-locmap__map { aspect-ratio: auto; min-height: 440px; }
}

/* ---- Directions template ---- */

.pb-pagehero {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, var(--pb-surface) 0%, var(--pb-bg) 100%);
	background:
		radial-gradient(900px 420px at 85% -30%, color-mix(in srgb, var(--pb-red) 16%, transparent), transparent 60%),
		linear-gradient(180deg, var(--pb-surface) 0%, var(--pb-bg) 100%);
	border-bottom: 1px solid var(--pb-line-soft);
}
.pb-pagehero__inner { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); }
.pb-pagehero__kicker {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 12px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--pb-red-hot);
}
.pb-theme .pb-pagehero__title { margin: 0 0 14px; font-size: clamp(36px, 5.5vw, 60px); color: var(--pb-text); }
.pb-pagehero__title::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 14px; background: var(--pb-red); border-radius: 2px; }
.pb-pagehero__sub { margin: 0; max-width: 60ch; font-size: clamp(15.5px, 1.5vw, 18px); color: var(--pb-text-soft); }

.pb-directions__map { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.pb-directions__map .pb-locmap { margin: 0; }
.pb-directions__content { max-width: 860px; padding-bottom: clamp(48px, 7vw, 80px); color: var(--pb-text-soft); }
.pb-theme .pb-directions__content a { color: var(--pb-red-hot); text-decoration: underline; text-underline-offset: 3px; }
.pb-theme .pb-directions__content a:hover { color: var(--pb-text); }

/* ---- Footer ---- */

/* Brand column: ISO link, certificate link, social row. */
.pb-theme .pb-footer__iso {
	color: var(--pb-text-soft);
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.pb-theme .pb-footer__iso:hover { color: var(--pb-text); }
.pb-theme .pb-footer__cert {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 0;
	font-size: 13.5px; font-weight: 600;
	color: var(--pb-text-soft);
}
.pb-theme .pb-footer__cert:hover { color: var(--pb-text); }
.pb-footer__cert .pb-icon { color: var(--pb-red-hot); transition: transform 0.15s ease; }
.pb-footer__cert:hover .pb-icon:last-child { transform: translateX(3px); }

.pb-theme .pb-footer__col .pb-social { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pb-theme .pb-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--pb-line);
	background: var(--pb-surface);
	color: var(--pb-text-soft);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pb-theme .pb-social__link:hover { background: var(--pb-red); border-color: var(--pb-red); color: var(--pb-text); }
.pb-theme .pb-social__link:focus-visible { outline: 2px solid var(--pb-red-hot); outline-offset: 3px; }

/* Contact column: icon list. */
.pb-theme .pb-footer__col .pb-footer__contact { gap: 12px; }
.pb-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.pb-footer__contact li > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.pb-footer__contact .pb-icon { flex-shrink: 0; margin-top: 3px; color: var(--pb-red-hot); }
.pb-theme .pb-footer__more {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 13.5px; font-weight: 600;
	color: var(--pb-text-soft);
}
.pb-theme .pb-footer__more:hover { color: var(--pb-red-hot); }
.pb-footer__more .pb-icon { margin-top: 0; color: currentColor; transition: transform 0.15s ease; }
.pb-footer__more:hover .pb-icon { transform: translateX(3px); }

/* Readability: registration line + legal bar on tokens (≥ 4.5:1). */
.pb-footer__reg { font-size: 13px; color: var(--pb-muted); }
.pb-footer__legal p { color: var(--pb-muted); }
.pb-footer__legal-menu { flex-wrap: wrap; gap: 6px 20px; }
.pb-theme .pb-footer__legal-menu a { display: inline-block; padding: 4px 0; color: var(--pb-muted); }
.pb-theme .pb-footer__legal-menu a:hover { color: var(--pb-text); }
@media (max-width: 860px) {
	.pb-theme .pb-footer__legal-menu a { padding: 10px 0; } /* ≥ 40px tap rows on touch layouts */
}

.pb-theme .pb-footer a:focus-visible { outline: 2px solid var(--pb-red-hot); outline-offset: 3px; }

@media (max-width: 560px) {
	.pb-footer__legal-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.pb-hero__cert .pb-icon,
	.pb-trust__link strong .pb-icon,
	.pb-footer__cert .pb-icon,
	.pb-footer__more .pb-icon { transition: none; transform: none !important; }
}
