/* ==========================================================================
   Tajawal Portfolio — Mobile-First Minimal CSS (RTL)
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--tp-font, 'Tajawal', sans-serif);
	font-size: 16px;
	line-height: 1.75;
	color: var(--tp-text, #1e293b);
	background: var(--tp-bg, #ffffff);
}

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

a {
	color: var(--tp-primary, #0f766e);
	text-decoration: none;
}

a:hover {
	color: var(--tp-primary-dark, #115e59);
}

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	color: var(--tp-secondary, #0f172a);
	line-height: 1.35;
	font-weight: 800;
}

p {
	margin: 0 0 1em;
}

.tp-skip-link {
	position: absolute;
	top: -100px;
	right: 16px;
	z-index: 9999;
	background: var(--tp-primary);
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}
.tp-skip-link:focus {
	top: 12px;
	color: #fff;
}

.tp-container {
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 16px;
}

.tp-container--narrow {
	max-width: 820px;
}

/* Buttons */
.tp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	text-align: center;
}

.tp-btn:active {
	transform: scale(0.98);
}

.tp-btn--sm {
	padding: 8px 14px;
	font-size: 14px;
	border-radius: 8px;
}

.tp-btn--block {
	width: 100%;
}

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

.tp-btn--whatsapp {
	background: var(--tp-whatsapp, #16a34a);
	color: #fff;
}
.tp-btn--whatsapp:hover {
	filter: brightness(0.92);
	color: #fff;
}

.tp-btn--outline {
	background: transparent;
	color: var(--tp-primary);
	border-color: var(--tp-primary);
}
.tp-btn--outline:hover {
	background: var(--tp-primary);
	color: #fff;
}

.tp-icon {
	flex-shrink: 0;
}

/* Badges & Pills */
.tp-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tp-primary) 12%, transparent);
	color: var(--tp-primary);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
}

.tp-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	background: var(--tp-surface);
	color: var(--tp-primary);
	border: 1px solid var(--tp-border);
	margin-bottom: 8px;
}

/* Header */
.tp-site-header {
	background: var(--tp-header-bg);
	color: var(--tp-header-text);
	border-bottom: 1px solid var(--tp-border);
	z-index: 100;
}

.tp-site-header.is-sticky {
	position: sticky;
	top: 0;
	backdrop-filter: blur(8px);
}

.tp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 66px;
}

.tp-site-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--tp-header-text);
}

.tp-header-brand img {
	max-height: 44px;
	width: auto;
}

.tp-header-nav,
.tp-header-phone,
.tp-header-social,
.tp-header-wa {
	display: none;
}

.tp-mobile-toggle,
.tp-icon-btn {
	background: transparent;
	border: 1px solid var(--tp-border);
	color: var(--tp-header-text);
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.tp-mobile-drawer {
	background: var(--tp-header-bg);
	border-top: 1px solid var(--tp-border);
	padding: 16px 0 20px;
}

.tp-mobile-menu {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.tp-mobile-menu li a {
	display: block;
	padding: 10px 4px;
	color: var(--tp-header-text);
	font-weight: 600;
	border-bottom: 1px solid var(--tp-border);
}

.tp-header-searchbar {
	padding: 12px 0;
	border-top: 1px solid var(--tp-border);
	background: var(--tp-surface);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
}

.search-submit {
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--tp-primary);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Social Icons */
.tp-social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tp-social-link {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	border: 1px solid var(--tp-border);
	color: inherit;
}

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

/* Sections & Dynamic Media Modes (Hidden / Background / Side) */
.tp-section {
	padding: 52px 0;
	position: relative;
}

.tp-section--alt {
	background: var(--tp-surface);
}

.tp-section--has-bg {
	background-image: var(--tp-sec-bg);
	background-size: cover;
	background-position: center;
	color: #ffffff;
}

.tp-section--has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, var(--tp-sec-overlay, 0.65));
	z-index: 0;
}

.tp-section--has-bg > .tp-container {
	position: relative;
	z-index: 1;
}

.tp-section--has-bg .tp-section-title,
.tp-section--has-bg .tp-hero-title,
.tp-section--has-bg .tp-section-subtitle,
.tp-section--has-bg .tp-hero-subtitle,
.tp-section--has-bg .tp-section-desc,
.tp-section--has-bg .tp-stat-val,
.tp-section--has-bg .tp-stat-lbl {
	color: #ffffff;
}

.tp-section--has-bg .tp-badge {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.tp-section--has-bg .tp-card {
	color: var(--tp-text);
}

.tp-section-head {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 32px;
}

.tp-section-title {
	font-size: clamp(24px, 5vw, 34px);
}

.tp-section-subtitle {
	color: var(--tp-text-muted);
	font-size: 16px;
}

.tp-section-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
	margin-bottom: 32px;
}

.tp-section-side-img,
.tp-hero-img {
	width: 100%;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.tp-section-cta {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Grids & Cards (Mobile-First: 1 column) */
.tp-grid,
.tp-steps-grid,
.tp-areas-grid,
.tp-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.tp-steps-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-card {
	background: var(--tp-bg);
	border: 1px solid var(--tp-border);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tp-card-title {
	font-size: 18px;
	margin-bottom: 8px;
}

.tp-card-text {
	color: var(--tp-text-muted);
	font-size: 15px;
	margin-bottom: 0;
}

.tp-card-media {
	margin: -20px -20px 16px;
	overflow: hidden;
	border-radius: 13px 13px 0 0;
}

.tp-card-img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Hero */
.tp-hero {
	padding: 48px 0 56px;
	background: linear-gradient(180deg, var(--tp-surface) 0%, var(--tp-bg) 100%);
}

.tp-hero-center {
	text-align: center;
	max-width: 780px;
	margin: 0 auto;
}

.tp-hero-title {
	font-size: clamp(28px, 7vw, 44px);
	margin-bottom: 14px;
}

.tp-hero-subtitle {
	font-size: 17px;
	color: var(--tp-text-muted);
	margin-bottom: 24px;
}

.tp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.tp-hero-split .tp-hero-actions {
	justify-content: flex-start;
}

.tp-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--tp-border);
}

.tp-stat-val {
	display: block;
	font-size: 20px;
	color: var(--tp-primary);
}

.tp-stat-lbl {
	font-size: 13px;
	color: var(--tp-text-muted);
}

/* About Points & Areas */
.tp-point-card,
.tp-why-card,
.tp-area-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tp-point-icon,
.tp-area-icon,
.tp-contact-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 10px;
	background: color-mix(in srgb, var(--tp-primary) 12%, transparent);
	color: var(--tp-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tp-why-num {
	font-size: 22px;
	font-weight: 800;
	color: var(--tp-primary);
	line-height: 1;
	padding-top: 2px;
}

/* Services (with bottom WhatsApp CTA) */
.tp-service-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

.tp-service-card__footer {
	margin-top: auto;
	padding-top: 8px;
}

/* Steps */
.tp-step-badge {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tp-primary);
	color: #fff;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

/* Testimonials */
.tp-stars {
	display: flex;
	gap: 3px;
	color: var(--tp-accent, #f59e0b);
	margin-bottom: 10px;
}

.tp-review-quote {
	margin: 0 0 14px;
	font-size: 15px;
	color: var(--tp-text);
}

.tp-review-author strong {
	display: block;
	color: var(--tp-secondary);
}

.tp-review-author span {
	font-size: 13px;
	color: var(--tp-text-muted);
}

/* Gallery */
.tp-gallery-card {
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.tp-gallery-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.tp-gallery-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tp-gallery-placeholder {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, color-mix(in srgb, var(--tp-primary) 16%, var(--tp-surface)), var(--tp-surface));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 800;
	color: var(--tp-primary);
}

.tp-gallery-caption {
	padding: 16px;
}

/* FAQ Accordion */
.tp-faq-list {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tp-faq-item {
	background: var(--tp-bg);
	border: 1px solid var(--tp-border);
	border-radius: 12px;
	overflow: hidden;
}

.tp-faq-question {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	font-weight: 700;
	color: var(--tp-secondary);
	cursor: pointer;
}

.tp-faq-question::-webkit-details-marker {
	display: none;
}

.tp-faq-chevron {
	transition: transform 0.2s ease;
	color: var(--tp-primary);
}

.tp-faq-item[open] .tp-faq-chevron {
	transform: rotate(180deg);
}

.tp-faq-answer {
	padding: 0 18px 16px;
	color: var(--tp-text-muted);
	border-top: 1px solid var(--tp-border);
	padding-top: 12px;
}

/* Blog Cards */
.tp-post-card {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tp-post-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.tp-post-card__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tp-post-meta {
	font-size: 13px;
	color: var(--tp-text-muted);
	margin-bottom: 6px;
}

.tp-read-more {
	margin-top: auto;
	padding-top: 12px;
	font-weight: 700;
	font-size: 14px;
}

/* Contact */
.tp-contact-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tp-contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tp-contact-list small {
	display: block;
	color: var(--tp-text-muted);
	font-size: 12px;
}

.tp-contact-info .tp-social-list {
	margin-top: 16px;
}

.tp-form-field {
	margin-bottom: 12px;
}

.tp-form-field label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 5px;
}

.tp-form-field input,
.tp-form-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--tp-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	background: var(--tp-bg);
	color: var(--tp-text);
}

/* Single Post / Page + TOC (H2 Only) + Styled H2 Shading & Right Vertical Bar */
.tp-article-header {
	margin-bottom: 22px;
}

.tp-article-cats a {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tp-primary) 12%, transparent);
	color: var(--tp-primary);
	margin-bottom: 10px;
}

.tp-article-title {
	font-size: clamp(24px, 5vw, 36px);
}

.tp-article-meta {
	font-size: 14px;
	color: var(--tp-text-muted);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tp-article-thumb {
	margin-bottom: 24px;
	border-radius: 14px;
	overflow: hidden;
}

.tp-entry-content {
	font-size: 17px;
	line-height: 1.85;
}

/* Built-in Table of Contents Box */
.tp-toc {
	background: var(--tp-toc-bg, #f8fafc);
	border: 1px solid var(--tp-toc-border, #e2e8f0);
	border-radius: 12px;
	padding: 16px 18px;
	margin: 22px 0 28px;
}

.tp-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tp-toc__title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	color: var(--tp-secondary);
}

.tp-toc__toggle {
	background: transparent;
	border: 1px solid var(--tp-toc-border, #e2e8f0);
	border-radius: 6px;
	padding: 4px 10px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--tp-text);
	cursor: pointer;
}

.tp-toc__list {
	margin: 12px 0 0;
	padding-inline-start: 22px;
}

.tp-toc.is-collapsed .tp-toc__list {
	display: none;
}

.tp-toc__item {
	margin-bottom: 6px;
}

.tp-toc__link {
	color: var(--tp-toc-link, #0f766e);
	font-weight: 600;
}

.tp-toc__link:hover {
	text-decoration: underline;
}

/* H2 Shading + Right Vertical Colored Bar (Customizable in Theme Settings) */
.tp-entry-content h2.tp-h2-styled {
	background-color: var(--tp-h2-bg, #f0fdfa);
	border-right: var(--tp-h2-border-w, 5px) solid var(--tp-h2-border, #0f766e);
	color: var(--tp-h2-text, #0f172a);
	border-radius: var(--tp-h2-radius, 8px);
	padding: 12px 16px;
	margin: 30px 0 16px;
	scroll-margin-top: 84px;
}

.tp-article-tags {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--tp-border);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.tp-article-tags a {
	padding: 4px 10px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: 6px;
	font-size: 13px;
}

.tp-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--tp-border);
	font-weight: 700;
}

/* Archive & Pagination */
.tp-archive-header {
	margin-bottom: 30px;
}

.tp-archive-description {
	margin-top: 14px;
	padding: 18px 20px;
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: 12px;
}

.tp-pagination {
	margin-top: 32px;
	text-align: center;
}

.tp-pagination .nav-links {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

.tp-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	font-weight: 700;
}

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

.tp-empty-note {
	text-align: center;
	color: var(--tp-text-muted);
}

/* Comments */
.tp-comments {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--tp-border);
}

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

.tp-comment-list .comment-body {
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	font-family: inherit;
}

/* Footer */
.tp-site-footer {
	background: var(--tp-footer-bg);
	color: var(--tp-footer-text);
	padding-top: 48px;
}

.tp-site-footer a {
	color: var(--tp-footer-text);
}

.tp-site-footer a:hover {
	color: #ffffff;
}

.tp-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding-bottom: 36px;
}

.tp-footer-heading {
	color: #ffffff;
	font-size: 17px;
	margin-bottom: 12px;
}

.tp-footer-site-name {
	font-size: 20px;
	font-weight: 800;
	color: #ffffff !important;
	display: inline-block;
	margin-bottom: 8px;
}

.tp-footer-menu,
.tp-footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tp-footer-contact-list li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tp-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 16px 0;
	text-align: center;
}

.tp-copyright {
	margin: 0;
	font-size: 14px;
	opacity: 0.85;
}

/* Floating WhatsApp */
.tp-floating-wa {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 90;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--tp-whatsapp, #16a34a);
	color: #fff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

/* Lightbox */
.tp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 23, 42, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tp-lightbox[hidden] {
	display: none;
}

.tp-lightbox__close {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.tp-lightbox__content {
	max-width: 920px;
	text-align: center;
	color: #fff;
}

.tp-lightbox__content img {
	max-height: 80vh;
	margin: 0 auto 12px;
	border-radius: 10px;
}

/* ==========================================================================
   Progressive Enhancement: Tablet & Desktop (>= 768px / >= 1024px)
   ========================================================================== */
@media (min-width: 768px) {
	.tp-section {
		padding: 72px 0;
	}

	.tp-grid--2,
	.tp-steps-grid,
	.tp-areas-grid,
	.tp-contact-grid,
	.tp-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.tp-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.tp-section-split {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 36px;
	}

	.tp-section--side-right .tp-section-split__media {
		order: -1;
	}
}

@media (min-width: 1024px) {
	.tp-header-nav,
	.tp-header-phone,
	.tp-header-social,
	.tp-header-wa {
		display: flex;
		align-items: center;
	}

	.tp-mobile-toggle,
	.tp-mobile-drawer {
		display: none !important;
	}

	.tp-nav-menu {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		align-items: center;
		gap: 20px;
	}

	.tp-nav-menu a {
		color: var(--tp-header-text);
		font-weight: 700;
		font-size: 15px;
	}

	.tp-nav-menu a:hover {
		color: var(--tp-primary);
	}

	.tp-phone-link {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-weight: 700;
		color: var(--tp-header-text);
	}

	.tp-grid--3,
	.tp-areas-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tp-steps-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tp-footer-grid {
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	}
}
