/*
 * Lumina Plus — Solo Consultant Portfolio Custom Styles
 * Loaded after the parent theme stylesheet.
 */

/* --- Base typography --- */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2b373d;
	line-height: 1.65;
	font-size: 1.125rem;
}

html[dir="rtl"] body,
html[dir="rtl"] .wp-block-post-content {
	font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	font-size: 1.125rem;
	line-height: 1.75;
}

/* General container tweaks */
.wp-site-blocks {
	overflow-x: hidden;
}

/* --- Header --- */
.lumina-header {
	z-index: 50;
	background-color: #ffffff;
}

.lumina-nav .wp-block-navigation-item a {
	font-weight: 500;
	color: #2b373d;
}

.lumina-nav .wp-block-navigation-item:last-child a,
.lumina-nav .lumina-nav-contact a {
	color: #0077b6;
	font-weight: 600;
}

/* Language switcher */
.wp-block-polylang-navigation-language-switcher {
	margin-inline-start: .25rem;
}

.wp-block-polylang-navigation-language-switcher > a {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding: .375rem .625rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color .15s ease;
}

.wp-block-polylang-navigation-language-switcher > a:hover {
	background-color: #f7f9fa;
}

.wp-block-polylang-navigation-language-switcher.current-lang > a {
	background-color: #f7f9fa;
	font-weight: 600;
}

.wp-block-polylang-navigation-language-switcher img {
	width: 18px !important;
	height: auto !important;
	border-radius: 2px;
	object-fit: cover;
}

.rtl .wp-block-polylang-navigation-language-switcher > a {
	flex-direction: row-reverse;
}

/* --- Hero --- */
.hero-section {
	padding: 80px 20px;
	border-radius: 8px;
}

.hero-section .wp-block-cover__inner-container {
	max-width: 75rem;
	margin-inline: auto;
}

/* --- Hero: split layout with founder photo --- */
.hero-split-columns {
	align-items: center;
	gap: 2.5rem;
}

.hero-text-column {
	flex: 1;
}

.hero-photo-column {
	flex: 1;
	display: flex;
	justify-content: center;
}

.hero-photo {
	margin: 0;
	width: 100%;
	max-width: 420px;
}

.hero-photo img {
	display: block;
	width: 100%;
	height: 480px;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.hero-split-columns {
		flex-direction: column;
	}

	.hero-photo {
		max-width: 320px;
	}

	.hero-photo img {
		height: 380px;
	}
}

@media (max-width: 480px) {
	.hero-photo {
		max-width: 260px;
	}

	.hero-photo img {
		height: 320px;
	}
}

/* --- Contact page: supporting photo above the form --- */
.lumina-contact-visual {
	margin: 0 0 1.75rem 0;
	max-width: 320px;
}

.lumina-contact-visual img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid rgb(226, 232, 240);
}

/* --- Service Card (mandatory) --- */
.service-card {
	background: #ffffff;
	border: 1px solid rgb(226, 232, 240);
	border-radius: 8px;
	padding: 30px;
	box-shadow: calc(1px - 1px) 4px 6px -1px color-mix(in srgb, black 5%, transparent);
	transition:
		transform .2s ease,
		box-shadow .2s ease;
	height: 100%;
}

.service-card:hover,
.service-card:focus-within {
	transform: translateY(-3px);
	box-shadow: calc(1px - 1px) 10px 15px -3px color-mix(in srgb, black 8%, transparent);
}

.service-card--flagship {
	border-color: #0077b6;
	border-width: 2px;
	box-shadow: calc(1px - 1px) 4px 12px -2px color-mix(in srgb, #0077b6 12%, transparent);
}

.service-card--flagship::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: #ffd700;
	border-radius: 2px;
	margin-bottom: 1rem;
}

/* Service grid responsiveness */
.lumina-service-grid {
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
	.lumina-service-grid {
		flex-wrap: nowrap !important;
	}

	.lumina-service-grid > .wp-block-column {
		flex-basis: 33.33% !important;
	}
}

@media (max-width: 768px) {
	.lumina-service-grid > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.lumina-service-grid > .wp-block-column {
		flex-basis: 50% !important;
	}
}

/* --- Service rows (Services page) --- */
.lumina-service-row {
	max-width: 75rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* --- Buttons --- */
.wp-block-button__link {
	border-radius: 4px;
	font-weight: 600;
	padding: 12px 24px;
	transition:
		background-color .2s ease,
		transform .2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Outline buttons on dark backgrounds */
.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: #ffffff;
	color: #ffffff;
}

.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, .1);
}

/* --- Contact form (CF7) --- */
.wpcf7 form {
	display: grid;
	gap: 1rem;
	max-width: 640px;
}

.wpcf7 label {
	display: block;
	font-weight: 500;
	margin-bottom: .25rem;
	color: #2b373d;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: .625rem .75rem;
	border: 1px solid rgb(226, 232, 240);
	border-radius: 4px;
	font-size: 1rem;
	background: #ffffff;
	color: #2b373d;
}

html[dir="rtl"] .wpcf7 input,
html[dir="rtl"] .wpcf7 select,
html[dir="rtl"] .wpcf7 textarea {
	text-align: right;
}

.wpcf7 input[type="submit"] {
	background: #0077b6;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 12px 24px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: #005f92;
	transform: translateY(-1px);
}

.wpcf7-not-valid-tip {
	color: #c0392b;
	font-size: .875rem;
}

.wpcf7-response-output {
	border-radius: 4px;
	padding: .75rem 1rem;
	margin-top: 1rem;
}

/* --- Footer --- */
.lumina-footer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Logo is dark navy/teal on transparent — render as a white silhouette so
   it's legible against the dark footer background instead of disappearing. */
.lumina-footer .wp-block-site-logo img {
	filter: brightness(0) invert(1);
}

.lumina-footer-nav .wp-block-navigation-item a {
	color: rgba(255, 255, 255, .85);
	font-size: .875rem;
}

/* --- Keyboard accessibility --- */
:focus-visible {
	outline: 3px solid #0077b6;
	outline-offset: 3px;
}

/* --- Section spacing --- */
.wp-block-group.alignfull {
	padding-left: 24px;
	padding-right: 24px;
}

@media (max-width: 768px) {
	.hero-section {
		padding: 60px 20px;
	}

	.service-card {
		padding: 24px;
	}

	.wp-block-group.alignfull {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (min-width: 769px) {
	.wp-block-group.alignfull {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* Muted text utility */
.has-muted-color {
	color: #667780;
}

/* ============================================================
   VISUAL ENHANCEMENT PACK
   ============================================================ */

/* --- Hero: photographic background --- */
.hero-section {
	background-image: linear-gradient(
			to bottom,
			rgba(23, 36, 43, .72),
			rgba(23, 36, 43, .55)
		),
		url("../img/hero-bg.jpg?v=20260810");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-section .wp-block-cover__background {
	opacity: .22 !important;
}

html[dir="rtl"] .hero-section {
	background-image: linear-gradient(
			to bottom,
			rgba(23, 36, 43, .72),
			rgba(23, 36, 43, .55)
		),
		url("../img/hero-bg.jpg?v=20260810");
}

/* --- Service cards: photo strip on top --- */
.service-card {
	overflow: hidden;
}

.lumina-card-img {
	display: block;
	width: calc(100% + 60px);
	height: 140px;
	object-fit: cover;
	margin: -30px -30px 20px;
}

/* --- Solo advantage: decorative gold accent on headings --- */
.service-card h3::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: #ffd700;
	margin-inline-end: .5rem;
	vertical-align: middle;
}

/* --- Section heading accents --- */
.wp-block-group h2.has-text-align-center:not(.has-base-color) {
	position: relative;
	padding-bottom: .6em;
}

.wp-block-group h2.has-text-align-center:not(.has-base-color)::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(1px - 1px);
	transform: translateX(-50%);
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: #0077b6;
}

html[dir="rtl"] .wp-block-group h2.has-text-align-center:not(.has-base-color)::after {
	transform: translateX(50%);
}

/* --- Page-title band with background image --- */
.lumina-title-band {
	background-image: linear-gradient(
			to right,
			rgba(23, 36, 43, .82),
			rgba(23, 36, 43, .55)
		),
		url("../img/hero-bg.jpg?v=20260810");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

html[dir="rtl"] .lumina-title-band {
	background-image: linear-gradient(
			to left,
			rgba(23, 36, 43, .82),
			rgba(23, 36, 43, .55)
		),
		url("../img/hero-bg.jpg?v=20260810");
}

.lumina-title-band .wp-block-post-title {
	color: #ffffff !important;
}

/* --- Footer polish --- */
.lumina-footer {
	border-top: 3px solid #ffd700;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	.service-card,
	.wp-block-button__link {
		transition: none !important;
	}

	.service-card:hover,
	.service-card:focus-within {
		transform: none;
		box-shadow: calc(1px - 1px) 10px 15px -3px color-mix(in srgb, black 8%, transparent);
	}
}

/* ============================================================
   INSIGHTS / BLOG SECTION
   ============================================================ */

/* Intro paragraph under the page title */
.lumina-insights-intro {
	max-width: 46rem;
}

/* Topic category grid + cards */
.lumina-category-grid .wp-block-post-template,
.lumina-related-posts .wp-block-post-template {
	gap: 1.25rem;
}

.lumina-category-card,
.lumina-post-card {
	border-radius: 8px;
	transition:
		transform .2s ease,
		box-shadow .2s ease;
	height: 100%;
}

.lumina-category-card:hover,
.lumina-category-card:focus-within,
.lumina-post-card:hover,
.lumina-post-card:focus-within {
	transform: translateY(-3px);
	box-shadow: calc(1px - 1px) 10px 15px -3px color-mix(in srgb, black 8%, transparent);
}

.lumina-category-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
}

.lumina-category-card .wp-block-post-title a::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: #ffd700;
	margin-inline-end: .5rem;
	vertical-align: middle;
}

/* Post card media */
.lumina-post-card .wp-block-post-featured-image,
.lumina-post-featured .wp-block-post-featured-image {
	border-radius: 4px;
	overflow: hidden;
}

/* Meta rows (date + category tags) */
.lumina-post-meta {
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

.lumina-post-meta .wp-block-post-date {
	color: var(--wp--preset--color--muted);
}

/* Category tag pills */
.lumina-post-meta .wp-block-post-terms a,
.lumina-post-card .wp-block-post-terms a {
	display: inline-block;
	padding: .125rem .625rem;
	border-radius: 999px;
	background: color-mix(in srgb, #0077b6 10%, transparent);
	color: #0077b6;
	font-weight: 600;
	font-size: .8125rem;
	text-decoration: none;
}

.lumina-post-meta .wp-block-post-terms a:hover,
.lumina-post-card .wp-block-post-terms a:hover {
	background: color-mix(in srgb, #0077b6 18%, transparent);
}

/* Post title band on single posts (white meta on dark image) */
.lumina-title-band .lumina-post-meta {
	color: rgba(255, 255, 255, .85);
}

.lumina-title-band .lumina-post-meta .wp-block-post-date {
	color: rgba(255, 255, 255, .85);
}

.lumina-title-band .lumina-post-meta .wp-block-post-author {
	color: rgba(255, 255, 255, .85);
}

.lumina-title-band .lumina-post-meta .wp-block-post-terms a {
	background: rgba(255, 255, 255, .18);
	color: #ffffff;
}

/* Single post content width */
.lumina-main > .wp-block-post-content {
	max-width: 46rem;
}

/* Excerpt "Read more" link */
.wp-block-post-excerpt .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Pagination */
.wp-block-query-pagination {
	margin-top: 2.5rem;
}

.wp-block-query-pagination a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.wp-block-query-pagination .page-numbers {
	padding: .25rem .625rem;
	border-radius: 4px;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

/* Category grid responsive fallback */
@media (max-width: 1024px) {
	.lumina-category-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.lumina-category-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* cache-bust verification touch */

/* ============================================================
   SERVICES PAGE — ENRICHED SECTION VISUALS
   ============================================================ */

/* --- Option A: process/framework graphic --- */
.lumina-process {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin-top: 1.75rem;
}

.lumina-process::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	height: 2px;
	background: rgb(226, 232, 240);
	z-index: 0;
}

.lumina-process__step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	padding-inline: .25rem;
}

.lumina-process__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #0077b6;
	color: #ffffff;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
}

.lumina-process__label {
	margin-top: .625rem;
	font-size: .8125rem;
	line-height: 1.35;
	color: #2b373d;
}

/* Flagship variant (Project Feasibility Studies) — larger and gold-accented,
   the most fully realized process graphic on the page. */
.lumina-process--flagship::before {
	top: 24px;
	height: 3px;
	background: color-mix(in srgb, #0077b6 25%, transparent);
}

.lumina-process--flagship .lumina-process__num {
	width: 48px;
	height: 48px;
	font-size: 1.125rem;
	box-shadow: calc(1px - 1px) 6px 14px -4px color-mix(in srgb, #0077b6 45%, transparent);
}

.lumina-process--flagship .lumina-process__label {
	font-weight: 600;
	font-size: .875rem;
}

.lumina-process--flagship .lumina-process__step::after {
	content: "";
	display: block;
	width: 20px;
	height: 3px;
	border-radius: 2px;
	background: #ffd700;
	margin-top: .5rem;
}

@media (max-width: 480px) {
	.lumina-process {
		flex-wrap: wrap;
		row-gap: 1.5rem;
	}

	.lumina-process::before {
		display: none;
	}

	.lumina-process__step {
		flex: 0 0 50%;
	}
}

/* --- Option B: supporting icon set --- */
.lumina-icon-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-top: 1.75rem;
}

.lumina-icon-list__item {
	display: flex;
	align-items: flex-start;
	gap: .625rem;
}

.lumina-icon-list__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	color: #0077b6;
}

.lumina-icon-list__icon svg {
	width: 100%;
	height: 100%;
}

.lumina-icon-list__label {
	font-size: .8125rem;
	line-height: 1.35;
	color: #2b373d;
	padding-top: .375rem;
}

/* --- Option C: illustrative supporting image --- */
.lumina-service-visual {
	margin-top: 1.75rem;
}

.lumina-service-visual img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid rgb(226, 232, 240);
}

/* --- About page: inline editorial supporting photo --- */
.lumina-about-visual {
	margin: 1.75rem 0;
}

.lumina-about-visual img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid rgb(226, 232, 240);
}

/* --- Report slideshow (generic, reused across future report editions) --- */
.lumina-slideshow {
	max-width: 960px;
	margin: 0 auto;
}

.lumina-slideshow-stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0f172a;
	border-radius: 8px;
	overflow: hidden;
}

.lumina-slideshow-frame {
	position: relative;
	width: 100%;
	height: 100%;
}

.lumina-slideshow-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .25s ease;
	margin: 0;
	display: flex;
}

.lumina-slideshow-slide.is-active {
	opacity: 1;
	z-index: 1;
}

.lumina-slideshow-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.lumina-slideshow-prev,
.lumina-slideshow-next,
.lumina-slideshow-fullscreen {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(15, 23, 42, .55);
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.lumina-slideshow-prev:hover,
.lumina-slideshow-next:hover,
.lumina-slideshow-fullscreen:hover {
	background: rgba(15, 23, 42, .8);
}

.lumina-slideshow-prev { left: 12px; }
.lumina-slideshow-next { right: 12px; }

.lumina-slideshow-fullscreen {
	top: 12px;
	right: 12px;
	transform: none;
	width: 36px;
	height: 36px;
	font-size: 1rem;
}

.lumina-slideshow-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: .75rem;
}

.lumina-slideshow-thumbs {
	display: flex;
	gap: .375rem;
	overflow-x: auto;
	flex: 1;
	padding-bottom: .25rem;
}

.lumina-slideshow-thumb {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid rgb(226, 232, 240);
	background: #fff;
	font-size: .75rem;
	cursor: pointer;
}

.lumina-slideshow-thumb.is-active {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}

.lumina-slideshow-counter {
	white-space: nowrap;
	font-size: .875rem;
	margin: 0;
}

.lumina-slideshow.is-fullscreen {
	max-width: none;
	background: #000;
	display: flex;
	align-items: center;
}

.lumina-slideshow.is-fullscreen .lumina-slideshow-stage {
	aspect-ratio: auto;
	height: 100vh;
	width: 100%;
	border-radius: 0;
}

@media (max-width: 640px) {
	.lumina-slideshow-prev,
	.lumina-slideshow-next {
		width: 36px;
		height: 36px;
		font-size: 1.25rem;
	}

	.lumina-slideshow-thumb {
		width: 28px;
		height: 28px;
	}
}

/* --- Reports listing cards --- */
.lumina-report-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.lumina-report-stat {
	border: 1px solid rgb(226, 232, 240);
	border-radius: 8px;
	padding: 1.25rem;
}

.lumina-report-stat strong {
	display: block;
	font-size: 1.5rem;
	color: var(--wp--preset--color--primary);
	margin-bottom: .25rem;
}

.lumina-report-pdf-button {
	display: inline-block;
	margin: 1.5rem 0;
}

.lumina-report-capture {
	border: 1px solid rgb(226, 232, 240);
	border-radius: 8px;
	padding: 1.5rem;
	background: #f8fafc;
	position: relative;
}

.lumina-report-capture-dismiss {
	position: absolute;
	top: .75rem;
	right: .75rem;
	background: none;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: rgb(100, 116, 139);
}

html[dir="rtl"] .lumina-report-capture-dismiss {
	right: auto;
	left: .75rem;
}
