/* Inner pages, breadcrumbs and cross-links. Loaded after the homepage styles. */

/* Active navigation item */
.header nav a[aria-current="page"] {color:var(--cta,#164c70)}
.header nav a[aria-current="page"]:after {width:100%}

/* Shared link rows and "view all" links */
.link-row {display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.section-more {margin:clamp(18px,3vh,32px) 0 0;display:flex;justify-content:center}
.section-head-aside {display:grid;justify-items:start;gap:6px;max-width:390px}
.section-head-aside p {margin:0;color:var(--muted)}
.finish-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:clamp(12px,2.5vh,30px)}
.finish-actions .finish-cta {margin-top:0}

/* Inner pages are ordinary scrolling documents, not full-screen panels. */
.inner-page > .section {min-height:0;scroll-snap-align:none;padding-block:clamp(28px,5vh,56px)}
.inner-page > .section:last-child,.inner-page > section:last-child {padding-bottom:clamp(48px,8vh,96px)}

/* Page header */
.page-header {padding-block:clamp(28px,5vh,56px) clamp(12px,2vh,24px)}
.page-header h1 {font:650 clamp(42px,5.4vw,80px)/1.02 var(--body);letter-spacing:-.045em;margin:0 0 16px;max-width:18ch;text-transform:none}
.page-intro {font-size:clamp(17px,1.4vw,20px);line-height:1.55;color:#455762;max-width:60ch;margin:0 0 20px}
.page-header .link-row {margin-top:8px}

.breadcrumbs ol {display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0 0 18px;padding:0;font-size:14px;color:var(--muted)}
.breadcrumbs li + li:before {content:"/";margin-right:6px;color:#9aa8ad}
.breadcrumbs a {text-decoration:underline;text-underline-offset:3px;text-decoration-color:#9aa8ad}
.breadcrumbs a:hover {color:var(--cta,#164c70);text-decoration-color:currentColor}
.breadcrumbs [aria-current] {color:var(--ink)}

/* Services list and cards */
.service-card-list {display:grid;gap:clamp(20px,3vw,36px);padding-block:clamp(12px,2vh,24px) clamp(28px,5vh,56px)}
.service-card-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(18px,3vw,48px);align-items:center;background:#fff;border:1px solid var(--line)}
.service-card-photo {display:block;height:100%;min-height:260px;overflow:hidden}
.service-card-photo img {width:100%;height:100%;object-fit:cover}
.service-card-body {padding:clamp(20px,3vw,40px) clamp(20px,3vw,40px) clamp(20px,3vw,40px) 0}
.service-card-body h2,.service-card-body h3 {font:650 clamp(28px,2.6vw,40px)/1.05 var(--body);letter-spacing:-.03em;margin:0 0 12px}
.service-card-body h2 a:hover,.service-card-body h3 a:hover {color:var(--cta,#164c70)}
.service-card-body p {color:#455762;margin:0 0 20px;max-width:52ch}
.service-card-list.compact {grid-template-columns:1fr 1fr;padding:0}
.service-card-list.compact .service-card-row {grid-template-columns:1fr;align-items:stretch}
.service-card-list.compact .service-card-photo {min-height:0;height:200px}
.service-card-list.compact .service-card-body {padding:0 22px 24px}

/* Service detail */
.service-page {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start;padding-block:clamp(8px,2vh,20px) clamp(32px,5vh,56px)}
.service-page article > p {color:#455762;max-width:56ch}
.service-page h2 {font:650 clamp(26px,2.4vw,34px)/1.1 var(--body);letter-spacing:-.03em;margin:0 0 12px}
.service-page .link-row {margin:24px 0 32px}
.service-question {border-block:1px solid var(--line);padding:16px 0;margin-bottom:14px}
.service-question summary {font-weight:700}
.service-question p {color:#455762;margin:12px 0 0}
.related-projects,.other-services {padding-block:clamp(24px,4vh,48px)}
.related-projects h2,.other-services h2 {font:650 clamp(26px,2.4vw,36px)/1.1 var(--body);letter-spacing:-.03em;margin:0}
.related-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.5vw,20px)}
.related-photo {position:relative;display:block;overflow:hidden;height:clamp(180px,22vw,280px)}
.related-photo img {width:100%;height:100%;object-fit:cover}
.related-photo span {position:absolute;left:0;bottom:0;background:#102c3ae8;color:#fff;padding:6px 10px;font:600 14px/1.35 var(--body)}
.other-services {padding-bottom:clamp(48px,8vh,96px)}

/* Gallery, process, contact */
.work-page .gallery-filters {margin-bottom:clamp(16px,2.5vh,28px)}
.journey-page {background:transparent}
.process-steps {padding-bottom:clamp(48px,8vh,96px)}
.process-steps h2 {font:650 clamp(28px,2.6vw,40px)/1.1 var(--body);letter-spacing:-.03em;margin:0 0 20px}
.process-steps ol {list-style:none;counter-reset:step;margin:0 0 32px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px}
.process-steps li {counter-increment:step;background:#fff;border:1px solid var(--line);padding:22px}
.process-steps li:before {content:counter(step,decimal-leading-zero);display:block;font:700 14px/1 var(--body);color:var(--gold);letter-spacing:.08em;margin-bottom:14px}
.process-steps h3 {font:700 19px/1.25 var(--body);letter-spacing:-.01em;margin:0 0 8px}
.process-steps li p {margin:0;color:#455762;font-size:15px;line-height:1.5}
.faq-page {grid-template-columns:minmax(0,1fr)}
.faq-page .faq-list {max-width:860px}

/* Policies and 404 */
.prose {max-width:720px;padding-bottom:clamp(48px,8vh,96px)}
.prose p {font-size:17px;line-height:1.7;color:#344c59}
.prose a {text-decoration:underline;text-underline-offset:3px}
.not-found {padding-block:clamp(48px,10vh,120px)}
.not-found h1 {font:650 clamp(40px,5vw,72px)/1.05 var(--body);letter-spacing:-.045em;margin:0 0 16px}
.not-found-code {font:700 14px/1 var(--body);letter-spacing:.14em;color:var(--gold);margin:0 0 12px}

@media(max-width:760px){
  .service-card-row,.service-page {grid-template-columns:1fr}
  .service-card-photo {min-height:0;height:220px}
  .service-card-body {padding:0 20px 24px}
  .service-card-list.compact {grid-template-columns:1fr}
  .service-page img {order:-1;height:240px}
  .related-grid {grid-template-columns:1fr 1fr}
  .related-grid > :nth-child(3) {display:none}
  .page-header h1 {max-width:none}
}

/* ---------- Phone and tablet responsiveness ---------- */

/* Every screen: sections size to their content and the page scrolls freely.
   Mandatory snapping between full-screen panels made scrolling jump from section
   to section and left large empty bands under short sections. */
html,html:focus-within {scroll-snap-type:none}
main > section,.footer,.site-footer,.topline {scroll-snap-align:none;scroll-snap-stop:normal}
main > .section {min-height:0;padding-block:clamp(44px,5.5vw,84px)}
@media (max-width:1100px){
  .inner-page > .section {padding-block:clamp(28px,5vw,48px)}
}

/* Estimate form: one column until there is room for two comfortable field columns. */
@media (max-width:900px){
  .estimate-grid {grid-template-columns:1fr;gap:32px}
}

/* Phone menu: links are stacked, so keep the active underline the width of the word. */
@media (max-width:700px){
  .header nav a {align-self:flex-start}
}

/* Tablet header: the desktop nav shrank to 12px text between 701px and 900px. */
@media (min-width:701px) and (max-width:900px){
  .header nav {font-size:13px;gap:18px}
}

/* Touch screens: give small links and toggles a 44px tap area without moving their underline. */
@media (pointer:coarse){
  .text-link,.service-info,.breadcrumbs a,.contact-email,.header nav a {position:relative}
  .text-link::before,.service-info::before,.breadcrumbs a::before,.contact-email::before,.header nav a::before {content:"";position:absolute;inset:-12px -6px}
  summary {min-height:44px}
}

/* Hero headline: sized for the longer "A Lasting Impression Starts With the Perfect Finish."
   so it sits on three lines on desktop instead of five. */
.folio-message {max-width:min(860px,100%)}
.folio-message h1 {font-size:clamp(48px,5.4vw,86px);line-height:1}
@media (max-width:700px){
  .folio-message h1 {font-size:clamp(36px,10.4vw,54px)}
}
@media (max-height:560px) and (orientation:landscape){
  .folio-message h1 {font-size:clamp(32px,5.2vw,46px)}
}

/* ---------- Smooth motion ----------
   Everything here animates only transform and opacity (plus the FAQ height in
   browsers that can animate it natively). The global reduced-motion rule in
   styles.css switches all of it off for people who ask for less motion. */
:root {--ease-out:cubic-bezier(.22,.7,.2,1)}

/* In-page links (skip link, #anchors) glide; route changes still jump instantly. */
@media (prefers-reduced-motion:no-preference){
  html {scroll-behavior:smooth}
}

/* The header is 97% opaque, so its blur was invisible but was redrawn on every
   scroll frame. A solid background looks the same and costs nothing. */
.header {background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}

/* Scroll reveals: a shorter travel and a soft ease-out. */
.reveal {transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}
.js .reveal:not(.is-visible) {transform:translateY(16px)}

/* Hero photo: a short, gentle settle instead of a 3.5s zoom on the largest image. */
@media (prefers-reduced-motion:no-preference){
  .folio-frame img {animation:project-settle 1.6s var(--ease-out) both}
}

/* Button sheen: move it with transform rather than `left`, so it never triggers layout. */
.button::after,.mobile-call::after {left:-70%}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .button:hover::after,.mobile-call:hover::after {animation:button-sheen .68s ease-out}
}
@keyframes button-sheen {
  from {transform:translateX(0) skewX(-17deg)}
  to {transform:translateX(420%) skewX(-17deg)}
}

/* Phone menu: drops in instead of appearing instantly. */
@media (max-width:700px) and (prefers-reduced-motion:no-preference){
  .header nav.open {animation:menu-in .26s var(--ease-out) both}
  .menu-toggle span {transition:transform .26s var(--ease-out)}
}
@keyframes menu-in {
  from {opacity:0;transform:translateY(-10px)}
  to {opacity:1;transform:none}
}

/* Questions and answers: the answer fades up as it opens. Browsers that can
   animate to `height:auto` (Chrome, Edge) also slide the panel open and closed. */
@media (prefers-reduced-motion:no-preference){
  details[open] > :not(summary) {animation:answer-in .32s var(--ease-out) both}
  summary span {transition:transform .26s var(--ease-out)}
  @supports (interpolate-size:allow-keywords){
    details {interpolate-size:allow-keywords}
    details::details-content {
      block-size:0;overflow:clip;
      transition:block-size .32s var(--ease-out),content-visibility .32s allow-discrete;
    }
    details[open]::details-content {block-size:auto}
  }
}
@keyframes answer-in {
  from {opacity:0;transform:translateY(-6px)}
  to {opacity:1;transform:none}
}

/* Gallery filters: the matching photos fade in, one after another. */
@media (prefers-reduced-motion:no-preference){
  .project-grid.is-filtered .project {animation:project-in .42s var(--ease-out) both}
  .project-grid.is-filtered .project:nth-child(2) {animation-delay:.04s}
  .project-grid.is-filtered .project:nth-child(3) {animation-delay:.08s}
  .project-grid.is-filtered .project:nth-child(4) {animation-delay:.12s}
  .project-grid.is-filtered .project:nth-child(5) {animation-delay:.16s}
  .project-grid.is-filtered .project:nth-child(n+6) {animation-delay:.2s}
}
@keyframes project-in {
  from {opacity:0;transform:translateY(12px) scale(.985)}
  to {opacity:1;transform:none}
}

/* Photo viewer: fades and scales in with its backdrop. */
@media (prefers-reduced-motion:no-preference){
  .lightbox[open] {animation:lightbox-in .28s var(--ease-out) both}
  .lightbox[open]::backdrop {animation:backdrop-in .28s ease-out both}
}
@keyframes lightbox-in {
  from {opacity:0;transform:translateY(10px) scale(.97)}
  to {opacity:1;transform:none}
}
@keyframes backdrop-in {from {opacity:0}}

/* Before-and-after divider: positioned with transform (see CompareControl.jsx),
   so dragging repaints the photo but never re-runs layout. */
.ms-compare.is-ready .ms-compare-divider {
  left:0;width:100%;background:none;
  transform:translateX(calc(var(--before-visible) - 100%));
}
.ms-compare.is-ready .ms-compare-divider::before {
  content:"";position:absolute;inset-block:0;right:0;width:3px;
  transform:translateX(50%);background:#fff;
}
.ms-compare.is-ready .ms-compare-divider b {left:auto;right:0;transform:translateX(50%)}

/* Before-and-after photo: as tall as the screen allows, so the heading, photos and
   buttons still fit in one screen, but never taller than the whole photo (940x720).
   On wider screens the finished photo beside it stretches to match. */
.finish-grid .ms-compare.is-ready .ms-compare-view {
  width:100%;height:auto;aspect-ratio:940/720;
  max-height:max(300px,calc(100svh - 306px));
}
@media (min-width:761px){
  #transformations .section-head {margin-bottom:14px}
  .finish-grid .finished-example {display:flex;flex-direction:column}
  .finish-grid .finished-photo {flex:1;height:auto;min-height:0}
  /* The slider sets the row height; the finished photo just fills it. */
  .finish-grid .finished-photo img {position:absolute;inset:0}
}

/* Project photos: a steady 4:3 tile instead of a short row squeezed to fit the
   screen, so each photo is shown properly (homepage preview and /gallery). */
.project-grid {grid-auto-rows:auto;gap:clamp(10px,1.4vw,20px)}
@media (min-width:701px){
  /* As big as a 4:3 tile, but no taller than lets the heading, both rows of the
     homepage preview and its button fit in one screen. 100cqi = the grid width. */
  #work > .wrap {container-type:inline-size}
  #work .section-head {margin-bottom:14px}
  .project-grid {grid-auto-rows:min(calc((100cqi - 2 * clamp(10px,1.4vw,20px)) / 4), max(160px, calc((94svh - 240px) / 2)))}
  .project-grid .project:nth-child(n) {height:100%}
}
.project-grid .project strong {font-size:clamp(16px,1.45vw,23px)}
.project-grid .project>span {left:18px;right:18px;bottom:16px}
@media (max-width:700px){
  .project-grid .project:nth-child(n) {height:auto;aspect-ratio:1/1}
  .project-grid .project strong {font-size:15px}
  .project-grid .project>span {left:10px;right:8px;bottom:10px}
}

/* "Planning a painting project?" band above the footer (every page): taller,
   with a larger heading, text and button. */
.invite-inner {padding-block:clamp(56px,7.5vw,120px);gap:clamp(20px,4vw,56px)}
.invite-inner h2 {font-size:clamp(32px,4.2vw,60px);line-height:1.08}
.invite-inner p {font-size:clamp(16px,1.35vw,20px);margin-top:clamp(8px,1vw,14px)}
.footer-estimate {min-height:clamp(50px,4.4vw,62px);padding-inline:clamp(22px,2.2vw,34px);font-size:clamp(16px,1.25vw,19px)}

/* Homepage: every section is at least one screen tall (below the header, and
   above the phone call bar), with its content centred, so a short section never
   shows the next one underneath it. Inner pages keep their natural heights. */
main:not(.inner-page) > .section {
  min-height:var(--panel);
  padding-block:clamp(20px,3vh,40px);
  display:grid;align-content:center;
}
main:not(.inner-page) > .folio-hero .folio-content {min-height:var(--panel)}
@media (max-width:700px){ main:not(.inner-page) > .section {padding-block:12px} }

/* Common questions: numbered question cards and a call card */
/* Big faint "?" watermark inside the navy call card, shown whole (dot included). */
.faq-help {position:relative;overflow:hidden;isolation:isolate}
.faq-help::after {
  content:"?";position:absolute;z-index:-1;right:18px;top:50%;transform:translateY(-50%);
  font-family:var(--display);font-weight:700;font-size:118px;line-height:1;
  color:#ffffff17;pointer-events:none;
}
.faq-eyebrow {display:flex;align-items:center;gap:10px;color:var(--gold);margin-bottom:18px}
.faq-eyebrow span {width:26px;height:2px;background:var(--gold);flex:none}
.faq-help {
  margin-top:clamp(22px,3vh,34px);max-width:420px;padding:22px 26px;
  background:var(--navy);color:#fff;border-left:3px solid var(--gold);
  box-shadow:0 18px 40px -22px #102c3a80;
}
.faq-help p {margin:0 0 6px;color:#c3cdd0;font-size:15px}
.faq-heading .faq-call {
  display:inline-flex;align-items:center;gap:10px;margin:0;color:#fff;
  font-family:var(--display);font-size:clamp(26px,2.3vw,34px);font-weight:600;line-height:1.2;letter-spacing:.2px;
}
.faq-call svg {color:var(--gold);flex:none;transition:transform .25s}
.faq-heading .faq-call:hover {color:#e2c58c}
.faq-call:hover svg {transform:rotate(-12deg) scale(1.1)}
.faq-heading .text-link {margin-top:20px}

.faq-list {border-top:0;display:grid;gap:12px;align-content:start}
.faq-list details {
  padding:0;border:1px solid var(--line);background:#fff;
  transition:border-color .25s,box-shadow .25s,background-color .25s;
}
.faq-list details:hover {border-color:#bfcacb}
.faq-list details[open] {
  border-color:transparent;background:#fbfaf7;
  box-shadow:inset 3px 0 0 var(--gold),0 16px 36px -20px #102c3a55;
}
.faq-list summary {padding:clamp(14px,2.2vh,20px) 20px;gap:16px;justify-content:flex-start;line-height:1.35}
.faq-num {flex:none;min-width:30px;font-family:var(--display);font-size:24px;font-weight:600;line-height:1;color:var(--gold)}
.faq-q {flex:1;font-weight:700;font-size:17px;color:var(--navy)}
.faq-list summary span {
  flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  border:1px solid #d9c49c;color:var(--gold);font-size:20px;
  transition:transform .26s,background-color .25s,color .25s,border-color .25s;
}
.faq-list summary:hover span {border-color:var(--gold)}
.faq-list details[open] > summary span {background:var(--navy);border-color:var(--navy);color:#fff}
.faq-list details p {max-width:none;margin:0 24px 0 66px;padding-bottom:4px}
.faq-list details p:last-child {padding-bottom:clamp(14px,2.2vh,20px)}
.faq-list details p + p {margin-top:10px}

@media (max-width:700px){
  .faq-help {padding:18px 20px}
  .faq-list {gap:10px}
  .faq-list summary {padding:14px 14px;gap:12px}
  .faq-num {min-width:22px;font-size:20px}
  .faq-q {font-size:16px}
  .faq-list summary span {width:30px;height:30px;font-size:18px}
  .faq-list details p {margin:0 14px 0 48px}
}
@media (max-width:700px){
  .faq-section:not(.faq-page) .faq-list details:nth-child(n+4) {display:none}
  .faq-eyebrow {margin-bottom:12px}
  .faq-help {margin-top:16px;padding:14px 18px}
  .faq-help p {font-size:14px;margin-bottom:2px}
  .faq-help::after {font-size:84px;right:14px}
  .faq-heading .faq-call {font-size:26px}
  .faq-heading .text-link {margin-top:10px}
}

/* Service pages: short hero (title, one line, buttons) beside a large photo */
.service-hero {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  grid-template-rows:auto 1fr repeat(4,auto) 1fr;column-gap:clamp(32px,5vw,84px);
  padding-block:clamp(18px,3vh,36px) clamp(36px,6vh,72px);
}
.service-hero > .breadcrumbs {grid-area:1/1}
.service-hero > h1 {grid-area:3/1}
.service-hero > .page-intro {grid-area:4/1}
.service-hero > .link-row {grid-area:5/1}
.service-hero > .service-hero-area {grid-area:6/1}
.service-hero h1 {
  font:700 clamp(56px,6.2vw,100px)/.9 var(--display);letter-spacing:-.5px;
  text-transform:uppercase;max-width:none;margin:0 0 18px;
}
.service-hero .page-intro {font-size:clamp(17px,1.3vw,20px);max-width:42ch;margin:0 0 26px}
.service-hero .link-row {margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px}
.service-hero-area {
  display:flex;align-items:center;gap:8px;max-width:440px;margin:26px 0 0;padding-top:18px;
  border-top:1px solid var(--line);font-size:14px;color:var(--muted);
}
.service-hero-area svg {color:var(--gold);flex:none}
.service-hero-photo {grid-column:2;grid-row:1/-1;position:relative;margin:0 18px 18px 0;isolation:isolate}
.service-hero-photo::before {
  content:"";position:absolute;z-index:-1;inset:18px -18px -18px 18px;
  background:var(--paper);border-bottom:3px solid var(--gold);
}
.service-hero-photo img {width:100%;height:clamp(320px,calc(100svh - 300px),600px);object-fit:cover}


@media (max-width:760px){
  .service-hero {display:block;padding-bottom:36px}
  .service-hero h1 {font-size:clamp(48px,13vw,64px);margin-bottom:14px}
  .service-hero .page-intro {margin-bottom:20px}
  .service-hero-area {margin-top:20px;padding-top:14px}
  .service-hero-photo {margin:26px 12px 12px 0}
  .service-hero-photo::before {inset:12px -12px -12px 12px}
  .service-hero-photo img {height:260px}
}

/* Service pages: the hero fills exactly the first screen (below the top line
   and the header, and above the phone call bar); the photo stretches to fill it. */
.service-hero {
  --hero-top:37px;
  min-height:calc(100svh - var(--mast) - var(--hero-top) - var(--shortbar));
  padding-block:clamp(16px,2.6vh,30px) clamp(34px,5.4vh,50px);
}
.service-hero-photo {align-self:stretch;min-height:320px}
.service-hero-photo img {position:absolute;inset:0;height:100%}
@media (max-width:760px){
  .service-hero {--hero-top:28px;display:flex;flex-direction:column;padding-bottom:28px}
  .service-hero-photo {flex:1;min-height:200px}
  .service-hero-photo img {height:100%}
}


/* Service pages: "How we work" on navy, with the common question in a white
   card. Exactly one screen tall below the sticky header (and above the phone
   call bar), with the content centred. */
.service-details {
  background:var(--navy);color:#fff;
  height:var(--panel);min-height:560px;box-sizing:border-box;
  display:grid;align-items:center;padding-block:clamp(28px,6vh,72px);
}
.service-details-inner {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(40px,6.5vw,96px);align-items:center;
}
.service-eyebrow {display:flex;align-items:center;gap:10px;color:var(--gold);margin:0 0 clamp(14px,2.4vh,22px)}
.service-eyebrow span {width:28px;height:2px;background:var(--gold);flex:none}
.service-details h2 {
  font:700 clamp(52px,5.3vw,78px)/.92 var(--display);text-transform:uppercase;
  letter-spacing:-.5px;color:#fff;margin:0 0 clamp(14px,2.4vh,22px);max-width:11ch;
}
.service-details-copy > p:not(.eyebrow) {color:#c9d4d9;font-size:clamp(16px,1.2vw,18px);line-height:1.7;max-width:50ch;margin:0}
.service-steps {list-style:none;margin:clamp(18px,3vh,28px) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.service-steps li {padding:8px 16px;border:1px solid #ffffff38;border-radius:999px;font-size:14px;font-weight:600;color:#fff}

.service-qa {
  background:#fff;color:var(--navy);border-radius:6px;
  padding:clamp(26px,3vw,44px);box-shadow:0 30px 60px -20px rgba(0,0,0,.45);
}
.service-qa-top {display:flex;align-items:center;gap:14px;margin-bottom:clamp(12px,2vh,18px)}
.service-qa-mark {
  width:52px;height:52px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--gold);color:#fff;font:700 32px/1 var(--display);
}
.service-qa-top p {margin:0;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.service-qa h3 {font:700 clamp(22px,2vw,30px)/1.2 var(--body);letter-spacing:-.02em;margin:0 0 14px}
.service-qa > p {color:#455762;font-size:16px;line-height:1.7;margin:0 0 12px}
.service-qa-more {
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  margin-top:clamp(16px,2.6vh,24px);padding-top:clamp(16px,2.6vh,22px);border-top:1px solid var(--line);
  font-weight:700;font-size:15px;color:var(--navy);text-decoration:none;
}
.service-qa-more span {transition:transform .2s ease}
.service-qa-more:hover span {transform:translateX(4px)}
.service-qa-more:focus-visible {outline:2px solid var(--gold);outline-offset:4px}

@media (max-width:760px){
  .service-details {height:auto;min-height:var(--panel);padding-block:36px}
  .service-details-inner {grid-template-columns:1fr;gap:26px}
  .service-details h2 {font-size:clamp(44px,12vw,56px);max-width:none}
  .service-details-copy > p:not(.eyebrow) {font-size:16px;line-height:1.6}
  .service-steps {gap:8px}
  .service-steps li {padding:6px 12px;font-size:13px}
  .service-qa-mark {width:40px;height:40px;font-size:24px}
  .service-qa h3 {font-size:21px}
  .service-qa > p {font-size:15px;line-height:1.6}
}
@media (max-width:760px){
  /* The paragraph already lists the steps, so the tags are dropped on phones
     to keep the section to one screen. */
  .service-details {padding-block:24px;align-items:center}
  .service-details-inner {gap:22px}
  .service-steps {display:none}
  .service-details h2 {margin-bottom:12px}
  .service-qa {padding:22px}
  .service-qa-top {margin-bottom:10px}
  .service-qa h3 {margin-bottom:10px}
  .service-qa-more {margin-top:14px;padding-top:14px}
}

/* "Other painting services" cards: the photo sits beside the text in a tall
   frame, so portrait and landscape photos both show most of the picture
   instead of a thin strip. Stacked (4:3 photo) on narrower screens. */
.service-card-list.compact .service-card-row {grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:0}
.service-card-list.compact .service-card-photo {position:relative;height:auto;min-height:clamp(300px,46svh,400px)}
.service-card-list.compact .service-card-photo img {position:absolute;inset:0;transition:transform .6s ease}
.service-card-list.compact .service-card-row:hover .service-card-photo img {transform:scale(1.03)}
.service-card-list.compact .service-card-body {align-self:center;padding:clamp(22px,2.4vw,36px)}
.service-card-list.compact .service-card-body h3 {font-size:clamp(26px,2.2vw,34px)}
.service-card-list.compact .link-row {display:flex;flex-direction:column;align-items:flex-start;gap:12px}
@media (max-width:1100px){
  .service-card-list.compact .service-card-row {grid-template-columns:1fr}
  .service-card-list.compact .service-card-photo {min-height:0;aspect-ratio:4/3}
  .service-card-list.compact .link-row {flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 22px}
}
@media (prefers-reduced-motion:reduce){
  .service-card-list.compact .service-card-row:hover .service-card-photo img {transform:none}
}
.service-card-list.compact {grid-template-columns:repeat(2,minmax(0,1fr))}
.service-card-list.compact .service-card-row {grid-template-columns:minmax(0,.8fr) minmax(0,1fr)}
.service-card-list.compact .service-card-body {padding:clamp(22px,2vw,30px)}
.service-card-list.compact .link-row .button {white-space:nowrap}
@media (max-width:1280px){
  .service-card-list.compact .service-card-row {grid-template-columns:1fr}
  .service-card-list.compact .service-card-photo {min-height:0;aspect-ratio:4/3}
  .service-card-list.compact .link-row {flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 22px}
  .service-card-list.compact .link-row .button {white-space:normal}
}
@media (max-width:700px){ .service-card-list.compact {grid-template-columns:1fr} }
@media (max-width:1280px){
  .service-card-list.compact .service-card-row {align-content:start}
  .service-card-list.compact .service-card-photo {width:100%;align-self:start}
}

/* Services page: the three services side by side as even cards (4:3 photo,
   then title, one line and actions), instead of one huge row per service.
   Medium screens: one row per service with a fixed-height photo beside the
   text. Phones: stacked cards. */
.service-card-list:not(.compact) {grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2vw,28px);align-items:stretch}
.service-card-list:not(.compact) .service-card-row {grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:0;align-items:stretch;align-content:start}
.service-card-list:not(.compact) .service-card-photo {position:relative;width:100%;height:auto;min-height:0;aspect-ratio:4/3}
.service-card-list:not(.compact) .service-card-photo img {position:absolute;inset:0;transition:transform .6s ease}
.service-card-list:not(.compact) .service-card-row:hover .service-card-photo img {transform:scale(1.03)}
.service-card-list:not(.compact) .service-card-body {display:flex;flex-direction:column;padding:clamp(20px,1.8vw,28px)}
.service-card-list:not(.compact) .service-card-body h2 {font-size:clamp(26px,2.1vw,32px);margin-bottom:10px}
.service-card-list:not(.compact) .service-card-body p {font-size:15px;line-height:1.6;margin-bottom:20px}
.service-card-list:not(.compact) .link-row {margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
@media (max-width:1100px) and (min-width:701px){
  .service-card-list:not(.compact) {grid-template-columns:1fr}
  .service-card-list:not(.compact) .service-card-row {grid-template-columns:minmax(0,.9fr) minmax(0,1fr);grid-template-rows:auto}
  .service-card-list:not(.compact) .service-card-photo {aspect-ratio:auto;height:280px}
  .service-card-list:not(.compact) .service-card-body {justify-content:center}
}
@media (max-width:700px){
  .service-card-list:not(.compact) {grid-template-columns:1fr}
  .service-card-list:not(.compact) .service-card-body {padding:20px}
}
@media (prefers-reduced-motion:reduce){
  .service-card-list:not(.compact) .service-card-row:hover .service-card-photo img {transform:none}
}

/* /gallery: a side panel (title, filters, estimate card) beside numbered
   project photos in two columns. */
.gallery-layout {display:flex;flex-wrap:wrap;align-items:flex-start;gap:40px clamp(40px,5vw,72px);padding-block:clamp(28px,5vh,56px) clamp(56px,9vh,104px)}
.gallery-side {flex:1 1 300px;max-width:360px;display:flex;flex-direction:column;gap:22px}
.gallery-side .page-header {width:auto;margin:0;padding:0}
.gallery-side .page-header h1 {font:700 clamp(54px,5.4vw,80px)/.9 var(--display);text-transform:uppercase;letter-spacing:-.4px;max-width:none;margin:8px 0 18px}
.gallery-side .page-intro {font-size:17px;line-height:1.7;margin:0}
.gallery-filter-list {display:flex;flex-direction:column;border-top:1px solid var(--line)}
.gallery-filter-list button {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:0 16px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--navy);font-size:16px;font-weight:600;text-align:left;transition:background .2s,color .2s}
.gallery-filter-list button:hover {background:var(--paper)}
.gallery-filter-list button.active {background:var(--navy);color:#fff;font-weight:800}
.gallery-count {font:700 22px/1 var(--display);color:var(--muted)}
.gallery-filter-list button.active .gallery-count {color:#e2c48c}
.gallery-estimate {margin-top:14px;background:var(--paper);padding:28px;border-radius:6px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.gallery-estimate p {margin:0}
.gallery-estimate-kicker {font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.gallery-estimate-text {font:700 22px/1.25 var(--body);letter-spacing:-.02em;color:var(--navy)}
.gallery-list {flex:999 1 560px;min-width:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:clamp(32px,5vh,48px) 28px;padding-top:8px}
.gallery-item {display:flex;flex-direction:column;gap:16px;padding:0;border:0;background:none;text-align:left;color:var(--navy);cursor:zoom-in}
.gallery-photo {display:block;overflow:hidden;border-radius:4px;aspect-ratio:4/3;background:#eef0ef}
.gallery-photo img {width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.gallery-item:hover .gallery-photo img {transform:scale(1.03)}
.gallery-caption {display:flex;align-items:baseline;gap:16px;border-top:2px solid var(--navy);padding-top:14px}
.gallery-caption > span:last-child {display:flex;flex-direction:column;gap:4px}
.gallery-num {font:700 28px/1 var(--display);color:var(--gold)}
.gallery-caption strong {font-size:19px;line-height:1.3;letter-spacing:-.01em}
.gallery-caption small {font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
/* Keep the panel in view while scrolling, when the screen is tall enough. */
@media (min-width:1101px) and (min-height:900px){
  .gallery-side {position:sticky;top:calc(var(--mast) + 24px)}
}
/* Narrower screens: the panel becomes a heading with a row of filters;
   the estimate card is dropped (the header and footer band offer it). */
@media (max-width:1100px){
  .gallery-side {flex-basis:100%;max-width:none;gap:18px}
  .gallery-side .page-header h1 {font-size:clamp(46px,9vw,72px)}
  .gallery-filter-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line)}
  .gallery-filter-list button {justify-content:center;gap:8px;min-height:50px;padding:0 10px;border-bottom:0;font-size:15px}
  .gallery-filter-list button + button {border-left:1px solid var(--line)}
  .gallery-estimate {display:none}
}
@media (max-width:700px){
  .gallery-layout {gap:28px;padding-top:20px}
  .gallery-list {gap:32px}
  .gallery-caption strong {font-size:18px}
}
@media (prefers-reduced-motion:no-preference){
  .gallery-list.is-filtered .gallery-item {animation:project-in .42s var(--ease-out) both}
  .gallery-list.is-filtered .gallery-item:nth-child(2) {animation-delay:.04s}
  .gallery-list.is-filtered .gallery-item:nth-child(3) {animation-delay:.08s}
  .gallery-list.is-filtered .gallery-item:nth-child(4) {animation-delay:.12s}
  .gallery-list.is-filtered .gallery-item:nth-child(n+5) {animation-delay:.16s}
}
@media (prefers-reduced-motion:reduce){
  .gallery-item:hover .gallery-photo img {transform:none}
}

/* Two-column FAQ: the heading lines up with the first question card. The list is
   pushed down by the "FAQ" label above the heading (12px text x 1.7 + 18px gap). */
@media (min-width:701px){
  .faq-section:not(.faq-page) {align-items:start}
  .faq-section:not(.faq-page) .faq-list {margin-top:calc(12px * 1.7 + 18px)}
}

/* ---------- Contact page: photo header, overlapping form, contact cards ---------- */
.contact-main {--contact-lap:120px;background:#eaf0f1}
.contact-hero {position:relative;isolation:isolate;overflow:hidden;background:var(--navy);color:#fff}
.contact-hero-photo {position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.contact-hero::before {
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,#0a1920e6,#0a19209e 55%,#0a192059);
}
.contact-hero .page-header {padding-block:clamp(28px,5vh,52px) calc(var(--contact-lap) + clamp(32px,5vh,52px))}
.contact-hero .breadcrumbs ol,.contact-hero .breadcrumbs li + li:before {color:#c9d4d9}
.contact-hero .breadcrumbs a {color:#fff;text-decoration-color:#ffffff80}
.contact-hero .breadcrumbs a:hover {color:#e2c48c}
.contact-hero .breadcrumbs [aria-current] {color:#fff}
.contact-hero h1 {
  font:700 clamp(56px,6vw,96px)/.9 var(--display);letter-spacing:-.5px;
  text-transform:uppercase;max-width:none;margin:8px 0 16px;color:#fff;
}
.contact-hero .page-intro {color:#dfe7ea;max-width:46ch;margin:0}

.inner-page > .section.contact-page {padding-top:0;background:transparent}
.contact-page .estimate-grid {
  grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:clamp(28px,3.4vw,48px);
  align-items:stretch;margin-top:calc(var(--contact-lap) * -1);position:relative;
}
.contact-page .estimate-form {
  padding:clamp(26px,3vw,44px);border-top:4px solid var(--gold);
  box-shadow:0 30px 60px -30px #102c3a80;
}
.contact-page .estimate-form textarea {height:110px}
.contact-page .estimate-form :is(input,select,textarea) {padding:11px 13px}

/* The cards start just below the photo and end level with the bottom of the form. */
.contact-cards {
  display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:16px;
  padding-top:calc(var(--contact-lap) + 24px);
}
.contact-card {
  display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;
  padding:20px 24px;background:#fff;border:1px solid #d3dde0;color:var(--navy);
  box-shadow:0 18px 40px -32px #102c3a66;transition:border-color .2s,transform .2s,background-color .2s;
}
a.contact-card:hover {border-color:var(--gold);transform:translateY(-2px)}
.contact-card-label {
  display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;
  letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
}
.contact-card-label svg {flex:none;fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-card strong {font-size:16px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.contact-card-call {background:var(--navy);border-color:var(--navy);color:#fff}
a.contact-card-call:hover {background:#164c70;border-color:#164c70}
.contact-card-call .contact-card-label {color:#e2c48c}
.contact-card-call .contact-card-label svg {stroke:#e2c48c}
.contact-card-call strong {font:700 clamp(34px,2.8vw,42px)/1.05 var(--display);letter-spacing:.2px}

@media (max-width:900px){
  .contact-main {--contact-lap:56px}
  .contact-page .estimate-grid {grid-template-columns:minmax(0,1fr);gap:16px}
  .contact-cards {grid-template-rows:none;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));padding-top:0}
  .contact-card-call {grid-column:1/-1}
}
@media (max-width:700px){
  .contact-hero h1 {font-size:clamp(48px,14vw,64px)}
  .contact-hero .page-intro {font-size:16px}
  .contact-page .estimate-form {padding:22px 18px}
}
@media (max-width:560px){
  .contact-page .form-row {grid-template-columns:minmax(0,1fr);gap:0}
}
.contact-card strong {text-wrap:pretty}
@media (prefers-reduced-motion:reduce){
  a.contact-card:hover {transform:none}
}

/* Privacy notice and terms of use */
.policy-updated {font-size:14px;color:var(--muted);margin:0}
.prose section {padding-top:28px;margin-top:28px;border-top:1px solid var(--line)}
.prose section:first-child {margin-top:0}
.prose h2 {font:700 clamp(20px,1.6vw,24px)/1.25 var(--body);letter-spacing:-.02em;margin:0 0 10px;color:var(--navy)}
.prose section p {margin:0 0 12px}
.prose .policy-links {margin-top:36px;font-size:15px;color:var(--muted)}
/* Keep the page width so the text lines up with the heading, but cap line length. */
.wrap.prose {max-width:none}
.prose > * {max-width:760px}
