/**
 * Where We Work page — assets/css/wherewework.css   (marker: `ab-www-`)
 *
 * Loaded only on pages whose content contains an `ab-www-` marker class
 * (inc/enqueue.php → albasar_enqueue_section_css). Colours use theme.json tokens
 * where they map (ab-blue #0D72BA, ab-navy #053A66, action-500 #F59423 orange,
 * Jost/Fraunces); the many page-specific greys from the Figma frame
 * (node 1060:54044) are literal, matching the other page stylesheets.
 */

/* ---------------------------------------------------------------------------
 * Shared section scaffold
 * ------------------------------------------------------------------------- */
.ab-www-section {
	padding-top: 100px;
	padding-bottom: 100px;
	border-bottom: 1px solid #e9e9e9;
}

.ab-www-section__inner {
	max-width: 1200px;
	margin-inline: auto;
}

.ab-www-section__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 820px;
}

.ab-www-section__head--center {
	align-items: center;
	text-align: center;
	margin-inline: auto;
}

.ab-www-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue);
}

.ab-www-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 40px;
	line-height: 1.15;
	text-transform: capitalize;
	color: var(--wp--preset--color--ab-navy);
}

/* Permanent Presence heading is Jost SemiBold, not Fraunces. */
.ab-www-title--sans {
	font-family: var(--wp--preset--font-family--sans);
}

.ab-www-lede {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	color: #555;
}

.ab-www-lede--slate {
	line-height: 30px;
	color: #334e68;
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */
.ab-www-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.0125em;
	text-decoration: none;
}

.ab-www-btn--primary {
	background: var(--wp--custom--action--500);
	color: #fff;
}

.ab-www-btn--primary:hover {
	background: var(--wp--preset--color--ab-orange-600);
	color: #fff;
}

.ab-www-btn--outline {
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
}

.ab-www-btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 1. Hero
 * ------------------------------------------------------------------------- */
.ab-www-hero.wp-block-cover {
	padding: 90px 24px;
	align-items: flex-start;
	justify-content: center;
}

.ab-www-hero .wp-block-cover__inner-container {
	width: 100%;
}

.ab-www-hero__inner {
	max-width: 1200px;
	margin-inline: auto;
	width: 100%;
}

.ab-www-hero__card {
	max-width: 500px;
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.ab-www-hero__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 1.4px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue);
}

.ab-www-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700;
	font-size: 56px;
	line-height: 1.05;
	text-transform: capitalize;
	color: var(--wp--preset--color--ab-navy);
}

.ab-www-hero__body {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.45;
	color: #2c2c33;
}

.ab-www-hero__actions {
	margin-top: 0;
}

.ab-www-hero__actions .ab-www-btn--primary {
	font-weight: 500;
	text-transform: capitalize;
}

/* ---------------------------------------------------------------------------
 * 2. Footprint at a glance — stat strip
 * ------------------------------------------------------------------------- */
.ab-www-footprint .ab-www-section__inner {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.ab-www-stats {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.ab-www-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 50px 8px;
	border: 1px solid #d4d4d8;
	text-align: center;
}

.ab-www-stat__num {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	font-size: 70px;
	line-height: 1;
	color: #52525b;
}

.ab-www-stat__suffix {
	color: var(--wp--custom--action--500);
}

.ab-www-stat__label {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.3;
	text-transform: capitalize;
	color: #52525b;
}

/* ---------------------------------------------------------------------------
 * 3. Our Global Reach — map + legend
 * ------------------------------------------------------------------------- */
.ab-www-reachmap {
	background: #f8fafc;
}

.ab-www-reachmap .ab-www-section__inner {
	display: flex;
	flex-direction: column;
	gap: 36px;
	align-items: center;
}

.ab-www-reachmap__box {
	width: 100%;
	min-height: 720px;
	border: 1px solid #d4d4d8;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	background: #fff;
}

/* The reach map reuses the albasar/map-points block (artwork + lat/long pins).
   Its markup carries .ab-home-proof__* classes; the essentials are folded in here,
   scoped to the box, so this page needs no home stylesheet. The box supplies the
   chrome, so the block's own wrapper border/padding is neutralised. */
.ab-www-reachmap__box .ab-home-proof__mapwrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.ab-www-reachmap__box .ab-home-proof__map {
	position: relative;
	width: 100%;
	min-height: 718px;
	line-height: 0;
}

.ab-www-reachmap__box .ab-home-proof__mapimg {
	width: 100%;
	height: auto;
	display: block;
}

.ab-www-reachmap__box .ab-home-proof__marker {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 15px;
	height: 15px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: transform 0.12s ease;
}

.ab-www-reachmap__box .ab-home-proof__marker--reached {
	background: var(--wp--custom--action--500);
}

.ab-www-reachmap__box .ab-home-proof__marker--hospital {
	background: #5ba3d6;
}

.ab-www-reachmap__box .ab-home-proof__marker:hover,
.ab-www-reachmap__box .ab-home-proof__marker:focus-visible {
	transform: translate(-50%, -50%) scale(1.35);
	outline: none;
	z-index: 5;
}

.ab-www-reachmap__box .ab-home-proof__tip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 7px 11px;
	border-radius: 6px;
	background: var(--wp--preset--color--ab-navy);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
}

.ab-www-reachmap__box .ab-home-proof__marker:hover .ab-home-proof__tip,
.ab-www-reachmap__box .ab-home-proof__marker:focus-visible .ab-home-proof__tip {
	opacity: 1;
}

.ab-www-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	padding: 20px 30px;
}

.ab-www-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 15px;
	text-transform: capitalize;
	color: #2c2c33;
}

.ab-www-legend__key {
	width: 20px;
	height: 20px;
	flex: none;
	display: inline-block;
}

.ab-www-legend__key--reached {
	background: var(--wp--custom--action--500);
}

.ab-www-legend__key--hospital {
	background: #5ba3d6;
}

/* ---------------------------------------------------------------------------
 * 4. Permanent Presence — country cards (albasar/www-countries)
 * ------------------------------------------------------------------------- */
.ab-www-permanent .ab-www-section__inner {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.ab-www-permanent .ab-www-eyebrow {
	font-size: 13px;
	letter-spacing: 0.108em;
}

.ab-www-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.ab-www-card {
	display: flex;
	background: #fff;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	overflow: hidden;
}

.ab-www-card__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 30px 20px;
	width: 100%;
}

.ab-www-card__flagrow {
	display: flex;
	align-items: center;
	gap: 15px;
}

.ab-flag {
	display: block;
	width: 35px;
	height: 25px;
	object-fit: cover;
	border-radius: 2px;
	flex: none;
}

.ab-www-card__name {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 22px;
	line-height: 30px;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: #2c2c33;
}

.ab-www-card__photo {
	width: 100%;
	height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 4px;
}

.ab-www-card__photo--empty {
	background-color: #eef1f4;
}

.ab-www-card__stats {
	display: flex;
	align-items: stretch;
	gap: 10px;
	border-top: 1px solid #f5f2ed;
	border-bottom: 1px solid #f5f2ed;
}

.ab-www-card__stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 0;
	text-align: center;
}

.ab-www-card__num {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 25px;
	line-height: 1.1;
	color: #52525b;
}

.ab-www-card__suffix {
	color: var(--wp--custom--action--500);
}

.ab-www-card__label {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #a1a1aa;
}

.ab-www-card__divider {
	width: 1px;
	align-self: stretch;
	background: #f5f2ed;
	flex: none;
}

.ab-www-card__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ab-www-card__blurb {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	text-align: justify;
	color: #666;
}

.ab-www-card__link {
	display: inline-flex;
	align-self: flex-end;
	align-items: center;
	gap: 10px;
	padding-top: 15px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 14px;
	text-transform: capitalize;
	text-decoration: none;
	color: var(--wp--preset--color--ab-blue);
}

.ab-www-card__link:hover {
	text-decoration: underline;
}

.ab-www-card__arrow {
	flex: none;
}

/* ---------------------------------------------------------------------------
 * 5. From the Field
 * ------------------------------------------------------------------------- */
.ab-www-field__grid {
	display: flex;
	gap: 40px;
	align-items: stretch;
}

.ab-www-field__photo.wp-block-cover {
	flex: 1 1 0;
	min-height: 460px;
	border-radius: 8px;
	overflow: hidden;
}

.ab-www-field__col {
	flex: 0 0 600px;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
}

.ab-www-field__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ab-www-field__body {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 18px;
	line-height: 30px;
	color: #334e68;
}

.ab-www-field__quote {
	padding: 20px 30px;
	border-left: 4px solid var(--wp--custom--action--500);
}

.ab-www-field__quotetext {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-style: italic;
	font-size: 24px;
	line-height: 1.35;
	color: #2c2c33;
}

.ab-www-field__caption {
	margin: 0;
	padding-top: 30px;
	border-top: 1px solid #d4d4d8;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	text-transform: capitalize;
	color: #a1a1aa;
}

/* ---------------------------------------------------------------------------
 * 6. Beyond Hospitals — country chips (albasar/www-reach)
 * ------------------------------------------------------------------------- */
.ab-www-beyond .ab-www-section__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}

.ab-www-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px 20px;
	width: 100%;
	padding: 15px 0;
}

.ab-www-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	border: 1px solid #d4d4d8;
}

.ab-www-chip__flag {
	width: 35px;
	height: 25px;
	object-fit: cover;
	border-radius: 2px;
	flex: none;
}

.ab-www-chip__divider {
	width: 1px;
	align-self: stretch;
	background: #d4d4d8;
	flex: none;
}

.ab-www-chip__name {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	color: #52525b;
}

/* ---------------------------------------------------------------------------
 * 7. Why Here — three cards
 * ------------------------------------------------------------------------- */
.ab-www-why {
	background: #f5f2ed;
}

.ab-www-why .ab-www-section__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}

.ab-www-why__head {
	max-width: 671px;
}

.ab-www-why-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	width: 100%;
}

.ab-www-why-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: #fff;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	padding: 35px 25px;
}

.ab-www-why-card__kicker {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 16px;
	line-height: 40px;
	color: var(--wp--custom--action--500);
}

.ab-www-why-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	text-transform: capitalize;
	color: #2c2c33;
}

.ab-www-why-card__body {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: #52525b;
}

/* ---------------------------------------------------------------------------
 * 8. Trust + CTA — blue gradient band
 * ------------------------------------------------------------------------- */
.ab-www-cta {
	padding-top: 100px;
	padding-bottom: 100px;
	background: linear-gradient(-17deg, #0d72ba 0%, #0a5a95 100%);
}

.ab-www-cta__inner {
	max-width: 1200px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 30px;
}

.ab-www-cta__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.ab-www-cta__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 40px;
	line-height: 1.15;
	text-transform: capitalize;
	color: #fff;
}

.ab-www-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.ab-www-cta__trust {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ab-www-cards,
	.ab-www-why-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.ab-www-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.ab-www-field__grid {
		flex-direction: column;
	}

	.ab-www-field__col {
		flex-basis: auto;
		max-width: none;
	}
}

@media (max-width: 782px) {
	.ab-www-section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.ab-www-title,
	.ab-www-cta__title {
		font-size: 32px;
	}

	.ab-www-hero__title {
		font-size: 40px;
	}

	.ab-www-stat__num {
		font-size: 52px;
	}
}

@media (max-width: 600px) {
	.ab-www-cards,
	.ab-www-why-cards {
		grid-template-columns: 1fr;
	}

	.ab-www-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.ab-www-hero__card {
		max-width: none;
		padding: 28px;
	}

	.ab-www-hero__title {
		font-size: 34px;
	}

	.ab-www-chips {
		gap: 12px;
	}
}
