/*
 * Keep It Genuine campaign landing page.
 * Loaded on templates/template-keep-it-genuine.php only, after style.css and
 * responsive-fixes.css.
 *
 * Colours, type and button shapes follow the homepage redesign
 * (css/homepage-v2.css) so the campaign page sits inside the same system:
 * Erbaum for headings, Inter for body copy, brand gold on dark.
 */

:root {
	--kig-gold: #b17e20;
	--kig-gold-hover: #c08a26;
	--kig-dark: #232120;
	--kig-dark-2: #242424; /* video band: one step lighter than --kig-dark */
	--kig-cream: #e5e0d9;
	--kig-sand: #f6f4f0;
	--kig-line: #d9d5cd;
	--kig-text: #262524;
	--kig-text-muted: #5a5754;
	--kig-text-light: #d9d6d0;
	--kig-line-dark: #333333; /* hairline on the dark bands, per the wireframe */
}

/* style.css centres all body text; these sections are left-aligned. */
.kig-page,
.kig-page p,
.kig-page h1,
.kig-page h2,
.kig-page h3 {
	text-align: left;
}

.kig-page .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Bands and shared pieces                                             */
/* ------------------------------------------------------------------ */

.kig-band {
	padding: 70px 0;
}

.kig-band--dark {
	background-color: var(--kig-dark);
	color: var(--kig-text-light);
}

.kig-band--paper {
	background-color: #fff;
	color: var(--kig-text);
}

.kig-band--sand {
	background-color: var(--kig-sand);
	color: var(--kig-text);
}

/* Doubled class so the colour beats style.css's element selectors. */
.kig-heading.kig-heading {
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--kig-cream);
	font-size: 36px;
	line-height: 42px;
	letter-spacing: 0;
	margin: 0 0 20px;
}

.kig-heading--dark.kig-heading--dark {
	color: var(--kig-text);
	letter-spacing: -1px;
}

.kig-eyebrow,
.kig-kicker {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kig-gold);
	margin: 0 0 12px;
}

.kig-kicker--dark {
	color: #8a6413; /* darker gold keeps AA contrast on white and sand */
}

/* Brand gold sits at 4.5:1 on the dark band, right on the AA line at this
   size; the lighter tone clears it comfortably. */
.kig-band--dark .kig-eyebrow,
.kig-band--dark .kig-kicker {
	color: var(--kig-gold-hover);
}

.kig-lede {
	max-width: 62ch;
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 32px;
}

.kig-band--dark .kig-lede {
	color: var(--kig-text-light);
}

.kig-btn,
.kig-btn:visited {
	display: inline-block;
	/* The site's button gold and white text (#117). */
	background-color: var(--color-button, #956a1b);
	color: var(--color-button-text, #fff) !important;
	font-family: var(--btn-font);
	font-size: var(--btn-size);
	font-weight: var(--btn-weight);
	text-transform: var(--btn-case);
	letter-spacing: var(--btn-tracking);
	line-height: var(--btn-line);
	padding: var(--btn-pad);
	border-radius: var(--btn-radius);
	text-decoration: none !important;
	border: 1px solid var(--color-button, #956a1b);
	transition: background-color 0.25s ease-out;
}

.kig-btn:hover,
.kig-btn:focus {
	background-color: var(--color-button-hover, #7e5a1b);
	border-color: var(--color-button-hover, #7e5a1b);
}

.kig-btn--dark,
.kig-btn--dark:visited {
	/* The site's dark button, Alloy #262524 (#117). */
	background-color: #262524;
	border-color: #262524;
	color: #fff !important;
}

.kig-btn--dark:hover,
.kig-btn--dark:focus {
	background-color: var(--color-button, #956a1b);
	border-color: var(--color-button, #956a1b);
	color: var(--color-button-text, #fff) !important;
}

.kig-btn-outline,
.kig-btn-outline:visited {
	display: inline-block;
	background: transparent;
	color: var(--btn-outline-ink-dark, #fff) !important;
	font-family: var(--btn-font);
	font-size: var(--btn-size);
	font-weight: var(--btn-weight);
	text-transform: var(--btn-case);
	letter-spacing: var(--btn-tracking);
	line-height: var(--btn-line);
	padding: var(--btn-pad);
	border-radius: var(--btn-radius);
	text-decoration: none !important;
	border: 1px solid var(--btn-outline-edge, #b17e20);
	transition: background-color 0.25s ease-out, color 0.25s ease-out;
}

.kig-btn-outline:hover,
.kig-btn-outline:focus {
	background-color: var(--color-button, #956a1b);
	color: var(--color-button-text, #fff) !important;
}

/* Placeholder shown while the real artwork is outstanding. */
.kig-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	background-color: #ecebe8;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(0, 0, 0, 0.035) 0,
		rgba(0, 0, 0, 0.035) 10px,
		transparent 10px,
		transparent 20px
	);
	border: 1px dashed #b6b2ab;
	color: var(--kig-text-muted);
	font-family: var(--font-heading);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.kig-band--dark .kig-placeholder {
	background-color: #2c2a28;
	border-color: #4a4642;
	color: #b3aea6;
}

.kig-placeholder--video {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

.kig-placeholder--route {
	aspect-ratio: 3 / 2;
	min-height: 0;
}

/* ------------------------------------------------------------------ */
/* 1. Hero                                                             */
/* ------------------------------------------------------------------ */

/* The photo covers the whole band; the copy sits on top of it. */
.kig-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 90px 0;
}

.kig-hero--has-photo {
	min-height: 560px;
}

.kig-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Scrim: heavy on the left so the headline and buttons stay legible, easing
   off to the right so the badge in the photo still reads. */
.kig-hero--has-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(30, 28, 27, 0.95) 0%,
		rgba(30, 28, 27, 0.88) 30%,
		rgba(30, 28, 27, 0.55) 55%,
		rgba(30, 28, 27, 0.2) 80%,
		rgba(30, 28, 27, 0.1) 100%
	);
}

/* Above the photo and the scrim. */
.kig-hero > .inner {
	position: relative;
	z-index: 1;
}

.kig-hero__copy {
	max-width: 46%;
}

.kig-hero__title.kig-hero__title {
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--kig-cream);
	font-size: 72px;
	line-height: 1.02;
	letter-spacing: -1px;
	margin: 0 0 34px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.kig-hero__title-accent {
	display: block;
	color: var(--kig-gold);
}

.kig-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Phones only — see the 782px block. */
.kig-hero__mobile-image {
	display: none;
}

/* ------------------------------------------------------------------ */
/* 2. Video                                                            */
/* ------------------------------------------------------------------ */

/* Slightly lighter than the shared dark band, per design feedback. */
.kig-video {
	background-color: var(--kig-dark-2);
}

/* Everything in this section is centred, including the block-level pieces
   that carry their own max-width. */
.kig-video,
.kig-page .kig-video p,
.kig-page .kig-video h2 {
	text-align: center;
}

/* A heading followed by a lede sits tighter than one followed by a grid, so
   the two sections that carry a lede share the same rhythm. */
.kig-video .kig-heading,
.kig-acculock .kig-heading {
	margin-bottom: 16px;
}

.kig-video .kig-lede {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 44px;
}

/* Hairline around the player, matching the wireframe's .videobox and the hero
   badge. On the box rather than the poster so it survives every state:
   placeholder, poster, the swapped-in iframe and the oEmbed fallback. */
.kig-video__box {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid var(--kig-line-dark);
}

/* The placeholder draws its own dashed edge; the box border replaces it. */
.kig-video__box .kig-placeholder {
	border: 0;
}

.kig-video__facade {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.kig-video__poster {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.kig-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background-color: var(--kig-gold);
	transition: background-color 0.25s ease-out;
}

.kig-video__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 15px 0 15px 24px;
	border-color: transparent transparent transparent #1e1e1e;
}

.kig-video__facade:hover .kig-video__play,
.kig-video__facade:focus-visible .kig-video__play {
	background-color: var(--kig-gold-hover);
}

/* The facade drops the default button chrome, so give focus its own ring. */
.kig-video__facade:focus-visible {
	outline: 3px solid var(--kig-gold-hover);
	outline-offset: 3px;
}

/* Swapped in by js/keep-it-genuine.js once play is pressed. */
.kig-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.kig-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.kig-video__box--embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* 3. Why it matters                                                   */
/* ------------------------------------------------------------------ */

.kig-why__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.kig-why__card {
	padding-top: 22px;
	border-top: 3px solid var(--kig-gold);
}

.kig-why__card h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--kig-text);
	margin: 0 0 12px;
}

.kig-why__card p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--kig-text-muted);
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* 4. Read it or buy it                                                */
/* ------------------------------------------------------------------ */

.kig-routes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-top: 40px;
}

.kig-routes__card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid var(--kig-line);
}

.kig-routes__media {
	position: relative;
}

.kig-routes__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Gold badge straddling the bottom-left of the card image, per the design.
   Dark text on brand gold, matching .kig-btn. */
.kig-routes__tag {
	position: absolute;
	left: 0;
	bottom: 0;
	/* Same gold and white as the buttons (#117); keeps its small caps. */
	background-color: var(--color-button, #956a1b);
	color: var(--color-button-text, #fff);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 10px 18px;
}

.kig-routes__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 28px 30px 32px;
}

.kig-routes__body h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--kig-text);
	margin: 0 0 12px;
}

.kig-routes__body p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--kig-text-muted);
	margin: 0 0 24px;
}

/* Pins the button to the bottom so cards of different text length line up. */
.kig-routes__body .kig-btn {
	margin-top: auto;
}

/* ------------------------------------------------------------------ */
/* 5. AccuLock links                                                   */
/* ------------------------------------------------------------------ */

.kig-acculock .kig-lede {
	margin-bottom: 40px;
}

.kig-acculock__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.kig-acculock__card,
.kig-acculock__card:visited {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 4px 20px;
	padding: 26px 28px;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--kig-line-dark);
	text-decoration: none !important;
	transition: background-color 0.25s ease-out, border-color 0.25s ease-out;
}

.kig-acculock__card:hover,
.kig-acculock__card:focus-visible {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--kig-gold);
}

.kig-acculock__label {
	grid-column: 1;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--kig-cream);
}

.kig-acculock__text {
	grid-column: 1;
	font-size: 15px;
	line-height: 1.5;
	color: var(--kig-text-light);
}

/* Spans both rows so it stays centred against the whole card. */
.kig-acculock__chevron {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	color: var(--kig-gold);
	transition: transform 0.25s ease-out;
}

.kig-acculock__card:hover .kig-acculock__chevron {
	transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/* Editor content below the campaign sections                          */
/* ------------------------------------------------------------------ */

.kig-editor-content {
	max-width: 820px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media screen and (max-width: 1024px) {
	.kig-hero__title.kig-hero__title {
		font-size: 56px;
	}

	.kig-hero__copy {
		max-width: 60%;
	}
}

@media screen and (max-width: 782px) {
	.kig-band {
		padding: 50px 0;
	}

	.kig-hero {
		padding: 56px 0;
	}

	.kig-hero__copy {
		max-width: none;
	}

	/* The banner is composed for a wide crop and its subject sits far right, so
	   on a phone it is dropped entirely and a portrait-friendly image is
	   stacked under the copy instead. */
	.kig-hero--has-mobile-image {
		display: block;
		min-height: 0;
	}

	.kig-hero--has-mobile-image .kig-hero__photo,
	.kig-hero--has-mobile-image.kig-hero--has-photo::after {
		display: none;
	}

	.kig-hero__mobile-image {
		display: block;
		width: 100%;
		height: auto;
		margin-top: 36px;
	}

	/* No mobile image supplied: keep the background with a full scrim so the
	   copy stays readable over it. */
	.kig-hero--has-photo:not(.kig-hero--has-mobile-image) {
		min-height: 460px;
	}

	.kig-hero--has-photo:not(.kig-hero--has-mobile-image)::after {
		background: linear-gradient(
			180deg,
			rgba(30, 28, 27, 0.82) 0%,
			rgba(30, 28, 27, 0.7) 55%,
			rgba(30, 28, 27, 0.85) 100%
		);
	}

	.kig-hero__title.kig-hero__title {
		font-size: 44px;
	}

	.kig-heading.kig-heading {
		font-size: 28px;
		line-height: 34px;
	}

	.kig-lede {
		font-size: 16px;
	}

	.kig-video__play {
		width: 64px;
		height: 64px;
	}

	.kig-video__play::before {
		border-width: 11px 0 11px 18px;
	}
}

@media screen and (max-width: 480px) {
	.kig-hero__actions .kig-btn,
	.kig-hero__actions .kig-btn-outline {
		width: 100%;
		text-align: center;
	}
}
