/*
Theme Name: Wappex Consulting
Theme URI: https://wappexconsulting.com/
Description: A WordPress block theme for Wappex Consulting Ltd, with an editable homepage and enquiry form.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: wappex-consulting
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--wx-navy: #101d2c;
	--wx-ink: #192737;
	--wx-cream: #f8f6f0;
	--wx-gold: #f5b754;
	--wx-rust: #805011;
	--wx-muted: #53606a;
	--wx-border: #e6e0d4;
	--wx-paper: #fff;
	--wx-body: "DM Sans", system-ui, sans-serif;
	--wx-display: "Manrope", "DM Sans", system-ui, sans-serif;
}

html { scroll-padding-top: 24px; }
body { margin: 0; }
.wx-home, .wx-header, .wx-footer, .wx-article { font-family: var(--wx-body); }
.wx-home, .wp-site-blocks > :where(header, main, footer) { margin-block: 0; }
.wx-home p, .wx-home h1, .wx-home h2, .wx-home h3, .wx-home figure,
.wx-header p, .wx-footer p, .wx-footer h2 { margin: 0; }
.wx-shell { width: min(100% - 88px, 1240px); margin-inline: auto; }
:is(.wx-home, .wx-header, .wx-footer, .wx-article) :where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid #bc741f;
	outline-offset: 4px;
}

.wx-header { background: #fff; color: var(--wx-navy); }
.wx-header-inner {
	min-height: 88px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 28px;
}
.wx-brand a {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: inherit;
	text-decoration: none;
}
.wx-brand-name {
	display: flex;
	flex-direction: column;
	font: 800 29px/.88 var(--wx-display);
	letter-spacing: -.08em;
}
.wx-brand-name small {
	margin: 6px 0 0 1px;
	font: 700 9px/1 var(--wx-body);
	letter-spacing: .17em;
	white-space: nowrap;
}
.wx-brand-mark {
	display: inline-grid;
	place-items: center;
	position: relative;
	width: 39px;
	height: 39px;
	flex: 0 0 39px;
	border-radius: 7px;
	background: var(--wx-navy);
}
.wx-brand-mark::before {
	content: "";
	width: 27px;
	height: 16px;
	margin-top: -4px;
	background: #fff;
	clip-path: polygon(0 0, 14% 0, 27% 67%, 45% 0, 55% 0, 73% 67%, 86% 0, 100% 0, 80% 100%, 68% 100%, 50% 38%, 32% 100%, 20% 100%);
}
.wx-brand-mark::after {
	content: "";
	position: absolute;
	bottom: 7px;
	width: 24px;
	height: 2px;
	background: var(--wx-gold);
}
.wx-main-nav .wp-block-navigation__container {
	gap: clamp(21px, 3vw, 42px);
}
.wx-main-nav .wp-block-navigation-item__content {
	font-size: .95rem;
	font-weight: 600;
	color: var(--wx-ink);
}
.wx-main-nav .wp-block-navigation-item__content:hover,
.wx-main-nav .current-menu-item > a { color: var(--wx-rust); }
.wx-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 25px max(26px, calc((100vw - 680px) / 2));
}
.wx-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding-block: .45rem;
	font-size: 1.24rem;
}
.wx-header-cta { justify-self: end; }
.wx-button .wp-block-button__link {
	font: 700 .94rem/1.25 var(--wx-body);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 51px;
	border: 1px solid transparent;
	border-radius: 7px;
	padding: .75rem 1.23rem;
	box-sizing: border-box;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.wx-header .wx-button .wp-block-button__link { min-height: 44px; }
.wx-button-dark .wp-block-button__link { background: var(--wx-navy); color: #fff; }
.wx-button-dark .wp-block-button__link:hover { background: #2a4158; color: #fff; }
.wx-button-gold .wp-block-button__link { background: var(--wx-gold); color: var(--wx-navy); }
.wx-button-gold .wp-block-button__link:hover { background: #ffd184; color: var(--wx-navy); }
.wx-button-outline .wp-block-button__link { background: transparent; border-color: #a6afb7; color: #fff; }
.wx-button-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wx-navy); }

.wx-hero {
	background: #0d1724;
	color: #fff;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.wx-hero .wx-hero-image, .wx-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
}
.wx-hero .wx-hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 52%;
}
.wx-hero::after {
	content: "";
	background: linear-gradient(90deg, rgba(11, 23, 35, .99) 0%, rgba(11, 23, 35, .86) 26%, rgba(11, 23, 35, .43) 52%, rgba(11, 23, 35, .06) 80%), linear-gradient(0deg, rgba(10, 18, 29, .26), transparent 50%);
	pointer-events: none;
}
.wx-hero-inner {
	display: flex;
	min-height: 628px;
	box-sizing: border-box;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-block: 82px 96px;
}
.wx-kicker {
	color: var(--wx-rust);
	display: flex;
	align-items: center;
	gap: 10px;
	font: 700 .825rem/1.25 var(--wx-body);
	letter-spacing: .145em;
	text-transform: uppercase;
}
.wx-kicker::before {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
}
.wx-hero .wx-kicker, .wx-approach .wx-kicker { color: var(--wx-gold); }
.wx-hero .wx-hero-title {
	color: #fff;
	margin-top: 23px;
	font: 800 clamp(3.45rem, 6vw, 5.65rem)/.99 var(--wx-display);
	letter-spacing: -.075em;
}
.wx-hero-title strong { color: var(--wx-gold); font-weight: inherit; }
.wx-hero .wx-hero-copy {
	color: #e3e9ed;
	max-width: 490px;
	margin-top: 26px;
	font-size: clamp(1.08rem, 1.65vw, 1.27rem);
	line-height: 1.62;
}
.wx-hero .wx-hero-actions {
	flex-wrap: wrap;
	gap: 11px;
	margin-top: 34px;
}
.wx-hero .wx-button .wp-block-button__link { min-height: 54px; padding-inline: 1.32rem; }
.wx-hero :where(a):focus-visible, .wx-footer :where(a):focus-visible { outline-color: var(--wx-gold); }

.wx-assurance {
	background: #f3eee3;
	color: var(--wx-ink);
	border-bottom: 1px solid #e9e2d4;
}
.wx-assurance-inner {
	display: grid;
	grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
	align-items: center;
	min-height: 82px;
}
.wx-assurance-inner p { padding: 8px 14px; text-align: center; font-weight: 700; font-size: .94rem; }
.wx-assurance-inner p + p { border-inline-start: 1px solid #d8ceba; }
.wx-assurance-inner p.wx-assurance-title {
	color: #71511f;
	text-align: start;
	padding-inline-start: 0;
	font-size: .82rem;
	letter-spacing: .105em;
	text-transform: uppercase;
}

.wx-section { padding-block: clamp(70px, 8.2vw, 120px); }
.wx-services, .wx-insights { background: var(--wx-cream); }
.wx-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	column-gap: 35px;
	row-gap: 13px;
	margin-bottom: 35px;
}
.wx-home .wx-title {
	margin-top: 13px;
	font: 800 clamp(2.48rem, 4.5vw, 4.18rem)/1.04 var(--wx-display);
	letter-spacing: -.068em;
	color: inherit;
	text-wrap: balance;
}
.wx-home .wx-section-summary {
	max-width: 390px;
	margin-bottom: 2px;
	color: var(--wx-muted);
	line-height: 1.62;
}
.wx-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.wx-service-card, .wx-insight-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wx-border);
	border-radius: 10px;
	overflow: hidden;
}
.wx-service-card {
	min-height: 254px;
	box-sizing: border-box;
	padding: 25px 22px 22px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.wx-service-card:hover, .wx-service-card:focus-within { border-color: #cc9f59; box-shadow: 0 8px 30px #59431c0b; }
.wx-service-card::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 21px;
	border-radius: 8px;
	background: #f7ead4;
	background-repeat: no-repeat;
}
.wx-service-strategy::before {
	background-image: radial-gradient(circle, #895716 2px, transparent 3px 5px, #895716 6px 7px, transparent 8px 10px, #895716 11px 12px, transparent 13px);
}
.wx-service-digital::before {
	background-image: linear-gradient(#895716, #895716), linear-gradient(#895716, #895716), linear-gradient(#895716, #895716), linear-gradient(#895716, #895716);
	background-size: 8px 8px;
	background-position: 12px 12px, 24px 12px, 12px 24px, 24px 24px;
}
.wx-service-operations::before {
	background-image: linear-gradient(#895716, #895716), linear-gradient(#895716, #895716), linear-gradient(#895716, #895716);
	background-size: 25px 2px, 19px 2px, 23px 2px;
	background-position: 9px 14px, 9px 21px, 9px 28px;
}
.wx-service-growth::before {
	background-image: linear-gradient(#895716, #895716), linear-gradient(#895716, #895716), linear-gradient(#895716, #895716);
	background-size: 5px 8px, 5px 14px, 5px 21px;
	background-position: 11px 24px, 20px 18px, 29px 11px;
}
.wx-service-card h3, .wx-insight-card h3, .wx-step h3 {
	font: 800 clamp(1.13rem, 1.65vw, 1.34rem)/1.22 var(--wx-display);
	letter-spacing: -.038em;
}
.wx-service-card p:not(.wx-card-link) {
	margin-top: 12px;
	color: var(--wx-muted);
	font-size: 1rem;
	line-height: 1.57;
}
.wx-home .wx-card-link { margin-top: auto; padding-top: 19px; }
.wx-card-link a, .wx-section-link a {
	color: #75501c;
	font-weight: 700;
	font-size: .94rem;
	text-underline-offset: 4px;
}
.wx-card-link a:hover, .wx-section-link a:hover { color: var(--wx-navy); }

.wx-about { background: #fff; }
.wx-about-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(35px, 6.5vw, 95px); align-items: center; }
.wx-about .wx-about-image { border-radius: 12px; overflow: hidden; background: #c9b8a0; }
.wx-about-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1.24;
	object-fit: cover;
}
.wx-about-copy .wx-title { max-width: 12ch; text-wrap: initial; }
.wx-about-copy p:not(.wx-kicker), .wx-approach-intro p:not(.wx-kicker) {
	max-width: 470px;
	margin-top: 20px;
	color: var(--wx-muted);
	font-size: 1.08rem;
	line-height: 1.64;
}
.wx-about-copy .wp-block-buttons { margin-top: 25px; }

.wx-approach {
	background: radial-gradient(ellipse at 8% 100%, #21354b, transparent 60%), var(--wx-navy);
	color: #fff;
}
.wx-approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(38px, 8vw, 118px); }
.wx-approach-intro .wx-title { max-width: 12ch; text-wrap: initial; }
.wx-approach-intro p:not(.wx-kicker), .wx-step p { color: #cbd4dd; }
.wx-steps { counter-reset: steps; }
.wx-step { position: relative; padding: 21px 0 21px 53px; border-top: 1px solid #526277; counter-increment: steps; }
.wx-step:last-child { border-bottom: 1px solid #526277; }
.wx-step::before {
	content: counter(steps, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 23px;
	color: var(--wx-gold);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .06em;
}
.wx-step p { margin-top: 6px; line-height: 1.58; }
.wx-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.wx-insight-card { min-height: 338px; }
.wx-insight-card::before {
	content: "";
	display: block;
	aspect-ratio: 2.17;
	min-height: 139px;
}
.wx-insight-strategy::before {
	background: repeating-radial-gradient(ellipse at 77% 117%, transparent 0 12px, #eecb8460 13px 14px, transparent 15px 23px), linear-gradient(132deg, #14253a, #2e4862);
}
.wx-insight-digital::before {
	background: repeating-linear-gradient(128deg, transparent 0 13px, #f8e7c18a 14px 15px, transparent 16px 27px), linear-gradient(125deg, #945922, #e8aa4d);
}
.wx-insight-growth::before {
	background: repeating-radial-gradient(ellipse at 14% 124%, transparent 0 16px, #26394a69 17px 18px, transparent 19px 27px), linear-gradient(120deg, #baa489, #f0e5d1);
}
.wx-insight-card > :is(p, h3) { margin-inline: 21px; }
.wx-insights .wx-insight-category {
	color: #77511e;
	margin-top: 19px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .035em;
}
.wx-insight-card h3 { margin-top: 8px; }
.wx-insight-card .wx-card-link { padding-bottom: 22px; }

.wx-contact-band { background: #f3bb62; color: var(--wx-navy); }
.wx-contact-inner {
	min-height: 240px;
	padding-block: 52px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 22px 55px;
}
.wx-contact-inner .wx-kicker { color: #5c3a0d; }
.wx-contact-inner .wx-title { text-wrap: initial; }
.wx-contact-inner .wx-title + p { margin-top: 12px; }
.wx-contact-inner > .wp-block-buttons { flex-shrink: 0; }
.wx-contact-inner > .wx-enquiry { width: 100%; max-width: 680px; }

.wx-footer { background: #0d1825; color: #fff; }
.wx-footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 34px;
	padding-block: 49px 41px;
}
.wx-footer .wx-brand-mark { background: #263952; }
.wx-footer-identity > p + p { margin-top: 13px; }
.wx-footer p, .wx-footer a:not(.wx-brand a) { color: #c5cdd8; font-size: .95rem; }
.wx-footer-links h2 {
	font: 700 .85rem/1.3 var(--wx-body);
	text-transform: uppercase;
	letter-spacing: .11em;
	margin-bottom: 10px;
}
.wx-footer-links p + p { margin-top: 6px; }
.wx-footer a:not(.wx-brand a) { text-underline-offset: 3px; }
.wx-footer a:not(.wx-brand a):hover { color: #fff; }
.wx-footer-bottom {
	border-top: 1px solid #3c4855;
	padding-block: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 7px 20px;
}
.wx-footer-bottom p, .wx-footer-bottom a:not(.wx-brand a) { font-size: .83rem; }

.wx-article { margin-inline: auto; padding-block: clamp(54px, 8.3vw, 116px); }
.wx-article .wp-block-post-title {
	font: 800 clamp(2.55rem, 6vw, 5.25rem)/1.02 var(--wx-display);
	letter-spacing: -.07em;
	text-wrap: balance;
}
.wx-article .wp-block-post-content { line-height: 1.68; }
.wx-article .wp-block-post-content :where(h2, h3) { line-height: 1.18; letter-spacing: -.042em; }
.wx-article .wp-block-post-content :where(h2) { margin-top: 2.4rem; }
.wx-article .wappex-content-lead { color: var(--wx-muted); font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.56; }
.wx-article .wappex-content-eyebrow, .wx-article .wappex-article-byline {
	color: var(--wx-rust);
	font-size: .88rem;
	font-weight: 700;
	letter-spacing: .06em;
}
.wx-article .wappex-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.wx-article .wappex-content-card, .wx-article .wappex-content-note {
	padding: 24px;
	border: 1px solid var(--wx-border);
	border-radius: 10px;
	background: #fff;
}
.wx-article .wappex-content-card > :first-child, .wx-article .wappex-content-note > :first-child { margin-top: 0; }
.wx-article .wappex-content-card > :last-child, .wx-article .wappex-content-note > :last-child { margin-bottom: 0; }
.wx-article .wappex-content-card > :where(h2, h3):not(:first-child) { margin-top: .55rem; }
.wx-article .wappex-contact-layout { display: grid; gap: 24px; }
.wx-article .wappex-contact-intro > h2 { margin-top: 0; }
.wx-article .wappex-contact-intro > .wappex-content-note { background: #f3e9d7; }
.wx-article .wappex-content-link > a { color: var(--wx-rust); font-weight: 700; text-underline-offset: 4px; }
.wx-enquiry {
	box-sizing: border-box;
	border: 1px solid var(--wx-border);
	border-radius: 10px;
	padding: clamp(18px, 4vw, 32px);
	background: #fff;
	color: var(--wx-navy);
}
.wx-enquiry-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.wx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wx-form-field { min-width: 0; display: grid; align-content: start; gap: 6px; font-weight: 700; }
.wx-form-field--full { grid-column: 1 / -1; }
.wx-enquiry :where(input:not([type="checkbox"]), select, textarea) {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	border: 1px solid #aab4bc;
	border-radius: 6px;
	padding: 10px 12px;
	background: #fff;
	color: var(--wx-ink);
	font: 400 1rem/1.4 var(--wx-body);
}
.wx-enquiry textarea { min-height: 126px; resize: vertical; }
.wx-enquiry .wx-form-consent { margin: 14px 0; }
.wx-enquiry .wx-form-note { color: var(--wx-muted); font-size: .92rem; }
.wx-form-notice {
	margin-bottom: 16px !important;
	border-left: 3px solid #825314;
	background: #faf0dd;
	padding: 10px 14px;
}
.wx-form-notice--success { border-color: #366340; background: #e6f3e8; }
.wx-form-notice--error { border-color: #a73f37; background: #fff0ed; }
.wx-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	min-height: 46px;
	border: 0;
	border-radius: 7px;
	padding: .75rem 1.23rem;
	background: var(--wx-navy);
	color: #fff;
	font: 700 .94rem/1.25 var(--wx-body);
	cursor: pointer;
}
.wx-enquiry :disabled { cursor: not-allowed; }
.wx-form-submit:disabled { background: #69747d; }

@media (max-width: 1050px) {
	.wx-shell { width: min(100% - 64px, 1240px); }
	.wx-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wx-service-card { min-height: 220px; }
	.wx-hero-inner { min-height: 565px; }
}
@media (max-width: 760px) {
	.wx-shell { width: calc(100% - 40px); }
	.wx-header-inner { min-height: 71px; grid-template-columns: 1fr auto auto; gap: 14px; }
	.wx-header .wx-main-nav { grid-column: 3; grid-row: 1; }
	.wx-header .wx-header-cta { grid-column: 2; grid-row: 1; }
	.wx-header .wx-button .wp-block-button__link { min-height: 39px; padding-inline: .77rem; font-size: .82rem; }
	.wx-header .wx-main-nav .wp-block-navigation__responsive-container-open { display: flex; padding: 6px; }
	.wx-header .wx-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.wx-brand-mark { width: 33px; height: 33px; flex-basis: 33px; }
	.wx-brand-mark::before { width: 23px; height: 14px; }
	.wx-brand-mark::after { width: 20px; bottom: 6px; }
	.wx-brand-name { font-size: 25px; }
	.wx-brand-name small { font-size: 8px; }
	.wx-hero .wx-hero-image img { object-position: 62% 50%; }
	.wx-hero::after { background: linear-gradient(90deg, #0b1724f5, #0b1724c9 40%, #0b172456 100%), linear-gradient(0deg, #0b172473, transparent); }
	.wx-hero-inner { min-height: 520px; padding-block: 61px 72px; }
	.wx-hero .wx-hero-title { font-size: clamp(2.58rem, 8.8vw, 4.4rem); }
	.wx-assurance-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 11px; }
	.wx-assurance-inner p { font-size: .81rem; padding-inline: 7px; line-height: 1.3; }
	.wx-assurance-inner p.wx-assurance-title { grid-column: 1 / -1; text-align: center; font-size: .76rem; }
	.wx-assurance-inner p:nth-child(2) { border-inline-start: 0; }
	.wx-section-heading { align-items: start; flex-direction: column; margin-bottom: 25px; }
	.wx-about-grid, .wx-approach-grid { grid-template-columns: 1fr; }
	.wx-about-image img { aspect-ratio: 1.55; }
	.wx-about-copy .wx-title, .wx-approach-intro .wx-title { max-width: 15ch; }
	.wx-insight-grid { grid-template-columns: 1fr; }
	.wx-insight-card { min-height: 0; }
	.wx-insight-card h3 { margin-bottom: 19px; }
	.wx-insight-card .wx-card-link { padding-top: 0; }
	.wx-contact-inner { align-items: flex-start; }
	.wx-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
	.wx-footer-identity { grid-column: 1/-1; }
}
@media (max-width: 460px) {
	.wx-hero-inner { min-height: 480px; }
	.wx-hero .wx-button .wp-block-button__link { min-height: 48px; padding-inline: .83rem; font-size: .86rem; }
	.wx-service-grid, .wx-article .wappex-content-grid, .wx-form-grid { grid-template-columns: 1fr; }
	.wx-service-card { min-height: 0; }
	.wx-service-card::before { margin-bottom: 14px; }
	.wx-step { padding-left: 38px; }
	.wx-footer-bottom { flex-direction: column; }
}
@media (max-width: 360px) {
	.wx-header .wx-header-inner { width: calc(100% - 32px); gap: 8px; }
	.wx-header .wx-brand a { gap: 7px; }
	.wx-header .wx-brand-name { font-size: 22px; }
	.wx-header .wx-brand-name small { font-size: 7px; }
	.wx-header .wx-header-cta .wp-block-button__link { padding-inline: .58rem; font-size: .77rem; }
	.wx-header .wx-main-nav .wp-block-navigation__responsive-container-open { padding: 4px; }
	.wx-assurance-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wx-assurance-inner p:last-child { grid-column: 1 / -1; border-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.wx-button .wp-block-button__link, .wx-service-card { transition: none; }
}
