/*
Theme Name: ChatConvert
Description: One-page conversion theme for random video chat affiliate sites. Clickable photo grid, sticky mobile CTA, /go/ redirect link, CTA click tracking.
Version: 1.0.0
Author: Scale Vault
Text Domain: chatconvert
Requires PHP: 7.4
*/

:root {
	--teal: #4ecdc4;
	--teal-600: #17b3a9;
	--teal-700: #0e8f87;
	--ink: #0f1720;
	--ink-2: #4a5563;
	--line: #e7ecef;
	--bg-soft: #f4fbfa;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(15, 23, 32, .08);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-align: center; margin-bottom: 1.2em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-weight: 800; text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 22px; height: 22px; }
.btn-cta {
	color: #fff; padding: 16px 30px; font-size: 1.05rem;
	background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
	box-shadow: 0 10px 24px rgba(14, 143, 135, .35);
}
.btn-cta:hover, .btn-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 143, 135, .45); color: #fff; }
.btn-xl { padding: 20px 38px; font-size: 1.2rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--teal-700); padding: 20px 38px; font-size: 1.2rem; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-light:hover { transform: translateY(-2px); color: var(--teal-700); }
.btn-header { color: #fff; background: var(--teal-700); padding: 10px 18px; font-size: .95rem; }
.btn-header .icon { width: 18px; height: 18px; }
.btn-header:hover { background: var(--teal-600); color: #fff; }

.hero .btn-cta { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
	0%, 100% { box-shadow: 0 10px 24px rgba(14,143,135,.35), 0 0 0 0 rgba(78,205,196,.55); }
	50% { box-shadow: 0 10px 24px rgba(14,143,135,.35), 0 0 0 14px rgba(78,205,196,0); }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal); color: #fff; }
.brand-mark .icon { width: 16px; height: 16px; fill: #fff; stroke: none; }
.custom-logo { max-height: 40px; width: auto; }
.header-nav { display: none; margin-left: auto; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-list a:hover { color: var(--teal-700); }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 44px; background: radial-gradient(1200px 500px at 80% -10%, rgba(78,205,196,.20), transparent 60%), linear-gradient(#fff, var(--bg-soft)); }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); font-weight: 900; }
.hero-sub { font-size: 1.12rem; color: var(--ink-2); max-width: 540px; margin: 0 auto 1.4em; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.trust { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .92rem; color: var(--ink-2); font-weight: 600; }
.trust .icon { width: 18px; height: 18px; color: var(--teal-700); }

.online-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: blink 1.6s infinite; }
@keyframes blink { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

/* Video call mock (whole thing is a link) */
.call-mock {
	position: relative; display: block; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 3 / 4;
	border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(15,23,32,.22); text-decoration: none;
	border: 6px solid #0f1720; background: #0f1720; transition: transform .2s ease;
}
.call-mock:hover { transform: translateY(-4px) rotate(-.5deg); }
.mock-main { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mock-self { position: absolute; top: 14px; right: 14px; width: 28%; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid #fff; background-size: cover; background-position: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.is-empty { background: linear-gradient(145deg, #1e3a3a, #0e8f87 60%, #4ecdc4); display: grid; place-items: center; color: rgba(255,255,255,.75); }
.mock-main.is-empty .icon { width: 64px; height: 64px; }
.mock-self.is-empty { background: linear-gradient(145deg, #334155, #64748b); }
.mock-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.mock-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 999px; font-weight: 800; font-size: .95rem; color: #fff; }
.mock-btn .icon { width: 18px; height: 18px; }
.mock-skip { background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.mock-go { background: var(--teal-600); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.strip .icon { width: 20px; height: 20px; color: var(--teal-700); }

/* ---------- Photo grid ---------- */
.grid-section { padding: 56px 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover { transform: translateY(-4px); }
.card:hover img { transform: scale(1.05); }
.card.is-empty { display: grid; place-items: center; }
.card.is-empty > .icon { width: 44px; height: 44px; }
.card-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.card-label { color: #fff; font-weight: 700; font-size: .95rem; }
.card-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-600); color: #fff; font-weight: 800; font-size: .85rem; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.card-pill .icon { width: 14px; height: 14px; fill: #fff; stroke: none; }

/* ---------- Steps ---------- */
.steps-section { padding: 56px 0; background: var(--bg-soft); }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 900; margin-bottom: 12px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Features ---------- */
.features-section { padding: 56px 0; }
.features { display: grid; gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(78,205,196,.15); color: var(--teal-700); margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 56px 0; background: var(--bg-soft); }
.faq { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(15,23,32,.05); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-700); font-weight: 400; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 64px 0; background: linear-gradient(135deg, var(--teal-600), var(--teal-700)); color: #fff; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.final-cta p { opacity: .92; font-size: 1.1rem; margin-bottom: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1720; color: #94a3b8; padding: 36px 0 110px; font-size: .9rem; }
.footer-inner { text-align: center; }
.footer-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--teal); }
.footer-note { max-width: 620px; margin: 0 auto 8px; }
.footer-copy { margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
	transform: translateY(140%); opacity: 0; pointer-events: none;
	transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.sticky-cta .btn { padding: 17px; font-size: 1.08rem; }

/* ---------- Inner pages ---------- */
.page-main { padding: 48px 0 64px; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-content { color: #26313d; }
.entry-content h2 { font-size: 1.4rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.15rem; margin-top: 1.4em; }
.page-cta { margin-top: 40px; text-align: center; }

/* ---------- Desktop ---------- */
@media (min-width: 640px) {
	.strip-inner { grid-template-columns: repeat(4, auto); justify-content: space-between; }
	.card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.header-nav { display: block; }
	.hero { padding: 64px 0 80px; }
	.hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
	.hero-copy { text-align: left; }
	.hero-sub { margin-left: 0; }
	.hero-actions { align-items: flex-start; }
	.call-mock { max-width: 360px; }
	.features { grid-template-columns: repeat(3, 1fr); }
	.sticky-cta { display: none; }
	.site-footer { padding-bottom: 36px; }
}

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