/*
Theme Name:   Agrawal Digital
Theme URI:    https://agrawaldigitalsolutions.com
Author:       Agrawal Digital Solutions
Description:  Custom theme for Agrawal Digital Solutions — a growth studio in Dhule & Nashik. Pairs with the Agrawal CMS plugin for Services, Packages, Industries, Projects, Testimonials and FAQs.
Version:      1.0.0
License:      GPL-2.0-or-later
Text Domain:  agrawal-digital
Requires PHP: 7.4
*/

/* ─────────────────────────────────────────────────────────────
   1. TOKENS — mirrors the design system of the Next.js build
   ───────────────────────────────────────────────────────────── */
:root {
	--bg: #f4f7fc;
	--surface: #ffffff;
	--surface-2: #eef2fb;
	--navy: #0b1836;
	--navy-2: #0f2350;
	--ink: #0b1533;
	--ink-soft: #4a5578;
	--ink-faint: #7883a3;
	--blue: #2563eb;
	--blue-bright: #3b82f6;
	--blue-deep: #1e40af;
	--green: #22c55e;
	--border: rgba(11, 21, 51, 0.09);
	--radius: 0.9rem;
	--radius-lg: 1.4rem;
	--radius-xl: 2.2rem;
	--shadow-sm: 0 1px 2px rgba(11, 21, 51, 0.05), 0 1px 3px rgba(37, 99, 235, 0.04);
	--shadow-md: 0 4px 16px rgba(11, 21, 51, 0.06), 0 2px 6px rgba(37, 99, 235, 0.05);
	--shadow-lg: 0 18px 48px rgba(11, 21, 51, 0.1), 0 6px 16px rgba(37, 99, 235, 0.07);
	--font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-head: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   2. BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	letter-spacing: -0.03em;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 0.6em;
}

p { color: var(--ink-soft); margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* Section headers */
.eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: var(--blue);
	margin-bottom: 16px;
}

.section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.gradient-text {
	background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ─────────────────────────────────────────────────────────────
   3. BUTTONS / BADGES / CARDS
   ───────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 14px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 15px;
	border: 0;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: linear-gradient(135deg, #2563eb, #1e40af);
	color: #fff;
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { color: #fff; }

.btn-white {
	background: #fff;
	color: var(--ink);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}
.btn-white:hover { color: var(--ink); }

.btn-whatsapp { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(34, 197, 94, 0.32); }
.btn-whatsapp:hover { color: #fff; }

.btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover { color: #fff; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--ink-soft);
}

.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 28px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.22); }

/* ─────────────────────────────────────────────────────────────
   4. HEADER
   ───────────────────────────────────────────────────────────── */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 90;
	background: rgba(244, 247, 252, 0.86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 24px;
	max-width: 1280px;
	margin: 0 auto;
}

.header-logo img { height: 52px; width: auto; display: block; }

.header-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .header-nav { display: flex; } }

.header-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.header-nav a {
	display: block;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-soft);
	transition: color 0.15s, background 0.15s;
}
.header-nav a:hover, .header-nav .current-menu-item > a { color: var(--ink); background: rgba(37, 99, 235, 0.07); }

/* Dropdown submenus */
.header-nav li { position: relative; }
.header-nav li ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	padding: 10px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 95;
}
.header-nav li:hover > ul, .header-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(4px); }
.header-nav li ul a { padding: 10px 14px; font-size: 14px; border-radius: 10px; }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; padding: 12px 24px; font-size: 14px; } }

/* Mobile toggle + panel */
.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	display: none;
	position: fixed;
	inset: 88px 0 0;
	background: var(--bg);
	z-index: 89;
	overflow-y: auto;
	padding: 24px;
}
body.nav-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.mobile-nav li ul { padding: 0 0 12px 16px; }
.mobile-nav li ul a { font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 10px 4px; }

.page-offset { padding-top: 96px; }

/* ─────────────────────────────────────────────────────────────
   5. HERO
   ───────────────────────────────────────────────────────────── */
.hero {
	position: relative;
	padding: 64px 0 80px;
	background:
		radial-gradient(ellipse 70% 60% at 15% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 100% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
		#ffffff;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(11, 21, 51, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(11, 21, 51, 0.04) 1px, transparent 1px);
	background-size: 54px 54px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, black 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, black 20%, transparent 75%);
	pointer-events: none;
}

.hero .container { position: relative; }

.hero-title {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1.03;
	margin-bottom: 22px;
}

.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 640px; }

.hero-center { text-align: center; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }

/* ─────────────────────────────────────────────────────────────
   6. NAVY BAND + CLOSING CTA (chat style)
   ───────────────────────────────────────────────────────────── */
.navy-band {
	background: linear-gradient(150deg, #0a1631 0%, #0f2350 55%, #0b1c3f 100%);
	color: rgba(255, 255, 255, 0.82);
}
.navy-band h1, .navy-band h2, .navy-band h3, .navy-band h4 { color: #fff; }
.navy-band p { color: rgba(255, 255, 255, 0.66); }

.cta-band {
	position: relative;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: linear-gradient(150deg, #0a1631 0%, #0f2350 55%, #0b1c3f 100%);
	box-shadow: 0 40px 100px rgba(11, 24, 54, 0.4);
	color: rgba(255, 255, 255, 0.82);
}
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; }
.cta-band p { color: rgba(255, 255, 255, 0.66); }

.cta-marquee {
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 12px 0;
}
.cta-marquee-track {
	display: flex;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: rgba(255, 255, 255, 0.35);
	animation: marquee 30s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.cta-grid { display: grid; gap: 40px; padding: 48px 28px; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1.08fr 0.92fr; padding: 56px; align-items: center; } }

.cta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-chips span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.7);
}

/* Chat preview */
.chat-card {
	border-radius: 22px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
}
.chat-avatar {
	position: relative;
	width: 40px; height: 40px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #2563eb, #1e40af);
	color: #fff; font-weight: 900; font-family: var(--font-head);
}
.chat-avatar::after {
	content: "";
	position: absolute;
	bottom: -1px; right: -1px;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--green);
	border: 2px solid #0f2350;
}
.chat-body { padding: 20px; display: grid; gap: 12px; }
.chat-bubble {
	max-width: 85%;
	padding: 10px 16px;
	font-size: 13.5px;
	line-height: 1.45;
	border-radius: 16px;
}
.chat-bubble.in { justify-self: start; background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); border-bottom-left-radius: 6px; }
.chat-bubble.out { justify-self: end; background: linear-gradient(135deg, #3b82f6, #1e40af); color: #fff; border-bottom-right-radius: 6px; }
.chat-replies { padding: 0 20px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-replies .pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px; font-weight: 700;
	transition: transform 0.15s;
}
.chat-replies .pill:hover { transform: scale(1.05); }
.chat-replies .pill.primary { background: linear-gradient(135deg, #3b82f6, #1e40af); color: #fff; box-shadow: 0 8px 22px rgba(59, 130, 246, 0.27); }
.chat-replies .pill.wa { background: rgba(34, 197, 94, 0.14); color: #6ee7a0; border: 1px solid rgba(34, 197, 94, 0.35); }
.chat-note { padding: 0 20px 20px; font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 0; }

/* ─────────────────────────────────────────────────────────────
   7. GRIDS & CONTENT BLOCKS
   ───────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.stat-num { font-family: var(--font-head); font-weight: 900; font-size: 2rem; color: var(--ink); line-height: 1; }
.stat-label { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* Check list */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: #334066; font-size: 15px; }
.checklist li::before {
	content: "✓";
	flex-shrink: 0;
	width: 20px; height: 20px;
	border-radius: 6px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(34, 197, 94, 0.12);
	color: var(--green);
	font-size: 12px; font-weight: 800;
	margin-top: 2px;
}

/* Package cards */
.package-card { position: relative; display: flex; flex-direction: column; }
.package-card .starting-at {
	display: block;
	font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.18em;
	color: #9aa4c2;
	margin-bottom: 2px;
}
.package-card .price { font-family: var(--font-head); font-weight: 900; font-size: 1.75rem; color: var(--ink); }
.package-card .period { color: var(--ink-faint); font-size: 14px; }
.package-card .popular-tag {
	position: absolute; top: -12px; left: 24px;
	padding: 5px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb, #1e40af);
	color: #fff; font-size: 11px; font-weight: 800;
	text-transform: uppercase; letter-spacing: 0.1em;
}

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q {
	width: 100%;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 24px;
	background: none; border: 0; cursor: pointer;
	font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink);
	text-align: left;
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--blue); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; }
.faq-item.open .faq-a { display: block; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(34,197,94,0.08)); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.post-card .cat-pill { font-size: 11px; font-weight: 700; color: var(--blue); background: rgba(37,99,235,0.09); padding: 4px 10px; border-radius: 999px; }
.post-card h3 { font-size: 1.1rem; line-height: 1.35; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue); }

/* Single post content */
.entry-content { font-size: 17px; line-height: 1.75; color: #37415f; }
.entry-content h2 { font-size: 1.7rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote {
	margin: 2em 0;
	padding: 20px 28px;
	border-left: 4px solid var(--blue);
	background: rgba(37, 99, 235, 0.05);
	border-radius: 0 14px 14px 0;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--ink);
}

/* Forms */
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 14px; font-weight: 500; color: #5a6486; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: #f7f9fd;
	font-size: 14px;
	font-family: var(--font-body);
	color: var(--ink);
	outline: none;
	transition: border-color 0.15s, background 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); background: #fff; }

/* ─────────────────────────────────────────────────────────────
   8. FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #0b1836 0%, #0f2350 100%);
	color: rgba(255, 255, 255, 0.55);
}
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 65% 55% at 50% 108%, rgba(37, 99, 235, 0.18) 0%, transparent 62%);
	pointer-events: none;
}
.site-footer .container { position: relative; }
.footer-top {
	display: flex; flex-direction: column; gap: 32px;
	padding: 64px 0 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.footer-top h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.08; }
.footer-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 24px; }
.footer-logo img { height: 36px; width: auto; }
.footer-cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 32px;
	padding: 48px 0 56px;
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h4 {
	color: rgba(255, 255, 255, 0.4);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	margin-bottom: 20px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-cols a { color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.footer-cols a:hover { color: #fff; }
.footer-wordmark {
	font-family: var(--font-head);
	font-weight: 900;
	text-align: center;
	white-space: nowrap;
	line-height: 0.9;
	font-size: clamp(1.35rem, 6.7vw, 5.1rem);
	letter-spacing: -0.02em;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(59, 130, 246, 0.09) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	padding-bottom: 16px;
	user-select: none;
}
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 24px 0;
	display: flex; flex-direction: column; gap: 12px;
	align-items: center; justify-content: space-between;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { color: rgba(255, 255, 255, 0.35); }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.7); }

/* ─────────────────────────────────────────────────────────────
   9. SCROLL REVEAL (JS adds .is-visible)
   ───────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.cta-marquee-track { animation: none; }
}

/* WordPress core alignment classes */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
}
