/*
Theme Name: Isham Solutions
Theme URI: https://ishamsol.com
Author: Isham Solutions
Author URI: https://ishamsol.com
Description: Custom premium business technology theme for Isham Solutions — a digital transformation company. Built with Bootstrap 5 (self-hosted, no build step), Gutenberg compatible, no page builders.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ishamsol
*/

/*
 * Isham Solutions brand styles, layered on top of the self-hosted
 * Bootstrap 5 base (assets/vendor/bootstrap/). Hand-authored, no build
 * step — enqueued directly via inc/enqueue.php.
 */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/inter-var-latin.woff2') format('woff2');
}

:root {
	--bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
	--bs-body-bg: #ffffff;
	--bs-body-color: #0f172a;

	--bs-primary: #4f46e5;
	--bs-primary-rgb: 79, 70, 229;
	--bs-link-color: var(--bs-primary);
	--bs-link-color-rgb: var(--bs-primary-rgb);
	--bs-link-hover-color: #4338ca;
	--bs-link-hover-color-rgb: 67, 56, 202;

	--bs-border-radius: 0.75rem;
	--bs-border-radius-sm: 0.5rem;
	--bs-border-radius-lg: 1rem;
	--bs-border-radius-xl: 1.5rem;
	--bs-border-radius-2xl: 2rem;
	--bs-border-radius-pill: 50rem;

	--bs-box-shadow-sm: 0 2px 8px 0 rgba(15, 23, 42, 0.04), 0 1px 2px 0 rgba(15, 23, 42, 0.03);
	--bs-box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
	--bs-box-shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.15);

	--isham-surface: #f8fafc;
	--isham-accent: #0d9488;
	--isham-violet: #7c3aed;
	--isham-gradient-primary-accent: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	--isham-gradient-surface-fade: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	--isham-gradient-text: linear-gradient(90deg, #0d9488 0%, #059669 100%);

	--isham-badge-1-bg: #ede9fe;
	--isham-badge-1-fg: #7c3aed;
	--isham-badge-2-bg: #ffedd5;
	--isham-badge-2-fg: #ea580c;
	--isham-badge-3-bg: #dbeafe;
	--isham-badge-3-fg: #2563eb;
	--isham-badge-4-bg: #dcfce7;
	--isham-badge-4-fg: #16a34a;
	--isham-badge-5-bg: #fce7f3;
	--isham-badge-5-fg: #db2777;
	--isham-badge-6-bg: #fef3c7;
	--isham-badge-6-fg: #b45309;
}

body {
	-webkit-font-smoothing: antialiased;
}

:focus-visible {
	outline: 2px solid var(--bs-primary);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 1080;
	padding: 0.75rem 1.25rem;
	background: #fff;
	border-radius: var(--bs-border-radius);
	box-shadow: var(--bs-box-shadow-lg);
}

.skip-link:focus {
	top: 1rem;
}

/* Premium card */
.card-premium {
	position: relative;
	border: 1px solid var(--bs-gray-200, #e2e8f0);
	border-radius: var(--bs-border-radius-xl);
	background: #fff;
	box-shadow: var(--bs-box-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-premium:hover {
	box-shadow: var(--bs-box-shadow);
}

/* Surfaces & gradients */
.bg-surface {
	background-color: var(--isham-surface);
}

.bg-gradient-primary-accent {
	background-image: var(--isham-gradient-primary-accent);
	color: #fff;
}

.bg-surface-fade {
	background-image: var(--isham-gradient-surface-fade);
}

.rounded-2xl {
	border-radius: var(--bs-border-radius-xl) !important;
}

.rounded-3xl {
	border-radius: var(--bs-border-radius-2xl) !important;
}

.btn {
	border-radius: var(--bs-border-radius-pill);
}

/* Homepage section patterns (inc/block-patterns.php) */
.process-step-icon {
	width: 4rem;
	height: 4rem;
}

.tech-logo-slot {
	height: 4.5rem;
}

.section-cta .is-style-outline .wp-block-button__link {
	border-color: #fff;
	color: #fff;
}

.cta-btn-white .wp-block-button__link {
	background-color: #fff;
	color: var(--bs-primary);
}

.cta-btn-white .wp-block-button__link:hover {
	background-color: var(--isham-surface);
	color: var(--bs-primary);
}

/* Decorative section graphics (abstract, on-brand — no photographic content) */
.section-hero,
.section-cta {
	position: relative;
	overflow: hidden;
}

.section-hero::before,
.section-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.section-hero::before {
	top: -10rem;
	right: -10rem;
	width: 28rem;
	height: 28rem;
	background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.08) 60%, transparent 75%);
}

.section-hero::after {
	bottom: -12rem;
	left: -8rem;
	width: 24rem;
	height: 24rem;
	background: radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.10), transparent 70%);
}

.section-hero > .wp-block-group {
	position: relative;
	z-index: 1;
}

.section-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
	z-index: 0;
}

.section-cta > .wp-block-group {
	position: relative;
	z-index: 1;
}

/* Icons (assets/vendor/bootstrap-icons/) */
.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: -0.125em;
}

.social-icon-link {
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--isham-surface);
	color: var(--bs-body-color);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon-link:hover {
	background: var(--bs-primary);
	color: #fff;
}

.social-icon-link .icon {
	width: 1.1rem;
	height: 1.1rem;
}

.cpt-icon-frame {
	width: 3.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bs-primary);
}

.cpt-icon-frame .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.cpt-icon-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Colorful rotating icon badges (solution/industry/feature cards) */
.icon-badge {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--bs-border-radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-badge .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.icon-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.icon-badge-1 { background: var(--isham-badge-1-bg); color: var(--isham-badge-1-fg); }
.icon-badge-2 { background: var(--isham-badge-2-bg); color: var(--isham-badge-2-fg); }
.icon-badge-3 { background: var(--isham-badge-3-bg); color: var(--isham-badge-3-fg); }
.icon-badge-4 { background: var(--isham-badge-4-bg); color: var(--isham-badge-4-fg); }
.icon-badge-5 { background: var(--isham-badge-5-bg); color: var(--isham-badge-5-fg); }
.icon-badge-6 { background: var(--isham-badge-6-bg); color: var(--isham-badge-6-fg); }

/* Gradient emphasis text (e.g. a highlighted word in a heading) */
.text-gradient {
	background: var(--isham-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Brand logo mark */
.brand-mark {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--bs-border-radius-sm);
	background: var(--isham-gradient-primary-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-8deg);
	flex-shrink: 0;
}

.site-logo-full {
	height: 2.75rem;
	width: auto;
	flex-shrink: 0;
}

.brand-mark .icon {
	width: 1.15rem;
	height: 1.15rem;
	color: #fff;
	transform: rotate(8deg);
}

/* Decorative banners (assets/images/) */
.banner-image {
	border-radius: var(--bs-border-radius-2xl);
	overflow: hidden;
}

.banner-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Entry content (page.php / single.php) */
.entry-content {
	line-height: 1.75;
}

.entry-content img {
	border-radius: var(--bs-border-radius-lg);
}

.entry-content blockquote {
	border-left: 4px solid var(--bs-primary);
	padding-left: 1.25rem;
	color: var(--bs-body-color);
	font-style: italic;
}

/* Pagination (archive.php / search.php) */
.pagination-wrap .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: var(--bs-border-radius-pill);
	text-decoration: none;
	color: var(--bs-body-color);
	background: var(--isham-surface);
}

.pagination-wrap .page-numbers.current {
	background: var(--bs-primary);
	color: #fff;
}

.pagination-wrap .page-numbers:not(.current):hover {
	background: var(--bs-gray-200, #e2e8f0);
}

/* Breadcrumbs */
.breadcrumbs a:hover {
	color: var(--bs-primary) !important;
}

/* Footer link lists (Quick Links / Contact) */
.footer-links a {
	color: var(--bs-body-color);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--bs-primary);
	text-decoration: underline;
}

/* Comments */
.comment-list .children {
	list-style: none;
	padding-left: 2rem;
}

.comment-list .comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--bs-gray-200, #e2e8f0);
}

/* FAQ accordion (blocks/faq-accordion) — every item is its own separate
 * rounded card, so button/body corners are set explicitly to match the
 * item's radius (relying on overflow:hidden clipping alone leaves a
 * sub-pixel corner gap in some browsers). */
.section-faq .accordion-item {
	--ishamsol-accordion-radius: var(--bs-border-radius-lg);
	border: 1px solid var(--bs-gray-200, #e2e8f0);
	border-radius: var(--ishamsol-accordion-radius) !important;
	overflow: hidden;
	margin-bottom: 1rem;
}

.section-faq .accordion-button {
	font-weight: 600;
	border-radius: 0;
}

.section-faq .accordion-button.collapsed {
	border-radius: calc(var(--ishamsol-accordion-radius) - 1px) !important;
}

.section-faq .accordion-button:not(.collapsed) {
	background-color: var(--isham-surface);
	color: var(--bs-primary);
	box-shadow: none;
	border-top-left-radius: calc(var(--ishamsol-accordion-radius) - 1px) !important;
	border-top-right-radius: calc(var(--ishamsol-accordion-radius) - 1px) !important;
}

.section-faq .accordion-button:focus {
	box-shadow: none;
	outline: 2px solid var(--bs-primary);
	outline-offset: -2px;
}

.section-faq .accordion-body {
	border-radius: 0 0 calc(var(--ishamsol-accordion-radius) - 1px) calc(var(--ishamsol-accordion-radius) - 1px);
}

/* Floating WhatsApp widget */
.whatsapp-widget {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 3.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: var(--bs-box-shadow-lg);
	z-index: 1040;
	transition: transform 0.2s ease;
}

.whatsapp-widget:hover {
	color: #fff;
	transform: scale(1.08);
}

.whatsapp-widget .icon {
	width: 1.85rem;
	height: 1.85rem;
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
