/* ==========================================================================
   7741 Funding – main stylesheet
   Desktop layout first, mobile layout at the bottom (max-width: 767px).
   ========================================================================== */

@font-face {
	font-family: "DejaVu Sans";
	src: url("../fonts/DejaVuSans.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DejaVu Sans";
	src: url("../fonts/DejaVuSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #171044;
	--navy-hero: rgba(26, 20, 74, 0.86);
	--purple: #332089;
	--purple-hover: #26176b;
	--accent: #6b5bc2;
	--accent-light: #b9aff5;
	--text: #626073;
	--text-light: #d8d3ea;
	--brand-word: #5b5278;
	--tint: #f2f0fa;
	--card: #f8f7fc;
	--line: #e0deea;
	--input: #c9c6d8;
	--white: #fff;

	--maxw: 1180px;
	--gutter: clamp(22px, 5.5vw, 64px);
	--font: "DejaVu Sans", "Verdana", "Segoe UI", system-ui, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--navy); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--maxw) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

/* Shared pieces ---------------------------------------------------------- */
.label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}
.label--light { color: var(--accent-light); }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.btn__arrow { font-weight: 700; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--light { background: var(--white); color: var(--purple); }
.btn--light:hover { background: var(--tint); }
.btn--solid { background: var(--purple); color: var(--white); }
.btn--solid:hover { background: var(--purple-hover); }

/* Header ----------------------------------------------------------------- */
.site-header { background: var(--white); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 112px;
}
.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.brand__mark { width: 40px; height: 40px; margin-right: 20px; }
.brand__number {
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--navy);
	margin-right: 11px;
}
.brand__word {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
	color: var(--brand-word);
	padding-top: 7px;
}
.site-nav {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text);
}
.site-nav a { text-decoration: none; transition: color .2s ease; }
.site-nav a:hover { color: var(--purple); }
.site-nav__sep { margin: 0 14px; }
.site-header__cta { display: none; }

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	background-color: var(--navy);
	background-image: linear-gradient(var(--navy-hero), var(--navy-hero)), var(--hero-image);
	background-size: cover;
	background-position: center, 70% 40%;
	color: var(--white);
}
.hero__inner { padding-top: 84px; padding-bottom: 80px; }
.hero__inner .label { margin-bottom: 60px; }
.hero__title {
	color: var(--white);
	font-size: clamp(40px, 4.4vw, 56px);
	line-height: 1.18;
	max-width: 13em;
	margin-bottom: clamp(48px, 6vw, 84px);
}
.hero__text {
	font-size: 19px;
	line-height: 1.6;
	color: var(--text-light);
	max-width: 21em;
	margin-bottom: 44px;
}
.hero__btn { min-width: 360px; padding: 23px 28px; }

/* Funding range ------------------------------------------------------------ */
.stat { background: var(--tint); }
.stat__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding-top: 44px;
	padding-bottom: 44px;
}
.stat__label { font-size: 14px; margin-bottom: 14px; }
.stat__value {
	font-size: clamp(38px, 4vw, 52px);
	font-weight: 700;
	line-height: 1.05;
	color: var(--navy);
	white-space: nowrap;
}
.stat__text {
	font-size: 19px;
	line-height: 1.6;
	color: var(--text);
	max-width: 24.5em;
	padding-top: 2px;
}

/* What we do ----------------------------------------------------------- */
.about { padding: 84px 0 96px; }
.about__title { font-size: clamp(30px, 3vw, 36px); margin-bottom: 36px; }
.about__text { font-size: 18px; line-height: 1.75; max-width: 46em; }

/* Solutions ------------------------------------------------------------ */
.solutions { padding: 24px 0 48px; }
.solutions__head { margin-bottom: 64px; }
.solutions__title { font-size: clamp(30px, 3vw, 38px); }

.cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}
.card {
	background: var(--card);
	padding: 44px 34px 52px;
	min-height: 250px;
}
.card__num {
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 28px;
}
.card__title { font-size: 23px; margin-bottom: 18px; }
.card__text { font-size: 16.5px; line-height: 1.6; max-width: 23em; }

/* Our approach ----------------------------------------------------------- */
.approach {
	position: relative;
	background: var(--navy);
	color: var(--white);
	margin-top: 48px;
}
.approach__media {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 30.5%;
	background-image: var(--approach-image);
	background-size: cover;
	background-position: center 30%;
}
.approach__inner { padding-top: 42px; padding-bottom: 42px; min-height: 152px; }
.approach__inner .label { margin-bottom: 16px; }
.approach__title {
	color: var(--white);
	font-size: 23px;
	line-height: 1.4;
	max-width: min(17.5em, 58vw);
}
.approach__text { display: none; }

/* Contact ---------------------------------------------------------------- */
.contact { padding: 64px 0 96px; }
.contact__title { font-size: clamp(32px, 3.2vw, 40px); margin-bottom: 20px; }
.contact__text { font-size: 17px; margin-bottom: 52px; }
.contact__phone { font-size: 17px; margin: -36px 0 52px; }
.contact__phone a { color: var(--purple); font-weight: 700; text-decoration: none; white-space: nowrap; }
.contact__phone a:hover { text-decoration: underline; }

.form { max-width: 100%; }
.form__row { margin-bottom: 36px; }
.form__row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
}
.field label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	color: var(--text);
	margin-bottom: 14px;
}
.field input,
.field textarea {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 17px;
	color: var(--navy);
	background: var(--white);
	border: 1.5px solid var(--input);
	border-radius: 0;
	padding: 12px 16px;
	height: 52px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { height: 86px; min-height: 86px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(107, 91, 194, .18);
}
.form__row:last-of-type { margin-bottom: 20px; }
.form__submit { min-width: 274px; padding: 21px 26px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 20px 24px; margin-bottom: 32px; font-size: 16px; border-left: 4px solid; }
.notice--success { background: var(--tint); border-color: var(--purple); color: var(--navy); }
.notice--error { background: #fdf0f0; border-color: #b3261e; color: #7a1c16; }

/* Footer ----------------------------------------------------------------- */
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 30px;
	padding-bottom: 40px;
	position: relative;
}
.site-footer__inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	border-top: 1px solid var(--line);
}
.site-footer__brand { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
.site-footer__text { font-size: 14px; color: var(--text); }
.site-footer__sep { margin: 0 8px; }
.site-footer__phone { color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-footer__phone:hover { color: var(--purple); }

/* Other pages ------------------------------------------------------------ */
.page-content { padding: 64px 0 96px; }
.entry__title { font-size: 40px; margin-bottom: 32px; }
.entry__content h2 { font-size: 28px; margin: 40px 0 16px; }
.entry__content h3 { font-size: 22px; margin: 32px 0 12px; }
.entry__content p, .entry__content ul, .entry__content ol { margin: 0 0 20px; }
.entry__content a { color: var(--purple); }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	.hero__inner .label { margin-bottom: 44px; }
}

/* ==========================================================================
   Mobile – matches the mobile design
   ========================================================================== */
@media (max-width: 767px) {
	body { font-size: 16px; }
	.label { font-size: 12px; margin-bottom: 14px; }

	/* Header: nav becomes a single "Make an enquiry" button */
	.site-header__inner { min-height: 84px; }
	.brand__mark { width: 30px; height: 30px; margin-right: 10px; }
	.brand__number { font-size: 22px; margin-right: 6px; }
	.brand__word { font-size: 12px; padding-top: 4px; }
	.site-nav { display: none; }
	.site-header__cta {
		display: inline-flex;
		font-size: 11px;
		padding: 13px 13px;
		letter-spacing: 0.03em;
		white-space: nowrap;
	}

	/* Hero: funding range sits inside the hero as a bordered card */
	.hero { background-position: center, 62% 50%; }
	.hero__inner { padding-top: 52px; padding-bottom: 0; }
	.hero__inner .label { margin-bottom: 36px; }
	.hero__title {
		font-size: clamp(34px, 10.4vw, 42px);
		line-height: 1.2;
		max-width: 9.5em;
		margin-bottom: 52px;
	}
	.hero__text { font-size: 16px; max-width: 22em; margin-bottom: 28px; }
	.hero__btn { min-width: 0; width: min(100%, 340px); padding: 20px 20px; font-size: 13px; }

	.stat { background: transparent; padding: 44px var(--gutter) 30px; }
	.stat__inner {
		display: block;
		padding: 30px 24px 28px;
		border: 1px solid rgba(185, 175, 245, .45);
		background: rgba(24, 17, 68, .88);
	}
	.stat__label { color: var(--accent-light); font-size: 12px; margin-bottom: 18px; }
	.stat__value { color: var(--white); font-size: clamp(34px, 10vw, 42px); margin-bottom: 16px; }
	.stat__text { color: var(--text-light); font-size: 14px; max-width: none; }

	/* What we do */
	.about { padding: 52px 0 36px; }
	.about__title { font-size: clamp(28px, 8.4vw, 34px); margin-bottom: 32px; }
	.about__text { font-size: 16px; line-height: 1.7; }

	/* Solutions: heading hidden (as in mobile design), cards stay 2 × 2 */
	.solutions { padding: 0 0 22px; }
	.solutions__head { display: none; }
	.cards { gap: 12px; margin-inline: -8px; }
	.card { padding: 26px 18px 34px; min-height: 0; }
	.card__num { font-size: 12px; margin-bottom: 26px; }
	.card__title { font-size: 16.5px; margin-bottom: 18px; }
	.card__text { font-size: 13.5px; line-height: 1.65; }

	/* Approach: image becomes its own full-width strip above the navy block */
	.approach { margin-top: 0; }
	.approach__media {
		position: static;
		width: 100%;
		height: clamp(200px, 62vw, 300px);
		background-position: center 40%;
	}
	.approach__inner { padding-top: 40px; padding-bottom: 44px; min-height: 0; }
	.approach__inner .label { margin-bottom: 22px; }
	.approach__title { font-size: clamp(24px, 7.2vw, 30px); line-height: 1.3; max-width: none; margin-bottom: 26px; }
	.approach__text { display: block; font-size: 15px; line-height: 1.7; color: var(--text-light); max-width: 24em; }

	/* Contact: single column form */
	.contact { padding: 48px 0 56px; }
	.contact__title { font-size: clamp(32px, 9.4vw, 38px); margin-bottom: 30px; }
	.contact__text { font-size: 15px; margin-bottom: 26px; }
	.contact__phone { font-size: 15px; margin: -12px 0 30px; }
	.form__row, .form__row--split { margin-bottom: 26px; }
	.form__row--split { grid-template-columns: 1fr; gap: 26px; }
	.field label { font-size: 12.5px; margin-bottom: 10px; }
	.field input { height: 56px; }
	.field textarea { height: 76px; min-height: 76px; }
	.form__submit { min-width: 0; padding: 20px 22px; font-size: 13.5px; }

	.site-footer__inner { padding-top: 24px; padding-bottom: 32px; }
	.site-footer__brand { font-size: 14px; }
	.site-footer__text { font-size: 13px; }
}

@media (max-width: 359px) {
	.brand__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .btn__arrow { transition: none; }
}
