/*
 * Precision Home 8.1 release polish.
 * A deliberately small final layer for touch, readability and anchor navigation.
 */
:root{
	--ph-release-focus:0 0 0 4px rgba(212,175,55,.24);
}
html{scroll-padding-top:clamp(88px,10vw,126px)}
:where(section,[id^="service-"],[id^="local-"],#ph-service-request,#ph-local-request){scroll-margin-top:clamp(88px,10vw,126px)}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ph-gold);outline-offset:3px;box-shadow:var(--ph-release-focus)}
:where(button,.ph-button,input[type="submit"],input[type="button"],select){min-height:44px}
:where(h1,h2,h3){text-wrap:balance}
:where(p,li){overflow-wrap:anywhere}
.ph-service-jump .ph-container,.ph-local-service-jump .ph-container{scrollbar-width:thin;scrollbar-color:rgba(142,59,67,.34) transparent}
.ph-service-jump .ph-container::-webkit-scrollbar,.ph-local-service-jump .ph-container::-webkit-scrollbar{height:4px}
.ph-service-jump .ph-container::-webkit-scrollbar-thumb,.ph-local-service-jump .ph-container::-webkit-scrollbar-thumb{background:rgba(142,59,67,.34);border-radius:999px}
@media(max-width:767px){
	body{font-size:16px}
	
	
	.ph-service-jump .ph-container,.ph-local-service-jump .ph-container{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;-webkit-overflow-scrolling:touch}
	.ph-service-jump a,.ph-local-service-jump a{flex:0 0 auto;scroll-snap-align:start;min-height:42px;display:inline-flex;align-items:center}
}
@media(prefers-reduced-motion:reduce){
	html{scroll-behavior:auto}
}

.ph-service-customer-guide{background:linear-gradient(180deg,#fff,#faf8f6)}
.ph-service-customer-guide__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}
.ph-service-customer-guide__grid article{background:#fff;border:1px solid rgba(21,23,27,.08);border-radius:18px;padding:22px;box-shadow:0 12px 34px rgba(21,23,27,.055)}
.ph-service-customer-guide__grid article>span{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--ph-primary-soft);color:var(--ph-primary);font-weight:800;margin-bottom:14px}
.ph-service-customer-guide__grid h3{font-size:clamp(1.05rem,1.5vw,1.22rem);margin:0 0 9px;color:var(--ph-dark)}
.ph-service-customer-guide__grid p{margin:0;line-height:1.9;color:var(--ph-text)}
@media(max-width:1023px){.ph-service-customer-guide__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ph-service-customer-guide__grid{grid-template-columns:1fr;gap:12px}.ph-service-customer-guide__grid article{padding:18px;border-radius:16px}}

.ph-project-faq{padding:clamp(54px,7vw,92px) 0;background:#faf8f6}
.ph-project-faq__grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,70px);align-items:start}
.ph-project-faq__grid h2{margin:.5rem 0 1rem;font-size:clamp(1.7rem,3vw,2.5rem);color:var(--ph-dark)}
.ph-project-faq__grid header>p:last-child{line-height:1.9;color:var(--ph-text)}
.ph-project-faq__items{display:grid;gap:10px}
.ph-project-faq__items details{background:#fff;border:1px solid rgba(21,23,27,.08);border-radius:15px;padding:0 18px;box-shadow:0 8px 26px rgba(21,23,27,.045)}
.ph-project-faq__items summary{cursor:pointer;font-weight:800;padding:18px 28px 18px 0;position:relative}
.ph-project-faq__items summary::before{content:"+";position:absolute;right:0;top:16px;color:var(--ph-primary);font-size:1.25rem}
.ph-project-faq__items details[open] summary::before{content:"–"}
.ph-project-faq__items details p{margin:0;padding:0 0 18px;line-height:1.9;color:var(--ph-text)}
@media(max-width:767px){.ph-project-faq__grid{grid-template-columns:1fr}.ph-project-faq__items details{padding:0 15px}}

.ph-skip-link{position:fixed;top:10px;right:10px;z-index:100000;transform:translateY(-160%);background:#fff;color:var(--ph-dark);border:2px solid var(--ph-gold);border-radius:10px;padding:10px 14px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.ph-skip-link:focus{transform:translateY(0)}
:where(.ph-contact-page,.ph-legal-page,.ph-about-page,.ph-blog-page) :where(p,li){line-height:1.9}
:where(.ph-contact-page,.ph-service-form,.ph-local-service-form) :where(input,select,textarea){font-size:16px}
:where(.ph-contact-page,.ph-service-form,.ph-local-service-form) textarea{min-height:120px;resize:vertical}
@media(max-width:600px){
	:where(.ph-contact-page,.ph-service-form,.ph-local-service-form) :where(input,select,textarea,button){width:100%;max-width:100%}
	:where(.ph-legal-page,.ph-about-page,.ph-blog-page) h1{font-size:clamp(1.85rem,8vw,2.45rem)}
	:where(.ph-legal-page,.ph-about-page,.ph-blog-page) h2{font-size:clamp(1.4rem,6vw,1.9rem)}
}

/* v8.5 final mobile guardrails — layout safety only. */
:where(img,svg,video,iframe){max-width:100%}
:where(img,video){height:auto}
:where(table){max-width:100%}
@media(max-width:767px){
	:where(.entry-content,.ph-service-single,.ph-local-service-page,.ph-project-single) table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
	:where(.entry-content,.ph-service-single,.ph-local-service-page,.ph-project-single) pre{max-width:100%;overflow-x:auto}
	:where(.entry-content,.ph-service-single,.ph-local-service-page,.ph-project-single) a{overflow-wrap:anywhere}
}

/* =========================================================
   v8.6 Visual correction — conservative, no media changes
   ========================================================= */

/* Services hub: reduce oversized/experimental feel and improve scanability. */
.ph-services-hub-hero{
	padding:clamp(4rem,7vw,6.6rem) 0;
	background:
		radial-gradient(circle at 82% 18%,rgba(212,175,55,.14),transparent 25%),
		linear-gradient(135deg,#64232d 0%,#8e3b43 52%,#251419 100%);
}
.ph-services-hub-hero__grid{grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:clamp(2rem,5vw,4.5rem)}
.ph-services-hub-hero h1{font-size:clamp(2.35rem,4.8vw,4.45rem);line-height:1.12;letter-spacing:-.025em}
.ph-services-hub-hero__lead{max-width:720px;font-size:clamp(1rem,1.45vw,1.16rem)}
.ph-services-hub-hero__visual{min-height:430px}
.ph-services-hub-hero__panel{border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.18)}
.ph-services-catalog{background:#f8f6f3}
.ph-services-catalog__grid{align-items:stretch}
.ph-service-card-v3{
	height:100%;
	border:1px solid rgba(21,23,27,.08);
	box-shadow:0 12px 34px rgba(21,23,27,.065);
}
.ph-service-card-v3__body{display:flex;flex-direction:column}
.ph-service-card-v3__body p{flex:1}
.ph-service-card-v3__actions{margin-top:auto}
.ph-services-hub__section-head h2,.ph-services-estimate h2,.ph-services-faq-v3 h2,.ph-services-request h2{font-size:clamp(1.9rem,3.4vw,3.15rem);line-height:1.22}

/* Homepage process: force correct contrast even if cached legacy CSS loads later. */
#home-process.ph-process{
	background:
		radial-gradient(circle at 88% 8%,rgba(142,59,67,.28),transparent 31%),
		radial-gradient(circle at 8% 86%,rgba(212,175,55,.10),transparent 25%),
		linear-gradient(145deg,#11161c 0%,#18212a 55%,#11171e 100%) !important;
	color:#fff;
}
#home-process .ph-process__title{color:#fff}
#home-process .ph-process__description{color:rgba(255,255,255,.78)}
#home-process .ph-process__title span,#home-process .ph-process__eyebrow{color:#f0d06b}

/* Never leave reveal content invisible if JS is delayed or blocked. */
@media (prefers-reduced-motion:reduce){
	.js [data-ph-reveal]{opacity:1!important;transform:none!important}
}

/* Mobile typography and tap targets. */
@media(max-width:700px){
	.ph-services-hub-hero__visual{display:none}
	.ph-services-hub-hero__grid{grid-template-columns:1fr}
	.ph-services-hub-hero h1{font-size:clamp(2rem,9.8vw,2.85rem);line-height:1.2}
	.ph-services-hub-hero__actions{grid-template-columns:1fr}
	.ph-services-hub__button--text{grid-column:auto}
	.ph-services-hub__section-head h2,.ph-services-estimate h2,.ph-services-faq-v3 h2,.ph-services-request h2{font-size:clamp(1.75rem,7vw,2.15rem)}
	#home-process.ph-process{padding:62px 0}
}

/* v8.7 unified motion system: subtle, performance-first. */
.js .ph-motion-item{
	opacity:0;
	transform:translate3d(0,18px,0);
	transition:
		opacity .52s cubic-bezier(.2,.7,.2,1) var(--ph-motion-delay,0ms),
		transform .52s cubic-bezier(.2,.7,.2,1) var(--ph-motion-delay,0ms);
	will-change:opacity,transform;
}
.js .ph-motion-item.is-visible{opacity:1;transform:translate3d(0,0,0);will-change:auto}
@media (hover:hover) and (pointer:fine){
	.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card,.ph-city-card{
		transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
	}
	.ph-service-card-v3:hover,.ph-project-card:hover,.ph-projects-showcase__card:hover,.ph-city-card:hover{transform:translateY(-4px)}
}
@media (hover:none) and (pointer:coarse){
	.ph-service-card-v3:active,.ph-project-card:active,.ph-projects-showcase__card:active,.ph-city-card:active{transform:scale(.985)}
}
@media(max-width:767px){
	.js .ph-motion-item{transform:translate3d(0,13px,0);transition-duration:.42s}
}
@media(prefers-reduced-motion:reduce){
	.js .ph-motion-item,.js .ph-motion-item.is-visible{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}
	.ph-service-card-v3:active,.ph-project-card:active,.ph-projects-showcase__card:active,.ph-city-card:active{transform:none!important}
}

/* =========================================================
   v8.9 Premium visual correction
   Buttons, cards, icons, About, Projects, Service single
   ========================================================= */

/* Never allow CTA text to disappear on hover/focus. */
.ph-services-hub a[class*="button"],.ph-projects-page a[class*="button"],.ph-page-hero a,.ph-service-single a[class*="button"],.ph-service-hero a[class*="button"]{text-decoration:none}
.ph-services-hub__button--primary:hover,.ph-services-hub__button--primary:focus-visible{color:#2c1a06!important;background:linear-gradient(135deg,#f1d477,#d4af37)!important}
.ph-services-hub__button--glass:hover,.ph-services-hub__button--glass:focus-visible,.ph-services-hub__button--text:hover,.ph-services-hub__button--text:focus-visible{color:#fff!important;background:rgba(255,255,255,.15)!important;border-color:rgba(255,255,255,.42)!important}
.ph-projects-hero__button--primary:hover,.ph-projects-hero__button--primary:focus-visible{color:#2b1705!important}
.ph-projects-hero__button--secondary:hover,.ph-projects-hero__button--secondary:focus-visible{color:#fff!important}
.ph-page-hero__actions a:hover,.ph-page-hero__actions a:focus-visible{color:#742f36!important;background:#fff!important}
.ph-page-hero__actions a.is-primary:hover,.ph-page-hero__actions a.is-primary:focus-visible{color:#fff!important;background:#742f36!important}

/* Services hero trust boxes: icon beside copy, not above text. */
.ph-services-hub-hero__trust li{display:flex;align-items:center;gap:.8rem;min-width:0}
.ph-services-hub-hero__trust-icon{display:grid!important;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0!important;border-radius:13px;background:rgba(212,175,55,.14);color:#f1d477;border:1px solid rgba(212,175,55,.24)}
.ph-services-hub-hero__trust-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ph-services-hub-hero__trust-copy{min-width:0}
.ph-services-hub-hero__trust-copy strong{font-size:.94rem;color:#fff}
.ph-services-hub-hero__trust-copy small{display:block;margin-top:.18rem;color:rgba(255,255,255,.68);font-size:.78rem}

/* Premium service cards: icon integrated beside title/meta area. */
.ph-service-card-v3{border-radius:22px;border-color:rgba(116,47,54,.10);box-shadow:0 14px 38px rgba(32,20,24,.075)}
.ph-service-card-v3__media{aspect-ratio:16/9}
.ph-service-card-v3__service-icon{top:auto!important;bottom:14px!important;inset-inline-start:14px!important;width:44px!important;height:44px!important;border-radius:13px!important;background:rgba(116,47,54,.92)!important;border:1px solid rgba(255,255,255,.35)!important;box-shadow:0 9px 22px rgba(0,0,0,.18)}
.ph-service-card-v3__body{padding:1.25rem 1.3rem 1.35rem}
.ph-service-card-v3__meta{padding-inline-start:0;margin-bottom:.75rem}
.ph-service-card-v3 h3{font-size:1.25rem;line-height:1.45}
.ph-service-card-v3__actions a{border:1px solid rgba(116,47,54,.10)}
.ph-service-card-v3__actions a:hover,.ph-service-card-v3__actions a:focus-visible{color:#fff!important;background:#8e3b43!important}

/* About services become image-led premium cards. */
.ph-about-page__services{background:linear-gradient(180deg,#fff,#faf7f4)}
.ph-about-page__services-grid{gap:1.2rem!important}
.ph-about-page__services-grid article{padding:0!important;overflow:hidden;border-radius:22px!important;background:#fff!important;box-shadow:0 14px 38px rgba(35,22,25,.07)}
.ph-about-page__service-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,#742f36,#15171b)}
.ph-about-page__service-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.ph-about-page__services-grid article:hover .ph-about-page__service-media img{transform:scale(1.045)}
.ph-about-page__service-media-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,rgba(18,10,12,.58))}
.ph-about-page__service-icon{position:absolute!important;right:14px;bottom:14px;margin:0!important;width:46px!important;height:46px!important;border:1px solid rgba(255,255,255,.35);box-shadow:0 8px 22px rgba(0,0,0,.2)}
.ph-about-page__service-body{padding:1.15rem 1.25rem 1.3rem}
.ph-about-page__service-body h3{margin:0 0 .55rem!important}
.ph-about-page__service-body p{min-height:3.5em}
.ph-about-page__service-link{align-items:center;gap:.4rem}

/* Projects hero cards: richer contrast and clear image/title treatment. */
.ph-projects-hero__visual{gap:12px!important}
.ph-projects-hero__visual-item{border-radius:20px!important;border:1px solid rgba(212,175,55,.28)!important;background:linear-gradient(145deg,#3b2027,#15171b)!important;box-shadow:0 18px 45px rgba(0,0,0,.24)!important}
.ph-projects-hero__visual-item:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(116,47,54,.03),rgba(10,8,9,.82));pointer-events:none}
.ph-projects-hero__visual-title{z-index:3!important;right:14px!important;left:14px!important;bottom:13px!important;color:#fff!important;font-size:12px!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ph-projects-hero__placeholder{background:radial-gradient(circle at 75% 15%,rgba(212,175,55,.16),transparent 30%),linear-gradient(145deg,#742f36,#15171b)!important;color:#fff!important}

/* Single service: unified premium hierarchy. */
.ph-service-single{background:#f8f6f3}
.ph-service-single .ph-service-jump{position:sticky;top:var(--ph-header-height,76px);z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(116,47,54,.10);box-shadow:0 8px 24px rgba(26,17,19,.05)}
.ph-service-single .ph-service-jump .ph-container{display:flex;gap:.45rem;overflow-x:auto;scrollbar-width:none;padding-block:.7rem}
.ph-service-single .ph-service-jump a{flex:0 0 auto;padding:.58rem .78rem;border-radius:999px;background:#f7efef;color:#742f36;font-size:.82rem;font-weight:800;text-decoration:none}
.ph-service-single .ph-service-jump a:hover,.ph-service-single .ph-service-jump a:focus-visible{background:#742f36;color:#fff!important}
.ph-service-single .ph-service-section{padding:clamp(3.8rem,7vw,6.5rem) 0}
.ph-service-single .ph-service-section:nth-of-type(even){background:#fff}
.ph-service-single :where(.ph-service-section h2){font-size:clamp(1.75rem,3.2vw,2.7rem);line-height:1.3;color:#15171b}
.ph-service-single :where(.ph-service-section p,.ph-service-section li){line-height:1.9}
.ph-service-single :where(.ph-service-card,.ph-service-solution-card,.ph-service-step,.ph-service-review-card){border-radius:18px;border:1px solid rgba(116,47,54,.09);box-shadow:0 12px 34px rgba(30,19,22,.055);background:#fff}
.ph-service-single .ph-service-section img{border-radius:18px}

/* Contact page clarity. */
.ph-contact-page :where(input,select,textarea){background:#fff;color:#15171b;border-color:#dcd4cf}
.ph-contact-page :where(button,input[type=submit]){font-weight:850}
.ph-contact-page :where(button,input[type=submit]):hover{color:#fff!important}

/* Mobile motion + card safety. */
@media(max-width:767px){
	.ph-services-hub-hero__trust{grid-template-columns:1fr!important}
	.ph-services-hub-hero__trust li{padding:.9rem!important}
	.ph-service-card-v3__body{padding:1.05rem 1.05rem 1.15rem}
	.ph-service-card-v3__actions{display:grid!important;grid-template-columns:1fr 1fr;gap:.55rem}
	.ph-service-card-v3__actions a{width:100%!important;min-height:44px}
	.ph-about-page__service-body p{min-height:0}
	.ph-projects-hero__visual{grid-template-rows:repeat(2,132px)!important}
	.ph-service-single .ph-service-jump{top:64px}
}
@media(prefers-reduced-motion:reduce){
	.ph-service-card-v3__media img,.ph-about-page__service-media img,.ph-projects-hero__visual-item img{transition:none!important}
}

/* =========================================================
   v9.0 Single Project — premium case-study layout
   ========================================================= */
.ph-single-project{background:#f8f6f3;overflow:clip}
.ph-project-single-hero{min-height:min(760px,82vh)}
.ph-project-single-hero__content{padding:clamp(5.4rem,10vw,8.2rem) 0 clamp(7.5rem,13vw,10rem)}
.ph-project-single-hero__title{max-width:850px;font-size:clamp(2.35rem,5.2vw,4.65rem);line-height:1.16}
.ph-project-single-hero__description{max-width:760px;font-size:clamp(.98rem,1.4vw,1.12rem)}
.ph-project-single-hero__badge-link{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border-radius:999px;background:rgba(142,59,67,.9);border:1px solid rgba(212,175,55,.55);color:#fff!important;text-decoration:none;font-size:11px;font-weight:800}
.ph-project-single-hero__badge-link:hover,.ph-project-single-hero__badge-link:focus-visible{background:#d4af37;color:#251706!important}
.ph-project-single-hero__location-link{display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.82)!important;text-decoration:none;font-size:12px;font-weight:750}
.ph-project-single-hero__location-link:hover{color:#efd16b!important}
.ph-project-single-hero__facts{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:0;border-radius:20px}
.ph-project-single-hero__fact{min-height:84px;display:grid;align-content:center;border-inline-start:1px solid rgba(116,47,54,.08)}
.ph-project-single-hero__fact strong{font-size:.92rem}

.ph-project-single-nav{position:sticky;top:var(--ph-header-height,76px);z-index:40;background:rgba(255,255,255,.95);border-bottom:1px solid rgba(116,47,54,.09);box-shadow:0 8px 28px rgba(25,16,18,.055);backdrop-filter:blur(14px)}
.ph-project-single-nav .ph-container{display:flex;align-items:center;gap:.45rem;overflow-x:auto;padding-block:.72rem;scrollbar-width:none}
.ph-project-single-nav .ph-container::-webkit-scrollbar{display:none}
.ph-project-single-nav a{flex:0 0 auto;padding:.58rem .8rem;border-radius:999px;background:#f7efef;color:#742f36;text-decoration:none;font-size:.82rem;font-weight:800;transition:background .2s ease,color .2s ease,transform .2s ease}
.ph-project-single-nav a:hover,.ph-project-single-nav a:focus-visible{background:#742f36;color:#fff!important;transform:translateY(-1px)}
.ph-project-single-nav a.is-cta{background:#d4af37;color:#2c1a06}

.ph-project-overview{padding:clamp(4.6rem,8vw,7rem) 0}
.ph-project-overview__header{margin-bottom:2rem}
.ph-project-overview__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.ph-project-overview__card{height:100%;padding:1.4rem;border-radius:20px;box-shadow:0 14px 38px rgba(30,19,22,.06)}
.ph-project-overview__intro{font-size:1rem;max-width:920px}
.ph-project-overview__card h3{font-size:1.18rem}

.ph-project-featured,.ph-project-before-after,.ph-project-timeline,.ph-project-gallery,.ph-project-faq,.ph-project-single-related{scroll-margin-top:145px}
.ph-project-overview{scroll-margin-top:145px}
.ph-project-before-after,.ph-project-gallery{background:#fff}
.ph-project-faq{background:#f8f6f3}

.ph-project-faq__grid{gap:clamp(2rem,5vw,5rem)}
.ph-project-faq details{border:1px solid rgba(116,47,54,.10)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 28px rgba(30,19,22,.045)}
.ph-project-faq summary{font-weight:850;color:#15171b}
.ph-project-faq details[open] summary{color:#742f36}

.ph-project-single-related{padding:clamp(4.5rem,8vw,7rem) 0;background:linear-gradient(180deg,#fff,#f8f3ef)}
.ph-project-single-related__head{align-items:end}
.ph-project-single-related__grid{gap:1.1rem}
.ph-project-single-cta{margin-top:clamp(2.5rem,5vw,4.5rem)!important;padding:clamp(1.6rem,4vw,2.8rem)!important;border-radius:24px!important;background:radial-gradient(circle at 85% 15%,rgba(212,175,55,.16),transparent 28%),linear-gradient(135deg,#5f252d,#8e3b43 52%,#26171b)!important;color:#fff!important;border:1px solid rgba(212,175,55,.28)!important;box-shadow:0 22px 55px rgba(61,25,31,.18)}
.ph-project-single-cta p{color:#efd16b!important;font-weight:850}
.ph-project-single-cta h2{color:#fff!important;font-size:clamp(1.65rem,3vw,2.45rem)!important}
.ph-project-single-cta span{color:rgba(255,255,255,.78)!important;line-height:1.85}
.ph-project-single-cta__actions a{min-height:46px;border-radius:12px!important;font-weight:850!important;text-decoration:none!important}
.ph-project-single-cta__actions a:hover,.ph-project-single-cta__actions a:focus-visible{color:#fff!important;background:rgba(255,255,255,.14)!important;border-color:rgba(255,255,255,.4)!important}
.ph-project-single-cta__actions a.is-primary{background:#d4af37!important;color:#2c1a06!important;border-color:#d4af37!important}
.ph-project-single-cta__actions a.is-primary:hover,.ph-project-single-cta__actions a.is-primary:focus-visible{background:#efd16b!important;color:#2c1a06!important}

@media(max-width:900px){
	.ph-project-overview__grid{grid-template-columns:1fr}
	.ph-project-single-hero{min-height:auto}
}
@media(max-width:767px){
	.ph-project-single-hero{padding-top:22px}
	.ph-project-single-hero__content{padding:4.5rem 0 6.8rem}
	.ph-project-single-hero__title{font-size:clamp(2rem,10vw,2.85rem)}
	.ph-project-single-hero__facts{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-48px}
	.ph-project-single-hero__fact{min-height:76px;padding:.8rem .55rem}
	.ph-project-single-nav{top:64px}
	.ph-project-single-nav .ph-container{padding-inline:.8rem}
	.ph-project-overview{padding-top:4.5rem}
	.ph-project-overview__card{grid-template-columns:46px minmax(0,1fr);gap:.8rem;padding:1.05rem}
	.ph-project-overview__icon{width:46px;height:46px;border-radius:13px}
	.ph-project-single-cta__actions{display:grid!important;grid-template-columns:1fr!important}
	.ph-project-single-cta__actions a{width:100%!important;text-align:center}
}
@media(prefers-reduced-motion:reduce){
	.ph-project-single-nav a{transition:none!important}
}

/* =========================================================
   v9.1 Project single corrective pass
   Fixes timeline contrast, 5-step layout, and content density.
   ========================================================= */

/* Restore the intended dark timeline; v9.0 had overridden the dark base
   with a light background while leaving white typography. */
.ph-single-project .ph-project-timeline{
	position:relative;
	isolation:isolate;
	overflow:hidden;
	background:
		radial-gradient(circle at 88% 12%,rgba(142,59,67,.24),transparent 31%),
		radial-gradient(circle at 8% 88%,rgba(212,175,55,.09),transparent 25%),
		linear-gradient(145deg,#111820 0%,#1a2631 58%,#10161d 100%)!important;
	color:#fff!important;
}
.ph-single-project .ph-project-timeline__eyebrow{color:#efd16b!important}
.ph-single-project .ph-project-timeline__title{color:#fff!important}
.ph-single-project .ph-project-timeline__title span{color:#efd16b!important}
.ph-single-project .ph-project-timeline__description{color:rgba(255,255,255,.72)!important}
.ph-single-project .ph-project-timeline__content{
	background:rgba(255,255,255,.07)!important;
	border-color:rgba(255,255,255,.12)!important;
	box-shadow:0 14px 34px rgba(0,0,0,.12);
}
.ph-single-project .ph-project-timeline__content h3{color:#fff!important}
.ph-single-project .ph-project-timeline__content p{color:rgba(255,255,255,.72)!important}

/* Do not orphan step 5 on wide screens. */
@media(min-width:1100px){
	.ph-single-project .ph-project-timeline__list{
		grid-template-columns:repeat(auto-fit,minmax(175px,1fr))!important;
		gap:16px!important;
	}
	.ph-single-project .ph-project-timeline__content{min-height:188px!important}
}
@media(min-width:768px) and (max-width:1099px){
	.ph-single-project .ph-project-timeline__list{
		grid-template-columns:repeat(2,minmax(0,1fr))!important;
	}
}

/* Executive summary adds useful project context without inventing details. */
.ph-project-executive-summary{
	display:grid;
	grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
	gap:clamp(1.5rem,4vw,3.8rem);
	align-items:center;
	margin:0 0 2rem;
	padding:clamp(1.35rem,3vw,2rem);
	border:1px solid rgba(116,47,54,.10);
	border-radius:22px;
	background:
		radial-gradient(circle at 88% 12%,rgba(212,175,55,.10),transparent 26%),
		linear-gradient(135deg,#fff,#fbf7f4);
	box-shadow:0 14px 38px rgba(30,19,22,.055);
}
.ph-project-executive-summary__eyebrow{
	margin:0 0 .45rem;
	color:#8e3b43;
	font-size:.78rem;
	font-weight:900;
	letter-spacing:.02em;
}
.ph-project-executive-summary h3{
	margin:0 0 .7rem;
	color:#15171b;
	font-size:clamp(1.35rem,2.3vw,1.9rem);
}
.ph-project-executive-summary p{
	margin:0;
	color:#4b4f56;
	line-height:1.95;
}
.ph-project-executive-summary ul{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:.7rem;
	margin:0;
	padding:0;
	list-style:none;
}
.ph-project-executive-summary li{
	padding:.85rem .9rem;
	border:1px solid rgba(116,47,54,.09);
	border-radius:14px;
	background:#fff;
}
.ph-project-executive-summary li span{
	display:block;
	margin-bottom:.25rem;
	color:#7b7475;
	font-size:.72rem;
	font-weight:750;
}
.ph-project-executive-summary li strong{
	display:block;
	color:#742f36;
	font-size:.88rem;
	line-height:1.45;
}

/* Stronger overview hierarchy and readable cards. */
.ph-single-project .ph-project-overview__header{
	max-width:900px;
}
.ph-single-project .ph-project-overview__header h2{
	font-size:clamp(2rem,4vw,3.2rem);
	line-height:1.25;
}
.ph-single-project .ph-project-overview__intro{
	color:#555b63;
	line-height:1.95;
}
.ph-single-project .ph-project-overview__card{
	border-top:3px solid #8e3b43;
}
.ph-single-project .ph-project-overview__card h3{
	color:#15171b!important;
}
.ph-single-project .ph-project-overview__card p{
	color:#555b63!important;
	line-height:1.9;
}

/* Section headings should always be readable on their actual backgrounds. */
.ph-single-project .ph-project-before-after :where(h2,h3),.ph-single-project .ph-project-gallery :where(h2,h3),.ph-single-project .ph-project-single-related :where(h2,h3){
	color:#15171b;
}
.ph-single-project .ph-project-before-after :where(p),.ph-single-project .ph-project-gallery :where(p),.ph-single-project .ph-project-single-related :where(p){
	color:#5b6067;
}

/* Clean step cards on phones. */
@media(max-width:767px){
	.ph-project-executive-summary{grid-template-columns:1fr;padding:1.15rem;border-radius:18px}
	.ph-project-executive-summary ul{grid-template-columns:1fr 1fr}
	.ph-single-project .ph-project-timeline__item{
		grid-template-columns:48px minmax(0,1fr)!important;
		gap:11px!important;
	}
	.ph-single-project .ph-project-timeline__number{
		width:48px!important;height:48px!important;border-radius:14px!important;
	}
	.ph-single-project .ph-project-timeline__content{
		padding:15px!important;
		min-height:0!important;
	}
}
@media(max-width:430px){
	.ph-project-executive-summary ul{grid-template-columns:1fr}
}

/* =========================================================
   v9.2 Site-wide final UI guardrails
   ========================================================= */
:root{
	--ph-ui-radius:18px;
	--ph-ui-shadow:0 14px 38px rgba(30,19,22,.065);
	--ph-ui-border:rgba(116,47,54,.10);
}

/* Global interactive contrast: text must remain visible in every state. */
:where(.site-content,.ph-site-main,.ph-page,.ph-home) a[class*="button"],:where(.site-content,.ph-site-main,.ph-page,.ph-home) a[class*="btn"],:where(.site-content,.ph-site-main,.ph-page,.ph-home) button{
	-webkit-tap-highlight-color:transparent;
}
:where(.site-content,.ph-site-main,.ph-page,.ph-home) a[class*="button"]:focus-visible,:where(.site-content,.ph-site-main,.ph-page,.ph-home) a[class*="btn"]:focus-visible,:where(.site-content,.ph-site-main,.ph-page,.ph-home) button:focus-visible{
	outline:3px solid rgba(212,175,55,.48);
	outline-offset:3px;
}

/* Burgundy buttons */
:where(.ph-services-hub,.ph-projects-page,.ph-about-page,.ph-contact-page,.ph-service-single,.ph-single-project)
:is(a,button)[class*="primary"]:not(.ph-services-hub__button--primary){
	background:#8e3b43;
	color:#fff;
}
:where(.ph-services-hub,.ph-projects-page,.ph-about-page,.ph-contact-page,.ph-service-single,.ph-single-project)
:is(a,button)[class*="primary"]:hover{
	background:#742f36;
	color:#fff!important;
}

/* Reusable premium cards: stable hierarchy without changing page structure. */
:where(.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card,.ph-city-card,.ph-about-page__services-grid article,.ph-project-overview__card){
	border:1px solid var(--ph-ui-border);
	box-shadow:var(--ph-ui-shadow);
}
:where(.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card,.ph-about-page__services-grid article){
	overflow:hidden;
}
:where(.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card) img{
	transition:transform .55s cubic-bezier(.2,.7,.2,1);
}
@media(hover:hover) and (pointer:fine){
	:where(.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card):hover img{
		transform:scale(1.035);
	}
}

/* Icons always sit beside copy where the component has an icon + text row. */
:where(.ph-services-hub-hero__trust li,.ph-project-overview__card,.ph-contact-page__method,.ph-contact-page__feature){
	align-items:center;
}
:where(.ph-services-hub-hero__trust-icon,.ph-project-overview__icon){
	flex:0 0 auto;
}

/* Consistent readable section headings. */
:where(.ph-services-hub,.ph-projects-page,.ph-about-page,.ph-contact-page,.ph-service-single,.ph-single-project) h2{
	text-wrap:balance;
}
:where(.ph-services-hub,.ph-projects-page,.ph-about-page,.ph-contact-page,.ph-service-single,.ph-single-project) p{
	text-wrap:pretty;
}

/* Mobile: keep animation subtle and controls finger-friendly. */
@media(max-width:767px){
	:where(.site-content,.ph-site-main,.ph-page,.ph-home)
	:is(a[class*="button"],a[class*="btn"],button,input[type="submit"]){
		min-height:44px;
	}
	:where(.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card,.ph-about-page__services-grid article){
		border-radius:18px!important;
	}
	.js .ph-motion-item{
		transform:translate3d(0,10px,0)!important;
		transition-duration:.38s!important;
	}
}
@media(prefers-reduced-motion:reduce){
	:where(.ph-service-card-v3,.ph-project-card,.ph-projects-showcase__card) img{
		transition:none!important;
	}
}

/* =========================================================
   v9.3 Projects source correction
   ========================================================= */

/* Archive hero images must dominate the visual cards. */
.ph-projects-hero__visual-item{
	position:relative;
	background:#1a1215!important;
}
.ph-projects-hero__visual-item>img{
	position:absolute!important;
	inset:0!important;
	width:100%!important;
	height:100%!important;
	object-fit:cover!important;
	object-position:center!important;
	opacity:1!important;
	z-index:0!important;
}
.ph-projects-hero__visual-overlay{
	position:absolute!important;
	inset:0!important;
	z-index:1!important;
	background:linear-gradient(180deg,rgba(20,10,13,.04) 28%,rgba(15,9,11,.86) 100%)!important;
}
.ph-projects-hero__visual-title{
	z-index:2!important;
	color:#fff!important;
	text-shadow:0 2px 14px rgba(0,0,0,.5);
}
.ph-projects-hero__placeholder{
	position:absolute!important;
	inset:0!important;
	display:grid!important;
	place-items:center!important;
	padding:20px!important;
	background:linear-gradient(145deg,#742f36,#16191e)!important;
	color:#fff!important;
}

/* Single hero always remains readable over the resolved project image. */
.ph-project-single-hero.has-image{
	background-position:center!important;
	background-size:cover!important;
	background-repeat:no-repeat!important;
}
.ph-project-single-hero.has-image .ph-project-single-hero__overlay{
	background:
		linear-gradient(90deg,rgba(10,14,19,.94) 0%,rgba(10,14,19,.78) 50%,rgba(10,14,19,.34) 100%),
		linear-gradient(180deg,rgba(10,14,19,.10),rgba(10,14,19,.72))!important;
}

/* Timeline: definitive dark design. */
.ph-single-project #project-timeline.ph-project-timeline{
	background:
		radial-gradient(circle at 90% 8%,rgba(142,59,67,.26),transparent 30%),
		radial-gradient(circle at 8% 90%,rgba(212,175,55,.10),transparent 25%),
		linear-gradient(145deg,#111820,#1a2631 58%,#10161d)!important;
	color:#fff!important;
}
.ph-single-project #project-timeline .ph-project-timeline__title{color:#fff!important}
.ph-single-project #project-timeline .ph-project-timeline__title span{color:#efd16b!important}
.ph-single-project #project-timeline .ph-project-timeline__description{color:rgba(255,255,255,.74)!important}
.ph-single-project #project-timeline .ph-project-timeline__content{
	background:rgba(255,255,255,.075)!important;
	border-color:rgba(255,255,255,.13)!important;
}
.ph-single-project #project-timeline .ph-project-timeline__content h3{color:#fff!important}
.ph-single-project #project-timeline .ph-project-timeline__content p{color:rgba(255,255,255,.72)!important}
@media(min-width:1100px){
	.ph-single-project #project-timeline .ph-project-timeline__list{
		grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;
		gap:16px!important;
	}
	.ph-single-project #project-timeline .ph-project-timeline__content{
		min-height:178px!important;
	}
}

/* Reduce empty vertical space and make case-study cards more substantial. */
.ph-single-project .ph-project-overview{padding:clamp(70px,8vw,105px) 0!important}
.ph-single-project .ph-project-overview__grid{gap:18px!important}
.ph-single-project .ph-project-overview__card{
	min-height:250px!important;
	padding:26px!important;
}
.ph-single-project .ph-project-overview__card p:last-child{
	font-size:.94rem!important;
	line-height:1.95!important;
}
.ph-project-executive-summary{margin-top:1.5rem!important}

/* Archive filters: calmer on mobile. */
@media(max-width:767px){
	.ph-projects-hero__visual{grid-template-rows:repeat(2,128px)!important}
	.ph-projects-hero__visual-title{font-size:11px!important}
	.ph-projects-hero__visual-item>img{object-position:center!important}
	.ph-single-project #project-timeline .ph-project-timeline__list{grid-template-columns:1fr!important}
	.ph-single-project .ph-project-overview__card{min-height:0!important;padding:18px!important}
}

/* =========================================================
   v9.4 Mobile screenshot corrections — header + home about
   ========================================================= */
@media (max-width: 767px) {
  /* Restore a useful compact top bar on phones. */
  .ph-site-header .ph-topbar{
    display:block!important;
    min-height:38px!important;
    background:linear-gradient(135deg,#742f36,#8e3b43)!important;
    border-bottom:1px solid rgba(212,175,55,.42)!important;
  }
  .ph-site-header .ph-topbar__inner{
    display:grid!important;
    grid-template-columns:minmax(112px,1fr) minmax(82px,.78fr) 36px!important;
    align-items:center!important;
    gap:6px!important;
    min-height:38px!important;
    padding:3px 14px!important;
  }
  .ph-site-header .ph-topbar__contact,.ph-site-header .ph-topbar__actions{display:contents!important}
  .ph-site-header .ph-topbar__trust,.ph-site-header .ph-topbar__address,.ph-site-header .ph-topbar__item-content small{display:none!important}
  .ph-site-header .ph-topbar__phone{
    grid-column:1!important;display:flex!important;align-items:center!important;gap:5px!important;
    color:#fff!important;text-decoration:none!important;min-width:0!important;
  }
  .ph-site-header .ph-topbar__hours{
    grid-column:2!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
    color:#fff!important;border-inline:1px solid rgba(255,255,255,.18)!important;padding-inline:6px!important;
  }
  .ph-site-header .ph-topbar__whatsapp{
    grid-column:3!important;display:inline-flex!important;width:32px!important;height:32px!important;padding:0!important;
    align-items:center!important;justify-content:center!important;border-radius:9px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;
  }
  .ph-site-header .ph-topbar__whatsapp span{display:none!important}
  .ph-site-header .ph-topbar__icon{width:18px!important;height:18px!important;flex:0 0 18px!important;background:transparent!important;color:#efd16b!important}
  .ph-site-header .ph-topbar__icon svg{width:15px!important;height:15px!important}
  .ph-site-header .ph-topbar__item-content strong,.ph-site-header .ph-topbar__hours .ph-topbar__item-content strong::after{
    color:#fff!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important;
  }
  .ph-site-header .ph-topbar__hours .ph-topbar__item-content strong{font-size:0!important}
  .ph-site-header .ph-topbar__hours .ph-topbar__item-content strong::after{content:attr(data-hours-short)!important}

  /* Main mobile header: balanced logo and menu button, no oversized empty band. */
  .ph-site-header .ph-header-main__inner{
    min-height:76px!important;padding:7px 15px!important;gap:12px!important;
  }
  .ph-site-header .ph-branding{max-width:calc(100% - 62px)!important;min-width:0!important;flex:1 1 auto!important}
  .ph-site-header .ph-logo,.ph-site-header .ph-logo .custom-logo-link{width:100%!important;justify-content:flex-start!important}
  .ph-site-header .ph-logo .custom-logo{
    width:auto!important;max-width:min(190px,100%)!important;max-height:56px!important;height:auto!important;object-fit:contain!important;
  }
  .ph-site-header .ph-mobile-menu-toggle{flex:0 0 48px!important}

  /* Home About: remove inherited desktop translation that pushed the card off-screen. */
  .ph-about__layout,.ph-about__media,.ph-about__content{min-width:0!important;width:100%!important}
  .ph-about__media{padding-bottom:0!important}
  .ph-about__image-frame{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:1.42/1!important;overflow:hidden!important}
  .ph-about__image{width:100%!important;height:100%!important;object-fit:cover!important;object-position:62% center!important}
  .ph-about__engineering-card{
    position:relative!important;inset:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
    width:auto!important;max-width:none!important;margin:-38px 14px 0!important;padding:42px 18px 18px!important;
    transform:none!important;overflow:visible!important;
  }
  .ph-about__engineering-icon{right:18px!important;left:auto!important;transform:none!important}
  .ph-about__engineering-card h3,.ph-about__engineering-card p{max-width:100%!important;overflow-wrap:anywhere!important}
  .ph-about__content{padding-top:4px!important}
  .ph-about__title{font-size:clamp(25px,7.2vw,32px)!important;line-height:1.42!important;overflow-wrap:anywhere!important}
}
@media (max-width:390px){
  .ph-site-header .ph-topbar__inner{grid-template-columns:minmax(102px,1fr) minmax(74px,.72fr) 32px!important;padding-inline:10px!important}
  .ph-site-header .ph-logo .custom-logo{max-width:166px!important;max-height:52px!important}
  .ph-about__engineering-card{margin:-32px 10px 0!important;padding-inline:15px!important}
}
