/* ITEMPLS — homepage.
 *
 * Commercial clarity above the fold, then navigation, then proof. The page
 * says what is sold, in which modes, and how it arrives, then gets out of
 * the way. It is deliberately not an SEO article: the content phase belongs
 * on category hubs and guides, where the intent actually is.
 */

.it-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--it-line);
	background:
		radial-gradient(90% 120% at 78% -10%, rgba(245,165,36,.16) 0%, transparent 60%),
		radial-gradient(70% 100% at 10% 0%, rgba(96,165,250,.10) 0%, transparent 55%),
		var(--it-bg);
}
/* The hero was 561px before a single product appeared. Land, understand,
 * shop -- inside one viewport. */
.it-hero__inner { padding-block: var(--it-s6) var(--it-s5); max-width: 720px; }
.it-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--it-accent);
	font-size: var(--it-fs-xs);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: var(--it-s4);
}
.it-hero h1 {
	font-size: clamp(2rem, 5.5vw, 3.25rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: var(--it-s4);
}
.it-hero h1 .it-hl { color: var(--it-accent); }
.it-hero__sub {
	font-size: var(--it-fs-md);
	color: var(--it-text-muted);
	max-width: 56ch;
	margin-bottom: var(--it-s5);
}
.it-hero__cta { display: flex; flex-wrap: wrap; gap: var(--it-s3); }
.it-hero__cta .it-btn { min-width: 190px; }

/* The two primary paths are mode-coloured, matching the rest of the site. */
.it-btn--ladder {
	background: var(--it-ladder); border-color: var(--it-ladder);
	color: var(--it-text-on-accent);
}
.it-btn--ladder:hover { background: var(--it-accent-hover); border-color: var(--it-accent-hover); }
.it-btn--nonladder {
	background: transparent;
	border-color: var(--it-nonladder);
	color: var(--it-nonladder);
}
.it-btn--nonladder:hover { background: var(--it-nonladder-soft); color: var(--it-nonladder); }

.it-hero__strip {
	display: flex; flex-wrap: wrap; gap: var(--it-s5);
	margin-top: var(--it-s6);
	padding-top: var(--it-s5);
	border-top: 1px solid var(--it-line);
	color: var(--it-text-muted);
	font-size: var(--it-fs-sm);
}
.it-hero__strip span { display: inline-flex; align-items: center; gap: 8px; }
.it-hero__strip svg { color: var(--it-ok); flex: none; }

/* ---------------------------------------------------------- section shell */
.it-section { padding-block: var(--it-s7); }
.it-section__head {
	display: flex; align-items: baseline; gap: var(--it-s3);
	margin-bottom: var(--it-s5);
}
.it-section__head h2 { margin: 0; font-size: var(--it-fs-xl); }
.it-section__more { margin-left: auto; font-size: var(--it-fs-sm); font-weight: 600; }

/* ---------------------------------------------------------- class tiles */
.it-classes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--it-s3);
}
.it-class {
	display: flex; flex-direction: column; gap: 4px;
	padding: var(--it-s4);
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: var(--it-r-lg);
	transition: border-color var(--it-t), transform var(--it-t), background var(--it-t);
}
.it-class:hover {
	border-color: var(--it-accent-line);
	background: var(--it-surface-2);
	transform: translateY(-2px);
}
.it-class__ico { color: var(--it-accent); margin-bottom: var(--it-s2); }
.it-class__t { font-weight: 650; color: var(--it-text); }
.it-class__c { font-size: var(--it-fs-xs); color: var(--it-text-faint); }

/* ------------------------------------------------------------- how it works */
.it-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--it-s4);
	counter-reset: step;
}
.it-step {
	position: relative;
	padding: var(--it-s5) var(--it-s4) var(--it-s4);
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: var(--it-r-lg);
}
.it-step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute; top: -14px; left: var(--it-s4);
	width: 28px; height: 28px;
	display: grid; place-items: center;
	background: var(--it-accent);
	color: var(--it-text-on-accent);
	border-radius: 50%;
	font-weight: 800; font-size: var(--it-fs-sm);
}
.it-step__t { font-weight: 650; margin-bottom: 4px; }
.it-step__d { color: var(--it-text-muted); font-size: var(--it-fs-sm); }

/* ------------------------------------------------------------- trust band */
.it-band {
	border-top: 1px solid var(--it-line);
	border-bottom: 1px solid var(--it-line);
	background: var(--it-surface);
}
.it-band__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: var(--it-s5);
	padding-block: var(--it-s6);
}

/* ---------------------------------------------------------------- footer */
.it-footer {
	border-top: 1px solid var(--it-line);
	background: var(--it-surface);
	padding-block: var(--it-s6) var(--it-s4);
	margin-top: var(--it-s7);
}
/* THE FOOTER WAS ONE COLUMN, and not by choice.
 *
 * `1.4fr repeat(auto-fit, minmax(150px, 1fr))` is invalid: an auto-repeat
 * cannot sit beside a flexible track, so the whole declaration was dropped and
 * the grid fell back to a single 1272px column with four stacked blocks in it
 * and 80% of the width empty. Declared explicitly, it behaves. */
.it-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(140px, 1fr));
	gap: var(--it-s6) var(--it-s7);
	align-items: start;
}
/* Nine shop links in one column made the footer 918px tall. Two short columns
 * inside the cell keep it to the height of the brand block beside it. */
.it-footer__shop ul {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--it-s5);
}
.it-footer__brand img { height: 30px; width: auto; }
.it-footer__brand p {
	color: var(--it-text-muted);
	font-size: var(--it-fs-sm);
	margin-top: 10px;
	max-width: 34ch;
	line-height: 1.55;
}
@media (max-width: 960px) {
	.it-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.it-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.it-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--it-s5); }
	.it-footer__shop ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.it-footer h3 {
	font-size: var(--it-fs-xs); text-transform: uppercase; letter-spacing: .1em;
	font-weight: 700;
	color: var(--it-text); margin-bottom: var(--it-s3);
}
.it-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.it-footer a { color: var(--it-text-muted); font-size: var(--it-fs-sm); }
/* FOOTER LINKS WENT WHITE ON HOVER, on a white footer. Shoptimizer's
 * `footer a:not(.button):hover { color: #fff }` (0,2,2) beat `.it-footer a:hover`
 * (0,2,1), and its `a:focus { outline: 0 }` removed the focus ring. The
 * :not(.button) below lifts these to (0,3,1) without !important. Hover/focus use
 * the darker amber (4.62:1 on the light skins' white footer, 6.66:1 on the dark
 * skin) plus an underline, so the state does not rest on colour alone; :visited
 * keeps the muted colour; :focus-visible gets a 2px ring. */
.it-footer a:not(.button):visited { color: var(--it-text-muted); }
.it-footer a:not(.button):hover,
.it-footer a:not(.button):focus-visible {
	color: var(--it-accent-press);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.it-footer a:not(.button):focus-visible {
	outline: 2px solid var(--it-accent-press);
	outline-offset: 2px;
	border-radius: 2px;
}
.it-footer__legal {
	margin-top: var(--it-s6); padding-top: var(--it-s4);
	border-top: 1px solid var(--it-line);
	color: var(--it-text-faint); font-size: var(--it-fs-xs);
	display: flex; flex-wrap: wrap; gap: var(--it-s4);
}

/* Hide the parent theme's footer; ours replaces it. */
.site-footer, footer.site-footer { display: none !important; }

/* Shoptimizer's copyright bar is a separate footer.copyright, not part of
 * .site-footer, so hiding .site-footer alone left it -- "ITEMPLS (c) 2024" and
 * a row of card logos -- sitting between the trust band and the new footer. */
footer.copyright { display: none !important; }
