/**
 * Homepage — Textielhuis (scoped, alleen op de voorpagina geladen).
 *
 * Gedeelde sectie-opmaak (about / reviews / usp / .th-section*) staat site-breed in
 * assets/css/blocks/*.css (laadt óók op de homepage). Hier alleen homepage-eigen
 * secties: hero, categorie-tegels, "Nieuw binnen" en de SEO-tekst.
 * Knoppen + nieuwsbrief: zie layout.css (globaal).
 */

/* Hero / slider — full-bleed beeld, gecentreerde tekst + gouden pill-knop (zoals live slider) */
.th-hero { position: relative; height: 667px; background: #2c2c2c; color: #fff; overflow: hidden; }
.th-hero__slides { position: absolute; inset: 0; }
.th-hero__slide {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: #2c2c2c center/cover no-repeat;
	opacity: 0; visibility: hidden; transition: opacity .8s ease; z-index: 0;
}
.th-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.th-hero:not(.th-hero--slider) .th-hero__slide { position: relative; opacity: 1; visibility: visible; }
.th-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.42)); }
.th-hero__inner { position: relative; z-index: 1; text-align: center; margin: 0 auto; max-width: 720px; }
.th-hero__title { font-family: var(--th-font-heading); font-weight: 600; font-size: clamp(34px, 1.3rem + 3.6vw, 64px); line-height: 1.2; margin: 0 0 14px; }
.th-hero__sub { font-size: 16px; line-height: 1.4; margin: 0 auto 29px; max-width: 520px; }
/* Hero-CTA: bredere, luchtige pill zoals het design (Figma 302:44783 = 298×46px pill,
   tekst 302:44790 op x=890 binnen knop-links x=811 → horizontale padding 79px, gecentreerd).
   De generieke .th-btn (layout.css) is 13px/30px; hier alleen de hero-knop verbreden. */
.th-hero .th-btn { padding-left: 79px; padding-right: 79px; }

/* Slider-pijlen — subtiel, verschijnen bij hover (zoals Divi-slider) */
.th-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border: 0; border-radius: 50%;
	background: rgba(0,0,0,.28); color: #fff; cursor: pointer;
	opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.th-hero:hover .th-hero__arrow, .th-hero__arrow:focus-visible { opacity: 1; }
.th-hero__arrow:hover { background: var(--th-gold); }
.th-hero__arrow--prev { left: 77px; }
.th-hero__arrow--next { right: 21px; }
@media (max-width: 981px) { .th-hero__arrow { width: 40px; height: 40px; opacity: 1; background: rgba(0,0,0,.35); } .th-hero__arrow--prev { left: 10px; } .th-hero__arrow--next { right: 10px; } }

/* Categorie-tegels — hoge, full-bleed beeldtegels met scherpe hoeken (zoals live) */
.th-tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 420px; gap: 24px; padding-block: 56px; }
.th-tile { position: relative; display: flex; align-items: flex-end; padding: 24px; border-radius: 4px; overflow: hidden; background: #e9e6e1; text-decoration: none; }
/* Foto op een eigen laag → transform-scaalbaar (zoom) binnen de overflow:hidden tegel. */
.th-tile__media { position: absolute; inset: 0; z-index: 0; background: #e9e6e1 center/cover no-repeat; }
.th-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 4px; background: rgba(33,33,33,.21); }
.th-tile__label { position: relative; z-index: 2; font-family: var(--th-font-heading); font-weight: 700; font-size: 24px; line-height: normal; color: #fff; }
/* 12-koloms grid: rij 1 = 7+5 (~690/486), rij 2 = 3x4 (=384 exact). Robuust,
   geen sub-pixel-wrap (rij 1 ~11px van Figma's 679/497 — verwaarloosbaar). */
.th-tile:nth-child(1) { grid-column: span 7; }
.th-tile:nth-child(2) { grid-column: span 5; }
.th-tile:nth-child(3),
.th-tile:nth-child(4),
.th-tile:nth-child(5) { grid-column: span 4; }

/* Nieuw binnen — gecentreerde titel + statische rij van 4 productkaarten (GEEN slider, zoals design) */
.th-new .th-section__title { text-align: center; font-size: clamp(24px, 1.3rem + 1vw, 30px); line-height: 1.2; margin: 0 0 30px; }
.th-new__products .woocommerce { width: 100%; }
.th-new__products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 18px; margin: 0 !important; padding: 0 !important; list-style: none; }
/* border-box + 12px padding = kaart-binnenruimte zoals het design (de 0-reset haalde die weg). */
.th-new__products ul.products li.product { box-sizing: border-box; width: auto !important; margin: 0 !important; padding: 12px !important; }
.th-new__products ul.products li.product::before { display: none !important; }

/* SEO-tekst — titel 30px (gouden accentwoord), body Poppins 14px, "Lees meer"-inklap */
.th-seo .th-section__title { font-size: clamp(24px, 1.3rem + 1vw, 30px); line-height: 1.2; }
.th-seo__text { color: #000; font-family: var(--th-font-heading); font-size: 14px; line-height: 1.7; }
.th-seo__text p { margin: 0 0 14px; }
/* Ingeklapt: vaste hoogte + fade-mask. De hoogte wordt bij open/dicht vloeiend in JS
   geanimeerd (Web Animations API, net als de accordeons) — dus hier GEEN CSS-transitie
   op max-height (die reflowt hortend/schokkerig). */
.th-seo__text[data-th-readmore] { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }
.th-seo__text[data-th-readmore].is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.th-seo__more { display: block; margin: 22px auto 0; padding: 0; background: none; border: 0; font-family: var(--th-font-body); font-size: 16px; color: var(--th-gold); text-decoration: underline; cursor: pointer; }

/* Responsive */
@media (max-width: 981px) {
	.th-hero { height: 480px; }
	.th-tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
	.th-tile:nth-child(n) { grid-column: span 1; }
	.th-tile--wide { grid-column: 1 / -1 !important; }
	.th-new__products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
	.th-hero { height: 420px; }
	/* Smaller subtitel-tekstvak op mobiel → wrapt vanzelf over 2 regels
	   (i.p.v. een harde Enter, die ook op desktop zou breken). */
	.th-hero__sub { max-width: 260px; }
	.th-tiles { grid-template-columns: 1fr; }
	.th-new__products ul.products { grid-template-columns: 1fr 1fr !important; }
}
