/*
 * SoftviaTech New – page specific styles
 * Home extras, about, contact, blog, single post, service pages, comments.
 */

/* ------------------------------------------------------------------
 * Intro (home) / about copy
 * ---------------------------------------------------------------- */
.intro .split {
	margin-top: 8px;
}

.intro-copy p,
.about-copy p {
	color: var(--text-on-dark);
}

.about-copy {
	padding-left: 24px;
}

.about-art {
	position: relative;
}

.about-art .stat-card {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 192px;
	padding: 24px;
	text-align: center;
	color: var(--ink);
	background: #fff;
	border-radius: var(--radius);
	transform: translate(-50%, -50%);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.about-art .stat-card strong {
	display: block;
	font-family: var(--font-head);
	font-size: 72px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -1px;
}

.about-art .stat-card span {
	display: block;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
}

.prose p {
	color: var(--text);
}

@media (max-width: 991px) {
	.about-copy {
		padding-left: 0;
	}
}

/* ------------------------------------------------------------------
 * Contact
 * ---------------------------------------------------------------- */
#contact-form {
	scroll-margin-top: 120px;
}

.contact-intro {
	max-width: 620px;
	margin-bottom: 40px;
}

.contact-intro h3 {
	margin-bottom: 16px;
	font-size: 28px;
}

.contact-intro p {
	margin: 0;
}

.contact-split {
	gap: 24px 24px;
}

.contact-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	background: var(--light);
	border-radius: var(--radius);
}

.contact-card-art {
	position: relative;
	min-height: 260px;
}

.contact-card-info {
	padding: 30px;
	color: var(--text);
}

.contact-card-info .contact-label {
	color: var(--ink);
}

.contact-card-info .contact-label .icon {
	color: var(--primary);
}

.contact-card-info p {
	margin: 0;
	line-height: 1.9;
}

.contact-card-info a {
	color: var(--text);
}

.contact-card-info a:hover {
	color: var(--primary);
}

.contact-card-info .contact-item {
	margin-bottom: 20px;
}

.contact-card-info .contact-item:last-child {
	margin-bottom: 0;
}

@media (max-width: 575px) {
	.contact-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-card-art {
		min-height: 200px;
	}
}

/* ------------------------------------------------------------------
 * Blog cards and pagination
 * ---------------------------------------------------------------- */
.post-card-link {
	position: relative;
	display: block;
	aspect-ratio: 376 / 300;
	overflow: hidden;
	color: #fff;
	background: var(--dark-2);
	border-radius: 20px;
}

.post-card-link:hover {
	color: #fff;
}

.post-card-media {
	position: absolute;
	inset: 0;
}

.post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.post-card-link:hover .post-card-media img,
.post-card-link:hover .post-card-media .art {
	transform: scale(1.06);
}

.post-card-media .art {
	transition: transform 0.6s var(--ease);
}

.post-card-link::after {
	content: "";
	position: absolute;
	inset: 25% 0 0;
	background: linear-gradient(0deg, rgba(18, 19, 44, 0.96) 0%, rgba(18, 19, 44, 0) 100%);
}

.post-card-body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 32px 36px;
}

.post-card-title {
	display: -webkit-box;
	max-width: 100%;
	margin-bottom: 14px;
	padding: 0 10px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.7;
	color: #fff;
	background: var(--grad);
	border-radius: var(--radius);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.post-card-body h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	color: #fff;
}

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

.pagination .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	font-weight: 600;
	color: var(--ink);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: var(--radius-btn);
}

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

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

.pagination .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.4;
}

/* ------------------------------------------------------------------
 * Single post + sidebar
 * ---------------------------------------------------------------- */
.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 64px;
}

.blog-read {
	counter-reset: section;
}

.blog-read p,
.blog-read li {
	color: var(--text);
}

.blog-read > h3,
.blog-read > h4 {
	position: relative;
	margin: 32px 0 10px;
	padding-left: 50px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
	counter-increment: section;
}

.blog-read > h3::before,
.blog-read > h4::before {
	content: counter(section);
	position: absolute;
	top: -4px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--primary);
	border-radius: 50%;
}

.blog-read > h3 ~ p {
	margin-left: 50px;
}

.blog-read h2 {
	margin-top: 40px;
	font-size: 34px;
}

.entry-content img,
.blog-read img {
	border-radius: var(--radius);
}

.entry-content a {
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 20px 24px;
}

.entry-content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 24px;
	font-style: italic;
	border-left: 4px solid var(--primary);
}

.entry-content table {
	width: 100%;
	margin-bottom: 20px;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	text-align: left;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.related-cta {
	margin-top: 32px;
	padding: 30px;
	color: var(--text-on-dark);
	background: var(--dark-2);
	border-radius: var(--radius);
}

.related-cta p {
	margin-bottom: 8px;
}

.related-cta h4 {
	margin-bottom: 16px;
	color: #fff;
}

.related-cta .btn {
	margin-bottom: 0;
}

.sidebar .widget {
	margin-bottom: 56px;
}

.widget-title,
.sidebar .wp-block-heading,
.sidebar .widget h2 {
	margin-bottom: 16px;
	font-size: 22px;
	line-height: 1.4;
}

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

.sidebar .widget li {
	padding: 4px 0;
	line-height: 1.6;
}

.mini-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mini-posts li {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.mini-thumb {
	position: relative;
	flex: none;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 6px;
}

.mini-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-thumb .art-icon {
	width: 44%;
}

.mini-title {
	display: block;
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--ink);
}

.mini-title:hover {
	color: var(--primary);
}

.mini-date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.mini-date .icon {
	width: 13px;
	height: 13px;
	color: var(--primary);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag-list a {
	display: inline-block;
	padding: 2px 10px;
	font-size: 15px;
	line-height: 1.9;
	color: #fff;
	background: var(--dark-1);
	border-radius: 6px;
}

.tag-list a:hover {
	color: #fff;
	background: var(--primary);
}

.search-results {
	max-width: 800px;
	margin: 32px auto 0;
	padding: 0;
	list-style: none;
}

.search-results li {
	padding: 20px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-results h3 {
	margin-bottom: 4px;
	font-size: 22px;
}

.search-results p {
	margin: 0;
}

.search-box {
	max-width: 560px;
	margin: 0 auto;
}

/* Comments */
.comments-area {
	margin-top: 56px;
}

.comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding: 16px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-list .avatar {
	float: left;
	margin-right: 14px;
	border-radius: 50%;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 4px;
}

.comment-respond .submit {
	padding: 8px 24px;
	font-weight: 600;
	color: #fff;
	background: var(--primary);
	border: 0;
	border-radius: var(--radius-btn);
}

/* ------------------------------------------------------------------
 * Service pages
 * ---------------------------------------------------------------- */
.service-hero-art {
	overflow: hidden;
	border-radius: var(--radius);
}

.service-hero-art .art-wide,
.service-hero-art .service-hero-img {
	width: 100%;
	border-radius: var(--radius);
}

.service-hero-img {
	display: block;
	width: 100%;
	height: auto;
}

.service-intro .eyebrow {
	display: block;
}

.service-intro h2 {
	color: var(--ink);
}

@media (max-width: 991px) {
	.post-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.feature-card-art {
		min-height: 220px;
	}
}
