/* ==========================================================================
   Delfin – Offices (Nov 2026)
   1. Office badges under each person (Our People page: team + advisors)
   2. "offices" Page Builder row: dotted world map, pins, office cards (Contact)
   Values taken from Figma: Delfin › "Our People – office flags" / "Contact – Option A".
   ========================================================================== */

/* 1. Office badges ------------------------------------------------------ */
.dpo-locations {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 20px;
	list-style: none;
	margin: 8px 0 20px;
	padding: 0;
}
.dpo-location {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #4a5368;
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
}
.dpo-flag {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-sizing: border-box;
	filter: drop-shadow(0 1.5px 2px rgba(43, 51, 69, 0.28));
}
.dpo-flag--lg {
	width: 30px;
	height: 30px;
}
/* keep the credentials line's height when empty so buttons line up across a row */
.name-profile .qualifications {
	min-height: 12px;
}
/* advisors have no button below the badges */
.advisorsblock .dpo-locations { margin-bottom: 0; }
/* team profile hero: under the job title, above LinkedIn, on the dark banner */
.tt-title .dpo-locations {
	justify-content: flex-start;
	gap: 10px 26px;
	margin: 0 0 22px;
}
.tt-title .dpo-location {
	gap: 10px;
	color: #fff;
	font-size: 12px;
	line-height: 14px;
	letter-spacing: 1.44px;
}
.tt-title .dpo-flag {
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* 2. Offices band ------------------------------------------------------- */
#offices-band {
	background: #2c3345;
	padding: 95px 0 110px;
	overflow: hidden;
}
#offices-band .offices-inner {
	max-width: 1680px;
	margin: 0 auto;
	padding: 0 40px;
}
#offices-band .offices-eyebrow {
	margin: 0;
	color: #dfc18d;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 1.56px;
	text-align: center;
	text-transform: uppercase;
}
#offices-band .offices-title {
	margin-top: 20px;
	text-align: center;
}
#offices-band .offices-title,
#offices-band .offices-title h1,
#offices-band .offices-title h2,
#offices-band .offices-title p {
	color: #fff;
	font-family: "Merriweather", serif;
	font-size: 57px;
	font-weight: 300;
	line-height: 68px;
	margin: 0;
}
#offices-band .offices-title em,
#offices-band .offices-title i {
	color: #dfc18d;
	font-style: italic;
	font-weight: 300;
}

/* map + pins */
#offices-band .offices-map {
	position: relative;
	max-width: 1600px;
	margin: 46px auto 0;
}
#offices-band .offices-map-img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
}
.office-pin {
	position: absolute;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px; /* pin_x / pin_y = centre of the dot */
	z-index: 2;
}
.office-pin-dot {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(223, 193, 141, 0.18);
	box-shadow: inset 0 0 0 1px rgba(223, 193, 141, 0.4);
}
.office-pin-dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	background: #dfc18d;
	box-shadow: 0 0 0 3px #2c3345;
}
.office-pin-label {
	position: absolute;
	top: 2px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	white-space: nowrap;
}
.office-pin--left .office-pin-label {
	right: calc(100% + 8px);
	align-items: flex-end;
	text-align: right;
}
.office-pin--right .office-pin-label {
	left: calc(100% + 8px);
	align-items: flex-start;
	text-align: left;
}
.office-pin-name {
	color: #fff;
	font-family: "Merriweather", serif;
	font-size: 28px;
	font-weight: 300;
	line-height: 34px;
}
.office-pin-sub {
	color: #dfc18d;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	letter-spacing: 1.54px;
	text-transform: uppercase;
}

/* office cards */
#offices-band .offices-cards {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 40px;
	max-width: 1560px;
	margin: 0 auto;
}
#offices-band .offices-cards--overlap {
	margin-top: -194px; /* cards sit over the bottom of the map */
}
.office-card {
	flex: 1 1 0;
	min-width: 0;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 48px 52px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 30px rgba(43, 51, 69, 0.28);
	text-align: left;
}
.office-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.office-card-label {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #29989a;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 14px;
	letter-spacing: 1.44px;
	text-transform: uppercase;
}
.office-card-coords {
	color: #5c6173;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 14px;
	white-space: nowrap;
}
#offices-band .office-card-city {
	margin: 0;
	color: #2c3345;
	font-family: "Merriweather", serif;
	font-size: 44px;
	font-weight: 300;
	line-height: 52px;
}
.office-card-address {
	margin: 0;
	color: #3a3f4b;
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 30px;
}
.office-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid #ecedf0;
}
.office-card-tel {
	color: #3a3f4b;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 500;
}
.office-card-directions {
	margin-left: auto;
	padding-bottom: 6px;
	border-bottom: 1.5px solid #dfc18d;
	color: #2c3345 !important;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.84px;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.office-card-directions span { margin-left: 6px; }
.office-card-directions:hover,
.office-card-directions:focus {
	color: #29989a !important;
	border-bottom-color: #29989a;
}

/* Contact row (Figma "Contact – Option A") */
#contact-column textarea {
	height: 143px;
}
#contact-column.contactbox > .grid-container > .cell:first-child > * {
	max-width: 640px;
	text-align: left;
}
#contact-column.contactbox h3 {
	color: #2c3345;
	font-size: 42px;
	line-height: 64px;
	margin-bottom: 18px;
}
/* privacy link is teal on light backgrounds in both designs (base theme forces gold) */
#contact-column .wpcf7-form-control.wpcf7-acceptance a,
.light#call-to-action .wpcf7-form-control.wpcf7-acceptance a {
	color: #29989a !important;
}

#contact-column .wpcf7-acceptance,
#contact-column .wpcf7-acceptance .wpcf7-list-item-label {
	text-align: left;
}

/* Home hero: "United Kingdom | Malta" line under the buttons (hero row › Locations line) */
.cell.large-12.home-caption-text p.hero-locations {
	margin: 30px 0 0;
	color: #fff;
	font-size: 18px;
	line-height: 1.4;
	letter-spacing: 0.5px;
}
@media only screen and (max-width: 767px) {
	.cell.large-12.home-caption-text p.hero-locations {
		margin-top: 22px;
		font-size: 15px;
	}
}

/* Responsive ------------------------------------------------------------ */
/* iPad landscape / small laptop: half-width form clips "Services interested in",
   so stack the intro above a full-width form (as on iPad portrait) */
/* stacked layouts: CF7's .grid-margin-x has no negative gutter, so fields sat 15px inside the text column */
@media only screen and (max-width: 1279px) {
	#contact-column .wpcf7-form > .grid-x.grid-margin-x {
		margin-left: -15px;
		margin-right: -15px;
	}
}
@media only screen and (min-width: 1001px) and (max-width: 1279px) {
	#contact-column > .grid-container > .cell.large-6 {
		width: 100%;
	}
	#contact-column > .grid-container > .cell.large-6 + .cell.large-6 {
		margin-top: 40px;
	}
}
@media only screen and (max-width: 1360px) {
	#offices-band .offices-cards--overlap { margin-top: -140px; }
	.office-card { padding: 40px; }
}
@media only screen and (max-width: 1000px) {
	#offices-band { padding: 70px 0 80px; }
	#offices-band .offices-inner { padding: 0 24px; }
	#offices-band .offices-title,
	#offices-band .offices-title h2,
	#offices-band .offices-title p { font-size: 42px; line-height: 52px; }
	#offices-band .offices-cards { flex-direction: column; align-items: center; gap: 24px; }
	.office-card { flex: 0 0 auto; width: 100%; max-width: 640px; }
	#offices-band .offices-cards--overlap { margin-top: -60px; }
	.office-pin-name { font-size: 22px; line-height: 28px; }
	#contact-column.contactbox h3 { font-size: 34px; line-height: 46px; }
}
@media only screen and (max-width: 767px) {
	#offices-band { padding: 56px 0 60px; }
	#offices-band .offices-inner { padding: 0 16px; }
	#offices-band .offices-title,
	#offices-band .offices-title h2,
	#offices-band .offices-title p { font-size: 32px; line-height: 40px; }
	#offices-band .offices-map { margin-top: 30px; }
	#offices-band .offices-cards--overlap { margin-top: 24px; }
	.office-pin { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
	.office-pin-dot::after { width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 2px #2c3345; }
	.office-pin-label { top: 0; gap: 2px; }
	.office-pin--left .office-pin-label { right: calc(100% + 4px); }
	.office-pin--right .office-pin-label { left: calc(100% + 4px); }
	.office-pin-name { font-size: 16px; line-height: 20px; }
	.office-pin-sub { font-size: 8px; line-height: 10px; letter-spacing: 1px; }
	.office-card { padding: 32px 24px; gap: 18px; }
	.office-card-top { flex-wrap: wrap; }
	#offices-band .office-card-city { font-size: 34px; line-height: 42px; }
	.office-card-address { font-size: 16px; line-height: 27px; }
	#contact-column.contactbox h3 { font-size: 28px; line-height: 38px; }
}
