/* ==========================================================================
   MyShop Catalogue: homepage
   Loaded on the front page only. Boxed sections on a light page, hero slider
   with side banners, category tiles, product carousels, offer banners,
   top categories, brand logos, customer highlights.
   Colours come from the logo tokens in main.css.
   ========================================================================== */

body.home .site-main { background: var(--paper); }

/* Section shell ---------------------------------------------------------- */
.home-sec { padding-block: 10px; }
.home-box {
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
	padding: clamp(16px, 2.2vw, 24px);
}
.home-head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap;
	margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); position: relative;
}
.home-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; border-radius: 2px; background: var(--brand-red); }
.home-head__title { margin: 0; font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); }
.home-head__sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.home-head__tools { display: flex; align-items: center; gap: 14px; }
.home-head__link { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 14.5px; color: var(--brand-blue-2); text-decoration: none; white-space: nowrap; }
.home-head__link:hover { color: var(--brand-blue-3); text-decoration: underline; }

/* Hero slider + side banners -------------------------------------------- */
.home-hero { padding-block: 16px 6px; }
.home-hero__grid { display: grid; gap: 16px; }
@media (min-width: 1024px) {
	.home-hero__grid.has-side { grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); }
}

.hero-slider { position: relative; border-radius: 16px; overflow: hidden; background: var(--ink); min-width: 0; }
.hero-slider__track {
	position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slide {
	flex: 0 0 100%; scroll-snap-align: start; position: relative;
	display: flex; align-items: center; min-height: clamp(320px, 32vw, 440px); color: #fff;
	isolation: isolate;
}
.hero-slide.is-plain {
	background:
		radial-gradient(circle at 88% 18%, rgba(0, 160, 227, .55) 0, rgba(0, 160, 227, 0) 38%),
		radial-gradient(circle at 70% 110%, rgba(227, 30, 36, .45) 0, rgba(227, 30, 36, 0) 40%),
		linear-gradient(120deg, var(--ink) 0%, var(--brand-blue-3) 60%, var(--brand-blue-2) 100%);
}
.hero-slide__media { position: absolute; inset: 0; z-index: -2; }
.hero-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(11, 37, 69, .9) 0%, rgba(11, 37, 69, .62) 45%, rgba(11, 37, 69, .05) 80%);
}
.hero-slide__copy { padding: clamp(28px, 4.5vw, 60px); padding-bottom: clamp(64px, 6vw, 72px); max-width: 640px; }
.hero-slide__title { color: #fff; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; max-width: 20ch; }
.hero-slide__text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255, 255, 255, .9); margin: 0 0 22px; max-width: 52ch; }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-slide__points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-slide__points li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.hero-slide__points .icon { color: var(--brand-blue); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-blue-tint); color: var(--ink); }

.hero-slider__controls {
	position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
	display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none;
}
.hero-slider__controls > * { pointer-events: auto; }
.hero-slider__arrow {
	width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.hero-slider__arrow:hover { background: #fff; color: var(--brand-red); }
.hero-slider__dots { display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(11, 37, 69, .35); }
.hero-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .2s, background-color .2s; }
.hero-slider__dot[aria-current="true"] { width: 26px; background: var(--brand-red); }
/* Larger touch target without changing the look. */
.hero-slider__dot { position: relative; }
.hero-slider__dot::after { content: ""; position: absolute; inset: -10px -4px; }
.hero-slider__pause {
	border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
	font: 650 12.5px var(--font); background: rgba(11, 37, 69, .55); color: #fff;
}
.hero-slider__pause:hover { background: rgba(11, 37, 69, .8); }
@media (max-width: 767px) {
	.hero-slider__arrow { display: none; }
	.hero-slide { min-height: 360px; align-items: flex-end; }
	.hero-slide.has-image::before { background: linear-gradient(0deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .6) 55%, rgba(11, 37, 69, .15) 100%); }
	.hero-slide__points { display: none; }
}

.home-hero__side { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
/* One side banner fills the full height; two share it. */
@media (min-width: 1024px) { .home-hero__side { grid-template-columns: 1fr; grid-auto-rows: 1fr; } }
@media (max-width: 480px) { .home-hero__side { grid-template-columns: 1fr; } }
.side-banner {
	position: relative; isolation: isolate; overflow: hidden; border-radius: 16px;
	min-height: 160px; display: flex; align-items: flex-end; padding: 18px 20px;
	color: #fff; text-decoration: none; background: var(--brand-red);
}
.side-banner--2 { background: var(--brand-blue-2); }
.side-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.side-banner.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 37, 69, .85) 0%, rgba(11, 37, 69, .2) 70%); }
.side-banner:not(.has-image)::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
	background: rgba(255, 255, 255, .12); z-index: -1;
}
a.side-banner:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) { a.side-banner:hover img { transform: scale(1.04); } }
.side-banner__copy { display: grid; gap: 4px; }
.side-banner__title { font-weight: 800; font-stretch: 108%; font-size: 1.2rem; line-height: 1.2; }
.side-banner__text { font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.side-banner__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; font-size: 14px; }
a.side-banner:hover .side-banner__cta { text-decoration: underline; }

/* Trust badges (existing "benefits" setting) ----------------------------- */
.home-sec--trust { padding-block: 10px; border: 0; }
.home-sec--trust .benefit-grid {
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
	padding: 18px clamp(16px, 2vw, 24px); gap: 16px 24px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.home-sec--trust .benefit { align-items: center; }
.home-sec--trust .benefit__icon { background: var(--brand-blue-tint); color: var(--brand-blue-2); border-radius: 50%; }
.home-sec--trust .benefit__title { margin: 0 0 2px; }
.home-sec--trust .benefit__text { font-size: 13.5px; line-height: 1.45; }
@media (max-width: 600px) {
	.home-sec--trust .benefit-grid { grid-template-columns: 1fr 1fr; }
	.home-sec--trust .benefit { flex-direction: column; align-items: flex-start; gap: 8px; }
	.home-sec--trust .benefit__text { display: none; }
}

/* Auto-scrolling carousels: categories and brands ---------------------- */
/* A plain horizontal scroller (swipe/scroll works without JS); home.js adds
   the continuous loop, pause on hover/focus/touch and mouse dragging. */
.marquee {
	overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; overscroll-behavior-x: contain;
	scrollbar-width: none; -ms-overflow-style: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
	padding-block: 6px 4px;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-ready { cursor: grab; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee.is-dragging a { pointer-events: none; }
.marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.marquee__track { list-style: none; margin: 0; padding: 0 2px; display: flex; gap: var(--marquee-gap, 16px); width: max-content; }
.marquee.is-static .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
.marquee__item { flex: 0 0 auto; }
.marquee img { -webkit-user-drag: none; user-select: none; }
.marquee-toggle {
	border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
	border-radius: 999px; padding: 4px 12px; font: 650 13px var(--font); cursor: pointer;
}
.marquee-toggle:hover { border-color: var(--brand-blue-2); color: var(--brand-blue-2); }
.home-sec--marquee .home-head { margin-bottom: 14px; }

/* Category cards */
.cat-circle { width: 132px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none; color: var(--ink); padding: 4px 2px; }
.cat-circle__media {
	width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
	background: var(--paper); border: 2px solid var(--line-2); color: var(--brand-blue-2);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-circle__media img { width: 78%; height: 78%; object-fit: contain; }
.cat-circle__name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.cat-circle:hover { color: var(--ink); }
.cat-circle:hover .cat-circle__media { border-color: var(--brand-blue); box-shadow: 0 6px 18px rgba(0, 103, 163, .18); }
@media (prefers-reduced-motion: no-preference) { .cat-circle:hover .cat-circle__media { transform: translateY(-3px); } }
.cat-circle:hover .cat-circle__name { color: var(--brand-blue-2); }

/* Brand logo cards */
.marquee__track--brands .brand-tile {
	width: 176px; min-height: 96px; padding: 12px 16px; justify-content: center;
	border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
	transition: border-color .2s, box-shadow .2s;
}
.marquee__track--brands .brand-tile:hover { border-color: var(--brand-blue); box-shadow: 0 6px 18px rgba(11, 37, 69, .08); }
.marquee__track--brands .brand-tile__logo { height: 56px; display: grid; place-items: center; }
.marquee__track--brands .brand-tile__logo img { max-height: 56px; max-width: 140px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.marquee__track--brands .brand-tile:hover .brand-tile__logo img { filter: none; opacity: 1; }
.marquee__track--brands .brand-tile__word { color: var(--ink); font-size: 1.1rem; font-weight: 800; font-stretch: 110%; }
.marquee__track--brands .brand-tile__name { font-size: 13px; color: var(--muted); }
.marquee__track--brands .brand-tile--text .brand-tile__name { display: none; }

@media (max-width: 1023px) {
	.cat-circle { width: 116px; }
	.cat-circle__media { width: 92px; height: 92px; }
	.marquee__track--brands .brand-tile { width: 156px; }
}
@media (max-width: 767px) {
	.home-sec--marquee { --marquee-gap: 10px; }
	.cat-circle { width: 96px; gap: 6px; }
	.cat-circle__media { width: 76px; height: 76px; }
	.cat-circle__name { font-size: 13px; }
	.marquee__track--brands .brand-tile { width: 132px; min-height: 80px; padding: 10px 12px; }
	.marquee__track--brands .brand-tile__logo { height: 44px; }
	.marquee__track--brands .brand-tile__logo img { max-height: 44px; max-width: 108px; }
}

/* Product carousels ------------------------------------------------------ */
.row-scroller { position: relative; }
.row-scroller .woocommerce { margin: 0; }
.row-scroller ul.products {
	--per: 5;
	display: grid; grid-auto-flow: column; grid-template-columns: none;
	grid-auto-columns: calc((100% - (var(--per) - 1) * 16px) / var(--per));
	gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px 2px 12px; margin: -4px -2px 0;
	scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.row-scroller ul.products > li { scroll-snap-align: start; }
@media (min-width: 1500px) { .row-scroller ul.products { --per: 6; } }
@media (max-width: 1279px) { .row-scroller ul.products { --per: 4; } }
@media (max-width: 1023px) { .row-scroller ul.products { --per: 3; } }
@media (max-width: 767px) { .row-scroller ul.products { --per: 2.15; gap: 10px; grid-auto-columns: calc((100% - 2 * 10px) / 2.15); } }
@media (max-width: 400px) { .row-scroller ul.products { grid-auto-columns: 78%; } }
.row-nav { display: inline-flex; gap: 6px; }
.row-nav[hidden] { display: none; }
.row-nav__btn {
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
	color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.row-nav__btn:hover:not(:disabled) { border-color: var(--brand-blue-2); color: var(--brand-blue-2); }
.row-nav__btn:disabled { opacity: .4; cursor: default; }

/* Offer banners ---------------------------------------------------------- */
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.offer-grid--1 { --n: 1; }
.offer-grid--2 { --n: 2; }
@media (max-width: 767px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-card {
	position: relative; isolation: isolate; overflow: hidden; height: 100%;
	display: flex; align-items: flex-end; min-height: 180px; padding: 20px 22px; border-radius: 16px;
	color: #fff; text-decoration: none; background: var(--brand-blue-2);
}
.offer-card--2 { background: var(--brand-red); }
.offer-card--3 { background: var(--ink); }
.offer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.offer-card.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 37, 69, .86) 0%, rgba(11, 37, 69, .15) 75%); }
.offer-card:not(.has-image)::after {
	content: ""; position: absolute; right: -50px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
	border: 28px solid rgba(255, 255, 255, .1); z-index: -1;
}
a.offer-card:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) { a.offer-card:hover img { transform: scale(1.04); } }
.offer-card__copy { display: grid; gap: 4px; max-width: 34ch; }
.offer-card__title { font-weight: 800; font-stretch: 108%; font-size: 1.3rem; line-height: 1.2; }
.offer-card__text { font-size: 15px; color: rgba(255, 255, 255, .9); }
.offer-card__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 700; font-size: 14.5px; }
a.offer-card:hover .offer-card__cta { text-decoration: underline; }

/* Top categories --------------------------------------------------------- */
.top-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.top-cat { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s; }
.top-cat:hover { border-color: var(--brand-blue); box-shadow: 0 8px 22px rgba(11, 37, 69, .08); }
.top-cat__head { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.top-cat__media { flex: none; width: 72px; height: 72px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; overflow: hidden; color: var(--brand-blue-2); }
.top-cat__media img { width: 86%; height: 86%; object-fit: contain; }
.top-cat__name { display: block; font-weight: 750; font-stretch: 106%; font-size: 1.05rem; line-height: 1.25; }
.top-cat__count { display: block; font-size: 13px; color: var(--muted); }
.top-cat__head:hover .top-cat__name { color: var(--brand-blue-2); text-decoration: underline; }
.top-cat__children { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.top-cat__children a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper); font-size: 13.5px; text-decoration: none; color: var(--ink-soft); }
.top-cat__children a:hover { background: var(--brand-blue-tint); color: var(--brand-blue-2); }
.top-cat__all { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 650; color: var(--brand-red-2); text-decoration: none; }
.top-cat__all:hover { text-decoration: underline; color: var(--brand-red-2); }

/* Promo band (existing) -------------------------------------------------- */
.home-sec--promo .promo { background: linear-gradient(120deg, var(--ink) 0%, var(--brand-blue-3) 100%); }

/* Services (existing cards inside a box) ---------------------------------- */
.services-band { background: transparent; }

/* Customer highlights ---------------------------------------------------- */
.quote-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.quote-card figure { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-2); position: relative; }
.quote-card figure::before { content: "\201C"; position: absolute; top: 4px; right: 16px; font: 800 64px/1 Georgia, serif; color: var(--brand-blue); opacity: .35; }
.quote-card__text { margin: 0; flex: 1; }
.quote-card__text p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.quote-card__by { display: flex; align-items: center; gap: 12px; }
.quote-card__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-red); color: #fff; font-weight: 800; text-transform: uppercase; }
.quote-card__name { display: block; font-weight: 700; }
.quote-card__company { display: block; font-size: 13.5px; color: var(--muted); }

/* Enquiry and about (existing content inside boxes) ---------------------- */
.enquiry-band { background: transparent; }
.home-box.enquiry-band__inner { background: linear-gradient(135deg, var(--brand-blue-tint) 0%, var(--surface) 55%); }
.enquiry-band__form { box-shadow: var(--shadow); }
.enquiry-band__ways .icon { color: var(--brand-blue-2); }
.about-band .home-box { align-items: center; }

/* Newsletter: brand band just above the footer --------------------------- */
.newsletter--home { background: var(--brand-blue-2); color: #fff; border: 0; margin-top: 10px; }
.newsletter--home .newsletter__title { color: #fff; }
.newsletter--home .newsletter__copy p { color: rgba(255, 255, 255, .88); }
.newsletter--home .newsletter-row input { background: #fff; border-color: transparent; }
.newsletter--home button[type="submit"] { background: var(--brand-red); color: #fff; }
.newsletter--home button[type="submit"]:hover { background: var(--brand-red-2); }
.newsletter--home .form-note, .newsletter--home .form-note a, .newsletter--home .field-error { color: rgba(255, 255, 255, .9); }

/* Full-width hero: no space on the left, top or right ----------------- */
.home-hero { padding: 0 0 6px; }
.home-hero > .home-hero__grid { max-width: none; padding-inline: 0; gap: 0; }
.home-hero .hero-slider { border-radius: 0; }
.home-hero .side-banner { border-radius: 0; }
/* Keep the slide text lined up with the logo and page content. */
.home-hero .hero-slide__copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.home-hero__grid.has-side .hero-slide__copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter) + 8px)); }
@media (max-width: 1023px) { .home-hero__side { gap: 0; } }

/* Category icons inside the homepage tiles */
.cat-circle__media img.cat-icon { width: 64%; height: 64%; }
.top-cat__media img.cat-icon { width: 72%; height: 72%; }

/* Clickable banners and image-only banners -------------------------------- */
.hero-slide__link { position: absolute; inset: 0; z-index: 1; }
.hero-slide__link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 0; }
.hero-slide.has-link .hero-slide__copy { position: relative; z-index: 2; pointer-events: none; }
.hero-slide.has-link .hero-slide__copy :is(a, button) { pointer-events: auto; }
.hero-slide.no-copy::before { display: none; }
.hero-slide.no-copy .hero-slide__media img { object-position: center; }
.side-banner.has-image:not(:has(.side-banner__title))::before,
.offer-card.has-image:not(:has(.offer-card__title))::before { display: none; }

