/*
 * The Certified Local Guide hero.
 *
 * Loaded only when this hero is the one saved and the hero section is on,
 * after home.css, whose hero it is a variant of: the same section element,
 * the same wrap, the same copy classes and the same buttons, drawn on white
 * with the person who runs the tours beside the words. A two-column grid on
 * a wide screen, one column on a phone; a portrait in a white frame with the
 * guide's name on a card over its lower edge; two buttons; and a strip of
 * the reassurance points that closes the band.
 *
 * Its palette is its own four tokens — a deep navy, a warm accent, a gold
 * for the eyebrow, a paper for the strip — declared on the section so that
 * brand.css can point them at the site's identity in one rule. No font is
 * loaded: the heading is the editorial serif every other Tripvance layout
 * falls back to, and the rest is the theme's.
 */

.wptm-home__hero--style-guide {
	--guide-navy: #1b3a5c;
	--guide-accent: #e8912a;
	--guide-gold: #c9a227;
	--guide-paper: #fbfaf8;
	--guide-line: rgba(27, 58, 92, .1);
	--guide-muted: rgba(27, 58, 92, .62);
	--guide-navy-soft: rgba(27, 58, 92, .4);
	--guide-navy-faint: rgba(27, 58, 92, .55);
	--guide-navy-line: rgba(27, 58, 92, .12);
	--guide-radius: 22px;
	--guide-card-radius: 14px;
	--guide-btn-radius: var(--home-btn-radius, var(--wptm-radius-md, 10px));
	--guide-shadow: 0 20px 44px rgba(27, 58, 92, .16);
	--guide-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
	display: block;
	min-height: 0;
	color: var(--guide-navy);
	background: #fff;
	border-block-end: 1px solid var(--guide-line);
}

/* The tints of the navy, mixed from it where the browser can, so a brand
   that changes the navy changes the outline, the card edge and the strip's
   text with it. The flat values above stand in elsewhere. */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
	.wptm-home__hero--style-guide {
		--guide-muted: color-mix(in srgb, var(--guide-navy) 62%, transparent);
		--guide-navy-soft: color-mix(in srgb, var(--guide-navy) 40%, transparent);
		--guide-navy-faint: color-mix(in srgb, var(--guide-navy) 55%, transparent);
		--guide-navy-line: color-mix(in srgb, var(--guide-navy) 12%, transparent);
	}
}

/* No photograph behind, so no wash over it. */
.wptm-home__hero--style-guide::after {
	display: none;
}

.wptm-home__hero--style-guide .wptm-home__heroinner {
	padding-block: clamp(44px, 6vw, 72px) 0;
}

/* --- The two columns ------------------------------------------------ */
.wptm-home__guidegrid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: center;
	gap: clamp(32px, 4.5vw, 56px);
	padding-block-end: clamp(40px, 5vw, 56px);
}

/* --- The words ------------------------------------------------------ */
.wptm-home__hero--style-guide .wptm-home__guidecopy {
	max-width: 620px;
	margin-block-end: 0;
}

.wptm-home__hero--style-guide .wptm-home__heroeyebrow {
	margin-block-end: 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .28em;
	color: var(--guide-gold);
}

.wptm-home__hero--style-guide .wptm-home__herotitle {
	margin-block-end: 16px;
	font-family: var(--guide-serif);
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.16;
	letter-spacing: -.01em;
	color: var(--guide-navy);
	text-shadow: none;
	text-wrap: balance;
}

/* The highlighted phrase: the accent, and a fine line that fades out
   beneath it. Inline, so it wraps with the sentence. */
.wptm-home__guidemark {
	position: relative;
	font-style: inherit;
	color: var(--guide-accent);
	background: linear-gradient(90deg, var(--guide-accent), transparent) no-repeat 0 100% / 100% 2px;
	padding-block-end: 2px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.wptm-home__hero--style-guide .wptm-home__herotext {
	max-width: 52ch;
	margin-block-end: 30px;
	font-size: clamp(.95rem, 1.5vw, 1.06rem);
	font-weight: 300;
	line-height: 1.75;
	color: var(--guide-muted);
	text-shadow: none;
}

/* --- The buttons ---------------------------------------------------- */
.wptm-home__guidectas {
	gap: 14px 16px;
	align-items: center;
}

.wptm-home__hero--style-guide .wptm-home__guidebtn {
	border-radius: var(--guide-btn-radius);
	backdrop-filter: none;
}

/* Primary, in link mode: the accent. */
.wptm-home__hero--style-guide .wptm-home__guidebtn--link {
	background: var(--guide-accent);
	color: #fff;
	box-shadow: 0 10px 26px rgba(232, 145, 42, .28);
}

.wptm-home__hero--style-guide .wptm-home__guidebtn--link:hover,
.wptm-home__hero--style-guide .wptm-home__guidebtn--link:focus-visible {
	background: color-mix(in srgb, var(--guide-accent) 84%, #000);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(232, 145, 42, .34);
}

/* Primary, in WhatsApp mode: WhatsApp's own green, because that is what
   the glyph beside it means. Kept whatever the brand identity says. */
.wptm-home__hero--style-guide .wptm-home__guidebtn--whatsapp {
	gap: 12px;
	padding: 12px 26px 12px 22px;
	background: linear-gradient(135deg, #27c268 0%, #149a4d 100%);
	color: #fff;
	box-shadow: 0 10px 26px rgba(20, 140, 70, .28);
}

.wptm-home__hero--style-guide .wptm-home__guidebtn--whatsapp:hover,
.wptm-home__hero--style-guide .wptm-home__guidebtn--whatsapp:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(20, 140, 70, .36);
	filter: saturate(1.08);
}

.wptm-home__hero--style-guide .wptm-home__guidebtn--whatsapp .wptm-home__waicon {
	width: 24px;
	height: 24px;
	flex: none;
}

.wptm-home__guidebtnlabel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: start;
}

.wptm-home__guidebtnmain {
	font-size: .98rem;
	font-weight: 700;
	line-height: 1.1;
}

/* The small line: uppercase, tracked, with a soft dot before it. The dot
   is decoration; the words are the owner's and are what carries meaning. */
.wptm-home__guidebtnnote {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .86);
}

.wptm-home__guidebtn--link .wptm-home__guidebtnnote {
	color: rgba(255, 255, 255, .82);
}

.wptm-home__guidedot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #aaffc3;
	box-shadow: 0 0 6px rgba(170, 255, 195, .8);
	animation: wptm-guide-dot 1.8s ease-in-out infinite;
}

.wptm-home__guidebtn--link .wptm-home__guidedot {
	background: #fff;
	box-shadow: 0 0 6px rgba(255, 255, 255, .7);
}

@keyframes wptm-guide-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

/* Secondary: an outline in the navy that warms to the accent. */
.wptm-home__hero--style-guide .wptm-home__guidebtn--alt {
	gap: 8px;
	padding: 13px 24px;
	border: 1.5px solid var(--guide-navy-soft);
	background: transparent;
	color: var(--guide-navy);
	font-size: .92rem;
	font-weight: 600;
	letter-spacing: .05em;
}

.wptm-home__hero--style-guide .wptm-home__guidebtn--alt:hover,
.wptm-home__hero--style-guide .wptm-home__guidebtn--alt:focus-visible {
	border-color: var(--guide-accent);
	color: var(--guide-accent);
	background: color-mix(in srgb, var(--guide-accent) 6%, transparent);
	transform: none;
}

.wptm-home__guidearrow {
	display: inline-flex;
	transform: rotate(90deg);
	transition: transform var(--wptm-transition, .18s ease);
}

.wptm-home__guidebtn--alt:hover .wptm-home__guidearrow {
	transform: rotate(90deg) translateX(3px);
}

.wptm-home__hero--style-guide .wptm-home__guidebtn:focus-visible {
	outline: 2px solid var(--guide-accent);
	outline-offset: 3px;
}

.wptm-home__hero--style-guide .wptm-home__guidebtn--whatsapp:focus-visible {
	outline-color: #0f7a3f;
}

.wptm-home__hero--style-guide .wptm-home__licence--hero {
	margin-block-start: 22px;
	color: var(--guide-muted);
}

/* --- The portrait --------------------------------------------------- */
.wptm-home__guidevisual {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	/* Room for the card that hangs over the lower edge. */
	padding-block-end: 28px;
}

.wptm-home__guidephoto {
	position: relative;
	display: block;
	aspect-ratio: 5 / 6;
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: var(--guide-radius);
	background: linear-gradient(160deg, #e8ecf1, #f2ece1);
	box-shadow: var(--guide-shadow);
}

.wptm-home__guideimg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.wptm-home__guidephoto--empty .wptm-home__guidepattern {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: .5;
}

/* The card: centred on the lower edge, half over the frame, half below. */
.wptm-home__guidecard {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 50%;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	max-width: calc(100% - 16px);
	padding: 11px 18px;
	border: 1px solid var(--guide-navy-line);
	border-radius: var(--guide-card-radius);
	background: #fff;
	box-shadow: 0 12px 28px rgba(27, 58, 92, .16);
	transform: translateX(-50%);
	white-space: nowrap;
}

[dir="rtl"] .wptm-home__guidecard {
	transform: translateX(50%);
}

.wptm-home__guidecard .wptm-home__verified {
	flex: none;
	width: 20px;
	height: 20px;
}

.wptm-home__guidecardcopy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

.wptm-home__guidename {
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--guide-navy);
}

.wptm-home__guiderole {
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--guide-navy-faint);
}

/* --- The trust strip ------------------------------------------------ */
/* Part of the hero, not a section: a hairline above, the paper beneath,
   and the same wrap as everything else so the items sit on the grid. The
   section is already full-bleed, so the strip is too. */
.wptm-home__guidetrust {
	border-block-start: 1px solid var(--guide-line);
	background: var(--guide-paper);
}

/* Written at the section's specificity: home.css resets every list's
   margin and padding, and that reset would otherwise take the wrap's
   centring and side padding off this one. */
.wptm-home__hero--style-guide .wptm-home__guidetrustlist {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 44px;
	max-width: var(--home-wrap);
	margin: 0 auto;
	padding: 18px var(--home-pad);
}

.wptm-home__guidetrustitem {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .09em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--guide-muted);
}

.wptm-home__guidetrusticon {
	display: inline-flex;
	flex: none;
	color: var(--guide-accent);
}

.wptm-home__guidetrusticon .wptm-icon,
.wptm-home__guidetrusticon svg {
	width: 17px;
	height: 17px;
}

/* --- The search, if it is on ---------------------------------------- */
/* Below the two columns, above the strip, in the page's ink rather than
   the white the other heroes float it in. */
.wptm-home__hero--style-guide .wptm-home__search,
.wptm-home__hero--style-guide .wptm-home__searchstage {
	margin-block: 0 clamp(36px, 5vw, 52px);
	color: var(--home-ink);
	box-shadow: 0 18px 44px rgba(27, 58, 92, .14), 0 0 0 1px var(--guide-line) inset;
}

/* --- Widths --------------------------------------------------------- */
@media (max-width: 1024px) {
	.wptm-home__guidegrid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
		gap: 32px;
	}

	.wptm-home__guidevisual {
		max-width: 380px;
	}
}

@media (max-width: 820px) {
	.wptm-home__hero--style-guide .wptm-home__heroinner {
		padding-block-start: clamp(36px, 6vw, 48px);
	}

	.wptm-home__guidegrid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		text-align: center;
	}

	.wptm-home__hero--style-guide .wptm-home__guidecopy {
		max-width: none;
	}

	.wptm-home__hero--style-guide .wptm-home__herotitle {
		max-width: 24ch;
		margin-inline: auto;
	}

	.wptm-home__hero--style-guide .wptm-home__herotext {
		margin-inline: auto;
	}

	.wptm-home__guidectas {
		justify-content: center;
	}

	.wptm-home__guidevisual {
		max-width: 340px;
	}

	.wptm-home__guidetrustlist {
		gap: 10px 28px;
	}
}

@media (max-width: 560px) {
	.wptm-home__guidegrid {
		gap: 34px;
		padding-block-end: 36px;
	}

	.wptm-home__guidectas {
		flex-direction: column;
		align-items: stretch;
	}

	.wptm-home__hero--style-guide .wptm-home__guidebtn {
		width: 100%;
		justify-content: center;
	}

	.wptm-home__guidebtnlabel {
		align-items: center;
		text-align: center;
	}

	.wptm-home__guidevisual {
		max-width: 290px;
	}

	.wptm-home__guidecard {
		padding: 10px 14px;
	}

	.wptm-home__guidename {
		font-size: .84rem;
	}

	/* Two by two, each item its own cell, so four labels never fight for
	   one line. */
	.wptm-home__hero--style-guide .wptm-home__guidetrustlist {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
		padding-block: 16px;
	}

	.wptm-home__guidetrustitem {
		justify-content: flex-start;
		font-size: .72rem;
		letter-spacing: .06em;
		white-space: normal;
	}
}

/* --- Motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.wptm-home__guidedot {
		animation: none;
	}

	.wptm-home__guidearrow,
	.wptm-home__hero--style-guide .wptm-home__guidebtn {
		transition: none;
	}

	.wptm-home__hero--style-guide .wptm-home__guidebtn:hover,
	.wptm-home__hero--style-guide .wptm-home__guidebtn:focus-visible,
	.wptm-home__guidebtn--alt:hover .wptm-home__guidearrow {
		transform: none;
	}

	.wptm-home__guidebtn--alt:hover .wptm-home__guidearrow {
		transform: rotate(90deg);
	}
}

/* Where color-mix is not understood the hover keeps a flat colour. */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
	.wptm-home__hero--style-guide .wptm-home__guidebtn--link:hover,
	.wptm-home__hero--style-guide .wptm-home__guidebtn--link:focus-visible {
		background: #c9781f;
	}

	.wptm-home__hero--style-guide .wptm-home__guidebtn--alt:hover,
	.wptm-home__hero--style-guide .wptm-home__guidebtn--alt:focus-visible {
		background: rgba(232, 145, 42, .06);
	}
}
