/*
Theme Name: IMMER STREAM
Theme URI: https://immerstream.shop/
Author: IMMER STREAM
Description: Dark, red-accented one-page theme for IMMER STREAM. Every section is made of normal WordPress blocks, so all texts, prices, links and images can be edited in Appearance → Editor.
Version: 1.0.1
Requires at least: 6.6
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: immer-stream
*/

:root {
	--is-red: var(--wp--preset--color--primary, #fd161f);
	--is-card: var(--wp--preset--color--card, #151515);
	--is-line: var(--wp--preset--color--line, #262626);
	--is-muted: var(--wp--preset--color--muted, #a3a3a3);
	--is-radius: 14px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[id] { scroll-margin-top: 90px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(7, 7, 7, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--is-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wp-block-site-title { font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.site-header .wp-block-site-title a { text-decoration: none; }
.site-header .wp-block-navigation a { text-decoration: none; font-weight: 500; font-size: 0.92rem; color: #d4d4d4; }
.site-header .wp-block-navigation a:hover { color: #fff; }
.site-header .wp-block-button__link { padding: 0.6em 1.3em; font-size: 0.88rem; }
.wp-block-navigation__responsive-container.is-menu-open { background: #070707 !important; color: #fff !important; }

/* ---------- Generic sections ---------- */
.is-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.is-section.is-alt { background: var(--wp--preset--color--base-2, #101010); }
.eyebrow {
	color: var(--is-red);
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 0.3rem !important;
}
.section-lead { color: var(--is-muted); max-width: 620px; margin-left: auto !important; margin-right: auto !important; }
.is-section h2 { margin-top: 0; }

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid #fff;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #070707; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding-top: clamp(70px, 11vw, 130px);
	padding-bottom: clamp(50px, 7vw, 80px);
	background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(253, 22, 31, 0.28), transparent 70%), #070707;
}
.hero h1 { font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.hero h1 mark { background: transparent; color: var(--is-red); }
.hero .hero-lead { color: #cfcfcf; max-width: 560px; margin-left: auto !important; margin-right: auto !important; }
.hero .wp-block-buttons { margin-top: 1.8rem; }
.hero-line {
	width: 90px; height: 3px; margin: 2rem auto 0 !important;
	background: linear-gradient(90deg, transparent, var(--is-red), transparent);
	border: 0;
}

/* ---------- Cards (stats, features, steps, plans) ---------- */
.is-card {
	background: var(--is-card);
	border: 1px solid var(--is-line);
	border-radius: var(--is-radius);
	padding: 1.6rem 1.4rem;
	transition: border-color .2s ease, transform .2s ease;
}
.is-card:hover { border-color: #3a3a3a; }
.is-card > * { margin-top: 0; }
.is-card > * + * { margin-top: 0.6rem; }

.stat { text-align: center; }
.stat .stat-num { color: var(--is-red); font-weight: 900; font-size: 1.9rem; margin: 0; line-height: 1.1; }
.stat .stat-label { color: var(--is-muted); font-size: 0.85rem; margin: 0.35rem 0 0; }

.feature-icon {
	width: 46px; height: 46px; display: grid; place-items: center;
	border-radius: 12px; font-size: 1.3rem; line-height: 1;
	color: var(--is-red); background: rgba(253, 22, 31, 0.1);
	border: 1px solid rgba(253, 22, 31, 0.25);
}
.is-card h3 { font-size: 1.12rem; margin-top: 1rem; }
.is-card p:where(:not(.feature-icon, .step-num, .stat-num, .stat-label, .plan-price, .plan-month, .plan-badge, .plan-devices)) { color: var(--is-muted); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.device-tabs {
	background: var(--is-card);
	border: 1px solid var(--is-line);
	border-radius: 999px;
	padding: 5px;
	width: fit-content;
	margin: 0 auto 2.2rem !important;
	gap: 4px !important;
}
.device-tabs .wp-block-button__link {
	background: transparent;
	color: var(--is-muted);
	padding: 0.6em 1.3em;
	font-size: 0.9rem;
}
.device-tabs .wp-block-button__link:hover { background: #222; color: #fff; }
.device-tabs .is-active .wp-block-button__link { background: var(--is-red); color: #fff; }
.js-tabs .plan-set:not(.is-active) { display: none; }
.plan-set + .plan-set { margin-top: 2rem; }

.plan-card { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.5rem; }
.plan-card.is-featured { border-color: var(--is-red); box-shadow: 0 0 0 1px var(--is-red), 0 20px 50px -25px rgba(253, 22, 31, 0.6); }
.plan-card .plan-badge {
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	background: var(--is-red); color: #fff; font-size: 0.68rem; font-weight: 800;
	letter-spacing: 0.1em; padding: 0.35em 0.9em; border-radius: 999px; white-space: nowrap; margin: 0 !important;
}
.plan-card.is-featured .plan-badge.is-value { background: #fff; color: #070707; }
.plan-card h3 { margin-top: 0.2rem !important; font-size: 1.25rem; }
.plan-card .plan-devices { color: var(--is-muted); font-size: 0.85rem; margin-top: 0.2rem !important; }
.plan-card .plan-price { font-size: 2.3rem; font-weight: 900; line-height: 1; margin-top: 1rem !important; color: #fff; }
.plan-card .plan-month { color: var(--is-red); font-size: 0.85rem; font-weight: 600; }
.plan-card .plan-features { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem !important; flex: 1; }
.plan-card .plan-features li { position: relative; padding-left: 1.6em; margin: 0.55em 0; font-size: 0.9rem; color: #d4d4d4; }
.plan-card .plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--is-red); font-weight: 800; }
.plan-card .wp-block-buttons { margin-top: auto !important; }
.plan-card .wp-block-button { width: 100%; }
.plan-card .wp-block-button__link { width: 100%; }
.plan-card:not(.is-featured) .wp-block-button__link { background: #222; }
.plan-card:not(.is-featured) .wp-block-button__link:hover { background: var(--is-red); }

/* ---------- Devices chips ---------- */
.chips { gap: 10px !important; }
.chips .chip {
	margin: 0 !important;
	background: var(--is-card);
	border: 1px solid var(--is-line);
	border-radius: 999px;
	padding: 0.6em 1.2em;
	font-weight: 600;
	font-size: 0.9rem;
}

/* ---------- Steps ---------- */
.step { text-align: center; }
.step .step-num {
	width: 52px; height: 52px; margin: 0 auto !important; display: grid; place-items: center;
	border-radius: 50%; background: var(--is-red); color: #fff; font-weight: 900; font-size: 1.3rem; line-height: 1;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.faq-list > * + * { margin-top: 12px !important; }
.wp-block-details.faq-item {
	background: var(--is-card);
	border: 1px solid var(--is-line);
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
}
.wp-block-details.faq-item summary {
	cursor: pointer; list-style: none; position: relative;
	padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 700;
}
.wp-block-details.faq-item summary::-webkit-details-marker { display: none; }
.wp-block-details.faq-item summary::after {
	content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
	color: var(--is-red); font-size: 1.5rem; font-weight: 600; transition: transform .2s;
}
.wp-block-details.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-details.faq-item > :not(summary) { padding: 0 1.3rem; color: var(--is-muted); margin-top: 0; }
.wp-block-details.faq-item > :last-child:not(summary) { padding-bottom: 1.2rem; }

/* ---------- CTA ---------- */
.cta-box {
	background: radial-gradient(ellipse at top, rgba(253, 22, 31, 0.3), transparent 70%), var(--is-card);
	border: 1px solid rgba(253, 22, 31, 0.35);
	border-radius: 22px;
	padding: clamp(40px, 6vw, 70px) 24px;
}
.cta-box p { color: #cfcfcf; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--is-line); background: #070707; padding-top: 56px; padding-bottom: 28px; }
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 0.8rem; }
.site-footer p, .site-footer li { color: var(--is-muted); font-size: 0.9rem; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin: 0.45em 0; }
.site-footer a { color: var(--is-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .wp-block-site-title { font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer .copyright { border-top: 1px solid var(--is-line); padding-top: 22px; margin-top: 36px !important; font-size: 0.8rem; text-align: center; }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; margin: 0 !important; }
.whatsapp-float .wp-block-button__link {
	width: 56px; height: 56px; padding: 0 !important; border-radius: 50%;
	background: #25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23fff'%3E%3Cpath d='M16 3C8.8 3 3 8.8 3 16c0 2.3.6 4.5 1.7 6.4L3 29l6.8-1.8c1.9 1 4 1.6 6.2 1.6 7.2 0 13-5.8 13-13S23.2 3 16 3zm0 23.6c-2 0-3.9-.5-5.6-1.5l-.4-.2-4 1.1 1.1-3.9-.3-.4C5.9 20 5.3 18 5.3 16 5.3 10.1 10.1 5.3 16 5.3S26.7 10.1 26.7 16 21.9 26.6 16 26.6zm5.9-8c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-1 1.2-.2.2-.4.2-.7.1-.3-.2-1.4-.5-2.6-1.6-1-.9-1.6-1.9-1.8-2.2-.2-.3 0-.5.1-.7l.5-.6c.2-.2.2-.3.3-.6.1-.2 0-.4 0-.6l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.6c.2.2 2.4 3.7 5.8 5.1.8.4 1.4.6 1.9.7.8.3 1.6.2 2.2.1.7-.1 1.9-.8 2.2-1.5.3-.8.3-1.4.2-1.5-.1-.2-.3-.3-.6-.4z'/%3E%3C/svg%3E") center / 30px no-repeat;
	font-size: 0; color: transparent;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
.whatsapp-float .wp-block-button__link:hover { background-color: #1ebe5b; transform: scale(1.05); }
.editor-styles-wrapper .whatsapp-float { position: static; }
.editor-styles-wrapper .whatsapp-float .wp-block-button__link { font-size: 0.8rem; color: #fff; width: auto; height: auto; padding: 0.6em 1em 0.6em 3em !important; border-radius: 999px; background-position: 10px center; background-size: 22px; }

/* ---------- Inner pages ---------- */
.page-main { padding-top: 60px; padding-bottom: 80px; }
.page-main h2 { margin-top: 2.2em; }
.page-main p, .page-main li { color: #d4d4d4; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.device-tabs .wp-block-button__link { padding: 0.55em 0.9em; font-size: 0.82rem; }
	.hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
}

/* Show the site title only while no logo is uploaded */
.wp-block-site-logo + .wp-block-site-title { display: none; }
.wp-block-site-logo img { height: auto; }
