/* PNHR visual polish layer — loaded last. Component-scoped; no content or layout rewrites. */
:root {
  --polish-navy: #071323;
  --polish-navy-2: #102943;
  --polish-orange: #f47724;
  --polish-orange-bright: #ff9b52;
  --polish-ink: #132137;
  --polish-muted: #647187;
  --polish-line: #dbe4ee;
  --polish-paper: #f5f8fb;
  --polish-shadow: 0 18px 42px rgba(7, 19, 35, .09);
  --polish-shadow-soft: 0 10px 28px rgba(7, 19, 35, .07);
}

/* Quiet depth for the reusable content surfaces. */
.tile,
.service-card,
.quote-card,
.work-card,
.city-entry,
.context-facts li,
.scope-box,
.method-card,
.payment-step,
.payment-contact-card,
.engagement-card,
.editorial-row,
.service-guide-link,
.brief-check-grid > article,
.reading-card {
  position: relative;
  isolation: isolate;
  border-color: var(--polish-line);
  box-shadow: var(--polish-shadow-soft);
}

.tile,
.service-card,
.quote-card,
.work-card,
.city-entry,
.context-facts li,
.scope-box,
.method-card,
.payment-step,
.payment-contact-card,
.engagement-card,
.editorial-row,
.service-guide-link,
.brief-check-grid > article,
.reading-card,
.cta-block,
.local-application,
.review-notice {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.tile:hover,
.service-card:hover,
.quote-card:hover,
.work-card:hover,
.city-entry:hover,
.context-facts li:hover,
.scope-box:hover,
.method-card:hover,
.payment-step:hover,
.payment-contact-card:hover,
.engagement-card:hover,
.editorial-row:hover,
.service-guide-link:hover,
.brief-check-grid > article:hover,
.reading-card:hover {
  border-color: rgba(244, 119, 36, .48);
  box-shadow: 0 20px 44px rgba(7, 19, 35, .12);
  transform: translateY(-3px);
}

/* Consistent information hierarchy and action emphasis. */
.tile h3,
.service-card h3,
.quote-card h3,
.work-card h2,
.city-group h2,
.context-facts li strong,
.scope-box h3,
.method-card h3,
.payment-step h3,
.payment-contact-card h3,
.engagement-card h3,
.editorial-row h3,
.service-guide-link strong,
.brief-check-grid > article h3 {
  color: var(--polish-ink);
}

.tile-index,
.quote-label,
.work-type,
.city-status,
.context-facts li a,
.service-guide-link > span,
.payment-step .step-number,
.review-card > span {
  color: #a94d12;
}

.quote-services li,
.work-tags span,
.related a,
.anchor-index a {
  border-color: #e7c4a9;
  background: linear-gradient(135deg, #fffaf6, #f7f9fc);
}

/* In-page navigation chips pair the light glass fill with readable brand ink. */
.anchor-index a {
  color: var(--polish-ink);
  text-decoration: none;
}
.anchor-index a:hover {
  color: #a7490d;
  border-color: #d59a73;
  background: linear-gradient(135deg, #fff2e6, #f7f9fc);
}
.anchor-index a:focus-visible {
  outline: 3px solid var(--polish-orange-bright);
  outline-offset: 4px;
}

.btn-orange,
.btn-dark {
  box-shadow: 0 10px 24px rgba(209, 82, 12, .18), inset 0 1px rgba(255,255,255,.42);
}

.btn:focus-visible,
.city-entry:focus-visible,
.service-guide-link:focus-visible,
.related a:focus-visible,
.carousel-arrow:focus-visible,
.lightbox-close:focus-visible,
.lightbox-control:focus-visible {
  outline: 3px solid var(--polish-orange-bright);
  outline-offset: 4px;
}

/* City directory and service-guide cards get a clearer glass/paper pairing. */
.service-guide-link,
.city-entry {
  background: linear-gradient(145deg, #ffffff, #f6f9fc);
}
.service-guide-link:hover strong,
.city-entry:hover .city-name { color: #9e430a; }

/* Keep forms calm, legible, and visually attached to the CTA surface. */
.cta-block {
  border-color: #e2c6b0;
  background: radial-gradient(circle at 92% 6%, rgba(255, 158, 87, .22), transparent 36%), linear-gradient(135deg, #fffaf5, #f2f6fa);
  box-shadow: var(--polish-shadow);
}
.cta-block:hover { border-color: rgba(244, 119, 36, .58); box-shadow: 0 22px 52px rgba(7, 19, 35, .12); }
.form input,
.form textarea,
.form select,
.city-search input {
  border-color: #c8d5e3;
  box-shadow: inset 0 1px 2px rgba(7, 19, 35, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus,
.city-search input:focus {
  border-color: var(--polish-orange);
  box-shadow: 0 0 0 4px rgba(244, 119, 36, .14);
}

/* Blog cover: explicit bounds prevent the 720px source height from creating a portrait panel. */
.article-hero .hero-grid { align-items: center; }
.article-cover { align-self: start; transform: none; }
.article-cover img {
  display: block;
  width: 100%;
  height: min(320px, 22vw);
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

/* Service illustrations remain balanced and undistorted, including hero briefs. */
.service-image { align-self: start; }
.service-image img {
  display: block;
  width: 100%;
  height: 300px;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.service-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
}

/* Portfolio screenshots are UI evidence: contain them rather than cropping. */
.portfolio-slide img {
  display: block;
  width: 100%;
  height: min(420px, 32vw);
  min-height: 210px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
}
.lightbox-image-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 760px);
  object-fit: contain;
}

/* JS adds .polish-reveal only to safe, independent content surfaces. */
.polish-motion-ready .polish-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .52s ease var(--polish-delay, 0ms), transform .52s ease var(--polish-delay, 0ms);
  will-change: opacity, transform;
}
.polish-motion-ready .polish-reveal.is-polish-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (max-width: 800px) {
  .article-cover img { height: 220px; min-height: 0; }
  .service-image img { height: 210px; }
  .service-art img { max-height: 240px; }
  .portfolio-slide img { height: 300px; min-height: 170px; }
  .lightbox-image-wrap img { max-height: calc(94vh - 125px); }
}

@media (max-width: 580px) {
  .article-cover img { height: 220px; aspect-ratio: 16 / 10; }
  .service-image img { height: 210px; }
  .service-art img { max-height: 210px; }
  .portfolio-slide img { height: 220px; min-height: 145px; }
  .cta-block { box-shadow: var(--polish-shadow-soft); }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .service-card,
  .quote-card,
  .work-card,
  .city-entry,
  .context-facts li,
  .scope-box,
  .method-card,
  .payment-step,
  .payment-contact-card,
  .engagement-card,
  .editorial-row,
  .service-guide-link,
  .brief-check-grid > article,
  .reading-card,
  .cta-block,
  .form input,
  .form textarea,
  .form select,
  .city-search input { transition: none; }
  .polish-motion-ready .polish-reveal,
  .polish-motion-ready .polish-reveal.is-polish-visible { opacity: 1; transform: none; transition: none; }
}

/* City hub service collection: supports both the current .services-grid markup
   and the newer .service-grid/.service-number naming used by hub variants. */
.services-grid,
.service-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.services-grid > .service-card,
.service-grid > .service-card,
.service-grid > a,
.link-grid > a {
  min-width: 0;
  min-height: 240px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f8fb 100%);
  color: var(--polish-ink);
  text-decoration: none;
}

.services-grid > .service-card .card-top,
.service-grid > .service-card .card-top,
.service-card .service-meta,
.service-card .service-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: #8a98a9;
  font-size: .68rem;
  letter-spacing: .04em;
  line-height: 1.4;
}

.service-card .service-number,
.service-card .service-icon,
.service-card .card-top .icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #f0c7a9;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff7ef, #fff);
  color: #aa4d11;
  font-size: .67rem;
  font-weight: 800;
}

.service-card .service-number {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
}

.services-grid > .service-card h3,
.service-grid > .service-card h3,
.service-card .service-title {
  min-width: 0;
  margin: 24px 0 10px;
  color: var(--polish-ink);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.services-grid > .service-card p,
.service-grid > .service-card .service-description,
.service-card .service-description {
  min-width: 0;
  margin: 0 0 22px;
  color: var(--polish-muted);
  font-size: .8rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.services-grid > .service-card .card-link,
.service-grid > .service-card .service-arrow,
.service-card .service-arrow {
  min-width: 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #a64a0f;
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-card .service-arrow svg,
.service-card .card-link svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.service-card .service-thumb,
.service-card .service-image,
.service-card .service-art {
  width: 100%;
  max-height: 128px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 14px;
}
.service-card .service-thumb img,
.service-card .service-image img,
.service-card .service-art img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 980px) {
  .services-grid,
  .service-grid,
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .services-grid,
  .service-grid,
  .link-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .services-grid > .service-card,
  .service-grid > .service-card,
  .service-grid > a,
  .link-grid > a {
    min-height: 0;
    padding: 22px;
  }
  .services-grid > .service-card h3,
  .service-grid > .service-card h3,
  .service-card .service-title { margin-top: 19px; font-size: 1.06rem; }
}

/* City guide cards use the real .service-guide-media wrapper as a full-width image header. */
.service-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-guide-grid > a.service-guide-link {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f5f8fb);
  box-shadow: 0 10px 28px rgba(7, 19, 35, .07);
}

.service-guide-grid > a.service-guide-link:hover,
.service-guide-grid > a.service-guide-link:focus-visible {
  border-color: rgba(244, 119, 36, .52);
  box-shadow: 0 20px 42px rgba(7, 19, 35, .12);
  transform: translateY(-3px);
}

.service-guide-grid > a.service-guide-link:focus-visible {
  outline: 3px solid #f47721;
  outline-offset: 3px;
}

.service-guide-grid > a.service-guide-link > .service-guide-media {
  display: block;
  width: calc(100% + 0px);
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid #dce5ee;
  background: #e9eff5;
}

.service-guide-grid > a.service-guide-link > .service-guide-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.service-guide-grid > a.service-guide-link:hover > .service-guide-media > img {
  transform: scale(1.025);
}

.service-guide-grid > a.service-guide-link > .service-guide-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 19px 17px;
}

.service-guide-grid > a.service-guide-link .service-guide-index {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid #efc09e;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff5eb, #fff);
  color: #a64a0f;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.service-guide-grid > a.service-guide-link .service-guide-content > strong,
.service-guide-grid > a.service-guide-link .service-guide-content > small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-guide-grid > a.service-guide-link .service-guide-content > strong {
  color: var(--polish-ink);
  font-size: .98rem;
  line-height: 1.32;
  letter-spacing: -.015em;
}

.service-guide-grid > a.service-guide-link .service-guide-content > small {
  margin-top: -3px;
  color: var(--polish-muted);
  font-size: .76rem;
  line-height: 1.6;
}

.service-guide-grid > a.service-guide-link .service-guide-content > b {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(28, 51, 78, .1);
  color: #a34b14;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.4;
}

.service-guide-grid > a.service-guide-link .service-guide-content > b span {
  flex: 0 0 auto;
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .service-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .service-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-guide-grid > a.service-guide-link {
    min-height: 0;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(7, 19, 35, .09);
  }
  .service-guide-grid > a.service-guide-link > .service-guide-media {
    width: 100%;
    aspect-ratio: 3 / 2;
  }
  .service-guide-grid > a.service-guide-link > .service-guide-content {
    gap: 10px;
    padding: 18px 18px 17px;
  }
  .service-guide-grid > a.service-guide-link .service-guide-index {
    padding: 7px 10px;
    font-size: .64rem;
  }
  .service-guide-grid > a.service-guide-link .service-guide-content > strong {
    font-size: 1.05rem;
  }
  .service-guide-grid > a.service-guide-link .service-guide-content > small {
    margin-top: -2px;
    font-size: .83rem;
    line-height: 1.55;
  }
  .service-guide-grid > a.service-guide-link .service-guide-content > b {
    padding-top: 14px;
    font-size: .76rem;
  }
}

/* Brand-forward glass surfaces: visible at rest, with small local gradients
   rather than a page-wide blur. Solid fallbacks remain underneath each layer. */
.quote-card,
.service-card,
.tile,
.work-card,
.city-entry,
.service-guide-link,
.context-facts li,
.scope-box,
.method-card,
.payment-step,
.engagement-card,
.brief-check-grid > article {
  border-color: rgba(132, 166, 198, .42);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 132, 55, .18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(33, 92, 132, .12), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,246,252,.88));
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}
.quote-card:nth-child(2n),
.service-guide-link:nth-child(2n),
.service-card:nth-child(2n),
.tile:nth-child(2n) {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 156, 83, .22), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(26, 73, 111, .16), transparent 46%),
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(246,241,237,.88));
}
.quote-card:nth-child(3n),
.service-guide-link:nth-child(3n),
.service-card:nth-child(3n),
.tile:nth-child(3n) {
  background:
    radial-gradient(circle at 100% 14%, rgba(84, 172, 211, .18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255, 122, 37, .13), transparent 42%),
    linear-gradient(145deg, rgba(250,253,255,.97), rgba(234,243,249,.88));
}
.quote-card::after,
.service-card::after,
.tile::after,
.work-card::after,
.city-entry::after,
.service-guide-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .66);
  pointer-events: none;
}
.city-entry.is-live,
.city-entry.is-draft {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 128, 43, .2), transparent 38%),
    linear-gradient(145deg, rgba(255,252,248,.98), rgba(246,242,237,.9));
}
@media (max-width: 680px) {
  .quote-card,
  .service-card,
  .tile,
  .work-card,
  .city-entry,
  .service-guide-link,
  .context-facts li,
  .scope-box,
  .method-card,
  .payment-step,
  .engagement-card,
  .brief-check-grid > article {
    -webkit-backdrop-filter: blur(7px) saturate(115%);
    backdrop-filter: blur(7px) saturate(115%);
  }
}

/* Complete edge-to-edge mobile contact dock; body keeps a matching reserve. */
.service-guide-link .service-guide-thumb{max-width:none}
@keyframes pnhr-contact-greeting{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg)}65%{transform:rotate(10deg)}}
@keyframes pnhr-contact-light{0%{transform:translateX(-160%) skewX(-20deg)}100%{transform:translateX(450%) skewX(-20deg)}}
@media(max-width:767px){
 html{scroll-padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
 body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))!important}
 .mobile-bar{position:fixed!important;inset:auto 0 0 0!important;bottom:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px!important;width:100%;margin:0!important;padding:0 0 env(safe-area-inset-bottom,0px)!important;background:#0a2940!important;border:0!important;border-radius:0!important;box-sizing:border-box;box-shadow:0 -4px 20px #07132325;z-index:1000}
 .mobile-bar a{position:relative;isolation:isolate;overflow:hidden;display:flex!important;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:54px;min-width:44px;margin:0!important;padding:12px 8px!important;border:0!important;border-radius:0!important;color:#fff!important;font-size:14px!important;font-weight:750;line-height:1.2;text-decoration:none;box-shadow:inset 0 1px #ffffff35}
 .mobile-bar a:first-child{background:linear-gradient(115deg,#c7470b,#a93100)!important}
 .mobile-bar a:last-child{background:linear-gradient(115deg,#087e5a,#056146)!important}
 .mobile-bar a svg{width:22px!important;height:22px!important;flex:0 0 22px;stroke:currentColor;animation:pnhr-contact-greeting 850ms ease-in-out 900ms 3;transform-origin:50% 55%}
 .mobile-bar a::after{content:"";position:absolute;inset:0 auto 0 0;width:30%;background:linear-gradient(90deg,transparent,#ffffff26,transparent);pointer-events:none;animation:pnhr-contact-light 2800ms ease-in-out 1200ms 2;z-index:-1}
 .mobile-bar a:focus-visible{outline:3px solid #ffe69e;outline-offset:-5px}
 .mobile-bar a:active{filter:brightness(.88)}
 body:has(input:focus,textarea:focus,select:focus) .mobile-bar{display:none!important}
}
@media(min-width:768px){.mobile-bar{display:none!important}}
@media(prefers-reduced-motion:reduce){.mobile-bar a svg,.mobile-bar a::after{animation:none!important}}

/* Portfolio: two aligned project cards per row, with one card per phone row. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2vw, 28px);
}
.work-grid > .work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.work-grid > .work-card > .portfolio-carousel {
  flex: 0 0 auto;
  min-width: 0;
}
.work-grid > .work-card > .work-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.work-grid > .work-card > .work-card-copy > .text-link {
  margin-top: auto;
}
@media (max-width: 580px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
