/*
Theme Name: ZTL Holdings
Theme URI: https://welchmarketing.co.uk
Author: Welch Marketing
Author URI: https://welchmarketing.co.uk
Description: Single page holding site for ZTL Holdings Ltd, the group behind Zada Technology and Command Rooms. Built to Welch Standard, zero plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ztl-holdings
Tags: one-page, business, holding-page, dark
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
	font-family: 'Space Grotesk';
	src: url('assets/space-grotesk-var.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('assets/inter-var.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
	--ink: #080B11;
	--ink-2: #0D131C;
	--panel: #111925;
	--line: #1E2937;
	--line-soft: rgba(255, 255, 255, .07);

	--text: #E8EDF4;
	--muted: #8B9AAC;
	--dim: #5D6C7E;

	--green: #25D366;
	--green-dim: rgba(37, 211, 102, .16);
	/* Operating company brand colours. */
	--zada: #F5A623;
	--zada-dim: rgba(245, 166, 35, .18);
	--cr: #3DDCF0;
	--cr-dim: rgba(61, 220, 240, .18);

	--display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
	--body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
	--mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1200px;
	--gut: clamp(20px, 5vw, 48px);
	--rail: 64px;
}

/* ==========================================================================
   3. Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	font-variant-ligatures: none;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1.04;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--green);
	color: #000;
	padding: 12px 20px;
	z-index: 999;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   4. Shared parts
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.tag {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--dim);
	display: flex;
	align-items: center;
	gap: 10px;
}

.tag::before {
	content: '';
	width: 22px;
	height: 1px;
	background: var(--green);
	flex: none;
}

.tag--center {
	justify-content: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 26px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	transition: border-color .25s, background-color .25s, color .25s, transform .25s;
}

.btn span {
	transition: transform .25s;
}

.btn:hover {
	border-color: var(--green);
	color: var(--green);
}

.btn:hover span {
	transform: translateX(4px);
}

.btn--solid {
	background: var(--green);
	border-color: var(--green);
	color: #04140A;
	font-weight: 600;
}

.btn--solid:hover {
	background: #4AE383;
	border-color: #4AE383;
	color: #04140A;
}

/* ==========================================================================
   5. Top rail
   ========================================================================== */

.rail {
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--rail);
	display: flex;
	align-items: center;
	z-index: 50;
	background: rgba(8, 11, 17, .72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}

.rail__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.brand {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 19px;
	letter-spacing: .16em;
}

.brand img {
	max-height: 34px;
	width: auto;
}

.brand small {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	color: var(--dim);
	font-weight: 400;
	text-transform: uppercase;
}

.rail__tel {
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: .08em;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 10px;
	transition: color .25s;
}

.rail__tel:hover {
	color: var(--green);
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	flex: none;
	box-shadow: 0 0 0 0 var(--green-dim);
	animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
	}

	70% {
		box-shadow: 0 0 0 9px rgba(37, 211, 102, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	padding: calc(var(--rail) + 80px) 0 96px;
	overflow: hidden;
	isolation: isolate;
}

.hero__grid,
.hero__glow,
.hero__sweep {
	position: absolute;
	pointer-events: none;
	z-index: -1;
}

.hero__grid {
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, .1) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, .1) 1px, transparent 1px);
	background-size: 76px 76px;
	mask-image: radial-gradient(120% 90% at 22% 42%, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 90% at 22% 42%, #000 0%, transparent 72%);
	opacity: .85;
}

.hero__glow {
	width: 900px;
	height: 900px;
	right: -240px;
	top: -300px;
	background: radial-gradient(circle, rgba(37, 211, 102, .1) 0%, transparent 62%);
}

.hero__sweep {
	left: 0;
	right: 0;
	height: 1px;
	top: 0;
	background: linear-gradient(to right, transparent, rgba(37, 211, 102, .6), transparent);
	animation: sweep 9s cubic-bezier(.7, 0, .3, 1) infinite;
}

@keyframes sweep {
	0% {
		transform: translateY(12vh);
		opacity: 0;
	}

	12% {
		opacity: 1;
	}

	88% {
		opacity: 1;
	}

	100% {
		transform: translateY(96vh);
		opacity: 0;
	}
}

.hero__in {
	max-width: 940px;
}

.hero h1 {
	font-size: clamp(2.9rem, 8.2vw, 6.1rem);
	margin: 26px 0 0;
	font-weight: 500;
}

.hero h1 em {
	font-style: normal;
	color: var(--green);
}

.hero__lede {
	max-width: 640px;
	margin-top: 30px;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: var(--muted);
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 42px;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 34px;
	margin-top: 56px;
	padding-top: 26px;
	border-top: 1px solid var(--line-soft);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
}

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section {
	padding: clamp(80px, 11vw, 132px) 0;
	position: relative;
}

.section--panelled {
	background: var(--ink-2);
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
}

.section__head {
	max-width: 720px;
	margin-bottom: 60px;
}

.section__head h2 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	margin-top: 22px;
	font-weight: 500;
}

.section__head p {
	color: var(--muted);
	margin-top: 22px;
	max-width: 620px;
}

/* ==========================================================================
   8. The wall (operating companies)
   ========================================================================== */

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

.co {
	--co: var(--zada);
	--co-dim: var(--zada-dim);
	--co-btn: #04140A;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	padding: 40px clamp(24px, 3.4vw, 44px) 36px;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .35s, background-color .35s;
}

.co--signal {
	--co: var(--cr);
	--co-dim: var(--cr-dim);
}

.co::before {
	content: '';
	position: absolute;
	inset: -1px -1px auto -1px;
	height: 2px;
	background: var(--co);
	transform: scaleX(.16);
	transform-origin: left;
	transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}

.co:hover {
	transform: translateY(-5px);
	border-color: var(--co-dim);
	background: #131C29;
}

.co:hover::before {
	transform: scaleX(1);
}

.co__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 30px;
}

.co__tally {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--co);
	display: flex;
	align-items: center;
	gap: 9px;
}

.co__tally i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--co);
	display: block;
}

.co__ref {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	color: var(--dim);
}

.co h3 {
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	font-weight: 500;
}

.co__role {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--co);
	margin: 14px 0 20px;
}

.co__copy {
	color: var(--muted);
	font-size: 16px;
}

.co__list {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.co__list li {
	font-size: 14.5px;
	color: var(--muted);
	padding: 13px 0 13px 22px;
	border-bottom: 1px solid var(--line);
	position: relative;
}

.co__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 21px;
	width: 8px;
	height: 1px;
	background: var(--co);
}

.co__go {
	margin-top: 34px;
	padding-top: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--text);
	transition: color .25s;
}

.co__go span {
	transition: transform .3s;
	color: var(--co);
	font-size: 15px;
}

.co:hover .co__go {
	color: var(--co);
}

.co:hover .co__go span {
	transform: translateX(6px);
}

.co__foot {
	margin-top: auto;
}

/* ==========================================================================
   9. Pillars
   ========================================================================== */

.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.pillar {
	background: var(--ink-2);
	padding: 38px clamp(22px, 2.6vw, 34px) 40px;
}

.pillar h3 {
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -.01em;
	margin-bottom: 14px;
}

.pillar p {
	color: var(--muted);
	font-size: 15px;
}

.pillar__no {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .22em;
	color: var(--green);
	display: block;
	margin-bottom: 22px;
}

/* ==========================================================================
   10. Contact
   ========================================================================== */

.contact {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(40px, 6vw, 90px);
	align-items: start;
}

.contact h2 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	margin-top: 22px;
	font-weight: 500;
}

.contact__note {
	color: var(--muted);
	margin-top: 24px;
	max-width: 460px;
}

.dl {
	margin: 0;
	border-top: 1px solid var(--line);
}

.dl__row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.dl dt {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dim);
	padding-top: 3px;
}

.dl dd {
	margin: 0;
	font-size: 16px;
	color: var(--text);
}

.dl dd a {
	border-bottom: 1px solid var(--line);
	transition: color .25s, border-color .25s;
}

.dl dd a:hover {
	color: var(--green);
	border-color: var(--green);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.foot {
	border-top: 1px solid var(--line-soft);
	padding: 44px 0;
	font-size: 13.5px;
	color: var(--dim);
}

.foot__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
}

.foot a {
	transition: color .25s;
}

.foot a:hover {
	color: var(--green);
}

.foot__reg {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .1em;
	color: var(--dim);
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   12. Reveal
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */

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

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.rail__tel span.rail__tel-label {
		display: none;
	}

	.hero {
		min-height: 0;
		padding-top: calc(var(--rail) + 56px);
	}

	.dl__row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.hero__cta .btn {
		width: 100%;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
