/* ==========================================================================
   Kidoclassic Mall, homepage
   The store is the homepage. These styles keep it editorial without ever
   getting in the way of the products.
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */
/* A full-width image under a dark overlay so white text stays legible over any
   photo the client uploads. With no image the section paints a brand gradient
   (magenta to deep maroon) instead, so the homepage never opens broken. */

.kido-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 600px;
	overflow: hidden;
	background: var(--kido-maroon);
}

/* Fallback wash when no hero image is set. */
.kido-hero--fallback {
	background:
		radial-gradient(120% 160% at 88% -20%, rgba(255, 110, 180, 0.35) 0%, transparent 55%),
		linear-gradient(125deg, var(--kido-magenta) 0%, var(--kido-magenta-deeper) 55%, var(--kido-maroon) 100%);
}

.kido-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Dark overlay, ~40%, strong enough for white text, light enough to see the
   photo. The fallback gradient needs no overlay, so it is dropped there. */
.kido-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(43, 26, 32, 0.32) 0%, rgba(43, 26, 32, 0.46) 100%);
}
.kido-hero--fallback .kido-hero__overlay { display: none; }

/* Hero slideshow ---------------------------------------------------------- */
/* Slides stack on top of each other in the same space as the single image.
   Only the .is-active slide is visible; JS moves that class along on a timer
   and the opacity transition gives a clean cross-fade (no scroll or slide,
   which reads calmer for fashion). The overlay and content sit above them. */

.kido-hero__slides {
	position: absolute;
	inset: 0;
}
.kido-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}
/* The first slide is marked active in the markup, so the hero is never blank,
   even before the script runs or if JavaScript is off. */
.kido-hero__slide.is-active { opacity: 1; }

.kido-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 48px;
	padding-bottom: 48px;
}
.kido-hero__content { max-width: 600px; }

.kido-hero__eyebrow {
	color: #fff;
	margin-bottom: 16px;
}
.kido-hero__eyebrow::before { background: var(--kido-pink); }

.kido-hero__title {
	font-family: var(--kido-display);
	font-weight: 900;
	font-size: clamp(36px, 6vw, 64px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 16px;
}
.kido-hero__title em { font-style: italic; color: var(--kido-pink); }

.kido-hero__subtext {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
	max-width: 46ch;
	margin: 0 0 28px;
}

.kido-hero__cta { font-size: 16px; padding: 16px 32px; }

/* Category tiles ---------------------------------------------------------- */

.kido-cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.kido-cat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 132px;
	padding: 20px;
	border-radius: var(--kido-r-md);
	overflow: hidden;
	color: var(--kido-ink);
	background: var(--kido-surface);
	border: 1px solid var(--kido-border);
	box-shadow: var(--kido-shadow-xs);
	transition: transform var(--kido-t), box-shadow var(--kido-t), border-color var(--kido-t);
}
.kido-cat:hover {
	transform: translateY(-4px);
	box-shadow: var(--kido-shadow-md);
	border-color: var(--kido-border-strong);
	color: var(--kido-ink);
}

/* A soft brand wash per tile so the row has rhythm even without photos. */
.kido-cat--a { background: linear-gradient(135deg, var(--kido-pink-soft), var(--kido-surface) 70%); }
.kido-cat--b { background: linear-gradient(135deg, var(--kido-magenta-wash), var(--kido-surface) 70%); }
.kido-cat--c { background: linear-gradient(135deg, var(--kido-blush), var(--kido-surface) 70%); }
.kido-cat--d { background: linear-gradient(135deg, var(--kido-crimson-soft), var(--kido-surface) 70%); }

.kido-cat__media {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: var(--kido-r-sm);
	overflow: hidden;
	background: var(--kido-surface-2);
}
.kido-cat__media img { width: 100%; height: 100%; object-fit: cover; }

.kido-cat__body { display: flex; flex-direction: column; gap: 4px; }
.kido-cat__body strong {
	font-family: var(--kido-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--kido-ink);
}
.kido-cat__body span { font-size: 13.5px; color: var(--kido-ink-2); }

.kido-cat__go {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--kido-r-pill);
	background: var(--kido-surface);
	color: var(--kido-magenta);
	box-shadow: var(--kido-shadow-xs);
	transition: background var(--kido-t-fast), color var(--kido-t-fast), transform var(--kido-t-fast);
}
.kido-cat:hover .kido-cat__go {
	background: var(--kido-magenta);
	color: #fff;
	transform: translateX(2px);
}

/* Product shelves --------------------------------------------------------- */

.kido-shelf .kido-section-head { margin-bottom: 24px; }

/* Promo line -------------------------------------------------------------- */

.kido-promo {
	margin: 8px 0;
}
.kido-promo__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(28px, 5vw, 48px);
	border-radius: var(--kido-r-lg);
	background:
		radial-gradient(120% 200% at 110% 50%, rgba(255, 110, 180, 0.35) 0%, transparent 50%),
		linear-gradient(120deg, var(--kido-magenta) 0%, var(--kido-crimson) 100%);
	color: #fff;
	box-shadow: var(--kido-shadow-md);
}
.kido-promo__line {
	margin: 0;
	font-family: var(--kido-display);
	font-weight: 700;
	font-size: clamp(22px, 3.4vw, 36px);
	line-height: 1.15;
	max-width: 18ch;
}

/* Trust strip ------------------------------------------------------------- */

.kido-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 28px;
	background: var(--kido-surface);
	border: 1px solid var(--kido-border);
	border-radius: var(--kido-r-lg);
}
.kido-trust li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 14px;
	border-left: 1px solid var(--kido-border);
}
.kido-trust li:first-child { border-left: none; }
.kido-trust__icon {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	border-radius: var(--kido-r-sm);
	background: var(--kido-magenta-wash);
	color: var(--kido-magenta);
}
.kido-trust strong { font-family: var(--kido-display); font-size: 17px; color: var(--kido-ink); }
.kido-trust span { font-size: 13.5px; color: var(--kido-ink-2); line-height: 1.55; }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.kido-cats { grid-template-columns: repeat(2, 1fr); }
	.kido-trust { grid-template-columns: repeat(2, 1fr); }
	.kido-trust li:nth-child(3) { border-left: none; }
}

@media (max-width: 768px) {
	/* Mobile hero: shorter, centred text, font sizes stepped down, full-width CTA. */
	.kido-hero { min-height: 400px; text-align: center; }
	.kido-hero__content { max-width: none; margin: 0 auto; }
	.kido-hero__eyebrow { justify-content: center; }
	.kido-hero__title { font-size: clamp(30px, 8vw, 40px); }
	.kido-hero__subtext { margin-left: auto; margin-right: auto; }
	.kido-hero__cta { display: flex; width: 100%; }

	.kido-promo__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
	.kido-cats { grid-template-columns: 1fr; }
	.kido-trust { grid-template-columns: 1fr; padding: 18px; }
	.kido-trust li { border-left: none; padding: 12px 0; border-top: 1px solid var(--kido-border); }
	.kido-trust li:first-child { border-top: none; }
}
