/*
Theme Name: Zayntech
Theme URI: https://zayntech.co.uk
Author: Zayntech Limited
Author URI: https://zayntech.co.uk
Description: Custom theme for Zayntech, a Microsoft business solutions consultancy. Includes a one-page home, legal pages and a built-in enquiry form that emails you and saves each enquiry in the dashboard.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: zayntech
*/

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Brand tokens ---------- */
:root {
	--zt-teal: #005A52;
	--zt-teal-dark: #003D37;
	--zt-teal-deep: #004A43;
	--zt-teal-line: #2A7A71;
	--zt-aqua: #93D2CC;
	--zt-mint: #E5F4F2;
	--zt-mint-text: #C4E6E2;
	--zt-orange: #D9601C;
	--zt-orange-dark: #B54E14;
	--zt-peach: #F7D8C7;
	--zt-ink: #0E2E2B;
	--zt-muted: #3D5552;
	--zt-line: #CFE6E2;
	--zt-error: #A3260E;
	--zt-white: #FFFFFF;
	--zt-display: "Sora", system-ui, sans-serif;
	--zt-body: "IBM Plex Sans", system-ui, sans-serif;
	--zt-radius: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--zt-white); color: var(--zt-ink); font-family: var(--zt-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--zt-teal); }
a:hover { color: var(--zt-teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--zt-orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--zt-display); font-weight: 600; margin: 0; }
p { margin: 0; }
[id] { scroll-margin-top: 16px; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; background: var(--zt-white); color: var(--zt-teal); font-weight: 600; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.2); }

.zt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.zt-section { padding: 104px 0; }
.zt-section--mint { background: var(--zt-mint); }
.zt-section--teal { background: var(--zt-teal); color: var(--zt-white); }
.zt-section--ruled { border-top: 1px solid var(--zt-line); }

.zt-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zt-teal); }
.zt-section--teal .zt-eyebrow, .zt-hero .zt-eyebrow { color: var(--zt-aqua); }
.zt-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.02em; }
.zt-muted { color: var(--zt-muted); }

/* ---------- Buttons ---------- */
.zt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 14px 26px; border-radius: 8px; font-family: var(--zt-body); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.zt-btn--teal { background: var(--zt-teal); color: var(--zt-white); }
.zt-btn--teal:hover { background: var(--zt-teal-dark); color: var(--zt-white); }
.zt-btn--orange { background: var(--zt-orange); color: var(--zt-white); font-weight: 700; font-size: 19px; padding: 13px 26px; }
.zt-btn--orange:hover { background: var(--zt-orange-dark); color: var(--zt-white); }
.zt-btn--ghost-light { border-color: var(--zt-aqua); color: var(--zt-white); font-weight: 500; }
.zt-btn--ghost-light:hover { background: var(--zt-teal-deep); color: var(--zt-white); }
.zt-btn--ghost { border-color: var(--zt-teal); color: var(--zt-teal); font-weight: 500; }
.zt-btn--ghost:hover { background: var(--zt-teal); color: var(--zt-white); }

/* ---------- Header ---------- */
.zt-header { border-bottom: 1px solid var(--zt-line); background: var(--zt-white); }
.zt-header__inner { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.zt-logo { display: flex; align-items: center; min-height: 44px; }
.zt-logo img { height: 40px; width: auto; display: block; }
.zt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.zt-nav a:not(.zt-btn) { color: var(--zt-ink); text-decoration: none; padding: 10px 0; }
.zt-nav a:not(.zt-btn):hover { color: var(--zt-teal); text-decoration: underline; text-underline-offset: 4px; }
.zt-nav .zt-btn { padding: 11px 20px; font-size: 16px; font-weight: 500; }

/* ---------- Hero ---------- */
.zt-hero { background: var(--zt-teal); color: var(--zt-white); }
.zt-hero__inner { padding-top: 96px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.zt-hero__copy { flex: 999 1 520px; min-width: 0; }
.zt-hero .zt-eyebrow { margin-bottom: 20px; }
.zt-hero h1 { margin: 0 0 24px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -.03em; }
.zt-hero__lede { margin: 0 0 36px; font-size: 19px; max-width: 600px; color: var(--zt-mint); }
.zt-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.zt-hero__aside { flex: 1 1 340px; min-width: 0; }
.zt-startcard { background: var(--zt-teal-deep); border: 1px solid var(--zt-teal-line); border-radius: 16px; padding: 28px; }
.zt-startcard__title { margin: 0 0 18px; font-family: var(--zt-display); font-weight: 600; font-size: 18px; }
.zt-startcard ol { list-style: none; margin: 0; padding: 0; }
.zt-startcard li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--zt-teal-line); color: var(--zt-mint); }
.zt-startcard li span { font-family: var(--zt-display); font-weight: 600; color: var(--zt-aqua); font-size: 15px; min-width: 28px; }

/* ---------- Cards and grids ---------- */
.zt-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.zt-intro > div { flex: 1 1 520px; min-width: 0; }
.zt-intro > p { flex: 1 1 360px; max-width: 460px; }
.zt-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.zt-card { flex: 1 1 340px; min-width: 0; background: var(--zt-white); border: 1px solid var(--zt-line); border-radius: var(--zt-radius); padding: 32px; }
.zt-card h3 { margin: 0 0 10px; font-size: 21px; }
.zt-card p { color: var(--zt-muted); }
.zt-card--sm { flex-basis: 260px; padding: 28px; }
.zt-card--sm h3 { margin-bottom: 8px; font-size: 19px; }
.zt-card--mint { background: var(--zt-mint); border-color: transparent; }
.zt-card--feature { flex-basis: 100%; background: var(--zt-teal); border-color: transparent; color: var(--zt-white); }
.zt-card--feature h3 { font-size: 22px; margin-bottom: 8px; }
.zt-card--feature p { color: var(--zt-mint); max-width: 640px; }
.zt-card--feature .zt-tag { color: var(--zt-aqua); }
.zt-tag { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.zt-recovery { background: var(--zt-peach); border-radius: 16px; padding: clamp(28px, 4vw, 48px); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.zt-recovery > div { flex: 999 1 480px; min-width: 0; }
.zt-recovery .zt-tag { color: #8A3A0E; margin-bottom: 10px; }
.zt-recovery h3 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.zt-recovery p { color: #3D2A1F; }
.zt-recovery .zt-btn { flex: 0 0 auto; }

.zt-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.zt-split__lead { flex: 1 1 400px; min-width: 0; }
.zt-split__lead .zt-h2 { margin-bottom: 20px; }
.zt-split__lead p + p { margin-top: 16px; }
.zt-split__lead .zt-btn { margin-top: 28px; }
.zt-split__body { flex: 999 1 560px; min-width: 0; }

/* ---------- Approach ---------- */
.zt-approach .zt-h2 { margin-bottom: 56px; max-width: 720px; }
.zt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.zt-steps li { flex: 1 1 240px; min-width: 0; border-top: 2px solid var(--zt-teal); padding-top: 22px; }
.zt-steps__num { margin: 0 0 8px; font-family: var(--zt-display); font-weight: 700; font-size: 24px; color: var(--zt-orange); }
.zt-steps h3 { margin: 0 0 10px; font-size: 21px; }
.zt-steps p { color: var(--zt-muted); }

/* ---------- About ---------- */
.zt-about__copy { flex: 999 1 520px; min-width: 0; }
.zt-about__copy .zt-h2 { margin-bottom: 20px; }
.zt-about__copy p { color: var(--zt-mint); }
.zt-about__copy p + p { margin-top: 16px; }
.zt-about__points { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.zt-point { background: var(--zt-teal-deep); border: 1px solid var(--zt-teal-line); border-radius: var(--zt-radius); padding: 22px 26px; }
.zt-point h3 { font-size: 18px; }
.zt-point p { margin-top: 4px; color: var(--zt-mint-text); font-size: 15px; }

/* ---------- Contact and form ---------- */
.zt-contact { background: var(--zt-peach); border-radius: 20px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.zt-contact__intro { flex: 1 1 340px; min-width: 0; }
.zt-contact__intro h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.zt-contact__intro > p { color: var(--zt-muted); max-width: 560px; }
.zt-contact__direct { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.zt-contact__direct p { color: var(--zt-ink); font-size: 16px; }
.zt-contact__direct a { font-weight: 600; }
.zt-contact__form { flex: 999 1 480px; min-width: 0; background: var(--zt-white); border-radius: var(--zt-radius); padding: clamp(22px, 3vw, 36px); }

.zt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.zt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zt-field--full { grid-column: 1 / -1; }
.zt-field label, .zt-field legend { font-weight: 600; font-size: 15px; }
.zt-field .zt-optional { font-weight: 400; color: var(--zt-muted); }
.zt-field input, .zt-field select, .zt-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--zt-ink); background: var(--zt-white); border: 1px solid #8DA9A5; border-radius: 8px; padding: 12px 14px; min-height: 48px; }
.zt-field textarea { min-height: 150px; resize: vertical; }
.zt-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23005A52' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.zt-field input:focus, .zt-field select:focus, .zt-field textarea:focus { border-color: var(--zt-teal); }
.zt-field [aria-invalid="true"] { border: 2px solid var(--zt-error); }
.zt-field__error { color: var(--zt-error); font-size: 15px; font-weight: 600; }
.zt-check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.zt-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--zt-teal); }
.zt-form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.zt-form__submit .zt-btn { border: 0; }
.zt-form__note { font-size: 14px; color: var(--zt-muted); }
.zt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.zt-alert { grid-column: 1 / -1; border-radius: 10px; padding: 16px 18px; font-size: 16px; }
.zt-alert h3 { font-size: 18px; margin-bottom: 4px; }
.zt-alert ul { margin: 6px 0 0; padding-left: 20px; }
.zt-alert--success { background: var(--zt-mint); border: 2px solid var(--zt-teal); }
.zt-alert--error { background: #FDEDE8; border: 2px solid var(--zt-error); }

@media (max-width: 640px) {
	.zt-form { grid-template-columns: minmax(0, 1fr); }
	.zt-section { padding: 72px 0; }
	.zt-hero__inner { padding-top: 64px; padding-bottom: 72px; }
}

/* ---------- Legal and generic pages ---------- */
.zt-page { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; line-height: 1.65; }
.zt-page h1 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.zt-page__meta { margin: 0 0 40px; color: var(--zt-muted); }
.zt-page .entry-content h2 { margin: 40px 0 12px; font-size: 24px; }
.zt-page .entry-content p, .zt-page .entry-content ul, .zt-page .entry-content ol { margin: 0 0 16px; }
.zt-page .entry-content ul, .zt-page .entry-content ol { padding-left: 24px; }
.zt-404 { text-align: left; }
.zt-404 .zt-btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.zt-footer { border-top: 1px solid var(--zt-line); padding: 40px 0; }
.zt-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--zt-muted); }
.zt-footer__inner img { height: 28px; width: auto; display: block; }
.zt-footer__legal { flex-basis: 100%; }
.zt-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.zt-footer__links a { display: inline-block; padding: 6px 0; }

/* ---------- Decorative patterns and parallax ----------
 * Patterns are drawn from the Zayntech mark: its wireframe "Z" and the isometric
 * box geometry it is built from. Each pattern is an SVG used as a mask, so it can
 * be recoloured here. Layers carrying data-zt-speed move gently on scroll
 * (assets/js/zayntech.js); with reduced motion they stay still. */
.zt-hero, .zt-section--teal, .zt-section--mint, .zt-recovery, .zt-contact { position: relative; overflow: hidden; isolation: isolate; }
.zt-hero > .zt-container, .zt-section--teal > .zt-container, .zt-section--mint > .zt-container { position: relative; z-index: 1; }
.zt-recovery > *:not(.zt-deco), .zt-contact > *:not(.zt-deco) { position: relative; z-index: 1; }

.zt-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.zt-deco__layer { position: absolute; left: 0; right: 0; top: -45%; bottom: -45%; will-change: transform; }
.zt-deco__grid, .zt-deco__cubes, .zt-deco__dots, .zt-deco__z { -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.zt-deco__grid { -webkit-mask-image: url("assets/images/zt-iso-grid.svg"); mask-image: url("assets/images/zt-iso-grid.svg"); -webkit-mask-size: 97px 56px; mask-size: 97px 56px; }
.zt-deco__cubes { -webkit-mask-image: url("assets/images/zt-cubes.svg"); mask-image: url("assets/images/zt-cubes.svg"); -webkit-mask-size: 45.03px 78px; mask-size: 45.03px 78px; }
.zt-deco__dots { -webkit-mask-image: url("assets/images/zt-dots.svg"); mask-image: url("assets/images/zt-dots.svg"); -webkit-mask-size: 28px 16px; mask-size: 28px 16px; }
.zt-deco__z { position: absolute; aspect-ratio: 141 / 252; -webkit-mask-image: url("assets/images/zt-mark.svg"); mask-image: url("assets/images/zt-mark.svg"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; will-change: transform; }

/* Soft edge so patterns fade out rather than stopping hard. */
.zt-deco--fade { -webkit-mask-image: radial-gradient(ellipse 85% 90% at 70% 45%, #000 35%, transparent 85%); mask-image: radial-gradient(ellipse 85% 90% at 70% 45%, #000 35%, transparent 85%); }

/* Hero */
.zt-hero .zt-deco__grid { background-color: var(--zt-aqua); opacity: .10; }
.zt-hero .zt-deco__z { background-color: var(--zt-aqua); opacity: .30; height: 128%; top: -14%; right: max(-6%, calc(50% - 760px)); }
.zt-startcard { position: relative; background: rgba(0, 74, 67, .86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* About (teal) */
.zt-section--teal .zt-deco__cubes { background-color: var(--zt-aqua); opacity: .09; }
.zt-section--teal .zt-deco__z { background-color: var(--zt-aqua); opacity: .16; height: 118%; top: -9%; left: max(-10%, calc(50% - 860px)); }
.zt-point { background: rgba(0, 74, 67, .88); }

/* How we work (mint) */
.zt-section--mint .zt-deco__grid { background-color: var(--zt-teal); opacity: .075; }
.zt-section--mint .zt-deco__z { background-color: var(--zt-teal); opacity: .13; height: 125%; top: -12%; right: max(-4%, calc(50% - 720px)); }

/* Peach panels */
.zt-recovery .zt-deco__dots, .zt-contact .zt-deco__dots { background-color: #B54E14; opacity: .22; }
.zt-recovery .zt-deco__z { background-color: #B54E14; opacity: .16; height: 190%; top: -45%; right: 16%; }
.zt-contact .zt-deco__z { background-color: #B54E14; opacity: .10; height: 95%; bottom: -48%; left: -4%; }

/* Phones: keep the big marks out of the way of the text. */
@media (max-width: 760px) {
	.zt-hero .zt-deco__z { height: 70%; top: auto; bottom: -8%; right: -18%; opacity: .2; }
	.zt-section--teal .zt-deco__z, .zt-section--mint .zt-deco__z { height: 60%; top: auto; bottom: -6%; left: auto; right: -20%; }
	.zt-recovery .zt-deco__z { right: -10%; }
}

@media (prefers-reduced-motion: reduce) {
	.zt-deco__layer, .zt-deco__z { transform: none !important; }
}
@media print { .zt-deco { display: none; } }
