/* ============================================================
   Toys & Co — Homepage Styles
   Companion to page-home.php
   BEM-ish classes, all prefixed tac-
   No framework dependencies.
   ============================================================ */


/* ── Reset / Base ─────────────────────────────────────────── */
.tac-homepage *,
.tac-homepage *::before,
.tac-homepage *::after {
	box-sizing: border-box;
}

.tac-homepage {
	--tac-coral:       #FF6B35;
	--tac-coral-dark:  #C84B1A;
	--tac-navy:        #1A3A5C;
	--tac-sand:        #FDF6E3;
	--tac-white:       #ffffff;
	--tac-gray-light:  #F5F5F5;
	--tac-gray-mid:    #CCCCCC;
	--tac-gray-text:   #555555;
	--tac-badge-new:   #2E9E6B;
	--tac-badge-hot:   #E05C00;

	--tac-radius-sm:   6px;
	--tac-radius-md:   12px;
	--tac-radius-lg:   20px;
	--tac-radius-pill: 999px;

	--tac-shadow-card: 0 2px 8px rgba(0,0,0,0.08);
	--tac-shadow-hover: 0 6px 20px rgba(0,0,0,0.13);

	--tac-section-gap: 4rem;
	--tac-gutter:      clamp(1rem, 4vw, 2rem);

	font-family: inherit;
	color: var(--tac-navy);
}



/* ── Shared Section Wrapper ───────────────────────────────── */
.tac-section {
	padding: var(--tac-section-gap) var(--tac-gutter);
	max-width: 1400px;
	margin-inline: auto;
	border-radius:15px;
}

.tac-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tac-section__title {
	font-size: clamp(1.3rem, 2.5vw, 1.75rem);
	font-weight: 700;
	color: var(--tac-navy);
	margin: 0 0 1.5rem;
}

.tac-section__header .tac-section__title {
	margin-bottom: 0;
}

.tac-section__see-all {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tac-coral);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}
.tac-section__see-all:hover {
	color: var(--tac-coral-dark);
	text-decoration: underline;
}


/* ── Buttons ──────────────────────────────────────────────── */
.tac-btn {
	display: inline-block;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.75rem 1.75rem;
	border-radius: var(--tac-radius-pill);
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
	cursor: pointer;
	border: none;
	line-height: 1;
}

.tac-btn--primary {
	background: var(--tac-coral);
	color: var(--tac-white);
	box-shadow: 0 4px 0 var(--tac-coral-dark);
}
.tac-btn--primary:hover {
	background: var(--tac-coral-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 0 #9e3510;
}
.tac-btn--primary:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 var(--tac-coral-dark);
}


/* ── Badges ───────────────────────────────────────────────── */
.tac-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: var(--tac-radius-pill);
	color: #fff;
	pointer-events: none;
	z-index: 2;
}
.tac-badge--new { background: var(--tac-badge-new); }
.tac-badge--hot { background: var(--tac-badge-hot); }


/* ════════════════════════════════════════════════════════════
   1. HERO BANNER — full bleed background image, text overlaid
════════════════════════════════════════════════════════════ */
.tac-hero {
	position: relative;
	min-height: clamp(320px, 50vw, 580px);
	overflow: hidden;
	display: flex;
	align-items: center;
}

.tac-hero h1 {
	font-weight:700
}

/* Full-bleed background image */
.tac-hero__art {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.tac-hero__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	display: block;
}




.tac-hero_content-wrapper{
	max-width:1300px;
	margin:auto;
	width:95%;
}

/* Content sits above the scrim */
.tac-hero__content {
	position: relative;
	z-index: 2;
	max-width: 650px;
	padding: clamp(2.5rem, 6vw, 4rem) var(--tac-gutter);
	background:#3182CE;
 	border-radius:15px
}
 .tac-hero__eyebrow {
	display: inline-block;
	background: var(--tac-coral);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: var(--tac-radius-pill);
	margin-bottom: 1rem;
}

.tac-hero__headline {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 900;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 0.75rem;
	text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.tac-hero__headline em {
	font-style: normal;
	color: var(--tac-coral);
}

.tac-hero__sub {
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	font-weight: 500;
	color: rgba(255,255,255,0.88);
	margin: 0 0 1.75rem;
}

@media (max-width: 600px) {
	.tac-hero::after {
		background: rgba(10, 25, 45, 0.58);
	}
	.tac-hero__content {
		max-width: 100%;
	}
}
@media (max-width: 800px) {
	.tac-hero_content-wrapper{
	padding:20px;
}
}

/* ════════════════════════════════════════════════════════════
   2. SHOP BY AGE GRID
════════════════════════════════════════════════════════════ */
.tac-age-grid {
	background: #f8f8f8;
	max-width:100%;
	border-radius:unset;
}

.tac-age-grid__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 1rem;
}

.tac-age-card {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tac-white);
	border: 2px solid var(--tac-gray-mid);
	border-radius: var(--tac-radius-md);
	padding: 1.25rem 0.75rem;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	text-align: center;
}
.tac-age-card:hover {
	border-color: var(--tac-coral);
	box-shadow: var(--tac-shadow-hover);
	transform: translateY(-3px);
}

.tac-age-card__label {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--tac-navy);
}


/* ════════════════════════════════════════════════════════════
   3–5. PRODUCT CAROUSELS (Staff Picks, New, Best Sellers)
════════════════════════════════════════════════════════════ */
.tac-carousel {
	/* Alternating background for rhythm */
}
.tac-carousel:nth-of-type(even) {
	background: var(--tac-gray-light);
}

.tac-carousel__track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.25rem;
}

/* Scrollable on mobile */
@media (max-width: 600px) {
	.tac-carousel__track {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 1rem;
		padding-bottom: 0.75rem;
		/* hide scrollbar but keep functionality */
		scrollbar-width: none;
	}
	.tac-carousel__track::-webkit-scrollbar { display: none; }
	.tac-product-card {
		flex: 0 0 200px;
		scroll-snap-align: start;
	}
}



/* ════════════════════════════════════════════════════════════
   UTILITY — visually hidden (a11y)
════════════════════════════════════════════════════════════ */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
