/**
 * Homepage — laptops-computer.co.ke
 *
 * Rendered by front-page.php. Sections sit inside the theme's .col-full
 * container; .lc-bleed breaks out to full viewport width where needed.
 */

.lc-home {
	padding-bottom: 48px;
}

/*
 * The theme puts 32px of top padding on #content, which left a white band
 * between the header and the hero. This file only loads on the front page,
 * so zeroing it here cannot affect other templates.
 */
#content.site-content {
	padding-top: 0;
}

/* Full-bleed helper: works inside a centred, max-width container. */
.lc-bleed {
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding-right: calc(50vw - 50%);
	padding-left: calc(50vw - 50%);
}

/* =========================================================================
 * BUTTONS
 * ====================================================================== */

.lc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--lc-radius-sm);
	font-size: var(--lc-fs-md);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .18s, color .18s, border-color .18s;
}

.lc-btn--solid {
	background: var(--lc-primary);
	color: #fff;
}

.lc-btn--solid:hover {
	background: var(--lc-primary-dark);
	color: #fff;
}

.lc-btn--ghost {
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}

.lc-btn--ghost:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

/* =========================================================================
 * HERO
 * ====================================================================== */

.lc-hero {
	margin-bottom: 44px;
	background:
		radial-gradient(1100px 380px at 12% -10%, rgba(255, 255, 255, .16), transparent 60%),
		linear-gradient(120deg, var(--lc-primary) 0%, var(--lc-primary-dark) 62%, #001E5E 100%);
	color: #fff;
}

.lc-hero__inner {
	padding: 56px 0 60px;
}

.lc-hero__text {
	max-width: 640px;
}

.lc-hero__eyebrow {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, .75);
	font-size: var(--lc-fs-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.lc-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(28px, 4.4vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.lc-hero__sub {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, .88);
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 1.6;
}

.lc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* =========================================================================
 * SECTION HEADS
 * ====================================================================== */

.lc-row,
.lc-cats {
	margin-bottom: 44px;
}

.lc-row__title {
	margin: 0;
	color: var(--lc-ink);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.25;
}

.lc-row__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.lc-row__tools {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lc-row__more {
	color: var(--lc-primary);
	font-size: var(--lc-fs-md);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lc-row__more:hover {
	text-decoration: underline;
}

.lc-row__nav {
	display: flex;
	gap: 8px;
}

.lc-row__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--lc-line-strong);
	border-radius: var(--lc-radius-pill);
	background: var(--lc-surface);
	color: var(--lc-ink);
	cursor: pointer;
	transition: background-color .18s, color .18s, border-color .18s, opacity .18s;
}

.lc-row__arrow:hover:not(:disabled) {
	border-color: var(--lc-primary);
	background: var(--lc-primary);
	color: #fff;
}

.lc-row__arrow:disabled {
	opacity: .35;
	cursor: default;
}

.lc-row__arrow[data-lc-scroll="prev"] .lc-icon {
	transform: rotate(90deg);
}

.lc-row__arrow[data-lc-scroll="next"] .lc-icon {
	transform: rotate(-90deg);
}

/* =========================================================================
 * CAROUSEL
 *
 * Overrides the CSS grid from catalogue.css for this one context: a single
 * scrolling row with snap points.
 * ====================================================================== */

ul.products.lc-carousel {
	display: flex;
	grid-template-columns: none;
	gap: var(--lc-gap);
	margin: 0 -4px;
	padding: 4px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

ul.products.lc-carousel > li.product {
	flex: 0 0 78%;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	ul.products.lc-carousel > li.product {
		flex-basis: 42%;
	}
}

@media (min-width: 993px) {
	ul.products.lc-carousel > li.product {
		flex-basis: calc((100% - (var(--lc-gap) * 4)) / 5);
	}
}

ul.products.lc-carousel::-webkit-scrollbar {
	height: 6px;
}

ul.products.lc-carousel::-webkit-scrollbar-thumb {
	border-radius: var(--lc-radius-pill);
	background: var(--lc-line-strong);
}

/* =========================================================================
 * CATEGORY TILES
 * ====================================================================== */

.lc-cats__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--lc-gap);
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.lc-cats__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 993px) {
	.lc-cats__grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

.lc-cats__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 18px 12px;
	border: 1px solid var(--lc-line);
	border-radius: var(--lc-radius);
	background: var(--lc-surface);
	color: var(--lc-ink);
	text-align: center;
	text-decoration: none;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}

.lc-cats__item a:hover {
	border-color: var(--lc-primary);
	box-shadow: var(--lc-shadow);
	transform: translateY(-2px);
}

.lc-cats__media {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: var(--lc-radius-pill);
	background: var(--lc-primary-light);
	color: var(--lc-primary);
	overflow: hidden;
}

.lc-cats__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Category names vary from one word to four; pin the block to three lines so
 * the counts underneath line up across the row.
 */
.lc-cats__name {
	display: -webkit-box;
	overflow: hidden;
	min-height: calc(1.35em * 2);
	font-size: var(--lc-fs-sm);
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.lc-cats__item a {
	justify-content: flex-start;
}

.lc-cats__count {
	margin-top: auto;
}

.lc-cats__count {
	color: var(--lc-muted);
	font-size: var(--lc-fs-xs);
}

/* =========================================================================
 * TRUST STRIP
 * ====================================================================== */

.lc-trust {
	margin-bottom: 44px;
	background: var(--lc-surface-alt);
	border-top: 1px solid var(--lc-line);
	border-bottom: 1px solid var(--lc-line);
}

.lc-trust__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	padding: 28px 0;
}

@media (min-width: 768px) {
	.lc-trust__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}
}

.lc-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.lc-trust__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: var(--lc-radius-pill);
	background: var(--lc-primary-light);
	color: var(--lc-primary);
}

.lc-trust__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lc-trust__body strong {
	color: var(--lc-ink);
	font-size: var(--lc-fs-md);
	font-weight: 700;
}

.lc-trust__body span {
	color: var(--lc-muted);
	font-size: var(--lc-fs-sm);
	line-height: 1.5;
}

/* =========================================================================
 * EDITORIAL COPY
 *
 * The existing SEO text. Centre-aligned inline styles come from the page
 * content itself, so this block only sets measure, rhythm and colour.
 * ====================================================================== */

.lc-copy {
	padding-top: 8px;
}

.lc-copy__inner {
	max-width: 860px;
	margin: 0 auto;
	color: var(--lc-body);
	font-size: var(--lc-fs-md);
	line-height: 1.75;
}

.lc-copy__inner h1 {
	margin: 0 0 18px;
	color: var(--lc-ink);
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.25;
}

.lc-copy__inner h5 {
	margin: 26px 0 0;
	padding: 16px 20px;
	border-radius: var(--lc-radius);
	background: var(--lc-primary-light);
	color: var(--lc-primary-dark);
	font-size: var(--lc-fs-md);
	font-weight: 600;
	line-height: 1.6;
}

.lc-copy__inner p {
	margin: 0 0 16px;
}

.lc-copy__inner p:last-child {
	margin-bottom: 0;
}

.lc-copy__inner strong {
	color: var(--lc-ink);
}
