/* ------------------------------------------------------------------
 * Brochure Page - front end styles
 *
 * BRAND COLOURS: the four values below are the only colours you should
 * ever need to change. Everything else is derived from them. Nothing in
 * this file sets a font family, so headings and body text keep using the
 * fonts already loaded by the theme.
 * ---------------------------------------------------------------- */

.ihbp-scope {
	/* Brand */
	--ihbp-navy: #285993;
	--ihbp-gold: #c4972a;

	/* Supporting colours, derived from the two above */
	--ihbp-navy-deep: #14345a;      /* banner background behind the photo */
	--ihbp-overlay-rgb: 20, 52, 90; /* banner gradient, same colour as above */
	--ihbp-gold-dark: #a67d1c;      /* button hover */
	--ihbp-ink: #2c3a44;
	--ihbp-cream: #f5f7fa;
	--ihbp-line: #dfe4e8;
	--ihbp-muted: #5c6a75;
	--ihbp-error: #b3261e;
	--ihbp-error-bg: #fdf3f2;
	--ihbp-radius: 14px;

	box-sizing: border-box;
	color: var(--ihbp-ink);
}

.ihbp-scope *,
.ihbp-scope *::before,
.ihbp-scope *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
 * Page banner
 * ---------------------------------------------------------------- */

.ihbp-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(260px, 30vw, 440px);
	padding: clamp(48px, 8vw, 96px) 20px clamp(30px, 4vw, 54px);
	border-top: 3px solid var(--ihbp-gold);
	background-color: var(--ihbp-navy-deep);
	overflow: hidden;
}

.ihbp-banner__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.ihbp-banner__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

/* Dark blue wash, heaviest on the left so the wording stays readable. */
.ihbp-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(var(--ihbp-overlay-rgb), 0.92) 0%,
			rgba(var(--ihbp-overlay-rgb), 0.78) 30%,
			rgba(var(--ihbp-overlay-rgb), 0.42) 62%,
			rgba(var(--ihbp-overlay-rgb), 0.24) 100%
		),
		linear-gradient(
			180deg,
			rgba(var(--ihbp-overlay-rgb), 0.1) 0%,
			rgba(var(--ihbp-overlay-rgb), 0.35) 100%
		);
}

.ihbp-banner__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

.ihbp-crumbs {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.5;
}

.ihbp-crumbs a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ihbp-crumbs a:hover,
.ihbp-crumbs a:focus {
	color: #fff;
	text-decoration: underline;
}

.ihbp-crumbs__sep {
	display: inline-block;
	margin: 0 9px;
	opacity: 0.55;
}

.ihbp-crumbs__current {
	color: #fff;
	font-weight: 700;
}

.ihbp-banner__eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: clamp(16px, 2vw, 26px) 0 4px;
	color: var(--ihbp-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ihbp-banner__eyebrow::before {
	content: "";
	flex: 0 0 44px;
	height: 3px;
	background: var(--ihbp-gold);
}

.ihbp-banner__title {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 6vw, 72px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.015em;
}

.ihbp-banner__standfirst {
	margin: 14px 0 0;
	max-width: 30em;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.6;
}

/* ------------------------------------------------------------------
 * Section layout
 * ---------------------------------------------------------------- */

.ihbp-brochure {
	padding: clamp(40px, 6vw, 80px) 20px;
	background: linear-gradient(180deg, #fff 0%, var(--ihbp-cream) 100%);
}

.ihbp-brochure__inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
	max-width: 1140px;
	margin: 0 auto;
}

/* ------------------------------------------------------------------
 * Intro column
 * ---------------------------------------------------------------- */

.ihbp-eyebrow {
	margin: 0 0 14px;
	color: var(--ihbp-gold-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ihbp-brochure__heading {
	margin: 0 0 18px;
	color: var(--ihbp-navy);
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.15;
}

.ihbp-brochure__text {
	margin: 0 0 26px;
	max-width: 34em;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ihbp-ink);
}

.ihbp-ticks {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.ihbp-ticks li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 38px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ihbp-navy);
	font-weight: 600;
}

.ihbp-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: rgba(196, 151, 42, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a67d1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}

.ihbp-cover {
	margin: 0;
	max-width: 320px;
}

.ihbp-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 22px 44px rgba(20, 52, 90, 0.22);
	transform: rotate(-2deg);
	transition: transform 0.35s ease;
}

.ihbp-cover img:hover {
	transform: rotate(0deg) translateY(-4px);
}

/* ------------------------------------------------------------------
 * Form card
 * ---------------------------------------------------------------- */

.ihbp-card {
	position: relative;
	padding: clamp(24px, 3vw, 36px);
	background: #fff;
	border: 1px solid var(--ihbp-line);
	border-top: 4px solid var(--ihbp-gold);
	border-radius: var(--ihbp-radius);
	box-shadow: 0 20px 46px rgba(20, 52, 90, 0.10);
}

.ihbp-card__title {
	margin: 0 0 8px;
	color: var(--ihbp-navy);
	font-size: clamp(21px, 2.2vw, 26px);
	line-height: 1.25;
}

.ihbp-card__intro {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ihbp-muted);
}

.ihbp-alert {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14.5px;
	line-height: 1.5;
}

.ihbp-alert--error {
	background: var(--ihbp-error-bg);
	border-left: 4px solid var(--ihbp-error);
	color: var(--ihbp-error);
}

.ihbp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.ihbp-field {
	margin: 0;
}

.ihbp-field--full {
	grid-column: 1 / -1;
}

.ihbp-label {
	display: block;
	margin-bottom: 6px;
	color: var(--ihbp-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.ihbp-req {
	color: var(--ihbp-gold-dark);
}

.ihbp-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 13px 14px;
	background: #fff;
	border: 1px solid var(--ihbp-line);
	border-radius: 8px;
	color: var(--ihbp-ink);
	font-size: 16px;
	font-family: inherit;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ihbp-input:hover {
	border-color: #c3ccd3;
}

.ihbp-input:focus {
	outline: none;
	border-color: var(--ihbp-gold);
	box-shadow: 0 0 0 3px rgba(196, 151, 42, 0.28);
}

.ihbp-input:focus-visible {
	outline: 2px solid var(--ihbp-navy);
	outline-offset: 1px;
}

.ihbp-field--error .ihbp-input {
	border-color: var(--ihbp-error);
	background: var(--ihbp-error-bg);
}

.ihbp-error {
	display: block;
	margin-top: 6px;
	color: var(--ihbp-error);
	font-size: 13px;
	line-height: 1.4;
}

/* Honeypot: kept out of sight but still in the tab order for bots. */
.ihbp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ihbp-button {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 16px 32px;
	background: var(--ihbp-gold);
	border: 0;
	border-radius: 999px; /* fully rounded */
	color: #fff;
	font-size: 16px;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ihbp-button:hover,
.ihbp-button:focus {
	background: var(--ihbp-gold-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(166, 125, 28, 0.3);
}

.ihbp-button:focus-visible {
	outline: 3px solid var(--ihbp-navy);
	outline-offset: 2px;
}

.ihbp-button[disabled] {
	opacity: 0.65;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.ihbp-button--inline {
	display: inline-block;
	width: auto;
	margin-top: 0;
	text-decoration: none;
}

.ihbp-smallprint {
	margin: 16px 0 0;
	color: var(--ihbp-muted);
	font-size: 12.5px;
	line-height: 1.55;
	text-align: center;
}

/* ------------------------------------------------------------------
 * Digital copy band
 * ---------------------------------------------------------------- */

.ihbp-digital {
	padding: clamp(34px, 4.5vw, 56px) 20px;
	background: var(--ihbp-navy-deep);
	background-image: linear-gradient(120deg, var(--ihbp-navy-deep) 0%, var(--ihbp-navy) 100%);
}

.ihbp-digital__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(24px, 4vw, 52px);
	align-items: center;
	max-width: 1140px;
	margin: 0 auto;
}

.ihbp-digital__eyebrow {
	margin: 0 0 8px;
	color: var(--ihbp-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ihbp-digital__heading {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.2;
}

.ihbp-digital__text {
	margin: 0;
	max-width: 34em;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15.5px;
	line-height: 1.65;
}

.ihbp-digital__alert {
	margin-bottom: 16px;
}

.ihbp-digital__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 16px;
	align-items: end;
}

.ihbp-digital__row .ihbp-field--submit {
	grid-column: 1 / -1;
}

.ihbp-label--light {
	color: rgba(255, 255, 255, 0.9);
}

.ihbp-error--light {
	color: #ffcdc9;
}

.ihbp-button--compact {
	width: auto;
	min-width: 220px;
	margin-top: 4px;
	padding: 14px 30px;
}

@media (max-width: 900px) {
	.ihbp-digital__inner {
		grid-template-columns: 1fr;
	}

	.ihbp-digital__row {
		grid-template-columns: 1fr;
	}

	.ihbp-button--compact {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
 * Anything typed into the page editor, shown below the form
 * ---------------------------------------------------------------- */

.ihbp-content {
	padding: clamp(32px, 5vw, 68px) 20px;
	background: var(--ihbp-cream);
}

.ihbp-content__inner {
	max-width: 820px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.7;
}

.ihbp-content__inner > *:first-child {
	margin-top: 0;
}

.ihbp-content__inner > *:last-child {
	margin-bottom: 0;
}

.ihbp-content__inner h2,
.ihbp-content__inner h3,
.ihbp-content__inner h4 {
	color: var(--ihbp-navy);
}

.ihbp-content__inner a {
	color: var(--ihbp-navy);
}

/* ------------------------------------------------------------------
 * Thank you page
 * ---------------------------------------------------------------- */

.ihbp-thanks {
	padding: clamp(48px, 7vw, 96px) 20px;
	background: linear-gradient(180deg, #fff 0%, var(--ihbp-cream) 100%);
	text-align: center;
}

.ihbp-thanks__inner {
	max-width: 640px;
	margin: 0 auto;
}

/* Following a banner it needs less breathing room above. */
.ihbp-banner + .ihbp-thanks {
	padding-top: clamp(36px, 5vw, 68px);
}

.ihbp-thanks__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 24px;
	border-radius: 50%;
	background: rgba(196, 151, 42, 0.16);
	color: var(--ihbp-gold-dark);
}

.ihbp-thanks__heading {
	margin: 0 0 16px;
	color: var(--ihbp-navy);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
}

.ihbp-thanks__lead {
	margin: 0 auto 20px;
	max-width: 32em;
	font-size: 18px;
	line-height: 1.65;
}

.ihbp-thanks__note {
	margin: 0 auto 10px;
	max-width: 34em;
	font-size: 15.5px;
	line-height: 1.6;
}

.ihbp-thanks__note--quiet {
	color: var(--ihbp-muted);
	font-size: 14px;
}

.ihbp-thanks__note a {
	color: var(--ihbp-gold-dark);
}

.ihbp-thanks__actions {
	margin: 32px 0 0;
}

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

@media (max-width: 900px) {
	.ihbp-banner::after {
		background:
			linear-gradient(
				90deg,
				rgba(var(--ihbp-overlay-rgb), 0.9) 0%,
				rgba(var(--ihbp-overlay-rgb), 0.78) 100%
			);
	}

	.ihbp-brochure__inner {
		grid-template-columns: 1fr;
	}

	.ihbp-cover {
		max-width: 240px;
		margin: 0 auto;
	}
}

@media (max-width: 520px) {
	.ihbp-grid {
		grid-template-columns: 1fr;
	}

	.ihbp-field--full {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ihbp-scope * {
		transition: none !important;
	}

	.ihbp-cover img,
	.ihbp-cover img:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * Theme overrides
 *
 * The theme styles h1 and img site-wide with rules that beat the ones
 * above, which turned the banner title blue and broke the photo crop.
 * These few !important declarations are only here to win those fights.
 * Everything in this block is deliberate - nothing else needs it.
 * ---------------------------------------------------------------- */

.ihbp-scope .ihbp-banner__media {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ihbp-scope .ihbp-banner__media img,
.ihbp-scope .ihbp-banner__img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	filter: none !important;
	transform: none !important;
}

.ihbp-scope .ihbp-banner__title {
	color: #fff !important;
}

.ihbp-scope .ihbp-banner__eyebrow {
	color: var(--ihbp-gold) !important;
}

.ihbp-scope .ihbp-banner__standfirst {
	color: rgba(255, 255, 255, 0.88) !important;
}

.ihbp-scope .ihbp-crumbs,
.ihbp-scope .ihbp-crumbs a {
	color: rgba(255, 255, 255, 0.72) !important;
}

.ihbp-scope .ihbp-crumbs a:hover,
.ihbp-scope .ihbp-crumbs a:focus,
.ihbp-scope .ihbp-crumbs__current {
	color: #fff !important;
}

/* Headings on white. The theme colours these too, so all three are held. */
.ihbp-scope .ihbp-thanks__heading,
.ihbp-scope .ihbp-brochure__heading,
.ihbp-scope .ihbp-card__title {
	color: var(--ihbp-navy) !important;
}

.ihbp-scope .ihbp-digital__heading {
	color: #fff !important;
}

.ihbp-scope .ihbp-digital__eyebrow {
	color: var(--ihbp-gold) !important;
}

.ihbp-scope .ihbp-label--light {
	color: rgba(255, 255, 255, 0.9) !important;
}

/*
 * The background has to be held as well as the text. Forcing white text
 * without forcing the gold behind it risks white on the theme's own button
 * colour, which could be white on white.
 */
.ihbp-scope .ihbp-button {
	background: var(--ihbp-gold) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	text-decoration: none !important;
	line-height: 1.3 !important;
}

.ihbp-scope .ihbp-button:hover,
.ihbp-scope .ihbp-button:focus {
	background: var(--ihbp-gold-dark) !important;
	color: #fff !important;
}

/* The brochure cover is exposed to the same theme img rules as the banner. */
.ihbp-scope .ihbp-cover img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	min-height: 0 !important;
}
