/*
Theme Name: Lux IPTV UK
Theme URI: https://luxiptvuk.com
Author: Lux IPTV UK
Description: Lightweight custom theme for Lux IPTV UK. Light layout with dark navy sections, Poppins, UK red/white/blue palette.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: luxiptv
*/

/* ---------- Fonts (self-hosted for UK GDPR) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/poppins-800.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--uk-blue: #012169;
	--uk-red: #c8102e;
	--uk-red-dark: #a50d26;
	--navy-900: #050d2b;
	--navy-800: #0a1640;
	--navy-700: #13215a;
	--white: #ffffff;
	--bg: #f6f8fc;
	--surface: #ffffff;
	--ink: #0d1530;
	--muted: #5a6380;
	--line: #e3e7f1;
	--on-dark: #e8ecf8;
	--on-dark-muted: #a7b0cc;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(1, 33, 105, .08);
	--shadow-lg: 0 24px 60px rgba(1, 33, 105, .16);
	--container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--uk-blue); text-decoration: none; }
a:hover { color: var(--uk-red); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--uk-red); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font: 600 15px/1 "Poppins", sans-serif; cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--uk-red); color: #fff; box-shadow: 0 10px 24px rgba(200, 16, 46, .28); }
.btn-red:hover { background: var(--uk-red-dark); color: #fff; }
.btn-blue { background: var(--uk-blue); color: #fff; }
.btn-blue:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: var(--uk-blue); color: var(--uk-blue); background: transparent; }
.btn-outline:hover { background: var(--uk-blue); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--uk-blue); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.uk-stripe { height: 4px; background: linear-gradient(90deg, var(--uk-blue) 0 33.33%, #fff 33.33% 66.66%, var(--uk-red) 66.66%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; }
.brand-text span { color: var(--uk-red); }
.brand .custom-logo { max-height: 44px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink); }
.main-nav a:hover { background: var(--bg); color: var(--uk-red); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; top: 76px; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow); display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
	.main-nav a { padding: 12px 14px; }
	.header-cta .btn-outline { display: none; }
}
@media (max-width: 420px) { .header-cta .btn { padding: 10px 14px; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--uk-red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.section-dark .eyebrow { color: #ff5a72; }
@media (max-width: 720px) { .section { padding: 68px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(600px 400px at 85% 10%, rgba(200, 16, 46, .10), transparent 70%),
		radial-gradient(700px 500px at 10% 90%, rgba(1, 33, 105, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--uk-red); }
.hero h1 .accent-blue { color: var(--uk-blue); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; max-width: 520px; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(200, 16, 46, .12); color: var(--uk-red); display: grid; place-items: center; }
.tick svg { width: 13px; height: 13px; }
.section-dark .tick { background: rgba(255, 255, 255, .1); color: #fff; }

.hero-visual { position: relative; }
.tv {
	background: var(--navy-900); border-radius: 22px; padding: 14px;
	box-shadow: var(--shadow-lg); position: relative;
}
.tv-screen {
	border-radius: 12px; aspect-ratio: 16 / 10; overflow: hidden; position: relative;
	background: linear-gradient(135deg, var(--uk-blue) 0%, var(--navy-800) 55%, #3a0a18 100%);
	padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
}
.tv-top { display: flex; justify-content: flex-start; gap: 10px; align-items: center; color: #fff; font-size: 13px; font-weight: 600; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; background: var(--uk-red); padding: 4px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.tv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tv-tile { aspect-ratio: 3 / 4; border-radius: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); }
.tv-tile:nth-child(1) { background: linear-gradient(160deg, #c8102e, #5c0715); }
.tv-tile:nth-child(2) { background: linear-gradient(160deg, #2a4bb8, #0a1640); }
.tv-tile:nth-child(3) { background: linear-gradient(160deg, #ffffff33, #ffffff0d); }
.tv-tile:nth-child(4) { background: linear-gradient(160deg, #1b7a5a, #0a2a20); }
.tv-title { color: #fff; }
.tv-title strong { display: block; font-size: 20px; line-height: 1.2; }
.tv-title small { color: #c7cfee; font-size: 12px; }
.tv-stand { width: 34%; height: 12px; margin: 0 auto; background: var(--navy-800); border-radius: 0 0 12px 12px; }
.float-card {
	position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
	box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.float-card strong { display: block; font-size: 15px; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-1 { left: -24px; bottom: 40px; }
.float-1 .ic { background: var(--uk-red); }
.float-2 { right: -16px; top: -18px; }
.float-2 .ic { background: var(--uk-blue); }

@media (max-width: 960px) {
	.hero { padding: 48px 0 72px; }
	.hero-grid { grid-template-columns: 1fr; gap: 48px; }
	.hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
	.float-1 { left: 8px; bottom: -22px; }
	.float-2 { right: 8px; }
}
@media (max-width: 480px) {
	.hero-trust { grid-template-columns: 1fr; }
	.float-2 { display: none; }
	.tv { padding: 10px; border-radius: 18px; }
	.tv-screen { aspect-ratio: auto; gap: 12px; padding: 14px; }
	.tv-title strong { font-size: 16px; }
	.tv-tiles { gap: 6px; }
	.tv-tile { aspect-ratio: 4 / 3; }
}

/* ---------- Stats strip (dark) ---------- */
.stats { padding: 48px 0; background: var(--navy-900); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { color: var(--on-dark-muted); font-size: 14px; }
.stat strong em { font-style: normal; color: #ff5a72; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* ---------- Feature cards (light) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card-icon {
	width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
	background: rgba(1, 33, 105, .08); color: var(--uk-blue); margin-bottom: 20px;
}
.card:nth-child(even) .card-icon { background: rgba(200, 16, 46, .09); color: var(--uk-red); }
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Steps (dark) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
	position: relative; padding: 34px 28px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
.step-num {
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 700; font-size: 18px; color: #fff; background: var(--uk-red); margin-bottom: 20px;
}
.step:nth-child(2) .step-num { background: #fff; color: var(--uk-blue); }
.step:nth-child(3) .step-num { background: #2a4bb8; }
.step h3 { font-size: 20px; }
.step p { margin: 0; }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; }
.glow-red { background: var(--uk-red); top: -260px; right: -200px; }
.glow-blue { background: #2a4bb8; bottom: -280px; left: -220px; }
.section-dark .container { position: relative; z-index: 1; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing (light) ---------- */
.plan-switch {
	display: inline-flex; padding: 5px; border-radius: 999px; background: #fff;
	border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0 auto 44px;
}
.plan-switch-wrap { text-align: center; }
.plan-switch button {
	border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; cursor: pointer;
	font: 600 14px "Poppins", sans-serif; color: var(--muted);
}
.plan-switch button[aria-pressed="true"] { background: var(--uk-blue); color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 1080px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
.plan {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 26px 28px;
	box-shadow: var(--shadow);
}
.plan.is-featured { background: var(--navy-900); color: var(--on-dark); border-color: var(--navy-900); box-shadow: var(--shadow-lg); }
.plan.is-featured h3, .plan.is-featured .price { color: #fff; }
.plan-badge {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
	background: var(--uk-red); color: #fff; font-size: 12px; font-weight: 600;
	padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan-sub { font-size: 13px; color: var(--muted); }
.plan.is-featured .plan-sub { color: var(--on-dark-muted); }
.price { font-size: 44px; font-weight: 800; color: var(--uk-blue); line-height: 1; margin: 18px 0 4px; }
.price sup { font-size: 22px; top: -.75em; margin-right: 2px; }
.price-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan.is-featured .price-note { color: var(--on-dark-muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .tick { width: 20px; height: 20px; margin-top: 2px; }
.plan.is-featured .tick { background: rgba(255, 255, 255, .12); color: #fff; }
.pricing-foot { text-align: center; margin-top: 30px; color: var(--muted); font-size: 14px; }
[data-tier="premium"] .only-standard, [data-tier="standard"] .only-premium { display: none; }

/* ---------- Devices (dark) ---------- */
.devices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 960px) { .devices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .devices { grid-template-columns: repeat(2, 1fr); } }
.device {
	text-align: center; padding: 26px 12px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
	transition: background .2s ease, border-color .2s ease;
}
.device:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 90, 114, .5); }
.device svg { width: 40px; height: 40px; margin: 0 auto 12px; color: #fff; }
.device strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.device small { color: var(--on-dark-muted); font-size: 12.5px; }
.devices-cta { text-align: center; margin-top: 44px; }

/* ---------- Why us split (light) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split h2 { font-size: clamp(28px, 4vw, 40px); }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; }
.check-list strong { display: block; }
.check-list span { color: var(--muted); font-size: 15px; }
.check-list .tick { width: 28px; height: 28px; margin-top: 2px; }
.panel {
	background: var(--navy-900); color: var(--on-dark); border-radius: 24px; padding: 34px;
	box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.panel h3 { color: #fff; font-size: 20px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
.panel-row:last-child { border-bottom: 0; }
.panel-row span { color: var(--on-dark-muted); }
.panel-row strong { color: #fff; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(46, 204, 113, .15); color: #4ade80; }

/* ---------- FAQ (light) ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.faq summary {
	list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
	font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--bg); color: var(--uk-red); font-size: 20px; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--uk-red); color: #fff; }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-box {
	border-radius: 28px; padding: 56px; color: #fff; text-align: center; position: relative; overflow: hidden;
	background: linear-gradient(120deg, var(--uk-blue) 0%, var(--navy-800) 55%, var(--uk-red) 140%);
	box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.cta-box p { color: #d4dbf2; max-width: 560px; margin: 0 auto 28px; font-size: 17px; }
.cta-box .hero-actions { justify-content: center; margin: 0; }
@media (max-width: 600px) { .cta-box { padding: 40px 22px; border-radius: 22px; } .cta-band { padding-bottom: 68px; } }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom {
	margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px;
}

/* ---------- Generic content pages ---------- */
.page-hero { background: var(--navy-900); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); margin: 0; }
.entry { max-width: 820px; margin: 0 auto; padding: 64px 20px 96px; }
.entry h2 { margin-top: 1.6em; }
.entry img { height: auto; border-radius: 12px; }
.post-list { display: grid; gap: 22px; max-width: 820px; margin: 0 auto; padding: 64px 20px 96px; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
