/*
Theme Name: Blended Consulting
Theme URI: https://blendedconsulting.com/
Author: Kimi Swarm Development
Author URI: https://blendedconsulting.com/
Description: Professional WordPress theme for Blended Consulting Limited - integrated consulting and technical services firm.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blended-consulting
Requires at least: 6.7
Requires PHP: 8.0
Tags: consulting, business, corporate, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, customizer
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
	--color-primary: #0B1F3A;
	--color-secondary: #1E3A8A;
	--color-accent: #C9A227;
	--color-light: #F8FAFC;
	--color-dark: #1F2937;
	--color-muted: #4B5563;
	--color-white: #FFFFFF;
	--color-border: #D1D5DB;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Open Sans', sans-serif;

	--container-max: 1200px;
	--container-padding: 1.5rem;
	--header-height: 80px;

	--transition-base: 0.3s ease;
	--border-radius: 4px;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-dark);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

a {
	color: var(--color-secondary);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-primary);
	margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
	margin-bottom: 1rem;
}

ul, ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

blockquote {
	border-left: 4px solid var(--color-accent);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--color-muted);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.section {
	padding: 4rem 0;
}

.section-light {
	background-color: var(--color-light);
}

.section-dark {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
	color: var(--color-white);
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-left: calc(var(--container-padding) * -1);
	margin-right: calc(var(--container-padding) * -1);
}

.col {
	flex: 1;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: var(--color-white);
	box-shadow: var(--shadow-sm);
	z-index: 1000;
	transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
	box-shadow: var(--shadow-md);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.site-logo img {
	max-height: 50px;
	width: auto;
}

.site-logo .site-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primary);
}

.site-logo .site-title:hover {
	color: var(--color-secondary);
}

/* Primary Navigation */
.primary-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

.primary-navigation li {
	position: relative;
}

.primary-navigation a {
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-primary);
	padding: 0.5rem 0;
	display: block;
	position: relative;
}

.primary-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-accent);
	transition: width var(--transition-base);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
	width: 100%;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
	color: var(--color-secondary);
}

/* Dropdown menus */
.primary-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--color-white);
	box-shadow: var(--shadow-lg);
	min-width: 220px;
	padding: 0.5rem 0;
	border-radius: var(--border-radius);
	z-index: 1001;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.primary-navigation .sub-menu li {
	padding: 0;
}

.primary-navigation .sub-menu a {
	padding: 0.6rem 1.25rem;
	font-size: 0.875rem;
	white-space: nowrap;
}

.primary-navigation .sub-menu a::after {
	display: none;
}

.primary-navigation .sub-menu a:hover {
	background-color: var(--color-light);
	color: var(--color-secondary);
}

/* Menu toggle (mobile) */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.menu-toggle .bar {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--color-primary);
	margin: 5px 0;
	transition: var(--transition-base);
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-primary);
	color: var(--color-white);
	padding: 8px 16px;
	z-index: 9999;
	font-size: 0.875rem;
	font-weight: 500;
}

.skip-link:focus {
	top: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0.75rem 1.75rem;
	border-radius: var(--border-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: all var(--transition-base);
	line-height: 1.4;
}

.btn-primary {
	background-color: var(--color-accent);
	color: var(--color-primary);
	border-color: var(--color-accent);
}

.btn-primary:hover {
	background-color: transparent;
	color: var(--color-accent);
}

.btn-secondary {
	background-color: var(--color-secondary);
	color: var(--color-white);
	border-color: var(--color-secondary);
}

.btn-secondary:hover {
	background-color: transparent;
	color: var(--color-secondary);
}

.btn-outline {
	background-color: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
}

.btn-outline:hover {
	background-color: var(--color-white);
	color: var(--color-primary);
}

.btn-outline-dark {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-outline-dark:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.btn-sm {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
}

.btn-lg {
	padding: 1rem 2.5rem;
	font-size: 1rem;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	background-color: var(--color-white);
	font-size: 0.9375rem;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	color: var(--color-dark);
}

.search-form {
	display: flex;
	gap: 0;
}

.search-form input[type="search"] {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
	flex: 1;
}

.search-form button {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding: 0.75rem 1.25rem;
	background-color: var(--color-secondary);
	color: var(--color-white);
	border: 1px solid var(--color-secondary);
	cursor: pointer;
	font-weight: 600;
	transition: background-color var(--transition-base);
}

.search-form button:hover {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
	color: var(--color-accent);
}

.site-footer h3,
.site-footer h4 {
	color: var(--color-white);
}

.footer-widgets {
	padding: 4rem 0 2rem;
}

.footer-widgets .row {
	gap: 2rem 0;
}

.footer-widgets .col {
	flex: 1 1 250px;
}

.footer-widgets h4 {
	font-size: 1.125rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.footer-widgets ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widgets ul li {
	margin-bottom: 0.6rem;
}

.footer-widgets ul li a {
	font-size: 0.9375rem;
}

.footer-logo img {
	max-height: 45px;
	width: auto;
	margin-bottom: 1rem;
}

.footer-description {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info p {
	margin-bottom: 0.6rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.8);
}

.social-links {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--color-white);
	font-size: 0.875rem;
	transition: all var(--transition-base);
}

.social-links a:hover {
	background-color: var(--color-accent);
	color: var(--color-primary);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 1.5rem 0;
}

.footer-bottom .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-bottom p {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bottom-links a {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
	color: var(--color-accent);
}

/* Back to top */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 44px;
	height: 44px;
	background-color: var(--color-accent);
	color: var(--color-primary);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.125rem;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-base);
	display: flex;
	align-items: center;
	justify-content: center;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background-color: var(--color-secondary);
	color: var(--color-white);
	transform: translateY(-3px);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.site-content {
	padding-top: var(--header-height);
}

.page-banner {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 4rem 0;
	text-align: center;
}

.page-banner h1 {
	color: var(--color-white);
	margin-bottom: 0.5rem;
}

.page-banner p {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

.page-banner .breadcrumb {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.page-banner .breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
}

.page-banner .breadcrumb a:hover {
	color: var(--color-accent);
}

.page-banner .breadcrumb .sep {
	margin: 0 0.5rem;
}

/* Blog layout */
.content-area {
	padding: 3rem 0;
}

.content-area .container {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
}

.main-content {
	min-width: 0;
}

.widget-area {
	min-width: 0;
}

/* Post cards */
.post-card {
	background-color: var(--color-white);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	overflow: hidden;
	margin-bottom: 2rem;
	transition: box-shadow var(--transition-base);
}

.post-card:hover {
	box-shadow: var(--shadow-md);
}

.post-card .post-thumbnail img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.post-card .post-content {
	padding: 1.5rem;
}

.post-card .entry-title {
	font-size: 1.375rem;
	margin-bottom: 0.75rem;
}

.post-card .entry-title a {
	color: var(--color-primary);
}

.post-card .entry-title a:hover {
	color: var(--color-secondary);
}

.post-card .entry-meta {
	font-size: 0.875rem;
	color: var(--color-muted);
	margin-bottom: 0.75rem;
}

.post-card .entry-meta a {
	color: var(--color-muted);
}

.post-card .entry-meta a:hover {
	color: var(--color-secondary);
}

.post-card .entry-summary {
	font-size: 0.9375rem;
	color: var(--color-muted);
}

.post-card .read-more {
	font-weight: 600;
	font-size: 0.875rem;
	margin-top: 1rem;
	display: inline-block;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 3rem;
}

.pagination a,
.pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius);
	font-size: 0.875rem;
	font-weight: 500;
	transition: all var(--transition-base);
}

.pagination a {
	color: var(--color-dark);
	background-color: var(--color-white);
}

.pagination a:hover {
	background-color: var(--color-secondary);
	color: var(--color-white);
	border-color: var(--color-secondary);
}

.pagination .current {
	background-color: var(--color-secondary);
	color: var(--color-white);
	border-color: var(--color-secondary);
}

/* Sidebar widgets */
.widget {
	background-color: var(--color-white);
	border-radius: var(--border-radius);
	border: 1px solid var(--color-border);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.widget-title {
	font-size: 1.125rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.9375rem;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--color-dark);
}

.widget ul li a:hover {
	color: var(--color-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-dark);
	clip: auto !important;
	clip-path: none;
	color: var(--color-white);
	font-size: 1rem;
	font-weight: 500;
	height: auto;
	left: 5px;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
	.content-area .container {
		grid-template-columns: 1fr;
	}

	.widget-area {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.widget-area .widget {
		margin-bottom: 0;
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 70px;
	}

	.menu-toggle {
		display: block;
	}

	.primary-navigation {
		position: fixed;
		top: 0;
		right: -300px;
		width: 300px;
		height: 100vh;
		background-color: var(--color-white);
		box-shadow: var(--shadow-lg);
		z-index: 1002;
		transition: right var(--transition-base);
		overflow-y: auto;
	}

	.primary-navigation.active {
		right: 0;
	}

	.primary-navigation ul {
		flex-direction: column;
		gap: 0;
		padding: 2rem 1.5rem;
	}

	.primary-navigation li {
		border-bottom: 1px solid var(--color-border);
	}

	.primary-navigation a {
		padding: 1rem 0;
	}

	.primary-navigation .sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		background-color: var(--color-light);
		padding: 0 1rem;
		min-width: auto;
	}

	.primary-navigation .menu-item-has-children.active > .sub-menu {
		display: block;
	}

	.primary-navigation .sub-menu a {
		padding: 0.75rem 0;
	}

	/* Mobile overlay */
	.nav-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1001;
	}

	.nav-overlay.active {
		display: block;
	}

	h1 { font-size: 2rem; }
	h2 { font-size: 1.625rem; }
	h3 { font-size: 1.375rem; }

	.section {
		padding: 3rem 0;
	}

	.page-banner {
		padding: 3rem 0;
	}

	.footer-bottom .container {
		flex-direction: column;
		text-align: center;
	}

	.footer-bottom-links {
		justify-content: center;
	}

	.widget-area {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.btn {
		display: block;
		width: 100%;
	}

	.footer-widgets .col {
		flex: 1 1 100%;
	}
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
	.site-header,
	.site-footer,
	.back-to-top,
	.menu-toggle,
	.nav-overlay {
		display: none !important;
	}

	.site-content {
		padding-top: 0;
	}

	a {
		text-decoration: underline;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
		color: #000;
	}

	h1, h2, h3, h4, h5, h6 {
		color: #000;
	}
}

/* ============================================
   WORDPRESS CORE
   ============================================ */
.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

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

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: var(--color-muted);
	margin-top: 0.5rem;
}

.gallery-caption {
	font-size: 0.875rem;
}

.bypostauthor {
	display: block;
}

.sticky {
	display: block;
}
