/* Tech Empire Landing */

/* Let the landing page run full width inside Astra. */
.tel-landing #content > .ast-container,
.tel-landing .site-content > .ast-container {
	max-width: none;
	padding: 0;
	display: block;
}
.tel-landing #primary { margin: 0; padding: 0; }

.tel {
	--tel-paper: #f5f7f4;
	--tel-white: #ffffff;
	--tel-ink: #14181d;
	--tel-ink-2: #535c63;
	--tel-green: #178a45;
	--tel-green-dark: #116b35;
	--tel-forest: #0d3b24;
	--tel-mint: #e4f1e8;
	--tel-line: #dbe3dd;
	--tel-amber: #f2c14e;
	--tel-display: "Bricolage Grotesque", "Lato", system-ui, sans-serif;
	--tel-body: "Instrument Sans", "Lato", system-ui, sans-serif;
	--tel-gutter: 20px;

	background: var(--tel-paper);
	color: var(--tel-ink);
	font-family: var(--tel-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	display: block;
	width: 100%;
	overflow-x: clip;
}
.tel *, .tel *::before, .tel *::after { box-sizing: border-box; }
/* Resets use :where() so section rules below always win. Headings also get
   family/colour on their own classes to beat the Elementor kit's heading styles. */
.tel :where(ul, ol, dl, dd) { list-style: none; margin: 0; padding: 0; }
.tel :where(p) { margin: 0; }
.tel :where(h1, h2, h3) { margin: 0; text-transform: none; }
.tel :where(img) { display: block; max-width: 100%; height: auto; }
.tel :where(a) { text-decoration: none; }
.tel .tel-hero__title,
.tel .tel-h2,
.tel .tel-sale__title,
.tel .tel-step__title {
	font-family: var(--tel-display);
	color: var(--tel-ink);
	margin: 0;
	letter-spacing: -0.02em;
}
.tel a:focus-visible,
.tel .tel-btn:focus-visible {
	outline: 3px solid var(--tel-green);
	outline-offset: 3px;
	border-radius: 999px;
}

.tel-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--tel-gutter);
}

.tel-section { padding: 72px 0 0; }
.tel-section--tight { padding-top: 56px; }
.tel-section--last { padding-bottom: 88px; }

.tel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.tel .tel-h2 {
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	line-height: 1.1;
	font-weight: 700;
}
.tel .tel-link {
	color: var(--tel-green-dark);
	font-weight: 600;
	font-size: 0.9375rem;
	white-space: nowrap;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 1px;
}
.tel .tel-link:hover { color: var(--tel-ink); }

/* Buttons */
.tel .tel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: var(--tel-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tel .tel-btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.tel .tel-btn--block { display: flex; width: 100%; }
.tel .tel-btn--solid { background: var(--tel-green); color: #fff; }
.tel .tel-btn--solid:hover { background: var(--tel-green-dark); color: #fff; }
.tel .tel-btn--ghost { background: transparent; color: var(--tel-ink); border-color: var(--tel-ink); }
.tel .tel-btn--ghost:hover { background: var(--tel-ink); color: #fff; }
.tel .tel-btn--light { background: #fff; color: var(--tel-forest); }
.tel .tel-btn--light:hover { background: var(--tel-amber); color: var(--tel-ink); }
.tel .tel-btn svg { flex: none; }

/* WooCommerce ajax states */
.tel .tel-btn.loading { opacity: .65; pointer-events: none; }
.tel .tel-btn.added::after { content: none; }
.tel .added_to_cart {
	display: block;
	margin-top: 8px;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tel-green-dark);
	padding: 0;
	background: none;
}

/* Hero */
.tel-hero { padding: 56px 0 8px; }
.tel-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}
.tel .tel-hero__title {
	font-size: clamp(2.5rem, 5.4vw, 4.6rem);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.035em;
	font-variation-settings: "opsz" 96;
	max-width: 14ch;
	text-wrap: balance;
}
.tel-hero__text {
	margin-top: 22px;
	max-width: 46ch;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--tel-ink-2);
}
.tel-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.tel-hero__stage {
	position: relative;
	padding-bottom: 48px;
}
.tel-hero__photo {
	background: var(--tel-forest);
	border-radius: 28px;
	padding: 14px;
	aspect-ratio: 5 / 4;
	margin-left: 48px;
}
.tel-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px;
}

/* The delivery slip: the one loud element on the page. */
.tel-slip {
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(300px, 78%);
	background: var(--tel-white);
	border-radius: 10px;
	padding: 18px 20px 16px;
	box-shadow: 0 1px 0 rgba(20, 24, 29, .06), 0 18px 40px -12px rgba(13, 59, 36, .35);
	transform: rotate(-3deg);
	transform-origin: 20% 100%;
	animation: tel-slip-in .7s cubic-bezier(.2, .9, .3, 1.2) .25s both;
}
.tel-slip::before {
	/* perforated top edge */
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	top: -5px;
	height: 10px;
	background: radial-gradient(circle at 5px 5px, var(--tel-paper) 3px, transparent 3.5px) 0 0 / 14px 10px repeat-x;
}
.tel-slip__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 1.5px dashed var(--tel-line);
}
.tel-slip__brand {
	font-family: var(--tel-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.01em;
}
.tel-slip__stamp {
	font-family: var(--tel-display);
	font-weight: 800;
	font-size: 0.8125rem;
	color: var(--tel-green);
	border: 2px solid currentColor;
	border-radius: 6px;
	padding: 2px 7px;
	transform: rotate(8deg);
}
.tel-slip__rows > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--tel-line);
	font-size: 0.875rem;
	line-height: 1.35;
}
.tel-slip__rows dt { color: var(--tel-ink-2); }
.tel-slip__rows dd { font-weight: 600; text-align: right; }
.tel-slip__code {
	height: 26px;
	margin-top: 12px;
	background: repeating-linear-gradient(90deg,
		var(--tel-ink) 0 2px, transparent 2px 4px,
		var(--tel-ink) 4px 5px, transparent 5px 8px,
		var(--tel-ink) 8px 11px, transparent 11px 13px);
	opacity: .85;
}

@keyframes tel-slip-up {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
@keyframes tel-slip-in {
	from { opacity: 0; transform: translateY(24px) rotate(-9deg); }
	to   { opacity: 1; transform: translateY(0) rotate(-3deg); }
}

/* Categories */
.tel-cats__rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(124px, 1fr);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	scrollbar-width: thin;
}
.tel-cats__rail > li { scroll-snap-align: start; }
.tel .tel-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 16px 10px 14px;
	border-radius: 18px;
	background: var(--tel-white);
	border: 1px solid var(--tel-line);
	color: var(--tel-ink);
	height: 100%;
	transition: border-color .15s ease;
}
.tel .tel-cat:hover { border-color: var(--tel-green); color: var(--tel-ink); }
.tel-cat__img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--tel-mint);
	margin-bottom: 12px;
}
.tel-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.tel-cat__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.tel-cat__count { font-size: 0.8125rem; color: var(--tel-ink-2); margin-top: 2px; }

/* Section head with slider arrows */
.tel-head__tools {
	display: flex;
	align-items: center;
	gap: 18px;
}
.tel-arrows { display: flex; gap: 8px; }
.tel .tel-arrow {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid var(--tel-ink);
	background: transparent;
	color: var(--tel-ink);
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, color .15s ease;
}
.tel .tel-arrow:hover { background: var(--tel-ink); color: #fff; }
.tel .tel-arrow:focus-visible { outline: 3px solid var(--tel-green); outline-offset: 3px; }
.tel-no-scroll .tel-arrows,
.tel-no-scroll .tel-progress { display: none; }

/* Product slider */
.tel-carousel { --tel-cols: 4; --tel-gap: 20px; position: relative; }
.tel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--tel-cols) - 1) * var(--tel-gap)) / var(--tel-cols));
	gap: var(--tel-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: auto; /* the script animates moves itself; loop jumps must be instant */
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* room for the hover lift and shadow, cancelled out by the negative margin */
	padding: 8px 0 22px;
	margin: -8px 0 -22px;
}
.tel-track::-webkit-scrollbar { display: none; }
.tel-track > li { scroll-snap-align: start; }

/* Shows where you are in the list; fills in as the slider moves. */
.tel-progress {
	position: relative;
	height: 3px;
	margin-top: 26px;
	border-radius: 3px;
	background: var(--tel-line);
	overflow: hidden;
}
.tel-progress span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 25%;
	border-radius: 3px;
	background: var(--tel-green);
	transition: transform .45s ease, width .2s ease;
}

.tel-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--tel-white);
	border: 1px solid var(--tel-line);
	border-radius: 18px;
	padding: 8px;
	transition: border-color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.tel .tel-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--tel-mint);
}
.tel .tel-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}
.tel .tel-card__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

@media (hover: hover) {
	.tel-card:hover {
		border-color: #a9c7b3;
		transform: translateY(-4px);
		box-shadow: 0 16px 32px -20px rgba(13, 59, 36, .5);
	}
	.tel .tel-card:hover .tel-card__img { transform: scale(1.06); }
	.tel .tel-card:hover .tel-card__img--hover { opacity: 1; }

	.tel .tel-cat { transition: border-color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
	.tel .tel-cat:hover { transform: translateY(-3px); }
	.tel-cat__img img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
	.tel .tel-cat:hover .tel-cat__img img { transform: scale(1.12); }
}
.tel-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--tel-amber);
	color: var(--tel-ink);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}
.tel-card__badge--out { background: var(--tel-ink); color: #fff; }
.tel-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 8px 8px;
}
.tel-card__cat { font-size: 0.8125rem; color: var(--tel-ink-2); margin-bottom: 4px; }
.tel .tel-card__title {
	font-family: var(--tel-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.tel .tel-card__title a { color: var(--tel-ink); }
.tel .tel-card__title a:hover { color: var(--tel-green-dark); }
.tel-card__price {
	margin: 10px 0 14px;
	font-family: var(--tel-display);
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.2;
	color: var(--tel-ink);
}
.tel-card__price del { color: var(--tel-ink-2); font-weight: 500; font-size: .85em; margin-right: 6px; }
.tel-card__price ins { text-decoration: none; background: none; }
.tel-card__ask {
	font-family: var(--tel-body);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--tel-ink-2);
}
.tel-card__action { margin-top: auto; }

/* Clearance */
.tel-sale {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--tel-forest);
	color: #fff;
	border-radius: 28px;
	padding: 36px 44px;
}
.tel .tel-sale__title {
	color: #fff;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
}
.tel-sale__text { margin-top: 6px; color: #cfe3d6; font-size: 1.0625rem; }

/* Steps: a white panel holding four step cards; the last (pay on delivery) is the payoff. */
.tel-steps__panel {
	background: var(--tel-white);
	border: 1px solid var(--tel-line);
	border-radius: 28px;
	padding: 36px 36px 36px;
}
.tel-steps__intro {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}
.tel-steps__intro p {
	color: var(--tel-ink-2);
	font-size: 1rem;
	max-width: 42ch;
	text-align: right;
}
.tel-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.tel-step {
	background: var(--tel-paper);
	border-radius: 18px;
	padding: 22px 20px 24px;
}
.tel-step__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--tel-white);
	border: 1px solid var(--tel-line);
	color: var(--tel-green);
	margin-bottom: 18px;
}
.tel-step__icon svg { display: block; }
.tel .tel-step__num {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tel-green-dark);
	margin-bottom: 4px;
}
.tel .tel-step__title { font-size: 1.125rem; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.tel-step__text { color: var(--tel-ink-2); font-size: 0.9375rem; line-height: 1.55; }

.tel-step:last-child { background: var(--tel-forest); }
.tel-step:last-child .tel-step__icon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: var(--tel-amber); }
.tel .tel-step:last-child .tel-step__num { color: #9fd3b1; }
.tel .tel-step:last-child .tel-step__title { color: #fff; }
.tel-step:last-child .tel-step__text { color: #cfe3d6; }

/* Help band */
.tel-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	background: var(--tel-mint);
	border-radius: 28px;
	padding: 40px 44px;
}
.tel-help__copy p { margin-top: 10px; color: var(--tel-ink-2); max-width: 52ch; font-size: 1.0625rem; }
.tel-help__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Tablet */
@media (max-width: 1024px) {
	.tel-carousel { --tel-cols: 3; }
	.tel-hero__grid { gap: 36px; }
	.tel-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tel-help { flex-direction: column; align-items: flex-start; }
}

/* Phone */
@media (max-width: 760px) {
	.tel { --tel-gutter: 16px; }
	.tel-section { padding-top: 52px; }
	.tel-section--tight { padding-top: 44px; }
	.tel-section--last { padding-bottom: 60px; }

	/* Mobile hero: one green card (photo on top, copy below), then the slip
	   flattened into a compact 2x2 strip. The stage wrapper dissolves so the
	   photo, copy and slip can be reordered. */
	.tel-hero { padding-top: 14px; }
	.tel-hero__grid { grid-template-columns: 1fr; gap: 0; }
	.tel-hero__stage { display: contents; }

	.tel-hero__photo {
		order: 1;
		margin: 0;
		aspect-ratio: auto;
		padding: 8px 8px 0;
		border-radius: 22px 22px 0 0;
	}
	.tel-hero__photo img { aspect-ratio: 16 / 10; height: auto; border-radius: 15px; }

	.tel-hero__copy {
		order: 2;
		background: var(--tel-forest);
		border-radius: 0 0 22px 22px;
		padding: 18px 18px 20px;
	}
	.tel .tel-hero__title {
		color: #fff;
		font-size: clamp(1.75rem, 8.4vw, 2.25rem);
		line-height: 1.04;
		max-width: none;
	}
	.tel-hero__text {
		margin-top: 10px;
		font-size: 0.9375rem;
		line-height: 1.5;
		color: #cfe3d6;
	}
	.tel-hero__actions { flex-wrap: nowrap; gap: 8px; margin-top: 18px; }
	.tel .tel-hero__actions .tel-btn {
		flex: 1 1 0;
		min-height: 46px;
		padding: 0 10px;
		font-size: 0.875rem;
		white-space: nowrap;
	}
	.tel .tel-hero__actions .tel-btn--solid { background: #fff; color: var(--tel-forest); }
	.tel .tel-hero__actions .tel-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }

	.tel-slip {
		order: 3;
		position: relative;
		left: auto;
		bottom: auto;
		width: auto;
		margin-top: 14px;
		padding: 4px 0;
		transform: none;
		border-radius: 14px;
		box-shadow: 0 1px 0 rgba(20, 24, 29, .05), 0 8px 20px -14px rgba(13, 59, 36, .45);
		animation: tel-slip-up .5s ease-out .15s both;
	}
	.tel-slip__head,
	.tel-slip__code { display: none; }
	.tel-slip__rows { display: grid; grid-template-columns: 1fr 1fr; }
	.tel-slip__rows > div {
		flex-direction: column;
		justify-content: flex-start;
		gap: 1px;
		padding: 10px 14px;
		font-size: 0.8125rem;
	}
	.tel-slip__rows > div:nth-child(odd) { border-right: 1px dashed var(--tel-line); }
	.tel-slip__rows > div:nth-child(n+3) { border-bottom: 0; }
	.tel-slip__rows dt { font-size: 0.75rem; }
	.tel-slip__rows dd { text-align: left; font-size: 0.875rem; }

	.tel-head { margin-bottom: 18px; }
	.tel-cats__rail { grid-auto-columns: 112px; gap: 10px; margin-right: calc(-1 * var(--tel-gutter)); padding-right: var(--tel-gutter); }
	.tel-cat__img { width: 72px; height: 72px; }

	/* Two cards plus a peek of the next one, so it reads as swipeable. */
	.tel-carousel { --tel-cols: 2.25; --tel-gap: 10px; }
	.tel-track { margin-right: calc(-1 * var(--tel-gutter)); padding-right: var(--tel-gutter); scroll-padding-left: 0; }
	.tel-arrows { display: none; }
	.tel-progress { margin-top: 20px; }
	.tel-card { padding: 6px; border-radius: 16px; }
	.tel-card__body { padding: 10px 4px 4px; }
	.tel .tel-card__title { font-size: 0.9375rem; }
	.tel-card__price { font-size: 1.0625rem; margin: 8px 0 12px; }
	.tel-card__ask { font-size: 0.875rem; }
	.tel .tel-card .tel-btn { min-height: 40px; padding: 0 10px; font-size: 0.875rem; }

	.tel-sale { flex-direction: column; align-items: flex-start; padding: 28px 24px; border-radius: 22px; }
	.tel-steps__panel { padding: 22px 14px 14px; border-radius: 22px; }
	.tel-steps__intro { display: block; padding: 0 6px; margin-bottom: 18px; }
	.tel-steps__intro p { text-align: left; margin-top: 6px; font-size: 0.9375rem; }
	.tel-steps__list { grid-template-columns: 1fr; gap: 8px; }
	.tel-step {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 14px;
		align-items: start;
		padding: 14px 16px 16px 14px;
		border-radius: 16px;
	}
	.tel-step__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
	.tel .tel-step__num { margin-bottom: 0; font-size: 0.75rem; }
	.tel .tel-step__title { font-size: 1rem; margin-bottom: 2px; }
	.tel-step__text { font-size: 0.875rem; line-height: 1.5; }
	.tel-help { padding: 28px 24px; border-radius: 22px; }
	.tel-help__actions { width: 100%; }
	.tel-help__actions .tel-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.tel-slip { animation: none; }
	.tel .tel-btn, .tel .tel-cat, .tel-card, .tel .tel-card__img, .tel-cat__img img, .tel-progress span { transition: none; }
}
