/*
Theme Name:   IPTV NL
Theme URI:    https://iptv-abonnementen.nl
Description:  Child theme for IPTV NL. Carries the entire design layer so the site has no page-builder dependency and renders correctly even with every premium plugin deactivated.
Author:       IPTV NL
Template:     astra
Version:      1.0.0
Text Domain:  iptvnl
*/

/* ==========================================================================
   Design tokens
   NO colour or font literal belongs in this file. Every --brand/--ink/--font
   value is generated from content/brand.mjs into inc/brand.php and printed as
   :root custom properties by functions.php. Change the brand there, not here.
   ========================================================================== */

:root {
	--shadow:    0 1px 2px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.05);
	--shadow-lg: 0 2px 6px rgba(16,24,40,.07), 0 12px 32px rgba(16,24,40,.09);
	--gap:       clamp(1rem, 3vw, 2rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

body.iptvnl {
	font-family: var(--font);
	color: var(--ink-2);
	background: var(--surface);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.iptvnl h1, .iptvnl h2, .iptvnl h3, .iptvnl h4 {
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0 0 .6em;
}

.iptvnl h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); }
.iptvnl h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.2em; }
.iptvnl h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: 1.6em; }
.iptvnl p  { margin: 0 0 1.15em; }

.iptvnl a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.iptvnl a:hover { color: var(--brand-dark); }

.iptvnl strong { color: var(--ink); font-weight: 700; }
.iptvnl hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.iptvnl img { max-width: 100%; height: auto; }

.iptvnl-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.iptvnl-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.iptvnl-section--alt { background: var(--surface-2); }

/* ==========================================================================
   Content measure
   Prose sits at a readable measure; components that carry data or act as bands
   are allowed to run wider. Astra's own container stays intact.
   ========================================================================== */

.iptvnl .entry-content > * {
	max-width: 760px;
	margin-inline: auto;
}

.iptvnl .entry-content > .iptvnl-hero,
.iptvnl .entry-content > .iptvnl-trust,
.iptvnl .entry-content > .iptvnl-plans,
.iptvnl .entry-content > .iptvnl-band,
.iptvnl .entry-content > .iptvnl-scroll,
.iptvnl .entry-content > .iptvnl-faq,
.iptvnl .entry-content > .iptvnl-grid {
	max-width: var(--wrap);
}

/* The hero is a full-bleed band with its own inner measure. */
.iptvnl .entry-content > .iptvnl-hero {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Specificity has to beat Astra's link colour, which otherwise paints button
   labels blue on the green WhatsApp fill. */
.iptvnl .entry-content a.iptvnl-btn,
.iptvnl a.iptvnl-btn,
.iptvnl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .85rem 1.5rem;
	border-radius: var(--r);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .15s ease, border-color .15s ease;
}

.iptvnl a.iptvnl-btn--primary,
.iptvnl a.iptvnl-btn--primary:visited { background: var(--brand); color: var(--on-dark); }
.iptvnl a.iptvnl-btn--primary:hover   { background: var(--brand-dark); color: var(--on-dark); }

.iptvnl a.iptvnl-btn--whatsapp,
.iptvnl a.iptvnl-btn--whatsapp:visited { background: var(--whatsapp); color: var(--whatsapp-ink); }
.iptvnl a.iptvnl-btn--whatsapp:hover   { background: var(--whatsapp-dark); color: var(--whatsapp-ink); }

.iptvnl a.iptvnl-btn--ghost,
.iptvnl a.iptvnl-btn--ghost:visited { background: transparent; color: var(--ink); border-color: var(--line); }
.iptvnl a.iptvnl-btn--ghost:hover   { background: var(--surface-2); color: var(--ink); }

.iptvnl-btn--lg { padding: 1.05rem 1.9rem; font-size: 1.06rem; }
.iptvnl-btn--block { display: flex; width: 100%; }

.iptvnl-cta { margin: 1.6rem 0; }

/* ==========================================================================
   Hero — flat ink panel, no gradient
   ========================================================================== */

.iptvnl-hero {
	background: var(--ink);
	color: var(--on-dark-muted);
	padding-block: clamp(3rem, 8vw, 5.5rem);
}
.iptvnl-hero h1 { color: var(--on-dark); max-width: 20ch; margin-top: 0; }
.iptvnl-hero .iptvnl-wrap { max-width: var(--wrap); }

/* Ghost button on the dark hero needs light borders, not the light-theme ones. */
.iptvnl a.iptvnl-btn--hero-ghost,
.iptvnl a.iptvnl-btn--hero-ghost:visited {
	background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.28);
}
.iptvnl a.iptvnl-btn--hero-ghost:hover { background: rgba(255,255,255,.08); color: var(--on-dark); }
.iptvnl-hero__lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 58ch; color: var(--on-dark-muted); }
.iptvnl-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.iptvnl-hero__note { margin-top: 1.1rem; font-size: .95rem; color: var(--on-dark-faint); }

/* Trust strip under the hero */
.iptvnl-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	margin-top: -1.75rem;
	position: relative;
	box-shadow: var(--shadow);
}
.iptvnl-trust > div { background: var(--surface); padding: 1.1rem 1.25rem; }
.iptvnl-trust dt { font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.iptvnl-trust dd { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   Cards
   ========================================================================== */

.iptvnl-grid { display: grid; gap: 1.15rem; }
.iptvnl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.iptvnl-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.iptvnl-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 1.5rem;
}
.iptvnl-card h3 { margin-top: 0; font-size: 1.12rem; }
.iptvnl-card p:last-child { margin-bottom: 0; }
.iptvnl-card__icon {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: var(--r);
	background: var(--brand-tint);
	color: var(--brand);
	margin-bottom: .9rem;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.iptvnl-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1.1rem;
	align-items: start;
}

.iptvnl-plan {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 1.6rem 1.4rem;
	display: flex;
	flex-direction: column;
	position: relative;
}
.iptvnl-plan--featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow-lg); }
.iptvnl-plan__badge {
	position: absolute; top: -.7rem; left: 1.4rem;
	background: var(--badge); color: var(--badge-text);
	font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	padding: .25rem .6rem; border-radius: 999px;
}
.iptvnl-plan__term { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.iptvnl-plan__price { font-size: 2.3rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: .5rem 0 .1rem; letter-spacing: -0.03em; }
.iptvnl-plan__per { font-size: .92rem; color: var(--muted); margin-bottom: 1.1rem; }
.iptvnl-plan__list { list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .96rem; }
.iptvnl-plan__list li { padding-left: 1.5rem; position: relative; margin-bottom: .45rem; }
.iptvnl-plan__list li::before {
	content: ""; position: absolute; left: 0; top: .48em;
	width: .5rem; height: .28rem;
	border-left: 2px solid var(--whatsapp-dark); border-bottom: 2px solid var(--whatsapp-dark);
	transform: rotate(-45deg);
}
.iptvnl-plan .iptvnl-btn { margin-top: auto; }

/* Full duration x screen matrix */
.iptvnl-matrix { width: 100%; border-collapse: collapse; font-size: .97rem; }
.iptvnl-matrix th, .iptvnl-matrix td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.iptvnl-matrix thead th { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.iptvnl-matrix tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.iptvnl-matrix td a { font-weight: 700; text-decoration: none; }
.iptvnl-matrix tr:hover td { background: var(--surface-2); }
.iptvnl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   Tables in prose
   ========================================================================== */

.iptvnl .entry-content table,
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.iptvnl .entry-content th,
.iptvnl .entry-content td { padding: .75rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.iptvnl .entry-content thead th { background: var(--surface-2); color: var(--ink); }

/* ==========================================================================
   FAQ — native <details>, no JavaScript
   ========================================================================== */

.iptvnl-faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.iptvnl-faq details { border-bottom: 1px solid var(--line); }
.iptvnl-faq details:last-child { border-bottom: 0; }
.iptvnl-faq summary {
	cursor: pointer; list-style: none;
	padding: 1.05rem 3rem 1.05rem 1.25rem;
	font-weight: 700; color: var(--ink);
	position: relative;
}
.iptvnl-faq summary::-webkit-details-marker { display: none; }
.iptvnl-faq summary::after {
	content: ""; position: absolute; right: 1.25rem; top: 1.45rem;
	width: .55rem; height: .55rem;
	border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
	transform: rotate(45deg); transition: transform .15s ease;
}
.iptvnl-faq details[open] summary::after { transform: rotate(-135deg); }
.iptvnl-faq summary:hover { background: var(--surface-2); }
.iptvnl-faq__body { padding: 0 1.25rem 1.15rem; color: var(--ink-3); }
.iptvnl-faq__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA band + notes
   ========================================================================== */

.iptvnl-band {
	background: var(--ink);
	color: var(--on-dark-muted);
	border-radius: var(--r-lg);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.iptvnl-band h2 { color: var(--on-dark); margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.iptvnl-band p { margin: 0; max-width: 52ch; }

.iptvnl-note {
	border-left: 3px solid var(--badge);
	background: var(--brand-tint);
	padding: 1rem 1.15rem;
	border-radius: 0 var(--r) var(--r) 0;
	margin: 1.6rem 0;
}
.iptvnl-note p:last-child { margin-bottom: 0; }

.iptvnl .entry-content blockquote,
.wp-block-quote {
	border-left: 3px solid var(--brand);
	background: var(--brand-tint);
	padding: 1rem 1.15rem;
	border-radius: 0 var(--r) var(--r) 0;
	margin: 1.6rem 0;
}

/* ==========================================================================
   Post cards + breadcrumbs
   ========================================================================== */

.iptvnl-post-card {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 1.35rem;
	background: var(--surface);
}
.iptvnl-post-card h3 { margin: 0 0 .4rem; font-size: 1.06rem; }
.iptvnl-post-card h3 a { text-decoration: none; color: var(--ink); }
.iptvnl-post-card h3 a:hover { color: var(--brand); }
.iptvnl-post-card p { font-size: .95rem; color: var(--muted); margin: 0; }

.iptvnl-crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.25rem; }
.iptvnl-crumbs a { color: var(--muted); text-decoration: none; }
.iptvnl-crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */

.iptvnl-foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin: 0 0 .75rem; }
.iptvnl-foot__links a { color: var(--ink-3); text-decoration: none; font-size: .95rem; }
.iptvnl-foot__links a:hover { color: var(--brand); text-decoration: underline; }
.iptvnl-foot__legal { font-size: .86rem; color: var(--muted); max-width: 68ch; margin-inline: auto; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.iptvnl-eyebrow {
	text-transform: uppercase; letter-spacing: .08em;
	font-size: .78rem; font-weight: 700; color: var(--brand);
	margin-bottom: .6rem;
}
.iptvnl-lead { font-size: 1.1rem; color: var(--ink-3); max-width: 62ch; }
.iptvnl-prose { max-width: 72ch; }
.iptvnl-center { text-align: center; }
.iptvnl-center .iptvnl-lead { margin-inline: auto; }

@media (max-width: 600px) {
	.iptvnl-band { flex-direction: column; align-items: flex-start; }
	.iptvnl-hero__actions .iptvnl-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.iptvnl * { transition: none !important; }
}

/* ==========================================================================
   Authored visuals
   Everything here is drawn in SVG/CSS — no photography, no third-party marks.
   ========================================================================== */

/* Hero: content wall bleeding behind the copy */
.iptvnl-hero { position: relative; overflow: hidden; }
.iptvnl-wall-wrap {
	position: absolute; inset: 0;
	opacity: .38;
	-webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 34%, #000 78%);
	        mask-image: linear-gradient(100deg, transparent 0%, transparent 34%, #000 78%);
	pointer-events: none;
}
.iptvnl-wall { width: 100%; height: 100%; display: block; }

/* Device mockup */
.iptvnl-devices { max-width: 560px; margin-inline: auto; }
.iptvnl-devices__svg { width: 100%; height: auto; display: block; }

/* Numbered steps */
.iptvnl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.iptvnl-step { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem; }
.iptvnl-step__n {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
	background: var(--brand); color: #fff;
	display: grid; place-items: center; font-weight: 700; font-size: .98rem;
}
.iptvnl-step h3 { margin: .15rem 0 .35rem; font-size: 1.05rem; }
.iptvnl-step p  { margin: 0; font-size: .95rem; color: var(--ink-3); }

/* Device support grid */
.iptvnl-devgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.iptvnl-devgrid__item { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; background: var(--surface); }
.iptvnl-devgrid__dot { display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); margin-bottom: .75rem; }
.iptvnl-devgrid__item h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.iptvnl-devgrid__item p  { margin: 0; font-size: .93rem; color: var(--muted); }

/* Hero copy must sit above the wall */
.iptvnl-hero > .iptvnl-wrap,
.iptvnl-hero .e-con-inner { position: relative; z-index: 1; }

/* --- Elementor-rendered hero -------------------------------------------------
   Elementor does not reliably emit a container's custom CSS class across
   versions, so the hero is selected by what it CONTAINS (the wall widget)
   rather than by a class we hoped would survive. Version-independent. */

.e-con:has(> .e-con-inner > .iptvnl-wall-widget),
.e-con:has(> .iptvnl-wall-widget),
.elementor-widget-wrap:has(> .iptvnl-wall-widget) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.iptvnl-wall-widget {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: none !important;
	z-index: 0;
	pointer-events: none;
}
.iptvnl-wall-widget > .elementor-widget-container,
.iptvnl-wall-widget .iptvnl-wall-wrap { height: 100%; }

/* Everything beside the wall stacks above it. */
.e-con:has(> .e-con-inner > .iptvnl-wall-widget) > .e-con-inner > *:not(.iptvnl-wall-widget),
.e-con:has(> .iptvnl-wall-widget) > *:not(.iptvnl-wall-widget) {
	position: relative;
	z-index: 1;
}
