/* T&T Graphics - GotPrint-style homepage */

.ttg-home {
	--ttg-blue: #0370af;
	--ttg-blue-dark: #024f7c;
	--ttg-blue-darker: #013c5f;
	--ttg-orange: #e26835;
	--ttg-ink: #1a2733;
	--ttg-muted: #5b6b7a;
	--ttg-bg: #ffffff;
	--ttg-bg-alt: #f4f7fa;
	--ttg-radius: 12px;
	--ttg-shadow: 0 2px 10px rgba(3, 40, 66, .08);
	--ttg-shadow-hover: 0 14px 34px rgba(3, 40, 66, .18);
	font-family: inherit;
	color: var(--ttg-ink);
}

/* ---------- Full-width homepage ---------- */
body.home #wrapper.container {
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}
body.home #content.container {
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}
body.home .kad-header-menu-outer .container,
body.home .topbarclass .container,
body.home .footerclass .container {
	max-width: 1200px;
}

.ttg-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Buttons ---------- */
.ttg-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 40px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
	position: relative;
	overflow: hidden;
}
.ttg-btn::after { /* shine sweep */
	content: "";
	position: absolute;
	top: 0;
	left: -80%;
	width: 50%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	transition: left .5s ease;
}
.ttg-btn:hover::after { left: 130%; }
.ttg-btn:hover { transform: translateY(-2px); }
.ttg-btn-light {
	background: #fff;
	color: var(--ttg-blue);
	box-shadow: 0 6px 18px rgba(1, 40, 66, .25);
}
.ttg-btn-light:hover { color: var(--ttg-blue-dark); box-shadow: 0 10px 26px rgba(1, 40, 66, .35); }
.ttg-btn-outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .8);
}
.ttg-btn-outline:hover { background: #fff; color: var(--ttg-blue); border-color: #fff; }

/* ---------- Hero ---------- */
.ttg-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, var(--ttg-blue-darker), var(--ttg-blue) 60%, #0a8fd8);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
	padding-bottom: 44px;
}
.ttg-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ttg-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .35;
	animation: ttg-float 12s ease-in-out infinite;
}
.ttg-blob-1 { width: 420px; height: 420px; background: #0a8fd8; top: -120px; right: -80px; }
.ttg-blob-2 { width: 340px; height: 340px; background: var(--ttg-orange); bottom: -160px; left: -100px; animation-delay: -6s; opacity: .22; }
@keyframes ttg-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(30px, -25px) scale(1.08); }
}
.ttg-hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 48px;
	padding-top: 72px;
	padding-bottom: 72px;
	min-height: 460px;
}
.ttg-hero-copy { flex: 1 1 52%; }
.ttg-hero-copy h1 {
	font-size: clamp(32px, 4.4vw, 54px);
	line-height: 1.12;
	margin: 0 0 18px;
	color: #fff;
	font-weight: 700;
}
.ttg-hero-copy p {
	font-size: 18px;
	line-height: 1.65;
	margin: 0 0 30px;
	color: rgba(255, 255, 255, .92);
	max-width: 560px;
}
.ttg-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
/* Decorative print-themed SVG anchored to the hero's bottom right */
.ttg-hero-art {
	position: absolute;
	right: 0;
	bottom: 0;
	width: min(46%, 640px);
	height: auto;
	pointer-events: none;
	/* Global intro speed multiplier: lower = faster (0.8 = 20% faster) */
	--ttg-art-speed: .8;
}
/* Slow ambient float once the intro has played */
.ttg-art-float { animation: ttg-float-img 9s ease-in-out calc(3.2s * var(--ttg-art-speed, 1)) infinite; }
.ttg-art-float-2 { animation: ttg-float-img 11s ease-in-out calc(3.6s * var(--ttg-art-speed, 1)) infinite reverse; }

/* --- Intro: line-draw + staggered reveals --- */
.ttg-hero-art .ttg-draw {
	stroke-dasharray: var(--dash, 1200);
	stroke-dashoffset: var(--dash, 1200);
	animation: ttg-draw calc(var(--dur, 1.2s) * var(--ttg-art-speed)) cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) * var(--ttg-art-speed)) forwards;
}
@keyframes ttg-draw { to { stroke-dashoffset: 0; } }
.ttg-hero-art .ttg-fillin {
	fill-opacity: 0;
	animation: ttg-fillin calc(.7s * var(--ttg-art-speed)) ease calc(var(--fd, 1s) * var(--ttg-art-speed)) forwards;
}
@keyframes ttg-fillin { to { fill-opacity: 1; } }
.ttg-hero-art .ttg-fade {
	opacity: 0;
	animation: ttg-art-fade calc(.6s * var(--ttg-art-speed)) ease calc(var(--d, .8s) * var(--ttg-art-speed)) forwards;
}
@keyframes ttg-art-fade { to { opacity: 1; } }
.ttg-hero-art .ttg-pop {
	opacity: 0;
	transform: scale(.4);
	transform-box: fill-box;
	transform-origin: center;
	animation: ttg-art-pop calc(.55s * var(--ttg-art-speed)) cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, .8s) * var(--ttg-art-speed)) forwards;
}
@keyframes ttg-art-pop { to { opacity: 1; transform: scale(1); } }
.ttg-hero-art .ttg-line {
	opacity: 0;
	transform: translateX(-14px);
	animation: ttg-art-line calc(.5s * var(--ttg-art-speed)) ease calc(var(--d, 1s) * var(--ttg-art-speed)) forwards;
}
@keyframes ttg-art-line { to { opacity: 1; transform: none; } }
/* Marching ants on the scissors cut line */
.ttg-hero-art .ttg-march { animation: ttg-art-fade calc(.6s * var(--ttg-art-speed)) ease calc(var(--d, 1s) * var(--ttg-art-speed)) forwards, ttg-march 1.4s linear infinite; }
@keyframes ttg-march { to { stroke-dashoffset: -16; } }
@keyframes ttg-hero-img {
	from { opacity: 0; transform: translateY(26px) scale(.96); }
	to { opacity: 1; transform: none; }
}
@keyframes ttg-float-img {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.ttg-section { padding: 64px 0 56px; }

/* Eyebrow label + animated title underline */
.ttg-eyebrow {
	display: block;
	color: var(--ttg-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.ttg-section-title {
	font-size: clamp(24px, 2.6vw, 32px);
	margin: 0 0 6px;
	color: var(--ttg-ink);
}
.ttg-section-title::after {
	content: "";
	display: block;
	width: 0;
	height: 4px;
	border-radius: 2px;
	margin-top: 10px;
	background: #39434f;
	transition: width .6s cubic-bezier(.2, .6, .2, 1) .2s;
}
.ttg-in .ttg-section-title::after { width: 72px; }

/* Band treatments: visual rhythm between rows */
.ttg-sec-cats {
	background-color: #fff;
	background-image: radial-gradient(#dce7f1 1.4px, transparent 1.4px);
	background-size: 22px 22px;
}
.ttg-sec-alt {
	background: var(--ttg-bg-alt);
}
.ttg-sec-blobs {
	position: relative;
	overflow: hidden;
	background: #fff;
}
.ttg-sec-blobs::before,
.ttg-sec-blobs::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .12;
	pointer-events: none;
}
.ttg-sec-blobs::before { width: 380px; height: 380px; background: var(--ttg-blue); top: -140px; right: -120px; }
.ttg-sec-blobs::after { width: 300px; height: 300px; background: var(--ttg-orange); bottom: -140px; left: -100px; }
.ttg-sec-warm {
	background: #fbf6f1;
}

/* Shelf cards cascade in when the shelf scrolls into view */
.ttg-shelf .ttg-card {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .55s cubic-bezier(.2, .6, .2, 1), transform .55s cubic-bezier(.2, .6, .2, 1), box-shadow .35s ease;
}
.ttg-shelf.ttg-in .ttg-card { opacity: 1; transform: none; }
.ttg-shelf.ttg-in .ttg-card:nth-child(2) { transition-delay: .06s; }
.ttg-shelf.ttg-in .ttg-card:nth-child(3) { transition-delay: .12s; }
.ttg-shelf.ttg-in .ttg-card:nth-child(4) { transition-delay: .18s; }
.ttg-shelf.ttg-in .ttg-card:nth-child(5) { transition-delay: .24s; }
.ttg-shelf.ttg-in .ttg-card:nth-child(n+6) { transition-delay: .3s; }
.ttg-shelf.ttg-in .ttg-card:hover { transform: translateY(-8px); transition-delay: 0s; }
.ttg-section-sub { color: var(--ttg-muted); margin: 0 0 22px; font-size: 16px; }

/* ---------- Category cards ---------- */
.ttg-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 26px;
}
.ttg-cat-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6ecf2;
	border-radius: var(--ttg-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--ttg-shadow);
	transition: transform .35s ease, box-shadow .35s ease;
}
.ttg-cat-card:hover { transform: translateY(-8px); box-shadow: var(--ttg-shadow-hover); }
.ttg-cat-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ttg-cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.ttg-cat-card:hover .ttg-cat-img img { transform: scale(1.08); }
.ttg-cat-body {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
}
.ttg-cat-name {
	font-size: 19px;
	font-weight: 700;
	color: var(--ttg-ink);
	position: relative;
}
.ttg-cat-name::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	height: 2px;
	width: 100%;
	background: var(--ttg-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s ease;
}
.ttg-cat-card:hover .ttg-cat-name::after { transform: scaleX(1); }
.ttg-cat-price { margin-left: auto; color: var(--ttg-muted); font-size: 13px; text-align: right; line-height: 1.3; }
.ttg-cat-price .ttg-price { color: var(--ttg-blue); font-weight: 700; font-size: 15px; }
.ttg-cat-arrow {
	color: var(--ttg-orange);
	font-size: 22px;
	transition: transform .3s ease;
}
.ttg-cat-card:hover .ttg-cat-arrow { transform: translateX(6px); }

/* ---------- Product shelves ---------- */
.ttg-shelf { position: relative; overflow: hidden; }
.ttg-shelf .ttg-wrap { position: relative; z-index: 1; }

/* Animated background artwork per shelf */
.ttg-shelf-bg { position: absolute; inset: 0; pointer-events: none; }
.ttg-shelf-bg svg {
	position: absolute;
	width: 380px;
	max-width: 36%;
	height: auto;
	color: var(--ttg-blue);
	opacity: .06;
}
.ttg-shelf-bg-popular svg { left: 20px; bottom: 8px; }
.ttg-shelf-bg-signs svg { right: 20px; bottom: 4px; width: 420px; }
.ttg-shelf-bg-apparel svg { left: 12px; bottom: 10px; width: 400px; }
/* Smaller companion scene on the opposite corner */
.ttg-shelf-bg-2 svg { width: 200px; max-width: 20%; opacity: .05; }
.ttg-shelf-bg-2.ttg-shelf-bg-cards svg { right: 28px; bottom: 12px; }
.ttg-shelf-bg-2.ttg-shelf-bg-canvas svg { left: 28px; bottom: 12px; }
.ttg-shelf-bg-2.ttg-shelf-bg-folded svg { right: 28px; bottom: 12px; }

.ttg-shelf-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.ttg-shelf-nav { display: flex; gap: 10px; }
.ttg-shelf-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #d5dee7;
	background: #fff;
	color: var(--ttg-blue);
	font-size: 18px;
	cursor: pointer;
	transition: background .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
}
.ttg-shelf-btn:hover { background: var(--ttg-blue); color: #fff; transform: scale(1.08); }
.ttg-shelf-btn[disabled] { opacity: .35; pointer-events: none; }
.ttg-shelf-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 10px 4px 26px;
	margin: 0 -4px;
}
.ttg-shelf-track::-webkit-scrollbar { display: none; }
.ttg-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6ecf2;
	border-radius: var(--ttg-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--ttg-shadow);
	transition: transform .35s ease, box-shadow .35s ease;
}
.ttg-card:hover { transform: translateY(-8px); box-shadow: var(--ttg-shadow-hover); }
.ttg-card-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fafbfc;
}
.ttg-card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}
.ttg-card:hover .ttg-card-img img { transform: scale(1.07); }
.ttg-card-name {
	padding: 16px 18px 4px;
	font-weight: 700;
	font-size: 15.5px;
	color: var(--ttg-ink);
}
.ttg-card-price { padding: 0 18px 18px; font-size: 13px; color: var(--ttg-muted); }
.ttg-card-price .ttg-price { color: var(--ttg-blue); font-weight: 700; font-size: 15px; }

/* ---------- Promo banner ---------- */
.ttg-promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
	background: linear-gradient(100deg, var(--ttg-orange), #f0824f 55%, var(--ttg-orange));
	background-size: 200% 100%;
	animation: ttg-gradient 8s ease infinite;
	border-radius: 16px;
	padding: 44px 48px;
	color: #fff;
	box-shadow: 0 16px 40px rgba(226, 104, 53, .35);
}
@keyframes ttg-gradient {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}
.ttg-promo h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 32px); color: #fff; }
.ttg-promo p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .92); max-width: 560px; }
.ttg-promo .ttg-btn-light { color: var(--ttg-orange); flex-shrink: 0; }
.ttg-promo .ttg-btn-light:hover { color: #c2501f; }

/* ---------- Trust strip ---------- */
.ttg-trust {
	background: var(--ttg-bg-alt);
	padding: 56px 0;
	margin-top: 56px;
}
.ttg-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.ttg-trust-item { text-align: center; padding: 8px 12px; }
.ttg-trust-item svg {
	width: 46px;
	height: 46px;
	color: var(--ttg-blue);
	margin-bottom: 12px;
	transition: transform .35s ease, color .35s ease;
}
.ttg-trust-item:hover svg { transform: translateY(-6px) scale(1.1); color: var(--ttg-orange); }
.ttg-trust-item h3 { margin: 0 0 6px; font-size: 17px; color: var(--ttg-ink); }
.ttg-trust-item p { margin: 0; font-size: 14px; color: var(--ttg-muted); line-height: 1.55; }

/* ---------- Section SVG draw animations (fire on scroll reveal) ---------- */
.ttg-reveal .ttg-draw {
	stroke-dasharray: var(--dash, 120);
	stroke-dashoffset: var(--dash, 120);
}
.ttg-reveal.ttg-in .ttg-draw {
	animation: ttg-draw calc(var(--dur, .9s) * var(--ttg-art-speed, .8)) cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) * var(--ttg-art-speed, .8)) forwards;
}
.ttg-reveal .ttg-pop {
	opacity: 0;
	transform: scale(.4);
	transform-box: fill-box;
	transform-origin: center;
}
.ttg-reveal.ttg-in .ttg-pop {
	animation: ttg-art-pop calc(.55s * var(--ttg-art-speed, .8)) cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) * var(--ttg-art-speed, .8)) forwards;
}
.ttg-reveal .ttg-fade { opacity: 0; }
.ttg-reveal.ttg-in .ttg-fade {
	animation: ttg-art-fade calc(.6s * var(--ttg-art-speed, .8)) ease calc(var(--d, 0s) * var(--ttg-art-speed, .8)) forwards;
}

/* Contextual line icons */
.ttg-cat-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--ttg-blue); }
.ttg-eb-icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 7px; }

/* Promo banner decoration */
.ttg-promo { position: relative; overflow: hidden; }
.ttg-promo-art {
	position: absolute;
	right: 250px;
	top: 50%;
	transform: translateY(-50%) rotate(-6deg);
	width: 150px;
	height: auto;
	opacity: .9;
	pointer-events: none;
}
@media (max-width: 1100px) { .ttg-promo-art { display: none; } }

/* ---------- Scroll reveal ---------- */
.ttg-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.ttg-reveal.ttg-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.ttg-hero-inner { flex-direction: column; text-align: center; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
	.ttg-hero-copy p { margin-left: auto; margin-right: auto; }
	.ttg-hero-cta { justify-content: center; }
	.ttg-hero-art { position: relative; width: min(88%, 480px); margin: 8px auto 24px; }
	.ttg-cat-grid { grid-template-columns: 1fr; }
	.ttg-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.ttg-promo { padding: 36px 28px; text-align: center; justify-content: center; }
	.ttg-shelf-bg svg { width: 260px; max-width: 62%; opacity: .05; }
	.ttg-shelf-bg-2 svg { width: 170px; max-width: 40%; opacity: .04; }
}
@media (max-width: 560px) {
	.ttg-card { flex-basis: 200px; }
	.ttg-trust-grid { grid-template-columns: 1fr; }
	.ttg-shelf-nav { display: none; } /* touch scroll on mobile */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ttg-reveal { opacity: 1; transform: none; transition: none; }
	.ttg-blob, .ttg-hero-art, .ttg-art-float, .ttg-art-float-2, .ttg-promo,
	.ttg-hero-art .ttg-draw, .ttg-hero-art .ttg-fillin, .ttg-hero-art .ttg-fade,
	.ttg-hero-art .ttg-pop, .ttg-hero-art .ttg-line, .ttg-hero-art .ttg-march { animation: none; }
	/* Intro end-states without animation */
	.ttg-hero-art .ttg-draw { stroke-dashoffset: 0; }
	.ttg-hero-art .ttg-fillin { fill-opacity: 1; }
	.ttg-hero-art .ttg-fade, .ttg-hero-art .ttg-pop, .ttg-hero-art .ttg-line { opacity: 1; transform: none; }
	.ttg-reveal .ttg-draw { stroke-dashoffset: 0; animation: none; }
	.ttg-reveal .ttg-fade, .ttg-reveal .ttg-pop { opacity: 1; transform: none; animation: none; }
	* { scroll-behavior: auto !important; }
}
