/* iTax website styles: Taxnetix group look for the top bar, hero and footer (dark gradient
   surfaces, neutral greys); the content area uses white cards with iTax green as the accent.
   Used by index.html. */

/* Poppins, self-hosted (SIL Open Font License, see fonts/poppins/OFL.txt). Latin subset. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins/poppins-latin-600-normal.woff2) format("woff2"); }

:root {
	/* Taxnetix neutrals: TNX-LEG-001 and taxnetix.co.za (--color-brand-*) */
	--txn-black: #0a0a0a;      /* headings, dark bars */
	--txn-dark: #262626;       /* body text */
	--txn-charcoal: #383b3b;   /* secondary dark fill */
	--txn-mid: #737373;        /* rules, borders, muted text on light */
	--txn-light: #a3a3a3;      /* muted text on dark */
	--txn-hairline: #e8e8e8;   /* hairlines */
	--txn-offwhite: #fafafa;   /* page background */
	--white: #ffffff;
	/* taxnetix.co.za --brand-gradient */
	--txn-gradient: linear-gradient(142.58deg, #0a0a0a 0%, #383b3b 100%);
	--txn-blue: linear-gradient(135deg, #2f6fd6 0%, #005baa 100%);
	--hairline-dark: rgba(255, 255, 255, 0.16);

	/* iTax greens */
	--green-dark: #108a3c;
	--green-mid: #3da447;
	--green-light: #8cc63f;
	--green-ink: #0c7a34;      /* #108a3c darkened a touch so link text passes AA on white */
	--green-dot: linear-gradient(135deg, #8cc63f 0%, #3da447 100%);
	--green-gradient: linear-gradient(90deg, #138b3e 0%, #4aa647 55%, #8cc63f 100%);

	--radius: 10px;
	--focus: var(--green-dark);
}

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

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

body {
	margin: 0;
	font-family: "Poppins", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--txn-dark);
	background: var(--txn-offwhite);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

a { color: var(--green-ink); }
a:hover { color: var(--green-mid); }

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

.on-dark { --focus: var(--green-light); }

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--white);
	color: var(--txn-black);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* Green dot that closes a headline, mirroring the Taxnetix wordmark */
.dot {
	display: inline-block;
	width: 0.2em;
	height: 0.2em;
	margin-left: 0.08em;
	border-radius: 50%;
	background: var(--green-dot);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg { flex: none; width: 17px; height: 17px; transition: transform 0.15s ease; }

.btn:focus-visible { border-radius: 999px; }

/* iTax Login: outline on the dark top bar, green lock; outline turns iTax green on hover
   (echoes the footer's "Discover More") */
.btn-login,
.btn-login:hover { color: var(--white); }

.btn-login {
	min-height: 40px;
	padding: 0 20px;
	gap: 9px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	background: transparent;
	font-size: 14px;
	font-weight: 500;
}

.btn-login svg { width: 16px; height: 16px; color: var(--green-light); }

.btn-login:hover {
	border-color: var(--green-light);
	background: rgba(140, 198, 63, 0.1);
}

.btn-login:active { background: rgba(140, 198, 63, 0.18); }

/* ---------- Top menu bar ---------- */

.topbar {
	background: linear-gradient(90deg, #0a0a0a 0%, #262626 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 76px;
}

.itax-mark {
	display: flex;
	align-items: center;
	flex: none;
	padding: 6px 0;
	transition: opacity 0.15s ease;
}

.itax-mark img {
	display: block;
	height: 32px;
	width: auto;
	/* green wordmark rendered white for the dark bar */
	filter: brightness(0) invert(1);
}

.itax-mark:hover { opacity: 0.82; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--txn-gradient);
	color: var(--white);
	padding: 80px 0;
}

/* faint brand glows: small accents only */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(520px 360px at 88% 8%, rgba(140, 198, 63, 0.13), transparent 70%),
		radial-gradient(420px 320px at 104% 92%, rgba(47, 111, 214, 0.14), transparent 70%);
	pointer-events: none;
}

.hero .container { position: relative; }

.hero-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
}

.hero h1 {
	margin: 0;
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.hero-sub {
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--txn-light);
}

.hero-sub strong { font-weight: 500; color: var(--white); }
.hero-sub a { color: var(--green-light); }
.hero-sub a:hover { color: var(--white); }

.hero-aside { flex: none; }

.trust {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 500;
}

.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { flex: none; width: 18px; height: 18px; color: var(--green-light); }

/* ---------- Content (earlier proposal's structure and sizing) ---------- */

.content { padding-top: 40px; padding-bottom: 48px; }

/* Row 1: About (left) | Help Desk over the two QR tiles (right). Row 2: Stay connected band. */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.card {
	background: var(--white);
	border: 1px solid var(--txn-hairline);
	border-radius: var(--radius);
	padding: 28px 32px;
}

.card h2 {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--txn-black);
}

.card h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 10px;
	border-radius: 2px;
	background: var(--green-gradient);
}

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

.about p { font-size: 16px; line-height: 1.7; }
.about .lead { font-size: 21px; font-weight: 400; line-height: 1.5; color: var(--txn-black); margin-bottom: 18px; }

.helpdesk dl {
	display: grid;
	grid-template-columns: auto auto;
	grid-auto-flow: column;
	grid-template-rows: auto auto;
	justify-content: start;
	gap: 2px 32px;
	margin: 16px 0 0;
}

.helpdesk dt {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--txn-mid);
}

.helpdesk dd { margin: 0; font-size: 17px; font-weight: 500; }

/* QR tiles: QR in Taxnetix dark grey, iTax-green highlighted label, green glow on hover */

.tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 12px;
	background: var(--white);
	border: 1px solid var(--txn-hairline);
	border-radius: var(--radius);
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile img { display: block; width: 100%; max-width: 120px; height: auto; }

.tile-label {
	color: var(--txn-black);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.tile:hover,
.tile:focus-visible {
	transform: translateY(-2px);
	border-color: var(--green-light);
	box-shadow: 0 0 0 1px var(--green-light), 0 8px 28px -6px rgba(61, 164, 71, 0.45);
}

.tile:hover .tile-label,
.tile:focus-visible .tile-label { color: var(--green-ink); }

.tile:focus-visible { outline: none; border-radius: var(--radius); }

/* Stay connected band: banner artwork on the left, real social links on the right */

.connect {
	position: relative;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	min-height: 200px;
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(90deg, #4fa845 0%, #2b9a40 45%, #138b3e 100%);
	color: var(--white);
}

.connect-art {
	align-self: stretch;
	min-height: 200px;
	background: url(../images/itax-connect-illustration.jpg) left center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}

.connect-body { padding: 28px 36px 28px 16px; }

.connect h2 {
	margin: 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.connect p { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.9); }

.connect-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.social-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 8px 10px;
	border-radius: 999px;
	background: var(--white);
	color: var(--txn-black);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-btn img { display: block; width: 22px; height: 22px; }

.social-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	color: var(--txn-black);
}

.social-btn:focus-visible { outline-color: var(--white); border-radius: 999px; }

/* ---------- Footer (compact, Taxnetix dark) ---------- */

.site-footer {
	background: var(--txn-gradient);
	color: #e9e9e9;
	font-size: 13px;
	--focus: var(--green-light);
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #e9e9e9; text-decoration: none; }
.footer-links a:hover { color: var(--green-light); }

.copyright { margin: 0; color: var(--txn-light); font-size: 12px; }

.footer-bottom {
	display: flex;
	align-items: center;
	gap: 12px 24px;
	padding-top: 14px;
	padding-bottom: 16px;
}

.footer-bottom p { flex: 1; margin: 0; font-size: 12px; }

.taxnetix-mark { flex: none; display: block; transition: opacity 0.15s ease; }
.taxnetix-mark img { display: block; height: 22px; width: auto; }
.taxnetix-mark:hover { opacity: 0.82; }

.btn-outline,
.btn-outline:hover { color: var(--white); }

.btn-outline {
	flex: none;
	padding: 3px 34px;
	border: 1.5px solid transparent;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	background:
		linear-gradient(#262626, #262626) padding-box,
		linear-gradient(90deg, #2f6fd6, #8cc63f) border-box;
}

.btn-outline:hover {
	background:
		linear-gradient(#3a3a3a, #3a3a3a) padding-box,
		linear-gradient(90deg, #2f6fd6, #8cc63f) border-box;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.hero { padding: 56px 0; }
	.hero-inner { flex-direction: column; align-items: flex-start; }
	.trust { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
	.layout { grid-template-columns: 1fr; gap: 16px; }
	/* Footer stacks: links then copyright; Taxnetix logo, announcement, then Discover More */
	.footer-top { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 24px; padding-bottom: 20px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; padding-bottom: 28px; }
	.footer-bottom p { flex: none; font-size: 13px; line-height: 1.6; }
	.btn-outline { padding: 8px 30px; font-size: 13px; }
}

@media (max-width: 640px) {
	/* side padding only: the footer rows use .container for their vertical padding too */
	.container { padding-left: 16px; padding-right: 16px; }

	.topbar .container { height: 62px; }
	.itax-mark img { height: 26px; }
	.topbar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
	.topbar .btn svg { width: 15px; height: 15px; }

	.hero { padding: 44px 0; }
	.hero-sub { font-size: 15px; }
	.trust { font-size: 14px; }

	.content { padding-top: 24px; padding-bottom: 40px; }
	.card { padding: 22px 20px; }
	.layout,
	.side,
	.tiles { gap: 12px; }
	.about .lead { font-size: 18px; }
	.helpdesk dl { column-gap: 24px; }
	.about p { font-size: 15px; }

	.connect { grid-template-columns: 1fr; }
	.connect-art {
		min-height: 140px;
		-webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
	}
	.connect-body { padding: 4px 20px 24px; }
	.connect h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; }
}

/* ---------- What we do card and Enter & win badge (added with v3) ---------- */

/* What we do: full-width card with three services */

.services { grid-column: 1 / -1; }

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 40px;
	margin-top: 20px;
}

.service h3 {
	margin: 14px 0 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--txn-black);
}

.service p { margin: 0; font-size: 14px; color: var(--txn-mid); }

.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #eef7e6;
	color: var(--green-ink);
}

.service-icon svg { width: 22px; height: 22px; }

/* Enter & win badge on the Pulse Survey tile */

/* Extra top room so the badge never overlaps the QR code or its white margin */
.tile { position: relative; padding-top: 36px; }

.tile-badge {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--green-dot);
	color: var(--txn-black);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

@media (max-width: 960px) {
	.services-grid { grid-template-columns: 1fr; gap: 20px; }
	.service { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
	.service-icon { grid-row: span 2; }
	.service h3 { margin-top: 0; align-self: end; }
}

@media (max-width: 640px) {
	.tile { padding-top: 32px; }
	.tile-badge { top: 8px; font-size: 10px; padding: 2px 8px; }
}
