/* ==========================================================================
   Inner page templates (about, services, service detail, process, careers,
   contact) + polish for page / single / blog / 404. Tokens only.
   ========================================================================== */

/* Stacking: avoid double paddings between consecutive sections */
.pv-section--flush-bottom { padding-bottom: 0; }
.pv-section--flush-bottom + .pv-section { padding-top: clamp(40px, 6vw, 72px); }
.pv-process + .pv-why, .pv-services + .pv-process { padding-top: clamp(48px, 7vw, 88px); }
.pv-main > .pv-section:last-child:not(.pv-404) { padding-bottom: clamp(64px, 9vw, 104px); }
.pv-contact + .pv-map-section { padding-bottom: clamp(64px, 9vw, 104px); }
.pv-contact:has(+ .pv-map-section) { padding-bottom: clamp(32px, 5vw, 56px); }
.pv-page-hero + .pv-section--tight { padding-top: clamp(40px, 6vw, 72px); }
/* sections already carry bottom padding; CTA band follows directly */
.pv-section + .pv-cta-wrap { padding-top: 0; }

/* About */
.pv-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pv-about__grid > * { min-width: 0; }
.pv-glance { position: sticky; top: calc(var(--pv-scroll-offset, 96px) + 16px); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; border-radius: var(--pv-r-lg); box-shadow: 0 18px 44px var(--pv-shadow); }
.pv-glance__title { font-size: 12px; font-family: var(--pv-font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-accent); margin: 0; }
.pv-glance__name { font-family: var(--pv-font-heading); font-weight: var(--pv-heading-weight); font-size: 22px; line-height: 1.25; color: var(--pv-heading); margin: 0; }
.pv-glance__list { gap: 18px; }
.pv-glance__list .pv-contact__value { margin-top: 0; }
.pv-glance__list li { align-items: center; }
.pv-glance__list li > .pv-icon-tile { flex: none; }
@media (max-width: 960px) {
	.pv-about__grid { grid-template-columns: 1fr; }
	.pv-glance { position: static; }
}

/* Service detail */
.pv-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.pv-detail > * { min-width: 0; }
.pv-detail__side { position: sticky; top: calc(var(--pv-scroll-offset, 96px) + 16px); display: flex; flex-direction: column; gap: 20px; }
.pv-side-card { padding: 26px; border-radius: var(--pv-r-md); display: flex; flex-direction: column; gap: 16px; }
.pv-side-card__title { font-family: var(--pv-font-heading); font-weight: var(--pv-heading-weight); font-size: 21px; margin: 0; }
.pv-side-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.pv-side-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 16px; border-radius: var(--pv-r-sm); color: var(--pv-text); font-weight: 600; font-size: 15px; line-height: 1.35; background: var(--pv-surface-2); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.pv-side-list a svg { flex: none; opacity: .55; }
.pv-side-list a:hover { border-color: var(--pv-border-strong); color: var(--pv-heading); }
.pv-side-list a.is-current { background: var(--pv-accent); color: var(--pv-on-accent); }
.pv-side-list a.is-current svg { opacity: 1; }
.pv-side-card--contact .pv-contact__list { gap: 14px; }
.pv-detail .pv-prose h2:first-child { margin-top: 0; }
@media (max-width: 960px) {
	.pv-detail { grid-template-columns: 1fr; }
	.pv-detail__side { position: static; }
}
@media (max-width: 600px) { .pv-side-card { padding: 22px; } }

/* Careers */
.pv-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: clamp(32px, 5vw, 48px); padding: clamp(24px, 4vw, 36px); border-radius: var(--pv-r-lg); box-shadow: 0 18px 44px var(--pv-shadow); }
.pv-apply__text { flex: 1 1 280px; min-width: 0; }
.pv-apply__title { font-family: var(--pv-font-heading); font-weight: var(--pv-heading-weight); font-size: 24px; margin: 0 0 6px; }
.pv-apply__text p { margin: 0 0 8px; color: var(--pv-muted); font-size: 15.5px; }
.pv-apply__mail { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 600px) { .pv-apply > .pv-btn { width: 100%; } }

/* Contact */
.pv-map-section { padding: 0 0 clamp(64px, 9vw, 104px); }
.pv-map { display: block; width: 100%; aspect-ratio: 16 / 7; min-height: 300px; border: 0; border-radius: var(--pv-r-lg); background: var(--pv-surface-2); box-shadow: inset 0 0 0 1px var(--pv-border); }
.pv-map-section .pv-container { overflow: hidden; }

/* page.php / single.php polish */
.pv-single__media img { aspect-ratio: 16 / 9; object-fit: cover; }
.pv-post-nav__label, .pv-post-nav__title { display: block; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.nav-links > div { flex: 1 1 240px; min-width: 0; padding: 16px 20px; background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-r-md); }
.nav-links .nav-next { text-align: right; }
.nav-links a { display: block; }
.pv-prose, .pv-prose * { overflow-wrap: break-word; }
.pv-prose iframe, .pv-prose video { max-width: 100%; }

/* Blog pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--pv-r-pill); background: var(--pv-surface); border: 1px solid var(--pv-border); color: var(--pv-text); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--pv-accent); border-color: var(--pv-accent); color: var(--pv-on-accent); }
.pagination .nav-links > * { padding: 0; border: 0; background: none; flex: none; }

/* 404 + empty */
.pv-404 .search-form, .pv-empty .search-form { max-width: 460px; margin: 0 auto; }
.pv-404 .pv-btn-row { justify-content: center; }

/* Blog layout: single column must not size to min-content (overflow at 360px) */
@media (max-width: 960px) { .pv-blog-layout.has-sidebar { grid-template-columns: minmax(0, 1fr); } }
.pv-blog-layout > *, .pv-sidebar .pv-widget { min-width: 0; }
.pv-sidebar .wp-block-search__inside-wrapper { flex-wrap: wrap; }

/* White "why" band followed by the CTA: the CTA sits on the page bg, so it needs its own top space */
.pv-why + .pv-cta-wrap { padding-top: clamp(48px, 7vw, 88px); }

/* Intro text above a full-width grid: align to the container's left edge, like the grid below */
.pv-section--flush-bottom > .pv-container--text { max-width: var(--pv-container, 1240px); }
.pv-section--flush-bottom > .pv-container--text > .pv-prose { max-width: 760px; }

/* Previous/next: main.css already boxes the links, so drop the wrapper box from the generic .nav-links rule */
.post-navigation .nav-links > div { padding: 0; border: 0; background: none; border-radius: 0; }
.post-navigation .nav-links { display: grid; }

/* Core search block inside sidebar widgets (matches theme form fields) */
.wp-block-search__label { display: block; font-weight: 700; font-size: 16px; color: var(--pv-heading); margin-bottom: 10px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1 1 140px; min-width: 0; min-height: 48px; padding: 12px 16px; font: inherit; font-size: 15px; color: var(--pv-text); background: var(--pv-input-bg); border: 1px solid var(--pv-border-strong); border-radius: 12px; }
.wp-block-search__input:focus { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 3px var(--pv-accent-soft); }
.wp-block-search__button { min-height: 48px; padding: 0 20px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--pv-on-accent); background: var(--pv-accent); border: 0; border-radius: var(--pv-r-pill); }
.wp-block-search__button:hover { background: var(--pv-primary); color: #fff; }
.pv-sidebar .wp-block-heading { font-family: var(--pv-font-body); font-size: 16px; font-weight: 700; color: var(--pv-heading); margin: 0 0 14px; }
.pv-sidebar .wp-block-latest-posts__list, .pv-sidebar .wp-block-latest-comments { padding: 0; margin: 0; }
.pv-sidebar li > a { display: inline-block; padding: 6px 0; }

/* Page hero: breathing room between breadcrumbs and eyebrow/title */
.pv-breadcrumbs ol { margin-bottom: 16px; }

/* Floating rail: the mobile toggle button was leaking onto desktop (display rule order in main.css) */

/* Why section: give the heading column room (was wrapping to 4 lines at 1440) */
@media (min-width: 1025px) {
	.pv-why__content { flex: 1 1 520px; }
	.pv-why__cards { flex: 1 1 480px; }
}
/* Avoid orphan words in headings */
.pv-h2, .pv-page-hero__title, .pv-cta__title, .pv-testimonial__quote, .pv-service-card__title, .pv-why-card__title { text-wrap: balance; }
.pv-lead, .pv-body-lg, .pv-prose p { text-wrap: pretty; }

/* Placeholder text was ~1.9:1 on the input background in light mode */
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder, .pv-search__input::placeholder, .wp-block-search__input::placeholder, .comment-form ::placeholder { color: var(--pv-muted); opacity: .9; }

/* Hero card: keep the phone badge from covering the last row of tiles (esp. with wider fonts) */
.pv-hero-card { padding-bottom: 60px; }
@media (max-width: 600px) { .pv-hero-card { padding-bottom: 44px; } }

/* ---------- Careers banner with job openings ---------- */
.pv-page-hero__inner--split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px 64px; align-items: center; }
.pv-page-hero__text { min-width: 0; }
.pv-page-hero__aside { min-width: 0; }
.pv-page-hero__actions { margin-top: 28px; }
.pv-page-hero--light .pv-page-hero__actions .pv-btn--light { background: var(--pv-accent); color: var(--pv-on-accent); }
@media (max-width: 960px) { .pv-page-hero__inner--split { grid-template-columns: 1fr; } }

.pv-jobs { background: var(--pv-surface); color: var(--pv-text); border: 1px solid var(--pv-border); border-radius: var(--pv-r-lg); padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.pv-jobs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pv-jobs__title { font-family: var(--pv-font-body); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pv-accent); margin: 0; }
.pv-jobs__count { min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--pv-accent-soft); color: var(--pv-accent); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.pv-jobs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 961px) { .pv-jobs__list { max-height: 460px; overflow-y: auto; padding-right: 2px; } }
.pv-job { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: var(--pv-r-sm); border: 1px solid var(--pv-border); background: var(--pv-surface-2); color: var(--pv-heading); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; min-height: 64px; }
.pv-job:hover { color: var(--pv-heading); border-color: var(--pv-accent); transform: translateY(-1px); box-shadow: 0 10px 24px var(--pv-shadow); }
.pv-job__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv-job__title { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-job__meta { font-size: 13.5px; color: var(--pv-muted); }
.pv-job__apply { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--pv-accent); color: var(--pv-on-accent); font-weight: 700; font-size: 13.5px; }
.pv-jobs__empty { margin: 0 0 16px; color: var(--pv-muted); font-size: 15px; line-height: 1.6; }
[data-theme="dark"] .pv-jobs { box-shadow: 0 24px 60px rgba(0,0,0,.4); }
[data-theme="dark"] .pv-job__apply { background: var(--pv-accent-strong, var(--pv-accent)); color: #fff; }
@media (max-width: 480px) {
	.pv-jobs { padding: 18px; }
	.pv-job { flex-direction: column; align-items: flex-start; }
	.pv-job__apply { align-self: stretch; justify-content: center; min-height: 40px; }
}

/* Apply card: icon aligned with the heading, balanced text, consistent button. */
.pv-apply { align-items: flex-start; gap: 20px 24px; }
.pv-apply > .pv-icon-tile { margin-top: 2px; }
.pv-apply__text p { max-width: 46ch; text-wrap: pretty; }
.pv-apply > .pv-btn { align-self: center; }
[data-theme="dark"] .pv-apply { background: var(--pv-surface); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .pv-apply .pv-btn--primary,
[data-theme="dark"] .pv-jobs .pv-btn--primary { background: var(--pv-accent-strong, var(--pv-accent)); color: #fff; }
[data-theme="dark"] .pv-apply .pv-btn--primary:hover,
[data-theme="dark"] .pv-jobs .pv-btn--primary:hover { background: color-mix(in srgb, var(--pv-accent-strong, var(--pv-accent)) 82%, #000); color: #fff; }
@media (max-width: 600px) { .pv-apply > .pv-btn { align-self: stretch; } }
