/* =====================================================================
   TechnoMind Media - Homepage (front-page.php)
   Prefix: tm-home-   |   Mobile-first   |   Container: 1222px
   Brand colours are the variables at the top (.tm-home block).
   ===================================================================== */

/* ---------- Tokens ---------- */
.tm-home {
	--tm-ink: #0a1633;
	--tm-text: #33415c;
	--tm-muted: #5b6785;
	--tm-blue: #0b5ce5;
	--tm-blue-hover: #0848b8;
	--tm-blue-soft: #eaf2ff;
	--tm-cyan: #2ec5f2;
	--tm-navy: #071a3d;
	--tm-line: #e3e9f4;
	--tm-soft: #f5f8fe;
	--tm-radius: 14px;
	--tm-container: 1222px;
	--tm-gutter: 16px;
	--tm-pad: 56px;
	color: var(--tm-text);
	font-size: 16px;
	line-height: 1.65;
}

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

/* Headings font bundled with the theme, so the design matches whatever the theme settings are */
@font-face {
	font-family: "TM Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "TM Montserrat";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2");
}

/* Make Woodmart's page wrappers full width on this page only (old row layout and new grid layout) */
.tm-home-page .main-page-wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	overflow-x: clip;
}

.tm-home-page .main-page-wrapper > .container,
.tm-home-page .main-page-wrapper > .container-fluid,
.tm-home-page .main-page-wrapper .content-layout-wrapper,
.tm-home-page .main-page-wrapper .wd-content-layout,
.tm-home-page .main-page-wrapper .site-content {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
}

.tm-home-page .main-page-wrapper .sidebar-container,
.tm-home-page .main-page-wrapper .wd-sidebar,
.tm-home-page .page-title,
.tm-home-page .wd-page-title {
	display: none !important;
}

.tm-home {
	display: block;
	width: 100%;
	grid-column: 1 / -1;
	flex: 0 0 100%;
	max-width: 100%;
}

.tm-home-band {
	position: relative;
	width: 100%;
}

.tm-home-container {
	width: 100%;
	max-width: var(--tm-container);
	margin: 0 auto;
	padding: 0 var(--tm-gutter);
}

.tm-home-narrow {
	max-width: 880px;
}

.tm-home-section {
	padding: var(--tm-pad) 0;
}

.tm-home-soft {
	background: var(--tm-soft);
}

.tm-home .tm-icon {
	fill: none !important;
	flex: none;
	width: 24px;
	height: 24px;
}

/* ---------- Typography ---------- */
.tm-home h1,
.tm-home h2,
.tm-home h3,
.tm-home h4,
.tm-home-btn,
.tm-home-eyebrow,
.tm-home-hero-eyebrow,
.tm-home-badge {
	font-family: "TM Montserrat", Montserrat, var(--wd-title-font, Arial), sans-serif;
}

.tm-home h1,
.tm-home h2,
.tm-home h3 {
	margin: 0;
	color: var(--tm-ink);
	letter-spacing: -0.015em;
	text-transform: none;
}

.tm-home p {
	margin: 0;
}

.tm-home-h1 {
	font-size: clamp(32px, 4.2vw, 48px);
	line-height: 1.12;
	font-weight: 800;
}

.tm-home-h2 {
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.2;
	font-weight: 800;
}

.tm-home-h3 {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
}

.tm-home-accent {
	color: var(--tm-cyan);
}

.tm-home-eyebrow {
	margin-bottom: 8px !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tm-blue);
}

.tm-home-head {
	margin-bottom: 32px;
}

.tm-home-head-side {
	margin-top: 14px !important;
	color: var(--tm-muted);
	font-size: 16px;
}

/* ---------- Buttons and links ---------- */
.tm-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.tm-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 9px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tm-home-btn .tm-icon {
	width: 20px;
	height: 20px;
}

.tm-home-btn-primary {
	background: var(--tm-blue);
	color: #fff !important;
}

.tm-home-btn-primary:hover {
	background: var(--tm-blue-hover);
}

.tm-home-btn-outline {
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff !important;
}

.tm-home-btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tm-home-btn-white {
	background: #fff;
	color: var(--tm-blue) !important;
}

.tm-home-btn-white:hover {
	background: var(--tm-blue-soft);
}

.tm-home-link {
	display: block;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 16px;
	font-weight: 700;
	color: var(--tm-blue) !important;
	text-decoration: none !important;
}

.tm-home-link .tm-icon {
	width: 18px;
	height: 18px;
	margin-left: 2px;
	vertical-align: -4px;
	transition: transform 0.2s;
}

.tm-home-link:hover .tm-icon {
	transform: translateX(3px);
}

.tm-home a:focus-visible,
.tm-home button:focus-visible,
.tm-home summary:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 3px;
}

/* ---------- Hero ---------- */
.tm-home-hero {
	overflow: hidden;
	padding: 44px 0 56px;
	background:
		radial-gradient(900px 420px at 80% 30%, rgba(29, 107, 255, 0.45), transparent 65%),
		radial-gradient(600px 300px at 100% 100%, rgba(46, 197, 242, 0.25), transparent 70%),
		linear-gradient(120deg, #051230 0%, #071a3d 55%, #0a2c74 100%);
	color: #dbe6ff;
}

.tm-home-hero .tm-home-h1 {
	color: #fff;
}

.tm-home-hero-grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

.tm-home-hero-eyebrow {
	margin-bottom: 14px !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.tm-home-lead {
	margin-top: 18px !important;
	max-width: 620px;
	font-size: 18px;
	color: #dbe6ff;
}

.tm-home-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: #c8d6f5;
}

.tm-home-crumbs li {
	margin: 0;
}

.tm-home-crumbs li + li::before {
	content: "\203A";
	margin-right: 6px;
	color: #8ea3cc;
}

.tm-home-crumbs a {
	color: #fff;
	text-decoration: none;
}

.tm-home-crumbs a:hover {
	text-decoration: underline;
}

.tm-home-hero-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	color: #fff;
}

.tm-home-hero-checks li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.tm-home-hero-checks .tm-icon {
	width: 26px;
	height: 26px;
	padding: 4px;
	border-radius: 50%;
	background: var(--tm-blue);
	color: #fff;
	stroke-width: 3;
}

/* Laptop illustration (CSS only) */
.tm-home-visual {
	display: none;
	position: relative;
	width: 100%;
	max-width: 520px;
	margin-left: auto;
	aspect-ratio: 520 / 380;
}

.tm-home-laptop {
	position: absolute;
	inset: 12% 8% 6% 12%;
}

.tm-home-screen {
	position: absolute;
	inset: 0 4% 13% 4%;
	overflow: hidden;
	border: 9px solid #1d2433;
	border-radius: 14px;
	background: linear-gradient(160deg, #ffffff 0%, #e6f0ff 100%);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
	transform: perspective(900px) rotateY(-14deg) rotateX(4deg);
	transform-origin: center;
}

.tm-home-base {
	position: absolute;
	left: -4%;
	right: -6%;
	bottom: 4%;
	height: 9%;
	border-radius: 0 0 18px 18px;
	background: linear-gradient(180deg, #e9edf5 0%, #b8c1d3 100%);
	clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
	transform: perspective(900px) rotateY(-14deg);
}

.tm-home-screen-list {
	position: absolute;
	top: 12%;
	left: 7%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-home-screen-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	font-style: italic;
	color: #12224a;
}

.tm-home-screen-list .tm-icon {
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 6px;
	background: #3ccf73;
	color: #fff;
	stroke-width: 3.4;
}

.tm-home-bars {
	position: absolute;
	right: 7%;
	bottom: 12%;
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 46%;
}

.tm-home-bars i {
	display: block;
	width: 14px;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, #2b7bff, #0b4fd6);
}

.tm-home-bars i:nth-child(1) { height: 25%; }
.tm-home-bars i:nth-child(2) { height: 42%; }
.tm-home-bars i:nth-child(3) { height: 58%; }
.tm-home-bars i:nth-child(4) { height: 76%; }
.tm-home-bars i:nth-child(5) { height: 100%; }

.tm-home-trend {
	position: absolute;
	right: 5%;
	top: 10%;
	width: 34%;
	color: #1d6bff;
}

.tm-home-screen-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72%;
	height: auto;
	transform: translate(-50%, -50%);
}

.tm-home-screen-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d6bff;
}

.tm-home-screen-icon .tm-icon {
	width: 46%;
	height: 46%;
	stroke-width: 1.6;
}

.tm-home-tile {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: linear-gradient(160deg, #ffffff, #dde9ff);
	color: #1d5ff0;
	box-shadow: 0 14px 30px rgba(3, 18, 60, 0.45), inset 0 -3px 0 rgba(29, 95, 240, 0.25);
}

.tm-home-tile .tm-icon {
	width: 32px;
	height: 32px;
	stroke-width: 2.2;
}

.tm-home-tile-1 { top: 2%; left: 14%; }
.tm-home-tile-2 { top: 30%; left: 0; }
.tm-home-tile-3 { bottom: 22%; left: 4%; }
.tm-home-tile-4 { bottom: 4%; right: 2%; }

.tm-home-badge {
	position: absolute;
	top: 16%;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border: 4px solid #5cc8ff;
	border-radius: 50%;
	background: #fff;
	color: #0b4fd6;
	font-size: 26px;
	font-weight: 800;
	box-shadow: 0 14px 30px rgba(3, 18, 60, 0.45);
}

/* ---------- Strip of 4 benefits ---------- */
.tm-home-strip {
	border-bottom: 1px solid var(--tm-line);
	background: #fff;
}

.tm-home-strip-grid {
	display: grid;
	gap: 18px;
	margin: 0 auto;
	padding: 24px var(--tm-gutter);
	list-style: none;
}

.tm-home-strip-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
}

.tm-home-strip-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--tm-blue-soft);
	color: var(--tm-blue);
}

.tm-home-strip-icon .tm-icon {
	width: 28px;
	height: 28px;
}

.tm-home-strip-item strong {
	display: block;
	color: var(--tm-ink);
	font-size: 17px;
	line-height: 1.3;
}

.tm-home-strip-item p span {
	display: block;
	margin-top: 2px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--tm-muted);
}

/* ---------- Cards ---------- */
.tm-home-grid-3,
.tm-home-grid-4 {
	display: grid;
	gap: 18px;
}

.tm-home-card {
	--tone: #1d5ff0;
	--tone-bg: #eaf2ff;
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	border: 1px solid color-mix(in srgb, var(--tone) 14%, #fff);
	border-radius: var(--tm-radius);
	background: linear-gradient(160deg, var(--tone-bg) 0%, #ffffff 85%);
}

.tm-home-card p {
	margin-top: 8px;
}

.tm-home-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tone) 14%, #fff);
	color: var(--tone);
}

.tm-home-card-icon .tm-icon {
	width: 30px;
	height: 30px;
}

.tm-home-includes {
	display: grid;
	gap: 6px 14px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	color: var(--tm-ink);
}

.tm-home-includes li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.tm-home-includes .tm-icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.6;
	color: var(--tm-ink);
}

.tm-home-tone-blue { --tone: #1d5ff0; --tone-bg: #eaf2ff; }
.tm-home-tone-purple { --tone: #6d4bf0; --tone-bg: #f1edff; }
.tm-home-tone-green { --tone: #10a36a; --tone-bg: #e8f8f0; }
.tm-home-tone-orange { --tone: #f17a1d; --tone-bg: #fff2e8; }
.tm-home-tone-sky { --tone: #1c8fe0; --tone-bg: #e9f6ff; }
.tm-home-tone-violet { --tone: #7c4ddb; --tone-bg: #f3edff; }

/* ---------- Process ---------- */
.tm-home-steps {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-home-step {
	--tone: #1d5ff0;
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.tm-home-step p {
	margin-top: 6px;
	font-size: 15px;
	color: var(--tm-muted);
}

.tm-home-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tone) 14%, #fff);
	color: var(--tone);
}

.tm-home-step-icon .tm-icon {
	width: 28px;
	height: 28px;
}

.tm-home-step-num {
	color: var(--tone);
}

/* ---------- FAQ ---------- */
.tm-home-faq {
	border-top: 1px solid var(--tm-line);
}

.tm-home-faq-item {
	border-bottom: 1px solid var(--tm-line);
}

.tm-home-faq-item summary {
	position: relative;
	display: block;
	padding: 20px 44px 20px 0;
	cursor: pointer;
	list-style: none;
}

.tm-home-faq-item summary::-webkit-details-marker {
	display: none;
}

.tm-home-faq-item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 6px;
	width: 11px;
	height: 11px;
	margin-top: -8px;
	border-right: 2px solid var(--tm-blue);
	border-bottom: 2px solid var(--tm-blue);
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.tm-home-faq-item[open] summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.tm-home .tm-home-faq-q {
	display: inline;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
}

.tm-home-faq-a {
	padding: 0 44px 20px 0;
	color: var(--tm-muted);
}

/* ---------- CTA band ---------- */
.tm-home-cta-wrap {
	padding-top: calc(var(--tm-pad) * 0.4);
}

.tm-home-cta {
	display: grid;
	gap: 20px;
	padding: 30px 24px;
	border-radius: 18px;
	background:
		radial-gradient(500px 200px at 85% 0%, rgba(46, 197, 242, 0.35), transparent 70%),
		linear-gradient(110deg, #0637b8 0%, #0b5ce5 55%, #1d6bff 100%);
	color: #e2ecff;
}

.tm-home-cta .tm-home-h2 {
	color: #fff;
	font-size: clamp(24px, 2.6vw, 30px);
}

.tm-home-cta-copy p {
	margin-top: 6px;
	font-size: 17px;
}

.tm-home-cta-art {
	display: none;
	width: 96px;
	height: 96px;
}

.tm-home-cta .tm-home-btn {
	justify-self: start;
}

/* ---------- Admin note ---------- */
.tm-admin-note {
	margin: 16px 0 !important;
	padding: 12px 16px;
	border: 2px dashed #f59e0b;
	border-radius: 8px;
	background: #fffbeb;
	color: #78350f;
	font-size: 14px;
}

/* ---------- Tablet 768px+ ---------- */
@media (min-width: 768px) {
	.tm-home {
		--tm-pad: 72px;
		--tm-gutter: 24px;
	}

	.tm-home-visual {
		display: block;
	}

	.tm-home-grid-3,
	.tm-home-grid-4,
	.tm-home-steps,
	.tm-home-strip-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tm-home-includes {
		grid-template-columns: repeat(2, auto);
		justify-content: start;
	}

	.tm-home-cta {
		grid-template-columns: 1fr auto;
		align-items: center;
		padding: 32px 40px;
	}
}

/* ---------- Desktop 1024px+ ---------- */
@media (min-width: 1024px) {
	.tm-home {
		--tm-pad: 80px;
	}

	.tm-home-hero {
		padding: 56px 0 64px;
	}

	.tm-home-hero-grid {
		grid-template-columns: 1.3fr 1fr;
		gap: 40px;
	}

	.tm-home-head-split {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		gap: 48px;
		align-items: center;
	}

	.tm-home-head-split .tm-home-head-side {
		margin-top: 0 !important;
		padding-left: 40px;
		border-left: 1px solid #c8d3e6;
	}

	.tm-home-grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.tm-home-grid-4,
	.tm-home-strip-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.tm-home-strip-item + .tm-home-strip-item {
		padding-left: 20px;
		border-left: 1px solid var(--tm-line);
	}

	.tm-home-steps {
		grid-template-columns: repeat(4, 1fr);
		gap: 40px;
	}

	.tm-home-step + .tm-home-step::before {
		content: "";
		position: absolute;
		top: 17px;
		left: -30px;
		width: 18px;
		height: 18px;
		background: currentColor;
		color: var(--tm-ink);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.tm-home-cta {
		grid-template-columns: auto 1fr auto;
		gap: 32px;
		padding: 28px 48px;
	}

	.tm-home-cta-art {
		display: block;
	}

	.tm-home-cta-copy {
		padding-left: 32px;
		border-left: 1px solid rgba(255, 255, 255, 0.35);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tm-home * {
		transition: none !important;
	}
}

/* ---------- Neutralise Woodmart button / list styles inside this page ---------- */
.tm-home button,
.tm-home .tm-home-btn {
	height: auto;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	line-height: 1.2;
}

.tm-home ul,
.tm-home ol {
	margin-bottom: 0;
}

.tm-home ul li,
.tm-home ol li {
	list-style: none;
}

.tm-home img {
	max-width: 100%;
}

/* ---------- Homepage only ---------- */
.tm-home-hero .tm-home-accent {
	display: block;
}

.tm-home-posts-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}

.tm-home-posts-head .tm-home-head {
	margin-bottom: 0;
}

.tm-home-all {
	font-weight: 700;
	color: var(--tm-blue) !important;
	text-decoration: none !important;
}

.tm-home-all .tm-icon {
	width: 18px;
	height: 18px;
	vertical-align: -4px;
}

.tm-home-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: #fff;
}

.tm-home-post-img {
	display: block;
	aspect-ratio: 16 / 9;
	background: #e6eefc;
}

.tm-home-post-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-home-post-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.tm-home-post .tm-home-h3 {
	font-size: 18px;
}

.tm-home-post .tm-home-h3 a {
	color: inherit;
	text-decoration: none;
}

.tm-home-post .tm-home-h3 a:hover {
	color: var(--tm-blue);
}

.tm-home-steps {
	padding: 26px 22px;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(10, 22, 51, 0.05);
}

@media (min-width: 1024px) {
	.tm-home-steps {
		padding: 28px 36px;
	}
}
