/*
Theme Name: YardTech Research
Theme URI: https://yardtech.com.au
Author: YardTech
Description: A simple gateway to YardTech's two industry research questionnaires (tradies and small businesses; accountants and bookkeepers). Separate from the "YardTech" theme, which stays installed for rollback. DRAFT build, 20 Nov 2026.
Version: 0.9.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yardtech-research
*/

:root {
	--ink-950: #0a1014;
	--ink-900: #0f161b;
	--ink-700: #33434d;
	--ink-500: #5b6c76;
	--ink-100: #dde4e8;
	--ink-50: #f1f5f7;
	--teal-600: #12706f;
	--teal-500: #178f7f;
	--teal-300: #6fd0b5;
	--teal-50: #eafaf4;
	--clay-600: #9c5d1f;
	--clay-500: #c2772a;
	--clay-50: #fdf7ee;
	--paper: #ffffff;
	--danger: #b42318;
	--display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink-900);
	background: var(--ink-50);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-600); text-underline-offset: 0.18em; }
a:hover { color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--clay-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
mark { background: #fff1c2; padding: 0 0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(40rem, 100% - 2.5rem); }

/* ---------- header ---------- */
.site-header { background: var(--ink-950); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.logo:hover { color: #fff; }
.logo-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--teal-500); color: #fff; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; }
.nav a { color: var(--ink-100); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--teal-300); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3rem; padding: 0.7rem 1.4rem;
	border: 2px solid transparent; border-radius: 8px;
	font: 600 1rem/1.2 var(--display); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: #0d5554; color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink-900); border-color: var(--ink-900); }
.btn-secondary:hover { background: var(--ink-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--ink-100); }
.btn-ghost:hover { border-color: var(--ink-700); color: var(--ink-900); }
.btn-big { min-height: 3.4rem; padding-inline: 2rem; font-size: 1.1rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-500); text-decoration: underline; font: inherit; font-size: 0.9rem; cursor: pointer; }

/* ---------- hero: the one loud moment ---------- */
.hero { background: var(--ink-950); color: #fff; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 6rem); }
.hero-title {
	font-size: clamp(2.6rem, 8.5vw, 6rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
	max-width: 11ch;
	margin-bottom: 0.45em;
}
.hero-lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-100); max-width: 38rem; margin-bottom: 1.8rem; }
.hero-actions { margin-bottom: 2.2rem; }
.hero-brand { font-family: var(--display); font-weight: 600; color: var(--teal-300); margin: 0; }

/* ---------- the two doors ---------- */
.doors { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doors-intro { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.4rem; }
.door-grid { display: grid; gap: 1.25rem; }
.door-grid.two { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.door-grid.one { max-width: 38rem; }
.door { background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.8rem; border-top: 8px solid var(--teal-500); }
.door-accountant { border-top-color: var(--clay-500); }
.door h3 { font-size: 1.5rem; margin-bottom: 0.35em; }
.door-who { color: var(--ink-500); font-size: 0.98rem; }
.door .btn { margin-top: 0.4rem; }
.doors-more { margin-top: 1.8rem; font-size: 0.98rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.doors-more span { color: var(--ink-500); }

/* ---------- text pages ---------- */
.text-page, .survey-page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.text-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.privacy p { margin-bottom: 1.2em; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form label, .details label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.opt { font-weight: 400; color: var(--ink-500); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
	width: 100%; font: inherit; color: inherit;
	padding: 0.75rem 0.85rem; border: 2px solid var(--ink-100); border-radius: 8px; background: var(--paper);
}
input:focus, textarea:focus { border-color: var(--teal-500); outline: none; box-shadow: 0 0 0 3px rgba(23, 143, 127, 0.25); }
textarea { resize: vertical; min-height: 8rem; }
.small { font-size: 0.92rem; color: var(--ink-500); }
.trap { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 600; }

/* ---------- questionnaire ---------- */
.survey .screen { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); }
.survey-title { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.survey-sub { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-top: -0.4em; }
.count-line { font-weight: 600; color: var(--teal-600); }
.q-title { font-size: clamp(1.35rem, 4.2vw, 1.75rem); font-weight: 800; margin-bottom: 0.5em; }
.q-title:focus, .survey-title:focus { outline: none; }
.hint { color: var(--ink-500); font-size: 0.95rem; margin-top: -0.2em; }
.options { border: 0; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.55rem; }
.option {
	display: flex; align-items: flex-start; gap: 0.8rem;
	min-height: 3.25rem; padding: 0.8rem 1rem;
	border: 2px solid var(--ink-100); border-radius: 8px; background: var(--paper);
	cursor: pointer; line-height: 1.35;
}
.option:hover { border-color: var(--ink-500); }
.option input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0.05rem 0 0; accent-color: var(--teal-500); }
.option:has(input:checked) { border-color: var(--teal-500); background: var(--teal-50); }
.option:has(input:focus-visible) { outline: 3px solid var(--clay-500); outline-offset: 2px; }
.other-input { margin: -0.1rem 0 0.4rem; }
.max-note:empty, .need:empty { display: none; }
.max-note, .need { color: var(--danger); font-weight: 600; }
.answer-text { margin-bottom: 0.9rem; }
.btn-toggle { background: var(--paper); border-color: var(--ink-100); color: var(--ink-700); margin-bottom: 0.9rem; }
.btn-toggle[aria-pressed="true"] { border-color: var(--teal-500); background: var(--teal-50); color: var(--ink-900); }
.mic-tip { font-size: 0.95rem; background: var(--ink-50); border-radius: 8px; padding: 0.7rem 0.9rem; }
.mic-tip small { display: block; color: var(--ink-500); font-size: 0.85rem; margin-top: 0.2rem; }
.client-reminder { font-size: 0.95rem; background: var(--clay-50); border-radius: 8px; padding: 0.7rem 0.9rem; }
.box-note { font-size: 0.9rem; color: var(--ink-500); margin: -0.2rem 0 0.4rem 0.2rem; }
.details { margin-bottom: 1rem; }
.details .field { margin-bottom: 0.8rem; }
.survey-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.survey-nav .btn-primary { margin-left: auto; }
.progress { margin-bottom: 1.3rem; }
.progress-bar { height: 6px; background: var(--ink-100); border-radius: 3px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--teal-500); transition: width 0.25s ease; }
.progress-text { font-size: 0.85rem; color: var(--ink-500); margin: 0.4rem 0 0; }
.save-opt { background: var(--ink-50); border-radius: 8px; padding: 0.8rem 1rem; }
.save-opt label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.save-opt input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--teal-500); }
.save-warn { display: block; font-size: 0.9rem; color: var(--ink-500); margin: 0.3rem 0 0 1.8rem; }
.start-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.4rem; }
.save-tools { margin: 1.2rem 0 0; }
.resume { display: grid; gap: 0.6rem; justify-items: start; margin-top: 1rem; }
.preview-banner { background: #fff1c2; border-radius: 8px; padding: 0.8rem 1rem; }
.thanks-heading { font-size: 1.35rem; margin-top: 1.2rem; }
.thanks-acct { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 600; }
.read-more { display: none; margin-bottom: 1rem; }
@media (max-width: 40rem) {
	.thanks-body:not(.open) .more-para { display: none; }
	.thanks-body:not(.open) .read-more { display: inline-flex; }
	.survey-nav .btn { flex: 1 1 auto; }
	.survey-nav .btn-primary { flex-basis: 100%; order: -1; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-100); padding: 2.5rem 0; }
.footer-line { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0 0 1rem; padding: 0; }
.footer-links a { color: var(--ink-100); }
.footer-links a:hover { color: #fff; }
.footer-small { font-size: 0.85rem; color: #9aa9b2; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
.thanks .survey-title { font-size: clamp(1.45rem, 4.6vw, 1.85rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.thanks .survey-title strong { font-weight: 800; }
