/*
Theme Name: Centel Systems
Theme URI: https://www.centelsystems.com
Author: Centel Systems and Solutions
Author URI: https://www.centelsystems.com
Description: A fast, accessible WordPress theme for ICT and technology companies. Built for Centel Systems and Solutions and paired with the ISPKit Core plugin for services, internet packages, a coverage checker, a customer self-care portal and M-Pesa payments.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ispkit-theme
Tags: business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Sampled from the Centel logo: deep navy + signal blue. */
	--brand: #0a63ef;
	--brand-dark: #0a1b4d;
	--brand-soft: #e6efff;
	--accent: #1f8fff;
	--navy: #0a1b4d;

	--ink: #0c1830;
	--ink-2: #33456b;
	--muted: #64748b;
	--line: #e2e8f2;
	--surface: #ffffff;
	--surface-2: #f5f8fd;
	--surface-3: #eaf0fa;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(14, 21, 33, .06);
	--shadow: 0 1px 2px rgba(14, 21, 33, .06), 0 10px 30px rgba(14, 21, 33, .07);
	--shadow-lg: 0 24px 60px rgba(14, 21, 33, .12);

	--wrap: 1140px;
	--gutter: 20px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: 0 0 .6em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
	color: var(--brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover { color: var(--brand-dark); }

img {
	max-width: 100%;
	height: auto;
	display: block;
}

:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 2px;
	border-radius: 4px;
}

.container {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: .7rem 1.1rem;
	background: var(--brand);
	color: #fff;
	border-radius: 8px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .78rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

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

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--surface-2); color: var(--brand-dark); }

.btn--large { padding: .95rem 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.topbar {
	background: var(--navy);
	color: #fff;
	font-size: .86rem;
	text-align: center;
	padding: .55rem 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: -.02em;
	color: var(--ink);
	text-decoration: none;
}

.brand__mark {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--brand), var(--accent));
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35);
}

.custom-logo { max-height: 48px; width: auto; }

.brand--image { display: inline-flex; }
.brand--image img { height: 44px; width: auto; }
.brand--dark img { filter: brightness(0) invert(1); }

@media (max-width: 480px) {
	.brand--image img { height: 34px; }
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	cursor: pointer;
	position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 2px;
	background: var(--ink);
	transform: translateX(-50%);
	transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.primary-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list a {
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	padding: .4rem 0;
	border-bottom: 2px solid transparent;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	color: var(--brand);
	border-bottom-color: var(--brand);
}

.primary-nav__list .sub-menu {
	display: none;
	position: absolute;
	min-width: 200px;
	margin-top: .5rem;
	padding: .5rem;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu {
	display: block;
}

.primary-nav__list .sub-menu a {
	display: block;
	padding: .45rem .6rem;
	border: 0;
}

.primary-nav__actions {
	display: flex;
	align-items: center;
	gap: .9rem;
}

.header-phone {
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	font-size: .95rem;
	white-space: nowrap;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
	position: relative;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
	background:
		radial-gradient(1000px 500px at 85% -10%, var(--brand-soft), transparent 60%),
		linear-gradient(180deg, var(--surface), var(--surface-2));
	overflow: hidden;
}

.hero__inner {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
}

.hero__eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .3rem .8rem;
	background: var(--brand-soft);
	color: var(--brand-dark);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.hero__title { margin-bottom: .5em; }

.hero__subtitle {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: var(--ink-2);
	max-width: 52ch;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.75rem;
}

.hero__checker { max-width: 560px; }

.hero__media { position: relative; }

.hero__image {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.hero__placeholder {
	position: relative;
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	border-radius: var(--radius-lg);
	background: linear-gradient(140deg, var(--navy), var(--brand));
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.hero__logo {
	position: relative;
	z-index: 2;
	width: min(58%, 320px);
	filter: brightness(0) invert(1);
	opacity: .95;
}

.speed-dial {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	border: 3px solid rgba(255, 255, 255, .5);
	color: #fff;
	backdrop-filter: blur(4px);
}

.speed-dial__value { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.speed-dial__unit { font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; }

.hero__blob {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
}

.hero__blob--1 { width: 240px; height: 240px; top: -60px; left: -70px; }
.hero__blob--2 { width: 320px; height: 320px; bottom: -120px; right: -90px; }

/* ==========================================================================
   6. Trust strip
   ========================================================================== */

.trust {
	border-block: 1px solid var(--line);
	background: var(--surface);
}

.trust__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	padding-block: 1.75rem;
	text-align: center;
}

.trust__value {
	display: block;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: -.02em;
}

.trust__label {
	display: block;
	font-size: .85rem;
	color: var(--muted);
}

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--plans { background: var(--surface-2); }
.section--services { background: var(--surface); }
.section--sectors { background: var(--surface-2); }
.section--why { background: var(--surface); }
.section--connect { background: var(--surface-2); }
.section--steps { background: var(--surface-2); }

.connect-checker {
	max-width: 640px;
	margin: 0 auto 2.25rem;
}

.sectors {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sector {
	padding: .6rem 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	color: var(--ink-2);
}

.service-badge {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: .9rem;
	border-radius: 13px;
	background: var(--brand);
	color: #fff;
}

.service-badge svg { width: 24px; height: 24px; }

.plan-spec__call {
	margin: .9rem 0 0;
	font-size: .92rem;
	color: var(--muted);
	text-align: center;
}

.section__head {
	max-width: 640px;
	margin: 0 auto 2.25rem;
	text-align: center;
}

.section__title { margin-bottom: .4em; }

.section__lede {
	color: var(--muted);
	font-size: 1.05rem;
	margin: 0;
}

.section__foot {
	margin-top: 2rem;
	text-align: center;
}

.page-head {
	padding-block: clamp(2.25rem, 5vw, 3.5rem);
	background: linear-gradient(180deg, var(--brand-soft), var(--surface));
	border-bottom: 1px solid var(--line);
}

.page-head__title { margin-bottom: .3em; }

.page-head__eyebrow {
	margin: 0 0 .4rem;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand-dark);
}

.page-head__lede {
	margin: 0;
	color: var(--ink-2);
	font-size: 1.08rem;
	max-width: 60ch;
}

.page-head__price strong { font-size: 1.8rem; }
.page-head__price span { color: var(--muted); }

.page-thumb {
	margin-top: -1.5rem;
	margin-bottom: 1.5rem;
}

.page-thumb img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   8. Features / steps / cards
   ========================================================================== */

.features {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.feature {
	padding: 1.6rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.feature__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: .9rem;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand-dark);
}

.feature__icon svg { width: 22px; height: 22px; }

.feature__title { margin-bottom: .35em; font-size: 1.08rem; }

.feature__text { margin: 0; color: var(--muted); font-size: .96rem; }

.steps {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

.step {
	padding: 1.6rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.step__num {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: .75rem;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
}

.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

.card-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.card__body { padding: 1.25rem; }

.card__title { font-size: 1.1rem; margin-bottom: .3em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }

.card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; }

.entry-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }

/* ==========================================================================
   9. CTA band
   ========================================================================== */

.cta-band {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	background: linear-gradient(120deg, var(--brand), var(--brand-dark));
	color: #fff;
}

.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; opacity: .9; }

/* ==========================================================================
   10. Entry content
   ========================================================================== */

.entry__content { max-width: 100%; }
.entry--narrow .entry__content { max-width: 72ch; margin-inline: auto; }

.entry__content > * + * { margin-top: 1.1rem; }

.entry__content h2 { margin-top: 2rem; }
.entry__content h3 { margin-top: 1.5rem; }

.entry__content ul,
.entry__content ol { padding-left: 1.3rem; }

.entry__content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.4rem;
	border-left: 4px solid var(--brand);
	background: var(--surface-2);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.entry__content img,
.entry__content .wp-block-image img { border-radius: var(--radius); }

.entry__content table {
	width: 100%;
	border-collapse: collapse;
}

.entry__content th,
.entry__content td {
	padding: .6rem .5rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.alignwide { max-width: min(100%, 1240px); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.plan-single {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1.6fr 1fr;
	align-items: start;
}

.plan-spec {
	position: sticky;
	top: 96px;
	padding: 1.5rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.plan-spec h2 { font-size: 1.1rem; }

.plan-spec dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .4rem 1rem;
	margin: 0 0 1rem;
	font-size: .95rem;
}

.plan-spec dt { color: var(--muted); }
.plan-spec dd { margin: 0; font-weight: 600; text-align: right; }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line);
	font-weight: 600;
}

.page-links { margin-top: 1.5rem; font-weight: 600; }

/* ==========================================================================
   11. Search / 404
   ========================================================================== */

.search-form {
	display: flex;
	gap: .5rem;
	max-width: 460px;
}

.search-form__field {
	flex: 1;
	padding: .7rem .9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: inherit;
}

.error-404 { text-align: center; }

.error-404__code {
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 800;
	line-height: 1;
	margin: 0;
	color: var(--brand-soft);
}

.error-404__actions {
	display: flex;
	gap: .6rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.error-404 .search-form { margin-inline: auto; }

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
	padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
	background: var(--navy);
	color: #c3d0e6;
}

.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .brand,
.site-footer .brand__name { color: #fff; }

.site-footer__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.site-footer__tagline { margin-top: .9rem; color: #94a3b8; max-width: 40ch; }

.site-footer__contact,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .45rem;
	font-size: .94rem;
}

.footer-widget__title {
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #94a3b8;
	margin-bottom: .8rem;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .88rem;
	color: #94a3b8;
}

.site-footer__bottom p { margin: 0; }

.legal-menu {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__hours {
	margin-top: .4rem;
	color: #8fa0bd;
	font-size: .85rem;
}

.site-footer__note {
	margin: 1rem 0 0;
	font-size: .8rem;
	color: #7c8ba1;
}

.float-cta {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.2rem;
	border-radius: 999px;
	background: #25d366;
	color: #04331a;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--shadow);
}

.float-cta:hover { color: #04331a; transform: translateY(-2px); }

/* ==========================================================================
   13. Responsive
   ========================================================================== */

@media (max-width: 980px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { order: -1; max-width: 460px; }
	.plan-single { grid-template-columns: 1fr; }
	.plan-spec { position: static; }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1.25rem var(--gutter) 1.75rem;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.primary-nav.is-open { display: flex; }

	.primary-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
	.primary-nav__list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
	.primary-nav__list .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 1rem; }
	.primary-nav__actions { flex-direction: column; align-items: stretch; gap: .6rem; }
	.primary-nav__actions .btn { width: 100%; }
	.header-phone { text-align: center; }
}

@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   14. Dark mode
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #e8eef8;
		--ink-2: #b6c3d8;
		--muted: #90a0b8;
		--line: #223049;
		--surface: #0c1424;
		--surface-2: #111b2e;
		--surface-3: #17233a;
		--brand-soft: #14264a;
		--navy: #060f2b;
	}

	:root:not([data-theme="light"]) .site-header { background: rgba(12, 20, 36, .9); }
	:root:not([data-theme="light"]) .sector { background: var(--surface-3); }
	:root:not([data-theme="light"]) .btn--ghost { background: var(--surface-2); }
	:root:not([data-theme="light"]) .card__title a { color: var(--ink); }
}

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