*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#13202b;background:#f6f2ea;line-height:1.65}img{display:block;max-width:100%}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.top{background:#071c2d;color:#fff;font-size:.82rem}.top .wrap{display:flex;justify-content:space-between;gap:20px;padding:9px 0}.top a{color:#fff}.nav{background:#fffdf8;border-bottom:1px solid #ded6c7;position:sticky;top:0;z-index:20}.nav .wrap{height:88px;display:flex;align-items:center;gap:28px}.brand img{width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 8px 15px rgba(0,0,0,.12))}.menu{display:flex;gap:26px;margin-left:auto;align-items:center;font-weight:750;font-size:.9rem;letter-spacing:.02em}.menu a:hover{color:#1e5da8}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;border-radius:3px;background:#174f8f;color:#fff;font-weight:800;letter-spacing:.03em;text-transform:uppercase;font-size:.8rem;border:1px solid #174f8f}.btn.alt{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}.btn.cream{background:#f6f2ea;color:#071c2d;border-color:#f6f2ea}.hero{min-height:690px;background:linear-gradient(90deg,rgba(4,25,42,.96) 0%,rgba(4,25,42,.84) 40%,rgba(4,25,42,.2) 70%),url('assets/img/hero-kitchen.webp') center/cover;display:grid;align-items:center;color:#fff}.hero .copy{max-width:680px;padding:88px 0}.eyebrow{font-size:.82rem;text-transform:uppercase;letter-spacing:.17em;color:#d7a94b;font-weight:900}.hero h1,.pagehero h1,h2,h3{font-family:Georgia,"Times New Roman",serif}.hero h1{font-size:clamp(3rem,6vw,5.8rem);line-height:.98;margin:.2em 0}.hero p{font-size:1.13rem;max-width:650px;color:#eef2f5}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.trust{background:#0a2841;color:#fff}.trust .wrap{display:grid;grid-template-columns:repeat(4,1fr);padding:22px 0}.trust div{padding:4px 20px;border-right:1px solid rgba(255,255,255,.18);text-align:center}.trust div:last-child{border:0}.trust strong{display:block;color:#d7a94b}.section{padding:92px 0}.section.white{background:#fff}.section.dark{background:#071c2d;color:#fff}.intro{max-width:760px;margin-bottom:38px}.intro.center{text-align:center;margin:0 auto 42px}.intro h2{font-size:clamp(2.2rem,4vw,4rem);line-height:1.08;margin:.15em 0}.intro p{font-size:1.05rem}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:34px}.card{background:#fff;border:1px solid #ded6c7;border-radius:3px;overflow:hidden;box-shadow:0 14px 34px rgba(22,32,40,.07)}.card img{width:100%;height:265px;object-fit:cover}.card .body{padding:25px}.card h3{font-size:1.55rem;margin:0 0 8px}.link{color:#174f8f;font-weight:850}.feature{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center}.feature img{width:100%;height:560px;object-fit:cover;border-radius:3px}.feature h2{font-size:clamp(2.4rem,4vw,4.3rem);line-height:1.05}.check{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 20px;padding:0;list-style:none}.check li:before{content:'✓';color:#d19a34;font-weight:900;margin-right:9px}.process{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.step{background:#fff;color:#13202b;padding:24px;border-radius:3px}.step b{display:block;color:#174f8f;font-size:1.8rem}.step img{height:210px;width:100%;object-fit:cover;margin-bottom:18px}.beforeafter{display:grid;grid-template-columns:1fr 1fr;gap:12px}.beforeafter figure{margin:0;position:relative}.beforeafter img{height:520px;width:100%;object-fit:cover}.badge{position:absolute;left:14px;top:14px;background:#071c2d;color:#fff;padding:7px 10px;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.review{background:#fff;padding:27px;border-left:4px solid #d7a94b;box-shadow:0 12px 28px rgba(0,0,0,.06)}.stars{color:#d19a34;letter-spacing:.12em}.review p{font-size:1rem}.review strong{display:block}.pagehero{background:#071c2d;color:#fff;padding:85px 0}.pagehero h1{font-size:clamp(2.8rem,5vw,5rem);margin:.1em 0}.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}.gallery img{width:100%;height:300px;object-fit:cover}.gallery .wide{grid-column:span 8}.gallery .narrow{grid-column:span 4}.gallery .half{grid-column:span 6}.service-list details{background:#fff;border:1px solid #ded6c7;margin-bottom:14px;padding:0 22px}.service-list summary{cursor:pointer;padding:22px 0;font-size:1.18rem;font-weight:850}.service-list details p{padding:0 0 22px;margin:0;max-width:900px}.about-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:50px;align-items:center}.portrait{border-radius:50%;aspect-ratio:1;object-fit:cover;border:8px solid #fff;box-shadow:0 20px 50px rgba(0,0,0,.15)}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:44px}.form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form .full{grid-column:1/-1}.form input,.form textarea,.form select{width:100%;padding:14px;border:1px solid #cfc6b6;background:#fff;font:inherit}.form textarea{min-height:150px}.footer{background:#041522;color:#dce5eb;padding:56px 0 24px}.footergrid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:40px}.footer img{width:130px}.footer h3{color:#fff}.small{font-size:.84rem;color:#9fb0bc}.mobile{display:none}.note{background:#f0e7d7;padding:16px;border-left:4px solid #d7a94b}
@media(max-width:900px){.menu{display:none}.mobile{display:block;margin-left:auto}.nav .wrap{height:76px}.brand img{width:84px;height:84px}.hero{min-height:620px;background-position:62% center}.hero .copy{padding:72px 0}.trust .wrap,.grid3,.process,.reviews{grid-template-columns:1fr 1fr}.feature,.about-grid,.contact-grid{grid-template-columns:1fr}.feature img{height:430px}.gallery .wide,.gallery .narrow,.gallery .half{grid-column:span 6}.footergrid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.wrap{width:min(100% - 28px,1180px)}.top .wrap{justify-content:center}.top span:first-child{display:none}.hero{min-height:590px;background:linear-gradient(0deg,rgba(4,25,42,.97),rgba(4,25,42,.54)),url('assets/img/hero-kitchen.webp') 58% center/cover}.hero h1{font-size:3.05rem}.section{padding:65px 0}.trust .wrap,.grid3,.grid2,.process,.reviews,.footergrid{grid-template-columns:1fr}.trust div{border-right:0;border-bottom:1px solid rgba(255,255,255,.16)}.beforeafter{grid-template-columns:1fr}.beforeafter img{height:390px}.gallery{display:block}.gallery img{height:280px;margin-bottom:12px}.feature img{height:360px}.check{grid-template-columns:1fr}.form{grid-template-columns:1fr}.form .full{grid-column:auto}.top{font-size:.76rem}.pagehero{padding:62px 0}}


/* V3.1 polish */
.card{color:#13202b}
.pagehero{padding:58px 0 54px}
.pagehero h1{font-size:clamp(2.45rem,4.3vw,4.35rem);line-height:1.01;margin:.08em 0 .12em}
.pagehero p{max-width:760px;margin:.3rem 0 0;color:#dbe5eb;font-size:1.02rem}
.service-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.service-card{background:#fff;border:1px solid #ded6c7;box-shadow:0 12px 30px rgba(22,32,40,.06);padding:28px;border-radius:3px}
.service-card h2{font-size:1.72rem;margin:0 0 8px}
.service-card>p{margin:0 0 17px;color:#43505a}
.service-card details{border-top:1px solid #e2dacd;padding-top:13px}
.service-card summary{cursor:pointer;color:#174f8f;font-weight:850;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
.service-card summary::-webkit-details-marker{display:none}
.service-card summary:after{content:'+';font-size:1.45rem;line-height:1}
.service-card details[open] summary:after{content:'−'}
.service-card .detail-copy{padding-top:15px;color:#263642}
.service-card ul{columns:2;column-gap:28px;margin:12px 0 0;padding-left:19px}
.service-card li{break-inside:avoid;margin:0 0 7px}
.comparison{position:relative;overflow:hidden;aspect-ratio:16/10;background:#d7d7d7;border-radius:3px;box-shadow:0 16px 38px rgba(0,0,0,.12);user-select:none;touch-action:none}
.comparison img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.comparison .after{clip-path:inset(0 50% 0 0)}
.comparison .handle{position:absolute;top:0;bottom:0;left:50%;width:3px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);transform:translateX(-50%);pointer-events:none}
.comparison .handle:after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:#071c2d;font-weight:900;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.comparison input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.comparison .label{position:absolute;top:14px;z-index:2;background:rgba(7,28,45,.88);color:#fff;padding:7px 10px;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.1em;pointer-events:none}
.comparison .label.before{right:14px}.comparison .label.after-label{left:14px}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:26px}
.compare-caption{margin-top:10px;font-weight:750;color:#344652}
.work-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.work-card{background:#fff;color:#13202b;border-radius:3px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.16)}
.work-card .media{aspect-ratio:4/3;background:#e9e4da;overflow:hidden}
.work-card img{width:100%;height:100%;object-fit:contain;background:#e9e4da}
.work-card:nth-child(3) img{object-fit:cover;object-position:center 55%}
.work-card .body{padding:22px 24px 25px}
.work-card h3{margin:0 0 7px;font-size:1.46rem}.work-card p{margin:0;color:#42515c}
.review-theme{font-size:.72rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#174f8f;margin-bottom:9px}
@media(max-width:900px){.service-cards,.compare-grid{grid-template-columns:1fr}.work-cards{grid-template-columns:1fr 1fr}.pagehero{padding:48px 0 44px}}
@media(max-width:620px){.pagehero{padding:40px 0 38px}.pagehero h1{font-size:2.55rem}.pagehero p{font-size:.96rem}.service-card{padding:22px}.service-card ul{columns:1}.comparison{aspect-ratio:4/5}.work-cards{grid-template-columns:1fr}.work-card .media{aspect-ratio:4/3}}

/* V3.2 flagship project stories */
.project-story{border-bottom:1px solid #ded6c7}.story-heading{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:end;margin-bottom:32px}.story-heading h2{font-size:clamp(2.25rem,4.4vw,4.35rem);line-height:1.04;margin:.12em 0}.story-lead{max-width:780px;font-size:1.08rem;margin:0}.story-facts{min-width:230px;border-left:3px solid #d7a94b;padding:7px 0 7px 20px;display:grid;gap:4px}.story-facts strong{color:#174f8f}.story-facts span{font-size:.88rem;color:#56636c}.comparison-large{aspect-ratio:16/8.2}.comparison-large img{object-position:center}.slider-hint{text-align:center;font-size:.85rem;color:#62717b;margin:10px 0 0}.story-columns{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin:52px 0}.story-columns h3{font-size:1.8rem;margin:.15em 0}.story-gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}.story-gallery figure{margin:0;background:#fff;border:1px solid #ded6c7;overflow:hidden}.story-gallery figure:nth-child(1),.story-gallery figure:nth-child(2){grid-column:span 6}.story-gallery figure:nth-child(n+3){grid-column:span 4}.story-gallery img{width:100%;height:300px;object-fit:cover}.story-gallery figcaption{padding:11px 14px;font-size:.84rem;font-weight:750;color:#43515b}.scope-panel{margin-top:42px;background:#071c2d;color:#fff;padding:34px;display:grid;grid-template-columns:.75fr 1.25fr;gap:35px;align-items:center}.scope-panel h3{font-size:2rem;margin:.1em 0}.scope-check{margin:0}.scope-check li{color:#eef3f6}.flagship{padding-top:76px}.project-story:nth-of-type(3){background:#f6f2ea}
@media(max-width:900px){.story-heading,.scope-panel{grid-template-columns:1fr}.story-facts{min-width:0}.story-columns{gap:28px}.comparison-large{aspect-ratio:16/10}.story-gallery figure:nth-child(n){grid-column:span 6}}
@media(max-width:620px){.story-columns{grid-template-columns:1fr;margin:38px 0}.comparison-large{aspect-ratio:4/3}.story-gallery{display:block}.story-gallery figure{margin-bottom:14px}.story-gallery img{height:260px}.scope-panel{padding:25px}.story-heading{gap:22px}.story-heading h2{font-size:2.5rem}.flagship{padding-top:58px}}


/* RC5 gold-master additions only. V3.2 layout remains authoritative. */
#kitchen, #bathroom, #hall-bath, #tile { scroll-margin-top: 104px; }

.featured-home-comparison {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hall-bath-comparison {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  #kitchen, #bathroom, #hall-bath, #tile { scroll-margin-top: 82px; }
}


/* RC5.1 focused additions */
.service-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  margin-top:22px;
}
.service-portfolio-link{
  width:auto;
}
.service-back-link{
  font-weight:800;
}
.fireplace-feature-panel{
  scroll-margin-top:104px;
}
.feature-panel{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:46px;
  align-items:center;
}
.feature-panel-media img{
  display:block;
  width:100%;
  height:520px;
  object-fit:cover;
  object-position:center;
  border:1px solid rgba(255,255,255,.16);
}
.feature-panel-copy h2{
  margin-top:10px;
}
.feature-panel-actions{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:26px;
}
.text-link.light{
  color:#fff;
}
@media(max-width:800px){
  .feature-panel{
    grid-template-columns:1fr;
  }
  .feature-panel-media img{
    height:auto;
    max-height:none;
    object-fit:contain;
  }
  .service-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .service-portfolio-link,
  .service-back-link{
    width:100%;
    text-align:center;
  }
}

.kitchen-editorial-subsection{margin-top:48px;padding-top:42px;border-top:1px solid rgba(25,45,60,.14)}
.intro.compact{max-width:760px;margin-left:auto;margin-right:auto}
.editorial-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}
.editorial-gallery figure{margin:0;background:#fff;border:1px solid #ded6c7;overflow:hidden}
.editorial-gallery .editorial-feature{grid-column:1/-1}
.editorial-gallery img{display:block;width:100%;height:390px;object-fit:cover;object-position:center}
.editorial-gallery .editorial-feature img{height:520px}
.editorial-gallery figcaption,#tile .more-grid figcaption,#tile .story-gallery figcaption{padding:13px 15px;text-align:center;font-size:.84rem;font-weight:800;color:#20303d}
#tile .more-grid,#tile .story-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#tile .more-grid figure,#tile .story-gallery figure{margin:0;background:#fff;border:1px solid #ded6c7;overflow:hidden}
#tile .more-grid img,#tile .story-gallery img{display:block;width:100%;height:390px;object-fit:cover;object-position:center}
@media(max-width:800px){
  .editorial-gallery,#tile .more-grid,#tile .story-gallery{grid-template-columns:1fr}
  .editorial-gallery .editorial-feature{grid-column:auto}
  .editorial-gallery img,.editorial-gallery .editorial-feature img,#tile .more-grid img,#tile .story-gallery img{height:auto;object-fit:contain}
}

.editorial-work-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.editorial-work-grid figure{
  margin:0;
  background:#fff;
  border:1px solid #ded6c7;
  overflow:hidden;
}
.editorial-work-grid .feature{
  grid-column:1/-1;
}
.editorial-work-grid img{
  display:block;
  width:100%;
  height:390px;
  object-fit:cover;
  object-position:center;
}
.editorial-work-grid .feature img{
  height:520px;
}
.editorial-work-grid figcaption{
  padding:13px 15px;
  text-align:center;
  font-size:.84rem;
  font-weight:800;
  color:#20303d;
}
@media(max-width:800px){
  .editorial-work-grid{grid-template-columns:1fr}
  .editorial-work-grid .feature{grid-column:auto}
  .editorial-work-grid img,
  .editorial-work-grid .feature img{height:auto;object-fit:contain}
}

/* RC5.3 targeted recent-work curation */
.recent-work-editorial-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.recent-work-editorial-grid figure{
  margin:0;
  background:#fff;
  border:1px solid #ded6c7;
  overflow:hidden;
}
.recent-work-editorial-grid .feature{
  grid-column:1/-1;
}
.recent-work-editorial-grid img{
  display:block;
  width:100%;
  height:420px;
  object-fit:cover;
  object-position:center;
}
.recent-work-editorial-grid .feature img{
  height:560px;
  object-position:center 42%;
}
.recent-work-editorial-grid figcaption{
  padding:14px 16px;
  text-align:center;
  font-size:.85rem;
  font-weight:800;
  color:#20303d;
}
@media(max-width:800px){
  .recent-work-editorial-grid{
    grid-template-columns:1fr;
  }
  .recent-work-editorial-grid .feature{
    grid-column:auto;
  }
  .recent-work-editorial-grid img,
  .recent-work-editorial-grid .feature img{
    height:auto;
    object-fit:contain;
  }
}

/* RC5.4 final editorial balance for More Recent Work */
#tile .recent-work-editorial-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:start;
}

#tile .recent-work-editorial-grid figure{
  margin:0;
  background:#fff;
  border:1px solid #ded6c7;
  overflow:hidden;
}

#tile .recent-work-editorial-grid .feature{
  grid-column:1/-1;
  max-width:1080px;
  width:100%;
  margin:0 auto;
}

#tile .recent-work-editorial-grid img{
  display:block;
  width:100%;
  height:420px;
  object-fit:cover;
  object-position:center;
}

#tile .recent-work-editorial-grid .feature img{
  height:620px;
  object-position:center 42%;
}

#tile .recent-work-editorial-grid figure:nth-child(2) img,
#tile .recent-work-editorial-grid figure:nth-child(3) img{
  object-position:center 38%;
}

#tile .recent-work-editorial-grid figure:nth-child(4) img{
  object-position:center 55%;
}

#tile .recent-work-editorial-grid figure:nth-child(5) img{
  object-position:center 48%;
}

#tile .recent-work-editorial-grid figure:nth-child(6) img{
  object-position:center 35%;
}

#tile .recent-work-editorial-grid figcaption{
  padding:14px 16px;
  text-align:center;
  font-size:.8rem;
  line-height:1.25;
  font-weight:850;
  letter-spacing:.015em;
  color:#20303d;
}

@media(max-width:800px){
  #tile .recent-work-editorial-grid{
    grid-template-columns:1fr;
  }

  #tile .recent-work-editorial-grid .feature{
    grid-column:auto;
    max-width:none;
  }

  #tile .recent-work-editorial-grid img,
  #tile .recent-work-editorial-grid .feature img{
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center;
  }
}

/* RC5.5 inspected image treatment: symmetrical, uncropped, caption-accurate */
#tile .recent-work-editorial-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

#tile .recent-work-editorial-grid figure,
#tile .recent-work-editorial-grid .feature{
  grid-column:auto;
  width:100%;
  max-width:none;
  margin:0;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #ded6c7;
  overflow:hidden;
}

#tile .recent-work-media{
  width:100%;
  aspect-ratio:4 / 5;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:#eeeae2;
  overflow:hidden;
}

#tile .recent-work-editorial-grid img,
#tile .recent-work-editorial-grid .feature img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}

#tile .recent-work-editorial-grid figcaption{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:13px 18px;
  text-align:center;
  font-size:.82rem;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.01em;
  color:#20303d;
}

@media(max-width:800px){
  #tile .recent-work-editorial-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  #tile .recent-work-media{
    aspect-ratio:auto;
    min-height:0;
    padding:10px;
  }

  #tile .recent-work-editorial-grid img,
  #tile .recent-work-editorial-grid .feature img{
    width:100%;
    height:auto;
    object-fit:contain;
  }

  #tile .recent-work-editorial-grid figcaption{
    min-height:0;
  }
}

/* RC5.7 mobile portfolio anchor alignment */
@media (max-width: 800px) {
  #kitchen,
  #bathroom,
  #bathroom-remodel,
  #hall-bath,
  #tile,
  #fireplace-features {
    scroll-margin-top: 64px;
  }
}

/* RC5.8 exact section targeting */
#bathroom-remodel,
#tile-services {
  scroll-margin-top: 96px;
}

@media (max-width: 800px) {
  #bathroom-remodel,
  #tile-services {
    scroll-margin-top: 72px;
  }
}

/* RC5.9 fallback anchor spacing; JavaScript performs final precise alignment. */
#kitchen,
#bathroom-remodel,
#hall-bath,
#tile-services,
#fireplace-features {
  scroll-margin-top: 104px;
}

@media (max-width: 800px) {
  #kitchen,
  #bathroom-remodel,
  #hall-bath,
  #tile-services,
  #fireplace-features {
    scroll-margin-top: 86px;
  }
}


/* RC5.10 footer-logo correction.
   Intrinsic image dimensions reserve layout space, but the footer must preserve the square logo ratio. */
.footer img{
  width:130px;
  height:auto !important;
  max-height:130px;
  aspect-ratio:1 / 1;
  object-fit:contain;
}

/* Roseville project: matched portrait comparisons without destructive cropping. */
.roseville-compare{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:start;
}

.roseville-compare .comparison{
  aspect-ratio:3 / 4;
  background:#e9e4da;
}

.roseville-compare .comparison img{
  object-fit:cover;
  object-position:center;
}

.roseville-compare .compare-caption{
  text-align:center;
  margin-top:10px;
  color:#56636c;
  font-size:.86rem;
  font-weight:750;
}

@media(max-width:620px){
  .footer img{
    width:112px;
    max-height:112px;
  }

  .roseville-compare{
    grid-template-columns:1fr;
    gap:22px;
  }

  .roseville-compare .comparison{
    aspect-ratio:3 / 4;
  }
}


/* RC5.13 mobile image-integrity pass */

/* About portrait: explicit square display box prevents intrinsic portrait dimensions
   from fighting the intended framed crop. */
.about-grid .portrait{
  display:block;
  width:min(100%, 520px);
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:cover;
  object-position:center 30%;
  justify-self:center;
}

/* The CSS aspect-ratio establishes the box; force the rendered height from width
   on browsers that honor intrinsic width/height attributes aggressively. */
@supports (aspect-ratio: 1 / 1){
  .about-grid .portrait{
    height:auto;
  }
}

@media(max-width:900px){
  .about-grid .portrait{
    width:min(86vw, 440px);
    aspect-ratio:1 / 1;
    object-fit:cover;
    object-position:center 28%;
    margin:0 auto 8px;
  }

  /* Content images should crop or contain, never stretch from intrinsic HTML dimensions. */
  .feature > img,
  .card img,
  .step img,
  .beforeafter img,
  .gallery img,
  .story-gallery img,
  .feature-panel-media img,
  .editorial-gallery img,
  .editorial-work-grid img,
  .recent-work-editorial-grid img{
    max-width:100%;
  }
}

@media(max-width:620px){
  /* Use a controlled portrait frame instead of relying on width/height attributes. */
  .about-grid .portrait{
    width:min(88vw, 380px);
    height:min(88vw, 380px) !important;
    aspect-ratio:1 / 1;
    object-fit:cover;
    object-position:center 27%;
    border-radius:50%;
  }

  /* About action image should preserve the subject rather than a fixed mobile crop. */
  .about-grid + .section .feature img,
  .feature img{
    max-width:100%;
  }

  /* General protection for standalone content imagery whose HTML carries intrinsic dimensions. */
  main img:not(.portrait){
    object-position:center;
  }
}

/* RC6 bathroom-first editorial refinement */
.hero{background-image:linear-gradient(90deg,rgba(4,25,42,.96) 0%,rgba(4,25,42,.82) 40%,rgba(4,25,42,.18) 72%),url('assets/img/home-bathroom-hero.jpg');background-position:center 52%;}
.contractor-copy-only{display:block;max-width:900px;margin:0 auto;text-align:left;}
.contractor-copy-only h2{max-width:780px;}
.home-bath-feature{max-width:880px;margin:0 auto;}
.home-bath-feature img{width:100%;height:auto;max-height:760px;object-fit:contain;background:#061b2c;}
#tile-services .recent-work-editorial-grid{align-items:start;}
#tile-services .recent-work-media{aspect-ratio:auto;height:auto;min-height:0;padding:0;background:#eeeae2;}
#tile-services .recent-work-editorial-grid img,#tile-services .recent-work-editorial-grid .feature img{width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;}
#tile-services .recent-work-editorial-grid figure{align-self:start;}
@media(max-width:900px){.hero{background-position:center 48%;}}
@media(max-width:620px){.hero{background-image:linear-gradient(0deg,rgba(4,25,42,.97),rgba(4,25,42,.48)),url('assets/img/home-bathroom-hero.jpg');background-position:center 48%;}.home-bath-feature img{max-height:none;}}

/* RC7 client approval refinements */
.mobile-instagram{display:none;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;color:#071c2d;text-decoration:none;margin-left:auto;margin-right:10px}
.natural-gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:22px;align-items:start;margin-top:30px}.natural-gallery figure{margin:0;grid-column:span 6}.natural-gallery img{display:block;width:100%;height:auto;max-height:760px;object-fit:contain;background:#f4f2ed;border-radius:16px}.natural-gallery figcaption{padding:10px 2px 0;font-weight:700}.tile-detail-gallery figure:nth-child(1),.tile-detail-gallery figure:nth-child(2){grid-column:span 4}.tile-detail-gallery figure:nth-child(3){grid-column:span 4}.fireplace-gallery img{background:#102b3d}.project-story{padding:34px 0 54px;border-bottom:1px solid rgba(7,28,45,.12)}.project-story:last-child{border-bottom:0}.project-story .story-heading{margin-bottom:18px}.comparison input[type=range]{z-index:10}.comparison .before{z-index:2}.comparison .after{z-index:1}
@media(max-width:760px){.mobile-instagram{display:inline-flex}.natural-gallery{grid-template-columns:1fr;gap:24px}.natural-gallery figure,.tile-detail-gallery figure:nth-child(n){grid-column:auto}.natural-gallery img{max-height:none}.hero{background-position:center center!important}.menu a[href*="instagram"]{display:none}}


/* =========================================================
   RC7.1 PORTFOLIO REPAIR — authoritative final rules
   ========================================================= */

/* Before/After:
   - AFTER is the base full image.
   - BEFORE overlays from the left.
   - At 50%, left = Before / right = After.
   - Dragging fully right removes Before and reveals 100% After.
*/
.ba-comparison{
  position:relative;
  overflow:hidden;
  aspect-ratio:16 / 10;
  background:#d9d5cd;
  border-radius:3px;
  box-shadow:0 16px 38px rgba(0,0,0,.12);
  user-select:none;
  touch-action:none;
}
.ba-comparison img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.ba-comparison img.after{
  z-index:1 !important;
  clip-path:none !important;
}
.ba-comparison img.before{
  z-index:2 !important;
  clip-path:inset(0 50% 0 0);
}
.ba-comparison .handle{
  z-index:4 !important;
  left:50%;
}
.ba-comparison input[type="range"]{
  z-index:6 !important;
}
.ba-comparison .label{
  z-index:5 !important;
}
.ba-comparison .label.before{
  left:14px !important;
  right:auto !important;
}
.ba-comparison .label.after-label{
  right:14px !important;
  left:auto !important;
}

/* Existing featured comparisons: keep a useful wide room view. */
#bathroom-remodels .ba-comparison,
#kitchen > .wrap > .ba-comparison{
  aspect-ratio:16 / 10;
}

/* Rio Linda sources are portrait and require independent focal framing. */
.rio-linda-compare{
  aspect-ratio:16 / 10;
}
.rio-linda-compare img.before{
  object-position:35% 67%;
}
.rio-linda-compare img.after{
  object-position:50% 72%;
}

/* Proof galleries: consistent visual rhythm without destructive cropping.
   Every card gets the same media box; the complete source image remains visible. */
.portfolio-proof-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:22px !important;
  align-items:stretch !important;
}
.portfolio-proof-card{
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  min-width:0;
  background:#fff;
  border:1px solid rgba(15,34,48,.12);
  overflow:hidden;
}
.dark .portfolio-proof-card{
  background:#0c2232;
  border-color:rgba(255,255,255,.18);
}
.portfolio-proof-media{
  width:100%;
  aspect-ratio:4 / 3;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#e9e5dc;
}
.dark .portfolio-proof-media{
  background:#102b3d;
}
.portfolio-proof-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
.portfolio-proof-card figcaption{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:13px 16px;
  text-align:center;
  line-height:1.3;
}

/* Fireplace cards do not all carry captions; keep the grid visually complete. */
#fireplace-features .portfolio-proof-card{
  justify-content:flex-start;
}

/* Responsive — still balanced, but one card per row on a phone. */
@media(max-width:760px){
  .portfolio-proof-grid{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
  .portfolio-proof-media{
    aspect-ratio:4 / 3;
  }
  .ba-comparison,
  #bathroom-remodels .ba-comparison,
  #kitchen > .wrap > .ba-comparison,
  .rio-linda-compare{
    aspect-ratio:4 / 3;
  }
  .rio-linda-compare img.before{
    object-position:35% 70%;
  }
  .rio-linda-compare img.after{
    object-position:50% 72%;
  }
}


/* =========================================================
   RC7.2 PORTFOLIO RHYTHM + PROJECT PRESENTATION
   ========================================================= */
#bathroom-remodels .intro,
#showers-tubs .intro,
#custom-tile .intro,
#kitchen > .wrap > .intro,
#fireplace-features .intro{
  max-width:780px;
  margin-bottom:34px;
}
.project-story{
  margin-top:46px;
  margin-bottom:68px;
}
.project-story + .project-story{
  padding-top:8px;
}
.story-heading{
  margin-bottom:22px;
}
.story-heading h2{
  margin-bottom:6px;
}
.story-facts{
  font-size:.86rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:800;
  opacity:.72;
}
.kitchen-editorial-subsection{
  margin-top:72px;
  padding-top:52px;
  border-top:1px solid rgba(15,34,48,.14);
}
.kitchen-editorial-subsection .intro{
  margin-bottom:22px;
}
.story-gallery{
  margin-top:28px;
}

/* Three unique custom-tile examples remain after duplicate removal. */
#custom-tile .portfolio-proof-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
#custom-tile .portfolio-proof-media{
  aspect-ratio:4 / 5;
}

/* Restored professional finished-kitchen photography. */
.other-recent-kitchen-work{
  margin-top:78px;
  padding-top:54px;
  border-top:1px solid rgba(15,34,48,.14);
}
.other-recent-kitchen-work .intro{
  max-width:720px;
  margin:0 auto 28px;
}
.recent-kitchen-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.recent-kitchen-grid figure{
  margin:0;
  background:#fff;
  border:1px solid rgba(15,34,48,.12);
  overflow:hidden;
}
.recent-kitchen-media{
  aspect-ratio:3 / 2;
  overflow:hidden;
  background:#e9e5dc;
}
.recent-kitchen-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.recent-kitchen-grid figcaption{
  padding:13px 16px;
  text-align:center;
  line-height:1.35;
}

@media(max-width:760px){
  .project-story{
    margin-top:36px;
    margin-bottom:52px;
  }
  .kitchen-editorial-subsection,
  .other-recent-kitchen-work{
    margin-top:58px;
    padding-top:42px;
  }
  #custom-tile .portfolio-proof-grid,
  .recent-kitchen-grid{
    grid-template-columns:1fr !important;
  }
  #custom-tile .portfolio-proof-media{
    aspect-ratio:4 / 3;
  }
}


/* =========================================================
   RC7.3 EDITORIAL PORTFOLIO HIERARCHY
   Restore the restrained visual language: whitespace + typography,
   not repeated hard divider lines.
   ========================================================= */

#bathroom-remodels,
#showers-tubs,
#custom-tile,
#kitchen,
#fireplace-features{
  position:relative;
}

#bathroom-remodels .intro,
#showers-tubs .intro,
#custom-tile .intro,
#kitchen > .wrap > .intro,
#fireplace-features .intro{
  max-width:820px;
  margin:0 auto 42px;
  text-align:center;
}

#bathroom-remodels .intro h2,
#showers-tubs .intro h2,
#custom-tile .intro h2,
#kitchen > .wrap > .intro h2,
#fireplace-features .intro h2{
  margin-bottom:10px;
}

.project-story{
  margin:0 auto 72px;
  padding:0;
}

.project-story + .project-story{
  padding-top:0;
}

.story-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:28px;
  margin:0 0 24px;
  padding:0 0 18px;
  border-bottom:1px solid rgba(15,34,48,.12);
}

.story-heading h2{
  margin:0;
}

.story-facts{
  flex:0 0 auto;
  text-align:right;
  font-size:.78rem;
  line-height:1.45;
  letter-spacing:.09em;
  text-transform:uppercase;
  font-weight:800;
  opacity:.66;
}

.kitchen-editorial-subsection,
.other-recent-kitchen-work{
  margin-top:68px;
  padding-top:0;
  border-top:0;
}

.kitchen-editorial-subsection::before,
.other-recent-kitchen-work::before{
  content:"";
  display:block;
  width:54px;
  height:1px;
  margin:0 auto 34px;
  background:rgba(15,34,48,.28);
}

.kitchen-editorial-subsection .intro,
.other-recent-kitchen-work .intro{
  max-width:740px;
  margin:0 auto 28px;
  text-align:center;
}

.kitchen-editorial-subsection .eyebrow,
.other-recent-kitchen-work .eyebrow{
  margin-bottom:8px;
}

.portfolio-proof-grid,
.recent-kitchen-grid{
  margin-top:28px;
}

/* Service button restored with the existing site's CTA language. */
.service-card .service-portfolio-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:18px;
}

@media(max-width:760px){
  #bathroom-remodels .intro,
  #showers-tubs .intro,
  #custom-tile .intro,
  #kitchen > .wrap > .intro,
  #fireplace-features .intro{
    text-align:left;
    margin-bottom:30px;
  }

  .project-story{
    margin-bottom:54px;
  }

  .story-heading{
    display:block;
    margin-bottom:18px;
    padding-bottom:14px;
  }

  .story-facts{
    margin-top:8px;
    text-align:left;
  }

  .kitchen-editorial-subsection,
  .other-recent-kitchen-work{
    margin-top:52px;
  }

  .kitchen-editorial-subsection::before,
  .other-recent-kitchen-work::before{
    margin-left:0;
    margin-bottom:26px;
  }

  .kitchen-editorial-subsection .intro,
  .other-recent-kitchen-work .intro{
    text-align:left;
  }
}

/* RC7.4 orientation-driven portfolio rhythm:
   landscapes span the frame; portraits pair side-by-side. */
.portfolio-proof-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:22px !important;
}
.portfolio-proof-card.orientation-wide{grid-column:1/-1}
.portfolio-proof-card.orientation-wide .portfolio-proof-media{aspect-ratio:16/9}
.portfolio-proof-card.orientation-wide .portfolio-proof-media img{
  object-fit:cover !important;object-position:center !important;
}
.portfolio-proof-card.orientation-portrait{grid-column:auto}
.portfolio-proof-card.orientation-portrait .portfolio-proof-media{aspect-ratio:4/5}
.portfolio-proof-card.orientation-portrait .portfolio-proof-media img{
  object-fit:contain !important;object-position:center !important;
}
.recent-kitchen-grid{display:block}
.recent-kitchen-grid figure.orientation-wide{margin:0 0 24px}
.recent-kitchen-grid .recent-kitchen-media{aspect-ratio:3/2}
.service-card .service-portfolio-link{margin-top:18px}
@media(max-width:760px){
  .portfolio-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
  .portfolio-proof-card.orientation-wide{grid-column:1/-1}
  .portfolio-proof-card.orientation-portrait{grid-column:auto}
  .portfolio-proof-card figcaption{min-height:0;padding:10px 8px;font-size:.78rem}
}
@media(max-width:430px){
  .portfolio-proof-grid{grid-template-columns:1fr !important}
  .portfolio-proof-card.orientation-wide,.portfolio-proof-card.orientation-portrait{grid-column:1}
}


/* =========================================================
   RC7.5 PROJECT GALLERY VIEWER
   Major transformations remain B&A.
   Supporting proof sections use click/swipe galleries.
   ========================================================= */
.project-gallery{
  margin-top:28px;
}
.project-gallery-stage{
  position:relative;
  overflow:hidden;
  background:#0d2231;
  border-radius:3px;
  box-shadow:0 16px 38px rgba(0,0,0,.12);
}
.project-gallery-slides{
  position:relative;
}
.project-gallery-slide{
  display:none;
  margin:0;
}
.project-gallery-slide.is-active{
  display:block;
}
.project-gallery-media{
  width:100%;
  min-height:520px;
  max-height:720px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#102b3d;
}
.project-gallery-media img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:720px !important;
  object-fit:contain !important;
  object-position:center !important;
}
.project-gallery-slide figcaption{
  background:#fff;
  color:#26343d;
  padding:14px 18px;
  text-align:center;
  line-height:1.35;
}
.dark .project-gallery-slide figcaption{
  background:#0c2232;
  color:#fff;
}
.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(7,28,45,.72);
  color:#fff;
  font-size:1.3rem;
  cursor:pointer;
  z-index:4;
  backdrop-filter:blur(8px);
}
.gallery-prev{left:16px}
.gallery-next{right:16px}
.project-gallery-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 2px 0;
}
.gallery-count{
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.11em;
  color:#63717a;
}
.dark .gallery-count{color:rgba(255,255,255,.72)}
.gallery-dots{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.gallery-dot{
  width:8px;
  height:8px;
  padding:0;
  border-radius:50%;
  border:0;
  background:#c2c6c8;
  cursor:pointer;
}
.gallery-dot.is-active{background:#205c9b}
.dark .gallery-dot{background:rgba(255,255,255,.34)}
.dark .gallery-dot.is-active{background:#fff}

@media(max-width:760px){
  .project-gallery-stage{
    touch-action:pan-y;
  }
  .project-gallery-media{
    min-height:420px;
    max-height:68vh;
  }
  .project-gallery-media img{
    max-height:68vh !important;
  }
  .gallery-nav{
    width:42px;
    height:42px;
  }
  .gallery-prev{left:10px}
  .gallery-next{right:10px}
}
@media(max-width:430px){
  .project-gallery-media{
    min-height:360px;
    max-height:62vh;
  }
  .project-gallery-media img{
    max-height:62vh !important;
  }
}

/* RC7.10 — unify expanded service navigation */
.service-project-link{
  display:block;
  width:fit-content;
  margin:22px 0 0 auto;
  text-align:right;
  font-weight:700;
}


/* =========================================================
   RC7.11 — service project CTA unity
   Portfolio CTAs live only inside expanded scope panels.
   ========================================================= */
.service-project-cta-row{
  display:flex;
  justify-content:flex-end;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(15,34,48,.12);
}

.service-project-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto !important;
  min-height:44px;
  padding:12px 18px !important;
  margin:0 !important;
  border:2px solid #205c9b !important;
  border-radius:2px;
  background:#205c9b !important;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:850 !important;
  font-size:.82rem;
  line-height:1.1;
  letter-spacing:.02em;
  text-transform:uppercase;
  box-shadow:none;
}

.service-project-btn:hover,
.service-project-btn:focus-visible{
  background:#173f6a !important;
  border-color:#173f6a !important;
  color:#fff !important;
}

@media(max-width:620px){
  .service-project-cta-row{
    justify-content:stretch;
  }
  .service-project-btn{
    width:100% !important;
  }
}

/* RC7.12 final service CTA alignment */
.service-project-cta-row{
  justify-content:flex-start !important;
}
@media(max-width:620px){
  .service-project-cta-row{
    justify-content:flex-start !important;
  }
}

/* RC7.12 mobile hero action unity */
@media(max-width:620px){
  .hero .actions,
  .hero-actions,
  .hero-cta-row{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    width:100%;
  }
  .hero .actions a,
  .hero-actions a,
  .hero-cta-row a{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

/* RC7.13 — isolated Kitchen portfolio anchor correction */
#kitchen.kitchen-anchor-target{
  scroll-margin-top:0 !important;
}

/* RC7.14 — canonical Bathroom Remodels landing */
#bathroom-remodels{
  scroll-margin-top:86px !important;
}
@media(max-width:800px){
  #bathroom-remodels{
    scroll-margin-top:72px !important;
  }
}

/* RC7.15 canonical portfolio anchor spacing */
#bathroom-remodels,
#showers-tubs,
#custom-tile,
#kitchen,
#fireplace-features{
  scroll-margin-top:96px !important;
}

@media(max-width:800px){
  #bathroom-remodels,
  #showers-tubs,
  #custom-tile,
  #kitchen,
  #fireplace-features{
    scroll-margin-top:76px !important;
  }
}

/* RC7.16 — exact Fireplace & Feature Walls landing */
#fireplace-features.fireplace-anchor-target{
  scroll-margin-top:96px !important;
}
@media(max-width:800px){
  #fireplace-features.fireplace-anchor-target{
    scroll-margin-top:76px !important;
  }
}

/* RC7.17 FINAL canonical category anchors.
   JS resolves the viewport to the editorial header block; these are browser fallbacks only. */
#bathroom-remodels,
#showers-tubs,
#custom-tile,
#kitchen,
#fireplace-features{
  scroll-margin-top:0 !important;
}
