/* Tasneem main page, from the main mockup approved on 18 Oct 2026 (v3).
   Sections top to bottom: hero slider, trust strip, One family three brands, video row (TikTok Style
   Video plugin), Why parents trust Tasneem, closing call to action. Markup: includes/home.php. */

.nl-home p { margin: 0; }

/* Round arrow buttons on the hero. "button.nl-round" outranks the parent theme's styling of plain buttons. */
.nl-home button.nl-round,
.nl-home button.nl-round:hover,
.nl-home button.nl-round:focus {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--hj-line-2);
	border-radius: 50%;
	background: #fff;
	color: var(--nl-mulberry);
	box-shadow: 0 4px 14px rgba(60, 15, 40, .08);
	cursor: pointer;
}
.nl-home button.nl-round:hover { border-color: var(--nl-rose); color: var(--nl-rose); }

/* ---------------------------------------------------------------- hero slider */
.nl-hero { position: relative; background: var(--nl-blush); }
.nl-hero-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.nl-hero-track::-webkit-scrollbar { display: none; }
.nl-hs { position: relative; display: block; scroll-snap-align: start; text-decoration: none; }
.nl-hs picture { display: block; }
/* The hero fills the first screen: its height is the screen height minus whatever sits above it
   (the message bar and header, measured into --hero-top by home.js). */
.nl-hs img {
	display: block;
	width: 100%;
	height: max(420px, calc(100vh - var(--hero-top, 165px)));
	height: max(420px, calc(100svh - var(--hero-top, 165px)));
	object-fit: cover;
}
/* the colour wash that fades in from the right behind the text */
.nl-hs::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--hs-wash); }
.nl-hs-copy {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	right: clamp(24px, 7vw, 120px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 12px;
	width: min(460px, 38%);
}
/* Each slide's colours ("Colours" in the Hero Slider widget): wash, title, text, small line, button. */
.nl-hs--pink {
	--hs-wash: linear-gradient(90deg, rgba(246, 230, 240, 0) 45%, rgba(246, 230, 240, .55) 62%, rgba(246, 230, 240, .92) 78%);
	--hs-bg: #F6E6F0;
	--hs-t: var(--nl-mulberry);
	--hs-b: #6B4459;
	--hs-a: var(--nl-plum);
	--hs-btn: var(--nl-btn-bg);
	--hs-btn-hover: var(--nl-btn-bg-hover);
}
.nl-hs--cream {
	--hs-wash: linear-gradient(90deg, rgba(252, 244, 220, 0) 45%, rgba(252, 244, 220, .55) 62%, rgba(252, 244, 220, .92) 78%);
	--hs-bg: #FCF4DC;
	--hs-t: #6E2415;
	--hs-b: #7A4733;
	--hs-a: var(--nl-rust);
	--hs-btn: var(--nl-rust);
	--hs-btn-hover: #87291A;
}
.nl-hs--night {
	--hs-wash: linear-gradient(90deg, rgba(52, 38, 66, 0) 45%, rgba(52, 38, 66, .5) 62%, rgba(52, 38, 66, .85) 78%);
	--hs-bg: #342642;
	--hs-t: #fff;
	--hs-b: #E4D6EE;
	--hs-a: #E8B7D8;
	--hs-btn: var(--nl-btn-bg);
	--hs-btn-hover: var(--nl-btn-bg-hover);
}
.nl-hs .nl-eyebrow { color: var(--hs-a); }
.nl-home .nl-hs-t {
	margin: 0;
	font-family: var(--hj-serif);
	font-weight: 700;
	font-size: clamp(30px, 3.3vw, 48px);
	line-height: 1.1;
	color: var(--hs-t);
	text-wrap: pretty;
}
.nl-hs-s { margin-bottom: 8px; font-size: 16.5px; line-height: 1.55; color: var(--hs-b); }
.nl-hs .nl-btn { background: var(--hs-btn); box-shadow: 0 6px 20px rgba(0, 0, 0, .16); }
.nl-hs:hover .nl-btn, .nl-hs:focus-visible .nl-btn { background: var(--hs-btn-hover); }
.nl-home .nl-hero-prev, .nl-home .nl-hero-next { position: absolute; top: calc(50% - 23px); z-index: 5; }
.nl-home .nl-hero-prev { left: 18px; }
.nl-home .nl-hero-next { right: 18px; }
.nl-hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.nl-hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(60, 15, 40, .18); }
.nl-hero-dots i.on { background: var(--nl-rose); }

/* ---------------------------------------------------------------- trust strip */
.nl-tb { background: var(--nl-plum); }
.nl-home .nl-tb ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px clamp(16px, 4vw, 48px);
	list-style: none;
}
.nl-tb li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.nl-tb li + li { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .22); }
.nl-tb b { display: block; font-family: var(--hj-serif); font-size: 15.5px; font-weight: 700; color: #fff; }
.nl-tb-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------------------------------------------------------------- one family, three brands */
.nl-ib { max-width: 1180px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px); text-align: center; }
.nl-ib .nl-h2 { margin-top: 8px; }
.nl-home .nl-ib-text { max-width: 620px; margin: 12px auto 0; font-size: 17px; color: var(--hj-ink-2); }
.nl-fb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; text-align: left; }
.nl-fb { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--nl-blush); color: #fff; text-decoration: none; }
.nl-fb:hover { color: #fff; }
.nl-fb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.nl-fb:hover img { transform: scale(1.04); }
/* darkens the bottom of the photo so the white text reads */
.nl-fb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(60, 15, 40, .8), rgba(60, 15, 40, 0) 50%); pointer-events: none; }
.nl-fb:focus-visible { outline: 2px solid var(--nl-wine); outline-offset: 3px; }
.nl-fb-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 24px 24px; }
.nl-fb-eb { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.nl-fb-t { font-family: var(--hj-serif); font-size: 28px; font-weight: 700; line-height: 1.1; }
.nl-fb-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--nl-plum); font-size: 14px; font-weight: 700; transition: background-color .2s; }
.nl-fb:hover .nl-fb-go { background: var(--nl-blush); }

/* ---------------------------------------------------------------- video row (plugin), in Tasneem colours */
:root {
	--tsv-accent: var(--nl-rose);
	--tsv-ink: var(--hj-ink);
	--tsv-muted: var(--hj-muted);
	--tsv-soft: var(--nl-blush);
	--tsv-line: var(--hj-line-2);
	--tsv-shadow: 60, 15, 40;
}
.nl-home .tsv { padding: 66px 0 58px; }
/* The video row's heading: the same as the other section headings (.nl-h2), centred, whether the row
   sits in the coded main page (.nl-home) or comes from the TikTok Style Video Elementor widget, which is
   not wrapped in .nl-home. */
.nl-home .tsv-heading,
.elementor-widget-tiktok-style-video .tsv-heading {
	margin: 0;
	font-family: var(--hj-serif);
	font-weight: 700;
	font-size: clamp(24px, 2.5vw, 34px);
	line-height: 1.1;
	text-align: center;
	color: var(--nl-mulberry);
}

/* ---------------------------------------------------------------- why parents trust Tasneem */
.nl-wy { padding: 70px clamp(16px, 6vw, 100px) 74px; background: var(--hj-ivory); text-align: center; }
.nl-wy .nl-h2 { margin-top: 8px; }
.nl-home .nl-wy-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	max-width: 1180px;
	margin: 36px auto 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.nl-wy-grid li { padding: 26px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--hj-line); }
.nl-wy-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--nl-blush); color: var(--nl-rose); }
.nl-home .nl-wy-grid h3 { margin: 16px 0 0; font-family: var(--hj-serif); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--nl-mulberry); }
.nl-home .nl-wy-grid p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--hj-ink-2); }

/* ---------------------------------------------------------------- closing call to action: the one plum band */
.nl-cta { padding: 64px 16px 68px; background: var(--nl-plum); color: #fff; text-align: center; }
.nl-cta .nl-h2 { max-width: 24ch; margin: 0 auto; color: #fff; }
.nl-home .nl-cta p { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, .88); }
.nl-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.nl-cta .nl-btn--light { background: #fff; color: var(--nl-plum); }
.nl-cta .nl-btn--light:hover, .nl-cta .nl-btn--light:focus-visible { background: var(--nl-blush); color: var(--nl-plum); }
.nl-cta .nl-btn--wa { background: var(--hj-wa); }
.nl-cta .nl-btn--wa:hover, .nl-cta .nl-btn--wa:focus-visible { background: #178F44; }
.nl-cta .nl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.nl-fb img { transition: none; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
	/* phones swipe instead: no arrows (named like the button rule above so this one wins) */
	.nl-home button.nl-hero-prev, .nl-home button.nl-hero-next { display: none; }

	/* Each slide is 95% of the screen height (Ain, 19 Oct 2026): the photo (the upright phone cut)
	   fills what the text leaves, the text sits centred under it on the slide's wash colour. */
	.nl-hs::after { display: none; }
	.nl-hs { display: flex; flex-direction: column; height: 95vh; height: 95svh; background: var(--hs-bg); }
	.nl-hs picture { position: relative; flex: 1 1 0; min-height: 0; }
	.nl-hs img { position: absolute; inset: 0; height: 100%; }
	.nl-hs-copy { position: static; flex: none; width: auto; align-items: center; gap: 8px; padding: 22px 18px 54px; text-align: center; background: var(--hs-bg); }
	.nl-hs-copy .nl-eyebrow { font-size: 11px; }
	.nl-home .nl-hs-t { font-size: 25px; line-height: 1.15; }
	.nl-hs-s { margin-bottom: 4px; font-size: 14.5px; line-height: 1.5; }
	.nl-hs-copy .nl-btn { min-height: 44px; padding: 0 24px; font-size: 15px; }
	.nl-hero-dots { bottom: 20px; }

	/* four across on phones too (Ain, 19 Oct 2026): the icon on top, the words centred under it */
	.nl-home .nl-tb ul { gap: 8px; padding: 16px 10px; }
	.nl-tb li { flex-direction: column; align-items: center; gap: 6px; font-size: 11px; line-height: 1.3; text-align: center; }
	.nl-tb li + li { padding-left: 0; border-left: 0; }
	.nl-tb b { margin-bottom: 2px; font-size: 12px; line-height: 1.25; }
	.nl-tb-i { width: 34px; height: 34px; }

	.nl-ib { padding: 44px 16px 40px; }
	.nl-home .nl-ib-text { font-size: 15.5px; }
	/* No sliding (Ain, 19 Oct 2026): the first tile (Tasneem Naturel) across the full width, cut square
	   (at most 420px tall, so tablets get a wide cut) and the other two side by side under it. */
	.nl-fb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
	.nl-fb { border-radius: 14px; }
	.nl-fb:first-child { grid-column: 1 / -1; }
	.nl-fb:first-child img { aspect-ratio: 1 / 1; max-height: 420px; }
	.nl-fb-copy { padding: 14px 14px 16px; }
	.nl-fb-eb { font-size: 10.5px; }
	.nl-fb-t { font-size: 20px; }
	.nl-fb:first-child .nl-fb-t { font-size: 24px; }
	.nl-fb-go { margin-top: 6px; padding: 8px 14px; font-size: 13px; }

	.nl-home .tsv { padding: 46px 0 38px; }

	.nl-wy { padding: 46px 16px 50px; }
	.nl-home .nl-wy-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
	.nl-wy-grid li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 18px 16px; }
	.nl-wy-i { grid-row: span 2; }
	.nl-home .nl-wy-grid h3 { margin-top: 0; font-size: 16.5px; }
	.nl-home .nl-wy-grid p { margin-top: 2px; font-size: 14px; }

	.nl-cta { padding: 44px 16px 48px; }
	.nl-home .nl-cta p { font-size: 15.5px; }
}
