/**
 * The six service pages.
 *
 * Each is on a template of its own so the pages can be structurally different,
 * but they are not six designs: they compose the same small set of components
 * in a different order, with a different one leading. That is what keeps six
 * bespoke pages recognisably one site.
 *
 * The components are the opening block (.o-lede), the three renderings of a
 * list (.o-blk), and the claim-and-answer pair (.o-myth) that only Visa
 * Assistance uses. Everything else — hero, buttons, headings, call to action,
 * the closing strip — is css/orchid-page.css, which this loads on top of.
 *
 * Accent colours come from --svc-accent, set per page on the wrapper.
 *
 * @package orchidassociate
 */

/* ==========================================================================
   The opening block: copy beside a photograph.
   ========================================================================== */

.o-lede {
	padding: clamp(52px, 6vw, 84px) 0 clamp(40px, 4.5vw, 64px);
}

.o-lede__inner {
	display: grid;
	gap: clamp(24px, 3.4vw, 52px);
	align-items: center;
}

@media (min-width: 900px) {
	.o-lede__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	/* The photograph is first in the source because it is the first thing on
	   the page visually in the default direction. Flipping is a column swap,
	   not a source change, so the copy is still read after the image by a
	   screen reader either way. */
	.o-lede--flip .o-lede__media {
		grid-column: 2;
		grid-row: 1;
	}
}

/* With no photograph there is no second column to fill, so the copy takes
   reading width in the middle instead of half a row. */
.o-lede--solo .o-lede__inner {
	grid-template-columns: minmax(0, 1fr);
	max-width: 52rem;
	margin: 0 auto;
}

.o-lede__media {
	line-height: 0;
}

.o-page .o-lede__img {
	width: 100%;
	height: auto;
	border-radius: var(--o-radius, 14px);
	box-shadow: var(--o-shadow-lift, 0 18px 40px rgba(0, 0, 0, 0.16));
}

/* ==========================================================================
   The list block, in three renderings.
   ========================================================================== */

.o-blk {
	padding: clamp(52px, 6vw, 84px) 0;
	background: var(--o-bg-muted, #f6f6f6);
}

.o-blk--dark {
	color: var(--o-body-light, rgba(255, 255, 255, 0.9));
	background:
		radial-gradient(90% 120% at 88% 0%, rgba(var(--svc-accent-rgb), 0.38) 0%, rgba(var(--svc-accent-rgb), 0) 62%),
		linear-gradient(160deg, #141414 0%, #000 100%);
}

.o-blk__head {
	max-width: 44rem;
	margin: 0 auto clamp(30px, 3.6vw, 48px);
	text-align: center;
}

.o-blk__head .o-svc__h2::after {
	margin-right: auto;
	margin-left: auto;
}

.o-page .o-blk--dark .o-svc__h2 {
	color: #fff;
}

.o-page .o-blk__intro p {
	margin: 0 0 10px;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	line-height: 1.8;
	color: var(--o-body, #4a4a4a);
}

.o-page .o-blk--dark .o-blk__intro p {
	color: var(--o-body-light, rgba(255, 255, 255, 0.9));
}

.o-page .o-blk__intro p:last-child {
	margin-bottom: 0;
}

.o-blk__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.o-page .o-blk__title {
	margin: 0 0 8px;
	font-family: var(--o-display, sans-serif);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--o-ink, #000);
}

.o-page .o-blk--dark .o-blk__title {
	color: #fff;
}

.o-page .o-blk__text p {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--o-body, #4a4a4a);
}

.o-page .o-blk--dark .o-blk__text p {
	color: var(--o-body-light, rgba(255, 255, 255, 0.9));
}

.o-page .o-blk__text p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------- Numbers. */

/* A single column at reading width. The numbers are the structure, so they are
   set large and hung outside the copy rather than boxed with it. */
.o-blk--numbers .o-blk__list {
	max-width: 46rem;
	margin: 0 auto;
}

.o-blk--numbers .o-blk__item {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: clamp(14px, 2vw, 22px);
	align-items: start;
	padding: clamp(20px, 2.2vw, 26px) 0;
}

.o-blk--numbers .o-blk__item + .o-blk__item {
	border-top: 1px solid var(--o-line, #e5e5e5);
}

.o-blk--numbers .o-blk__num {
	font-family: var(--o-display, sans-serif);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--svc-accent);
	opacity: 0.55;
}

/* -------------------------------------------------------------- Checks. */

.o-blk--checks .o-blk__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(14px, 1.8vw, 22px);
	max-width: 62rem;
	margin: 0 auto;
}

.o-blk--checks .o-blk__item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: clamp(18px, 2vw, 24px);
	border-radius: var(--o-radius, 14px);
	background: var(--o-bg, #fff);
	box-shadow: var(--o-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.o-blk--checks .o-blk__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 13px;
	color: var(--svc-accent);
	background: rgba(var(--svc-accent-rgb), 0.11);
}

/* --------------------------------------------------------------- Cards. */

.o-blk--cards .o-blk__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: clamp(16px, 1.8vw, 24px);
}

.o-blk--cards .o-blk__item {
	padding: clamp(24px, 2.6vw, 32px);
	border: 1px solid var(--o-line, #e5e5e5);
	border-radius: var(--o-radius, 14px);
	background: var(--o-bg, #fff);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.o-blk--cards .o-blk__item:hover {
	transform: translateY(-4px);
	box-shadow: var(--o-shadow-lift, 0 18px 40px rgba(0, 0, 0, 0.16));
}

.o-blk--dark.o-blk--cards .o-blk__item {
	border-color: var(--o-line-dark, rgba(255, 255, 255, 0.14));
	background: rgba(255, 255, 255, 0.04);
}

.o-blk--cards .o-blk__mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	border-radius: 14px;
	font-size: 19px;
	color: #fff;
	background: linear-gradient(140deg, var(--svc-accent) 0%, var(--svc-accent-dark) 100%);
	box-shadow: 0 8px 20px rgba(var(--svc-accent-rgb), 0.28);
}

/* ==========================================================================
   Claim and answer — Visa Assistance only.
   ========================================================================== */

.o-myth {
	padding: clamp(52px, 6vw, 84px) 0;
	background: var(--o-bg-muted, #f6f6f6);
}

.o-myth__list {
	display: grid;
	gap: clamp(16px, 2vw, 26px);
	max-width: 62rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.o-myth__row {
	display: grid;
	gap: 1px;
	overflow: hidden;
	border-radius: var(--o-radius, 14px);
	background: var(--o-line, #e5e5e5);
	box-shadow: var(--o-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
}

@media (min-width: 760px) {
	.o-myth__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.o-myth__side {
	padding: clamp(22px, 2.4vw, 30px);
	background: var(--o-bg, #fff);
}

/* The claim is held back and the answer is not: the page is a correction, and
   the two halves should not carry equal weight. */
.o-myth__side--claim {
	background: var(--o-bg-muted, #f6f6f6);
}

.o-myth__side--answer {
	position: relative;
}

.o-myth__side--answer::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--svc-accent);
}

.o-page .o-myth__label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 12px;
	font-family: var(--o-sans, sans-serif);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.o-page .o-myth__side--claim .o-myth__label {
	color: var(--o-body, #4a4a4a);
}

.o-page .o-myth__side--answer .o-myth__label {
	color: var(--svc-accent);
}

.o-page .o-myth__text p {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--o-body, #4a4a4a);
}

.o-page .o-myth__side--answer .o-myth__text p {
	color: var(--o-ink, #000);
}

.o-page .o-myth__text p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Partner logos — Admission & Correspondence only.
   ========================================================================== */

.o-svcpg__partners {
	padding: clamp(52px, 6vw, 84px) 0;
}

.o-svcpg__logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: clamp(12px, 1.4vw, 18px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.o-svcpg__logo {
	display: grid;
	place-items: center;
	padding: 18px;
	border: 1px solid var(--o-line, #e5e5e5);
	border-radius: var(--o-radius-sm, 8px);
	background: var(--o-bg, #fff);
}

/* The logos arrive at every size and in every proportion, so they are boxed to
   one height and left to letterbox inside it rather than being stretched. */
.o-page .o-svcpg__logo img {
	width: auto;
	max-width: 100%;
	height: 46px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.72;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.o-svcpg__logo:hover img {
	filter: none;
	opacity: 1;
}

/* ==========================================================================
   Odds and ends.
   ========================================================================== */

.o-svcpg__editor {
	padding: clamp(44px, 5vw, 68px) 0;
}

.o-svcpg__editor .o-svc__prose {
	max-width: 52rem;
	margin: 0 auto;
}

/* The casework timeline borrows css/orchid-process.css wholesale; all it wants
   here is the muted ground that separates it from the copy above. */
.o-svcpg__casework {
	background: var(--o-bg-muted, #f6f6f6);
}

/* Two muted bands would meet with no seam where a page ends on a block and the
   closing strip follows. */
.o-blk + .o-svc__related,
.o-myth + .o-svc__related,
.o-svcpg__casework + .o-svc__related {
	border-top: 1px solid var(--o-line, #e5e5e5);
}

@media (prefers-reduced-motion: reduce) {
	.o-blk--cards .o-blk__item:hover {
		transform: none;
	}
}
