/*
Theme Name: Marquee IPTV
Theme URI: https://example.com/marquee-iptv
Author: Marquee
Description: A cinematic, conversion-focused WordPress theme for a legitimate IPTV subscription service. Every headline, image, plan, FAQ and contact detail is editable from the Dashboard.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marquee
Tags: entertainment, one-column, custom-logo, custom-menu, featured-images, translation-ready, dark
*/

:root {
	--bg: #080B12;
	--bg2: #111722;
	--bg3: #161E2D;
	--accent: #2878FF;
	--accent-strong: #1F66E6;
	--text: #FFFFFF;
	--muted: #A6ACB8;
	--line: rgba(255, 255, 255, .09);
	--line-strong: rgba(255, 255, 255, .28);
	--radius: 6px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 72px;
}
@supports (color: color-mix(in srgb, red, blue)) {
	:root { --accent-strong: color-mix(in srgb, var(--accent) 82%, #000); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: var(--radius); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.icon { flex: none; color: var(--accent); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px;
	border: 1px solid transparent; border-radius: var(--radius);
	font: 700 .98rem/1 var(--font); text-decoration: none; text-align: center; cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 1.02rem; }
.btn--primary { background: var(--accent-strong); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 68%, #000); }
.btn--ghost { border-color: var(--line-strong); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: var(--line-strong); color: #fff; }
.btn--outline:hover { border-color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__text { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 40px; width: auto; }

.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.is-open .site-nav {
	display: flex; flex-direction: column; gap: 20px;
	position: absolute; top: 100%; left: 0; right: 0;
	background: var(--bg); border-bottom: 1px solid var(--line);
	padding: 8px 24px 28px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.site-nav__cta { width: 100%; }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav, .is-open .site-nav { display: flex; flex-direction: row; align-items: center; gap: 36px; position: static; padding: 0; border: 0; max-height: none; overflow: visible; background: none; }
	.site-nav .menu { display: flex; gap: 30px; }
	.site-nav .menu a { padding: 8px 0; border: 0; font-size: .95rem; font-weight: 600; color: var(--muted); transition: color .2s; }
	.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a { color: #fff; }
	.site-nav__cta { width: auto; min-height: 42px; padding: 0 20px; }
}

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(88vh, 860px); padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; z-index: -2; }
.hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 18, 0) 28%),
		linear-gradient(90deg, rgba(8, 11, 18, .94) 0%, rgba(8, 11, 18, .72) 48%, rgba(8, 11, 18, .3) 100%);
}
.hero h1 { max-width: 14ch; font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em; }
.hero__lead { max-width: 46ch; margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D3D7DF; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 640px; font-size: .92rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }

/* Sections */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--alt { background: var(--bg2); }
.sec--flush { padding-bottom: clamp(40px, 5vw, 64px); }
.sec-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.sec-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.fine { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.fine--center { text-align: center; margin-top: 40px; }
.notice-admin { padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* Why choose us */
.why { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why__item { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.why__item::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.why__item h3 { margin: 20px 0 10px; font-size: 1.2rem; letter-spacing: -.015em; }
.why__item p { color: var(--muted); }

/* Entertainment panels */
.panels { display: grid; grid-template-columns: 1fr; gap: 2px; }
.panel { position: relative; min-height: 260px; overflow: hidden; background: var(--bg2); }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 18, .92) 0%, rgba(8, 11, 18, .15) 62%); }
.panel__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 28px; }
.panel__body h3 { font-size: 1.45rem; }
.panel__body p { margin-top: 8px; max-width: 30ch; color: #D3D7DF; font-size: .98rem; }
@media (min-width: 600px) and (max-width: 899px) { .panels { grid-template-columns: repeat(2, 1fr); } .panel { min-height: 320px; } }
@media (min-width: 900px) {
	.panels { display: flex; height: clamp(440px, 64vh, 640px); }
	.panel { flex: 1 1 0; min-height: 0; transition: flex-grow .5s ease; }
	.panel__body p { max-width: 26ch; }
}
@media (min-width: 900px) and (hover: hover) {
	.panel:hover { flex-grow: 2.2; }
}

/* Devices */
.devices { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .devices { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .devices { grid-template-columns: repeat(6, 1fr); } }
.devices li { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 150px; padding: 24px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }

/* Plans */
.plans { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; }
.plan--featured { background: var(--bg3); border-color: var(--accent); }
.plan__badge { position: absolute; top: 0; left: 32px; transform: translateY(-50%); padding: 5px 12px; background: var(--accent-strong); color: #fff; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.plan h3 { font-size: 1.3rem; }
.plan__duration { margin-top: 4px; color: var(--muted); }
.plan__price { margin-top: 28px; font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan__note { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.plan__features { display: grid; gap: 14px; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; color: #D3D7DF; }
.plan__features .icon { margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }

/* Steps */
.steps { display: grid; gap: 40px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { position: relative; }
.steps__n { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 700; font-size: 1.05rem; background: var(--bg2); position: relative; z-index: 1; }
.steps h3 { margin: 24px 0 10px; font-size: 1.25rem; letter-spacing: -.015em; }
.steps p { color: var(--muted); max-width: 32ch; }
@media (min-width: 800px) {
	.steps li:not(:last-child)::before { content: ""; position: absolute; top: 24px; left: 56px; right: -24px; height: 1px; background: var(--line-strong); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.12rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__a { padding: 0 48px 26px 0; color: var(--muted); }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--accent); }

/* Final CTA */
.cta { position: relative; padding: clamp(96px, 14vw, 180px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.cta__shade { position: absolute; inset: 0; z-index: -1; background: rgba(8, 11, 18, .74); }
.cta h2 { max-width: 18ch; margin: 0 auto 36px; font-size: clamp(2rem, 4.8vw, 3.6rem); letter-spacing: -.03em; }

/* Contact */
.contact { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact .sec-head { margin-bottom: 32px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; color: #D3D7DF; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; }
.form p { margin: 0; }
.form label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form textarea, .search-field {
	width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); color: #fff; font: inherit;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { padding: 14px 16px; border-radius: var(--radius); border-left: 3px solid; font-size: .95rem; }
.form__msg--ok { background: rgba(48, 190, 120, .1); border-color: #30BE78; }
.form__msg--err { background: rgba(255, 90, 90, .1); border-color: #FF5A5A; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 72px 0 0; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; } }
.site-footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--muted); }
.site-footer__title { margin-bottom: 16px; font-size: 1rem; letter-spacing: 0; }
.site-footer .menu { display: grid; gap: 10px; }
.site-footer .menu a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer .menu a:hover { color: #fff; }
.site-footer__legal { margin-top: 56px; padding: 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* Inner pages */
.inner { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); }
.entry__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.entry__title a { text-decoration: none; }
.entry__meta { color: var(--muted); margin-bottom: 28px; font-size: .92rem; }
.entry__thumb { margin-bottom: 32px; border-radius: 8px; overflow: hidden; }
.entry__content { max-width: 70ch; color: #D3D7DF; line-height: 1.75; }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content h2, .entry__content h3 { margin-top: 1.8em; color: #fff; }
.entry__content h2 { font-size: 1.6rem; }
.entry__content h3 { font-size: 1.25rem; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }
.entry__content a { color: var(--accent); }
.entry--list { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.notfound .btn { margin-top: 28px; }
.notfound p { color: var(--muted); }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 16px; }

@media (max-width: 599px) {
	.wrap { padding: 0 20px; }
	.hero { padding: 72px 0 56px; min-height: 0; }
	.hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 11, 18, .55) 30%, rgba(8, 11, 18, .78) 100%); }
	.hero__cta .btn { width: 100%; }
	.faq__a { padding-right: 0; }
	.cta .btn { width: 100%; }
	.form .btn { width: 100%; }
}

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