/*
Theme Name: Kazi IT Solutions
Theme URI: https://kaziitsolutions.com
Author: Kazi IT Solutions
Author URI: https://kaziitsolutions.com
Description: Custom, lightweight business theme for Kazi IT Solutions — web development, digital marketing, and software / automation / AI services. One-page front page with editable content via Appearance → Customize.
Version: 1.1.0
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: kazi-it
*/

:root {
	--navy: #0b1530;
	--navy-2: #111d3f;
	--ink: #0f172a;
	--body: #475569;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #ffffff;
	--bg-soft: #f5f7fb;
	--primary: #2f5bff;
	--primary-dark: #1f44d6;
	--accent: #13c7b0;
	--grad: linear-gradient(120deg, #2f5bff 0%, #13c7b0 100%);
	--radius: 16px;
	--shadow: 0 10px 30px rgba(15, 23, 42, .08);
	--shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
	--container: 1180px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: 14px 26px; border-radius: 999px;
	font-weight: 700; font-size: 1rem; line-height: 1;
	border: 2px solid transparent; cursor: pointer; white-space: nowrap;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(47, 91, 255, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(47, 91, 255, .4); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Header */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	transition: background .3s, box-shadow .3s, padding .3s;
	padding: 18px 0;
}
.site-header.is-solid, body:not(.home) .site-header {
	background: rgba(11, 21, 48, .96);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 20px rgba(0,0,0,.15);
	padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.site-brand:hover { color: #fff; }
.site-brand .brand-mark {
	width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
	display: grid; place-items: center; color: #fff; font-size: 1.1rem; font-weight: 800;
}
.site-brand .brand-sub { color: var(--accent); }
.custom-logo { max-height: 46px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; display: block; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-cta a { background: var(--grad); color: #fff; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--grad); opacity: .92; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(1000px 600px at 85% 10%, rgba(19,199,176,.22), transparent 60%),
	            radial-gradient(900px 600px at 10% 90%, rgba(47,91,255,.28), transparent 60%),
	            var(--navy);
	color: rgba(255,255,255,.8);
	padding: 170px 0 110px;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent); margin-bottom: 18px;
}
.hero .eyebrow { background: rgba(19,199,176,.12); border: 1px solid rgba(19,199,176,.3); padding: 7px 14px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(19,199,176,.2); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; font-size: .92rem; color: rgba(255,255,255,.65); }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags svg { color: var(--accent); flex: none; }

.hero-visual { position: relative; }
.hv-card {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
	border-radius: 20px; padding: 22px; backdrop-filter: blur(8px);
	box-shadow: var(--shadow-lg);
}
.hv-window .hv-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.hv-window .hv-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hv-window .hv-dots i:first-child { background: #ff6b6b; }
.hv-window .hv-dots i:nth-child(2) { background: #ffd166; }
.hv-window .hv-dots i:nth-child(3) { background: #06d6a0; }
.hv-line { height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); margin-bottom: 10px; }
.hv-line.w70 { width: 70%; } .hv-line.w45 { width: 45%; } .hv-line.w85 { width: 85%; }
.hv-line.grad { background: var(--grad); width: 55%; height: 14px; }
.hv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hv-grid div { height: 64px; border-radius: 10px; background: rgba(255,255,255,.08); }
.hv-grid div:nth-child(2) { background: rgba(19,199,176,.25); }
.hv-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 18px; }
.hv-chart b { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, rgba(47,91,255,.5), rgba(19,199,176,.9)); }
.hv-float {
	position: absolute; display: flex; align-items: center; gap: 12px;
	background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px;
	box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 700; line-height: 1.3;
	animation: float 5s ease-in-out infinite;
}
.hv-float small { display: block; font-weight: 500; color: var(--muted); }
.hv-float .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: none; }
.hv-float.f1 { left: -34px; bottom: 36px; }
.hv-float.f2 { right: -20px; top: -22px; animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 34px 30px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.icon-box {
	width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(47,91,255,.1), rgba(19,199,176,.14)); color: var(--primary); margin-bottom: 22px;
}
.service-card ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); }
.service-card li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .95rem; color: var(--ink); }
.service-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(19,199,176,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313c7b0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat; }

/* About / Why */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.why-item { display: flex; gap: 14px; }
.why-item .icon-box { width: 46px; height: 46px; margin: 0; flex: none; border-radius: 12px; }
.why-item h4 { font-size: 1.02rem; margin-bottom: .25em; }
.why-item p { font-size: .93rem; margin: 0; color: var(--muted); }
.about-visual { position: relative; border-radius: 24px; background: var(--navy); padding: 40px; color: rgba(255,255,255,.8); overflow: hidden; }
.about-visual::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(19,199,176,.35), transparent 70%); }
.about-visual h3 { color: #fff; font-size: 1.5rem; position: relative; }
.about-visual .quote { font-size: 1.1rem; position: relative; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; position: relative; }
.pillars div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; }
.pillars strong { display: block; color: #fff; font-size: 1rem; }
.pillars span { font-size: .85rem; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.step::before {
	counter-increment: step; content: "0" counter(step);
	display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
	background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step p { font-size: .95rem; margin: 0; }

/* Tech strip */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 50px; }
.tech span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .9rem; }

/* CTA */
.cta-band {
	background: var(--grad); border-radius: 26px; padding: 60px; color: rgba(255,255,255,.9);
	display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.25), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { color: var(--primary-dark); box-shadow: 0 12px 26px rgba(0,0,0,.18); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact-info { background: var(--navy); color: rgba(255,255,255,.75); border-radius: 22px; padding: 40px; }
.contact-info h3 { color: #fff; font-size: 1.5rem; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; }
.ci-item .icon-box { background: rgba(255,255,255,.08); color: var(--accent); width: 48px; height: 48px; margin: 0; flex: none; }
.ci-item strong { display: block; color: #fff; }
.ci-item a { color: rgba(255,255,255,.8); }
.ci-item a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; margin-top: 32px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--grad); color: #fff; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
	padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,91,255,.1); }
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.form-notice.ok { background: #e7f9f5; color: #0b7a6b; }
.form-notice.err { background: #fdecec; color: #b42318; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 70px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45);
	transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }

/* Inner pages / blog */
.page-hero { background: var(--navy); color: rgba(255,255,255,.75); padding: 150px 0 70px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.page-hero .meta { margin-top: 12px; font-size: .92rem; }
.content-area { padding: 70px 0 90px; }
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 4px solid var(--primary); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--ink); font-style: italic; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--grad); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px; flex: 1; }
.post-card .date { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary); }
.pagination { margin-top: 50px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 15px; border-radius: 10px; border: 1px solid var(--line); margin: 0 3px; color: var(--ink); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hv-float { animation: none; }
	html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
	.hero .container, .split, .contact-wrap { grid-template-columns: 1fr; }
	.hero-visual { max-width: 520px; margin: 20px auto 0; width: 100%; }
	.services-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.process { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cta-band { flex-direction: column; text-align: center; padding: 48px 32px; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
		background: var(--navy); padding: 90px 24px 24px; transform: translateX(100%);
		transition: transform .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,.3); z-index: -1;
	}
	.nav-open .main-nav { transform: none; }
	.main-nav ul { flex-direction: column; align-items: stretch; }
	.main-nav a { padding: 12px 16px; font-size: 1.05rem; }
	.main-nav .nav-cta a { margin: 12px 0 0; text-align: center; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding: 70px 0; }
	.hero { padding: 130px 0 80px; }
	.services-grid, .post-grid, .process, .why-list, .form-row, .footer-grid, .pillars { grid-template-columns: 1fr; }
	.contact-info, .contact-form, .about-visual { padding: 28px; }
	.hv-float.f1 { left: -6px; }
	.hv-float.f2 { right: -6px; }
}
