/*
Theme Name:     Prajwol
Theme URI:      https://prajwolshrestha.com.np 
Description:    Theme for Prajwol Shrestha
Author:         Webknit
Author URI:     https://webknitdigital.com
Template:       twentytwentyfive
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html   
Tags:
Text Domain:    prajwol
*/


/* Links */
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Header and navigation */
.wp-block-site-title a,
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover { text-decoration: underline; }
.wp-block-navigation .current-menu-item > a {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent-1);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Headings */
h1.wp-block-heading { font-size: clamp(36px, 4.2vw, 54px); }
.ps-h1-sub { display: block; font-weight: 500; color: var(--wp--preset--color--accent-3); }

/* Small mono labels (side panels, meta strips) */
.is-style-meta-label {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
}
.ps-time { margin: 0; }

/* Inline link groups */
.ps-links a { margin-right: 22px; }
.ps-footer-links a { margin-left: 16px; }

/* Project rows */
.ps-row { transition: background-color .2s ease; }
.ps-row:hover { background: var(--wp--preset--color--accent-6); }
.ps-row h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ps-row h3 a:hover { text-decoration: underline; }
.ps-row p { margin-top: 0; }

/* Columns: no extra space below */
.wp-block-columns { margin-bottom: 0; }

/* Bigger list bullets (Plex Sans draws a small disc) */
.wp-block-list li::marker { font-size: 1.35em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Contact form (Contact Form 7) */
.wpcf7 form > p, .wpcf7 .ps-cf-row > p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-size: 15px; font-weight: 600; }
.wpcf7 label br { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 .ps-req { color: #8A3B2E; }
.wpcf7 .ps-opt { font-weight: 400; color: var(--wp--preset--color--accent-4); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border: 1px solid #C9CCC7;
	border-radius: 4px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 textarea { line-height: 1.6; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-1);
	box-shadow: 0 0 0 3px rgba(47, 93, 70, .18);
}
.ps-cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 18px; }
.ps-cf-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.wpcf7 input[type="submit"] {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--accent-2); }
.ps-cf-note { font-size: 14px; color: var(--wp--preset--color--accent-4); }
.wpcf7 .wpcf7-spinner { margin: 0; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 14px; font-weight: 400; color: #8A3B2E; }
.wpcf7 form .wpcf7-response-output { margin: 8px 0 0; padding: 12px 14px; border-radius: 4px; font-size: 15px; }

/* Project pages */
.ps-lead { font-size: 18px; line-height: 1.7; color: var(--wp--preset--color--accent-3); max-width: 760px; }
.ps-lead p { margin: 0; }
.ps-meta-strip p, .ps-meta-strip .wp-block-post-terms { margin: 0; font-size: 15px; }
.ps-meta-strip .wp-block-post-terms a { color: inherit; }
.ps-live:not(:has(a[href])) { display: none; }
.ps-live .wp-block-buttons { margin: 0; }
.ps-live .wp-block-button__link { background: none; color: var(--wp--preset--color--accent-1); padding: 0; border-radius: 0; font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.ps-live .wp-block-button__link:hover { background: none; color: var(--wp--preset--color--accent-2); }
.ps-shot img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ps-project-content { display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 1fr); }
.ps-project-content > * { grid-column: 2; margin: 0; padding-left: 64px; }
.ps-project-content > * + * { margin-top: 12px; }
.ps-project-content > h2 { grid-column: 1; margin: 40px 0 0; padding: 40px 0 0; border-top: 1px solid var(--wp--preset--color--accent-5); font-size: 26px; }
.ps-project-content > h2 + * { margin-top: 40px; padding-top: 46px; border-top: 1px solid var(--wp--preset--color--accent-5); }
.ps-project-content > h2:first-child, .ps-project-content > h2:first-child + * { border-top: 0; padding-top: 0; margin-top: 0; }
.ps-project-content > ul, .ps-project-content > ol { padding-left: 84px; }
.ps-project-content > .wp-block-spacer { display: none; }
@media (max-width: 781px) {
	.ps-project-content { grid-template-columns: minmax(0, 1fr); }
	.ps-project-content > * { grid-column: 1; padding-left: 0; }
	.ps-project-content > h2 { margin-top: 32px; padding-top: 32px; }
	.ps-project-content > h2 + * { border-top: 0; padding-top: 8px; margin-top: 0; }
	.ps-project-content > ul, .ps-project-content > ol { padding-left: 20px; }
}
.ps-tech { font-family: var(--wp--preset--font-family--ibm-plex-sans); font-size: 17px; line-height: 1.7; color: var(--wp--preset--color--accent-3); }
@media (min-width: 782px) {
	/* Technologies used: match the 28% / content grid above */
	.wp-block-columns:has(> .wp-block-column > .ps-tech) { display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 1fr); gap: 0; }
	.wp-block-column:has(> .ps-tech) { padding-left: 64px; }
}
.ps-tech a { color: inherit; text-decoration: none; }
.ps-tech a:hover { text-decoration: underline; }
 
/* Home: Tools & technologies rows keep the label and values side by side */
.ps-spec-value { flex: 1 1 0; min-width: 220px; }

/* Project lists */
.ps-row .wp-block-post-excerpt, .ps-row .wp-block-post-excerpt__excerpt { margin: 0; }
.ps-row .wp-block-read-more { font-weight: 600; }
 
/* Category filters */
.ps-filters p { margin: 0; }
.ps-cat-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ps-filters .ps-cat-pills { display: contents; } /* pills flow on the same line as "All projects" */
.ps-cat-pills li a, .ps-pill-all a { display: inline-block; padding: 8px 14px; border: 1px solid #C9CCC7; border-radius: 999px; color: var(--wp--preset--color--contrast); font-size: 14px; text-decoration: none; }
.ps-cat-pills li a:hover, .ps-pill-all a:hover { border-color: var(--wp--preset--color--accent-1); }
.ps-cat-pills .current-cat a, .post-type-archive-project .ps-pill-all a { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: #fff; font-weight: 600; }
 
/* Search */
.ps-search .wp-block-search__input { border: 1px solid #C9CCC7; border-radius: 4px; padding: 10px 12px; font: inherit; }
.ps-search .wp-block-search__button { background: var(--wp--preset--color--accent-1); color: #fff; border: 0; border-radius: 4px; padding: 0 20px; font-weight: 600; }
 
/* FAQ (Rank Math FAQ block) */
.ps-faq .rank-math-list { display: flex; flex-direction: column; gap: 26px; }
.ps-faq .rank-math-list-item { margin: 0; padding: 0; }
.ps-faq .rank-math-question { font-family: var(--wp--preset--font-family--ibm-plex-sans); font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin: 0 0 6px; }
.ps-faq .rank-math-answer { color: var(--wp--preset--color--accent-3); }
.ps-faq .rank-math-answer p { margin: 0; }
 
/* Term lists: normal weight (the parent theme sets 600) */
.ps-tech, .ps-tech a, .ps-meta-strip .wp-block-post-terms, .ps-meta-strip .wp-block-post-terms a { font-weight: 400; }
