/*
Theme Name: Kagumi Child
Theme URI: https://nairobionline.co.ke/
Template: kagumi
Author: Mashariki
Author URI: https://nairobionline.co.ke/
Description: Child theme for Kagumi. Re-skins the parent's Bootstrap/Underscores
  markup with the navy / blue / gold service-business design system used across
  the Nairobi Online site (Plus Jakarta Sans headings, DM Sans body, pill
  buttons, card-style content blocks). Loads after the parent stylesheet so
  every rule below wins the cascade on equal-specificity selectors.
Version: 1.0.0
Requires PHP: 7.4
Requires CP: 1.7
Text Domain: kagumi-child

NOTE: confirm the parent theme's folder name matches "Template: kagumi" above
— it must equal the directory name of the installed Kagumi theme, not the
"Theme Name" string.
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Kagumi sets its Bootstrap variables on the universal selector ( * { ... } ),
   so every element gets its own copy rather than inheriting from :root. To
   override them reliably we redeclare on the same selector — equal
   specificity, later source (this file loads after style.css) wins.
   ========================================================================== */
* {
	/* brand palette */
	--navy:      #1e3a5f;
	--navy-dk:   #132847;
	--blue:      #2563eb;
	--blue-dk:   #1e40af;
	--red:       #e53e3e;
	--red-dk:    #c53030;
	--gold:      #f59e0b;
	--bg:        #f1f5f9;
	--white:     #ffffff;
	--text:      #0f172a;
	--muted:     #475569;
	--border:    #cbd5e1;
	--radius:    10px;
	--radius-lg: 16px;
	--shadow:    0 1px 8px rgba(13,30,48,.09);
	--shadow-md: 0 4px 20px rgba(13,30,48,.14);
	--tr:        .18s ease;
	--font-head: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;

	/* remap Kagumi/Bootstrap variables onto the tokens above */
	--bs-gutter-x: 2rem !important;
	--bs-body-line-height: 1.75;
	--bs-navbar-nav-link-padding-x: .85rem;
	--bs-nav-link-padding-y: .35rem;
	--bs-border-radius: var(--radius);
	--bs-border-radius-sm: 6px;
	--bs-border-radius-lg: var(--radius-lg);
	--bs-border-radius-xl: var(--radius-lg);
	--bs-border-radius-xxl: var(--radius-lg);
	--bs-body-font-family: var(--font-body);
	--bs-body-bg: var(--bg);
	--bs-border-color: var(--border);
	--bs-dropdown-link-hover-bg: rgba(37,99,235,.07);
	--bs-code-color: var(--red);
	--bs-heading-color: var(--navy);
	--alt-bg-color: var(--white);
}

/* ==========================================================================
   2. TYPEFACES
   Self-hosted, replacing the parent's Libre Caslon files. Drop the matching
   .woff2 files into this child theme's /fonts/ folder — filenames below
   follow the google-webfonts-helper naming convention. The system-font
   fallback in --font-head / --font-body above keeps headings and body text
   legible even before the files are added.
   ========================================================================== */
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/plus-jakarta-sans-v8-latin-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/plus-jakarta-sans-v8-latin-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('fonts/plus-jakarta-sans-v8-latin-800.woff2') format('woff2');
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('fonts/plus-jakarta-sans-v8-latin-900.woff2') format('woff2');
}
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/dm-sans-v15-latin-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/dm-sans-v15-latin-500.woff2') format('woff2');
}
@font-face {
	font-family: 'DM Sans';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/dm-sans-v15-latin-italic.woff2') format('woff2');
}

/* ==========================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */
body {
	font-family: var(--font-body);
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
	text-underline-offset: .1875em;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2:not(.accordion-header), h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.nav-links,
table.wp-calendar-table caption {
	font-family: var(--font-head);
	font-weight: 800;
	color: var(--navy);
	opacity: 1;
	line-height: 1.2;
}

h2.accordion-header {
	font-weight: 500;
	color: var(--navy);
}

h1, .h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2, .h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
h4, .h4 { font-size: 1rem; font-weight: 700; }

a {
	color: var(--blue);
	text-decoration: none;
	transition: color var(--tr);
}
a:hover {
	color: var(--blue-dk);
	text-decoration: underline;
}

a.skip-link:focus {
	position: absolute;
	top: .75rem;
	left: .75rem;
	padding: .25rem .75rem;
	background: var(--navy);
	color: var(--white);
	border-radius: var(--radius);
	z-index: 9999;
}

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

iframe {
	max-width: 100%;
	border-radius: var(--radius);
}

/* ==========================================================================
   4. FORMS & INPUTS
   ========================================================================== */
input {
	max-width: 100%;
}

textarea {
	width: 100%;
}

input,
textarea,
pre {
	border: 1px solid var(--border);
	background-color: var(--white);
	border-radius: var(--radius);
	font-family: var(--font-body);
	color: var(--text);
}

input:focus,
textarea:focus {
	border-color: var(--blue);
	outline: 0;
	box-shadow: 0 0 0 .2rem rgba(37,99,235,.18);
}

input.submit,
input[type="submit"],
.btn-submit {
	border: none;
	background-color: var(--blue);
	color: var(--white);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .88rem;
	border-radius: 50px;
	padding: .65rem 1.5rem;
	cursor: pointer;
	transition: background var(--tr);
}
input.submit:hover,
input[type="submit"]:hover,
.btn-submit:hover {
	background-color: var(--blue-dk);
}

.form-control,
.form-select {
	background-color: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
}
.form-control:focus,
.form-select:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 .2rem rgba(37,99,235,.18);
}

label:not(.comment-form-cookies-consent label, .post-password-form label) {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: .3rem;
}

.comment-form-cookies-consent label {
	display: initial;
}

/* ==========================================================================
   5. BUTTON UTILITIES — for use in template files, widgets and CTAs
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .6rem 1.35rem;
	border-radius: 50px;
	font-family: var(--font-head);
	font-size: .86rem;
	font-weight: 700;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background var(--tr), color var(--tr), box-shadow var(--tr);
}
.btn svg { flex-shrink: 0; }
.btn-blue        { background: var(--blue);  color: var(--white); box-shadow: 0 2px 10px rgba(37,99,235,.22); }
.btn-blue:hover  { background: var(--blue-dk); color: var(--white); }
.btn-navy        { background: var(--navy);  color: var(--white); }
.btn-navy:hover  { background: var(--navy-dk); color: var(--white); }
.btn-gold        { background: var(--gold);  color: var(--navy); font-weight: 800; }
.btn-gold:hover  { background: #d97706; }
.btn-white       { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #e8f0f8; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline-navy:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }

/* ==========================================================================
   6. BLOCKQUOTE & CODE
   ========================================================================== */
blockquote {
	padding: 1rem 1.25rem;
	background-color: var(--white);
	border-left: 4px solid var(--blue);
	border-radius: 0 var(--radius) var(--radius) 0;
	box-shadow: var(--shadow);
	font-size: 1.1rem;
	font-style: italic;
	color: var(--muted);
	line-height: 1.7;
}

code {
	font-size: .9em;
	color: var(--red);
	background: var(--bg);
	padding: .1rem .4rem;
	border-radius: 4px;
}

pre {
	padding: 1rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   7. TABLES & WP CALENDAR
   ========================================================================== */
table.wp-calendar-table {
	caption-side: top;
}

table.wp-calendar-table caption {
	font-size: calc(1.275rem + .3vw);
	color: var(--navy);
	padding-top: 0;
	padding-bottom: .5rem;
	line-height: 1.25;
}

table.wp-calendar-table th,
table.wp-calendar-table td {
	text-align: center;
	padding: .5rem .25rem;
}

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 1.25rem;
	background-color: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

th, td {
	border: 1px solid var(--border);
	padding: .65rem .75rem;
}

th {
	background-color: var(--bg);
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--navy);
	text-align: left;
}

.wp-calendar-nav-next { float: right; }
.wp-calendar-nav-next a,
.wp-calendar-nav-prev a {
	color: var(--blue);
	font-weight: 700;
}

/* ==========================================================================
   8. IMAGES, GALLERY & CAPTIONS
   ========================================================================== */
figure, img {
	max-width: 100%;
	height: auto;
}

.entry-content img {
	padding-top: .5rem;
	padding-bottom: .5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.gallery {
	margin-bottom: 1.75em;
	display: grid;
	grid-gap: 1.25em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-item img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: box-shadow var(--tr);
}
.gallery-item img:hover {
	box-shadow: var(--shadow-md);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-caption {
	display: block;
	font-size: .8rem;
	color: var(--muted);
	margin-top: .4rem;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.25rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: .5rem;
	box-shadow: var(--shadow);
}

.wp-caption-text {
	margin-bottom: 0;
	margin-top: .4rem;
	font-size: .85em;
	line-height: 1.5;
	color: var(--muted);
	opacity: 1;
}

.alignleft {
	/*rtl:ignore*/
	float: left;
	/*rtl:ignore*/
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	/*rtl:ignore*/
	float: right;
	/*rtl:ignore*/
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1rem;
}

/* ==========================================================================
   9. WIDGETS & LISTS
   ========================================================================== */
ul {
	padding-left: 1.1rem;
}

.widget {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.25rem 1.4rem;
	margin-bottom: 1.5rem;
}

.widget ul {
	margin-bottom: 0;
}

.widget-title,
.widget h2 {
	font-family: var(--font-head);
	font-size: .92rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--navy);
	border-bottom: 2px solid var(--gold);
	padding-bottom: .55rem;
	margin-bottom: .9rem;
}

.textwidget p:last-child {
	margin-bottom: 0;
}

.error-404-widgets {
	column-width: 232px;
	gap: 1.5rem;
	margin-top: 2rem;
}

.error-404.not-found .widget {
	margin-bottom: 1.5rem;
	break-inside: avoid;
}

/* ==========================================================================
   10. POST NAVIGATION & PAGINATION
   ========================================================================== */
.nav-links {
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.375;
	color: var(--navy);
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1.1rem;
	border-radius: 50px;
	background: var(--white);
	border: 1.5px solid var(--border);
	color: var(--navy);
	transition: all var(--tr);
}
.nav-links a:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
	text-decoration: none;
}

.nav-previous,
.nav-next {
	margin-top: .5rem;
	margin-bottom: .5rem;
}

.comment-navigation {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.page-links {
	margin-bottom: .75rem;
}

.post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	padding: .45rem .65rem;
	border-radius: 7px;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--navy);
	font-weight: 700;
	transition: all var(--tr);
}
.post-page-numbers:hover {
	border-color: var(--blue);
	color: var(--blue);
}
.post-page-numbers.current {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
}

/* ==========================================================================
   11. COMMENTS
   ========================================================================== */
.entry-footer span:not(:last-of-type) {
	margin-right: .75rem;
}

.avatar {
	margin-right: .5rem;
	border-radius: 50%;
	border: 2px solid var(--border);
}

.comment-list {
	list-style: none;
	padding-left: 0;
}

.comment-body {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.1rem 1.25rem;
	margin-bottom: 1rem;
}

.comment-author .fn {
	font-family: var(--font-head);
	font-weight: 700;
	font-style: normal;
	color: var(--navy);
}

.comment-metadata a {
	font-size: .78rem;
	color: var(--muted);
}

.reply {
	margin-bottom: 1rem;
}
.reply a,
.comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .35rem .9rem;
	border-radius: 50px;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--blue);
	font-weight: 700;
	font-size: .8rem;
	transition: all var(--tr);
}
.reply a:hover,
.comment-reply-link:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
	text-decoration: none;
}

#cancel-comment-reply-link {
	margin-left: .5rem;
	color: var(--red);
	font-size: .8rem;
}

/* ==========================================================================
   12. SITE HEADER / PRIMARY NAVIGATION
   Standard Underscores hooks (.site-header, .main-navigation, .menu-toggle)
   restyled to match the sticky navy nav from the reference page.
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--navy);
	border-bottom: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 0;
}

.site-title,
.site-title a {
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--white);
}

.site-description {
	font-size: .78rem;
	color: rgba(255,255,255,.6);
}

.main-navigation ul {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 0;
	padding-left: 0;
	margin-bottom: 0;color:#fffff9	;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: .5rem .85rem;
	font-family: var(--font-body);
	font-size: .87rem;
	font-weight: 500;
	color: rgba(255,255,255,.68);
	border-radius: 7px;
	transition: color var(--tr), background var(--tr);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--white);
	background: rgba(255,255,255,.08);
	text-decoration: none;
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	min-width: 190px;
	flex-direction: column;
	background: var(--navy-dk);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(0,0,0,.3);
	padding: .3rem 0;
	z-index: 200;
}
.main-navigation li:hover > ul {
	display: flex;
}
.main-navigation ul ul a {
	padding: .55rem 1rem;
	border-radius: 0;
}

#navbar-search {
	max-width: calc(100vw - 88px);
	background: rgba(255,255,255,.09);
	border: 1px solid rgba(255,255,255,.17);
	color: var(--white);
	border-radius: 50px;
}
#navbar-search::placeholder {
	color: rgba(255,255,255,.35);
}
navbar-toggler{
color:#fffff9;

}
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}
.menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--white);
	border-radius: 2px;
}

@media (max-width: 860px) {
	.main-navigation ul:not(.mobile-open) {
		display: none;
	}
	.main-navigation ul.mobile-open {
		flex-direction: column;
		align-items: flex-start;
		background: var(--navy-dk);
		padding: .6rem 0 .9rem;
	}
	.main-navigation ul.mobile-open ul {
		position: static;
		box-shadow: none;
	}
	.menu-toggle {
		display: flex;
	}
}

/* ==========================================================================
   13. SITE FOOTER
   ========================================================================== */
.site-footer {
	background: var(--navy);
	color: var(--white);
	padding: 3rem 0 1.25rem;
}

.site-footer .widget {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.site-footer .widget-title,
.site-footer .widget h2 {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.4);
	border-bottom: none;
	padding-bottom: 0;
}

.site-footer a {
	color: #93c5fd;
}
.site-footer a:hover {
	color: var(--white);
}

.site-info {
	border-top: 1px solid rgba(255,255,255,.08);
	padding-top: 1.2rem;
	margin-top: 1.5rem;
	font-size: .76rem;
	color: rgba(255,255,255,.4);
	text-align: center;
}

/* ==========================================================================
   14. FLOATING CALL / WHATSAPP BUTTONS
   Optional component for use in a template part — matches the float-btns
   pattern used on the reference landing page.
   ========================================================================== */
.float-btns {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	z-index: 9999;
}
.float-btn {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
	transition: transform .2s, box-shadow .2s;
	cursor: pointer;
	border: none;
}
.float-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 22px rgba(0,0,0,.3);
}
.float-call { background: var(--blue); color: var(--white); }
.float-wa   { background: #25D366; color: var(--white); }

@media (max-width: 600px) {
	.float-btns { bottom: 1rem; right: 1rem; }
}