/*
Theme Name: Analytics Pulse
Theme URI: https://analyticspulse.in
Author: Avinash Dubey
Author URI: https://analyticspulse.in
Description: Custom dark, data-driven one-page theme for Analytics Pulse — a GA4, GTM, BigQuery, Looker Studio, Power BI & Tableau consulting site with a free-audit booking flow.
Version: 1.0.2
Requires at least: 6.0
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: analytics-pulse
*/

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ap-bg);
	color: var(--ap-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}
h1, h2, h3, h4 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--ap-text);
}
p { margin: 0 0 1em; color: var(--ap-text-muted); }
a { color: var(--ap-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
code { font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,0.06); padding: 0.1em 0.4em; border-radius: 4px; }

/* ================= TOKENS ================= */
:root {
	--ap-bg: #060911;
	--ap-bg-alt: #0a0f1c;
	--ap-card: #0e1526;
	--ap-border: rgba(255,255,255,0.08);
	--ap-text: #e9eefb;
	--ap-text-muted: #93a1ba;
	--ap-accent: #2dd8c6;
	--ap-accent-2: #8b6bf2;
	--ap-logo-blue: #2b5acb ; /*#6f8bf0*/
	--ap-logo-gold: #f4a623;
	--ap-radius: 14px;
	--ap-max-width: 1160px;
}

/* ================= LAYOUT ================= */
.ap-container {
	max-width: var(--ap-max-width);
	margin: 0 auto;
	padding: 0 24px;
}
.ap-section { padding: 100px 0; position: relative; }
.ap-section--alt { background: var(--ap-bg-alt); }
.ap-section__title { font-size: clamp(1.8rem, 3vw, 2.4rem); text-align: center; margin-bottom: 56px; }
.ap-eyebrow {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f4a623 ; /*var(--ap-accent)*/
	margin-bottom: 16px;
}
.ap-eyebrow--center { text-align: center; }

#ap-grid-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: center top;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ================= HEADER / NAV ================= */
.ap-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(6, 9, 17, 0.72);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ap-border);
}
.ap-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
.ap-logo { display: flex; align-items: center; gap: 10px; }
.ap-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	flex: 0 0 auto;
}
.ap-logo__mark img { width: 100%; height: 100%; display: block; }
.ap-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 42px; width: auto; display: block; }
.ap-logo__text { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ap-text); font-size: 1.05rem; }
.ap-logo__text--a { color: var(--ap-logo-blue) ; } /*#1e3a7e*/
.ap-logo__text--p { color: var(--ap-logo-gold); }
.ap-nav { display: flex; align-items: center; gap: 32px; }
.ap-nav a { color: var(--ap-text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.ap-nav a:hover { color: var(--ap-text); }
.ap-nav__cta {
	background: #f4a623 /*var(--ap-accent)*/;
	color: #06131a !important;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600 !important;
}
.ap-nav__cta:hover { opacity: 0.9; }
.ap-nav-toggle { display: none; background: none; border: 0; width: 36px; height: 30px; flex-direction: column; justify-content: space-between; cursor: pointer; padding: 4px 0; }
.ap-nav-toggle span { display: block; height: 2px; background: var(--ap-text); border-radius: 2px; }

/* ================= HERO ================= */
.ap-hero { padding: 120px 0 80px; text-align: center; }
.ap-hero__headline { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; margin: 0 auto 24px; }
.ap-hero__sub { max-width: 620px; margin: 0 auto 40px; font-size: 1.1rem; }
.ap-hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.ap-hero__chart { max-width: 900px; margin: 0 auto; opacity: 0.9; }
.ap-hero__chart svg { width: 100%; height: 200px; }
.ap-chart-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: ap-draw 2.4s ease forwards; }
.ap-chart-line--accent { animation-delay: 0.3s; }
@keyframes ap-draw { to { stroke-dashoffset: 0; } }

/* ================= BUTTONS ================= */
.ap-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.15s ease, opacity 0.15s ease;
	border: 1px solid transparent;
	cursor: pointer;
}
.ap-btn:hover { transform: translateY(-2px); }
.ap-btn--primary { background: linear-gradient(135deg, var(--ap-logo-blue), 60%, var(--ap-logo-gold)); color: #ffffff; border:none;} /*color: #06131a; */
.ap-btn--ghost { border-color: var(--ap-border); color: var(--ap-text); }
.ap-btn--block { width: 100%; text-align: center; }

/* ================= ABOUT ================= */
.ap-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.ap-about__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ap-stats { display: grid; gap: 24px; }
.ap-stat {
	background: var(--ap-card);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 24px;
	text-align: center;
}
.ap-stat__num { display: block; font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; font-weight: 700; color: var(--ap-logo-gold); }
.ap-stat__label { font-size: 0.85rem; color: var(--ap-text-muted); }

/* ================= BLOG / SINGLE POST ================= */
.ap-hero--page { padding: 100px 0 60px; }
.ap-card--post { display: flex; flex-direction: column; }
.ap-card__thumb { display: block; border-radius: var(--ap-radius); overflow: hidden; margin-bottom: 20px; }
.ap-card__thumb img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ap-card--post:hover .ap-card__thumb img { transform: scale(1.04); }
.ap-card__meta { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--ap-text-muted); margin-bottom: 8px; }
.ap-card__h3link {color: var(--ap-logo-gold);}
.ap-card__link { display: inline-block; margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--ap-logo-gold); }
.ap-pagination { display: flex; justify-content: center; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
.ap-pagination a, .ap-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ap-border); color: var(--ap-text-muted); font-size: 0.9rem; }
.ap-pagination a:hover { color: var(--ap-text); border-color: var(--ap-accent); }
.ap-pagination .current { background: var(--ap-accent); color: #06131a; border-color: var(--ap-accent); font-weight: 600; }
.ap-single__thumb { border-radius: var(--ap-radius); overflow: hidden; margin-bottom: 32px; }
.ap-single__thumb img { width: 100%; display: block; }
.ap-prose { max-width: 760px; margin: 0 auto; }
.ap-prose img { border-radius: var(--ap-radius); margin: 24px 0; }
.ap-prose h2 { margin-top: 2em; }

/* ================= CARDS / SERVICES ================= */
.ap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-card {
	background: var(--ap-card);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 32px 28px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.ap-card:hover { border-color: rgba(45,216,198,0.4); transform: translateY(-4px); }
.ap-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 10px;
	background: rgba(45,216,198,0.12);
	color: var(--ap-logo-gold);
	font-family: 'JetBrains Mono', monospace;
	font-weight: 700;
	margin-bottom: 20px;
}
.ap-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.ap-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ================= PROCESS ================= */
.ap-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ap-step { padding: 8px; }
.ap-step__num {
	display: block;
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.8rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--ap-logo-gold), var(--ap-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 12px;
}
.ap-step h3 { font-size: 1.05rem; }
.ap-step p { font-size: 0.92rem; }

/* ================= BOOK / CONTACT ================= */
.ap-book { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ap-book__intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.ap-hint { font-size: 0.82rem; margin-top: 10px; }
.ap-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--ap-card);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 32px;
}
.ap-form label { font-size: 0.85rem; color: var(--ap-text-muted); margin-top: 12px; }
.ap-form input, .ap-form textarea {
	background: var(--ap-bg);
	border: 1px solid var(--ap-border);
	border-radius: 8px;
	padding: 12px 14px;
	color: var(--ap-text);
	font-family: inherit;
	font-size: 0.95rem;
	resize: vertical;
}
.ap-form input:focus, .ap-form textarea:focus {
	outline: none;
	border-color: var(--ap-accent);
}
.ap-form button { margin-top: 20px; }
.ap-hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.ap-alert { padding: 14px 18px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.ap-alert--success { background: rgba(45,216,198,0.12); color: var(--ap-accent); border: 1px solid rgba(45,216,198,0.3); }
.ap-alert--error { background: rgba(255,90,90,0.1); color: #ff8a8a; border: 1px solid rgba(255,90,90,0.3); }

/* ================= FOOTER ================= */
.ap-footer { border-top: 1px solid var(--ap-border); padding: 56px 0 24px; background: var(--ap-bg-alt); }
.ap-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.ap-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.ap-footer__brand .ap-logo { margin-bottom: 4px; }
.ap-footer__brand .ap-logo__mark { width: 30px; height: 30px; }
.ap-footer__links, .ap-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.ap-footer__links a, .ap-footer__contact a { color: #f4a623 }
.ap-footer__social { display: flex; gap: 16px; margin-top: 6px; }
.ap-footer__bottom { border-top: 1px solid var(--ap-border); padding-top: 20px; font-size: 0.85rem; color: var(--ap-text-muted); }
.ap-footer__bottom p { margin: 0; }

/* ================= SCROLL REVEAL ================= */
.ap-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ap-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ================= MISC PAGE TEMPLATES ================= */
.ap-prose :is(h1,h2,h3) { margin-top: 1.2em; }
.ap-prose a { text-decoration: underline; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
	.ap-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--ap-bg-alt); flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; border-bottom: 1px solid var(--ap-border); transform: translateY(-150%); transition: transform 0.25s ease; }
	.ap-nav.is-open { transform: translateY(0); }
	.ap-nav-toggle { display: flex; }
	.ap-about, .ap-book { grid-template-columns: 1fr; }
	.ap-cards { grid-template-columns: repeat(2, 1fr); }
	.ap-steps { grid-template-columns: repeat(2, 1fr); }
	.ap-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ap-cards, .ap-steps { grid-template-columns: 1fr; }
	.ap-section { padding: 64px 0; }
}
