/* Service-page additions are isolated from the approved homepage. */
.service-page .site-header { position: relative; }
.kitchen-hero { display: grid; grid-template-columns: .9fr 1.1fr; width: min(calc(100% - 3rem), var(--max)); margin: 2.5rem auto 0; }
.kitchen-hero-copy { align-self: center; padding: 2rem clamp(2rem, 4vw, 5rem) 2rem 0; }
.kitchen-hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.1vw, 5.7rem); line-height: 1.02; }
.kitchen-hero .hero-intro { margin: 1.5rem 0 1.7rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 35ch; }
.kitchen-trust { max-width: 32ch; margin: 1.2rem 0 0; font-size: .8rem; color: var(--muted); }
.kitchen-hero-image { position: relative; margin: 0; height: clamp(32rem, 48vw, 43rem); overflow: hidden; }
.kitchen-hero-image::before { content: ""; position: absolute; top: 0; left: 0; height: 30%; width: .6rem; background: var(--accent); }
.kitchen-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.kitchen-hero-image figcaption { position: absolute; bottom: 1rem; right: 1rem; left: 1rem; width: fit-content; padding: .6rem .85rem; background: rgba(247,244,238,.95); font-size: .72rem; }
.kitchen-work { padding-block: clamp(3.5rem, 6vw, 6rem); }
.kitchen-section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 3rem; margin-bottom: 2rem; }
.service-page h2 { font-size: clamp(2.35rem, 3.8vw, 4rem); line-height: 1.06; }
.kitchen-section-heading h2 { max-width: 19ch; }
.kitchen-section-heading > p { max-width: 34ch; color: var(--muted); margin: 0 0 .2rem; }
.kitchen-gallery { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 1rem; }
.kitchen-gallery figure { margin: 0; min-width: 0; }
.kitchen-gallery a { position: relative; display: block; overflow: hidden; height: clamp(15rem, 25vw, 23rem); background: #ddd6ca; }
.kitchen-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kitchen-gallery a:hover img { transform: scale(1.025); }
.kitchen-gallery figure:nth-child(2) img { object-position: center 30%; }
.gallery-hint { position: absolute; bottom: .7rem; right: .7rem; background: rgba(247,244,238,.95); padding: .4rem .65rem; font-size: .72rem; font-weight: 700; }
.kitchen-gallery figcaption { padding-top: .8rem; font-size: .82rem; color: var(--muted); }
.gallery-next { margin-top: 1.7rem; }
.kitchen-planning { background: #eeebe4; }
.kitchen-planning-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: clamp(3.5rem, 6vw, 6rem); }
.kitchen-planning h2 { max-width: 24ch; }
.planning-intro { max-width: 58ch; color: var(--muted); margin: 1.5rem 0; }
.kitchen-planning .process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.kitchen-planning .process-list li { grid-template-columns: 1fr; align-content: start; gap: .8rem; padding-block: 1.3rem; }
/* The list's top divider matches the step dividers, so it never pairs with the link underline above it (ruled 2026-10-07, variant A). */
.kitchen-planning .process-list { border-top-color: var(--line); }
.kitchen-planning h3 { font-size: 1.08rem; }
.kitchen-questions { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3.5rem, 6vw, 6rem); }
.kitchen-questions h2 { max-width: 16ch; }
.review-label { max-width: 32ch; margin-top: 1.5rem; padding-left: .8rem; border-left: 2px solid var(--accent); color: var(--muted); font-size: .77rem; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.35rem 0; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-list summary h3 { margin: 0; font: inherit; color: inherit; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { max-width: 60ch; margin: 0 1.5rem 1.5rem 0; color: var(--muted); }
.kitchen-contact { display: flex; align-items: center; justify-content: space-between; gap: 3rem; width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
.kitchen-contact h2 { font-size: clamp(2.1rem, 3vw, 3.3rem); }
.kitchen-contact p:not(.eyebrow) { max-width: 45ch; margin-bottom: 0; color: var(--muted); }
.kitchen-contact-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex-shrink: 0; }
.kitchen-contact-actions > a { font-size: .9rem; }
.photo-dialog { width: min(calc(100% - 2rem), 75rem); max-height: calc(100svh - 2rem); padding: 3.5rem 1rem 1rem; border: 0; background: var(--paper); color: var(--ink); }
.photo-dialog::backdrop { background: rgba(18,19,18,.88); }
.photo-dialog figure { margin: 0; }
.photo-dialog img { width: 100%; height: auto; max-height: calc(100svh - 10rem); object-fit: contain; }
.photo-dialog figcaption { margin-top: .7rem; text-align: center; font-size: .8rem; }
.photo-close { position: absolute; right: 1rem; top: .6rem; min-height: 2.5rem; border: 0; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
@media (max-width: 980px) and (min-width: 761px) {
  .kitchen-hero-copy { padding-right: 1.5rem; }
  .kitchen-hero h1 { font-size: 3.6rem; }
}
@media (max-width: 760px) {
  .kitchen-planning .process-list { grid-template-columns: 1fr; gap: 0; }
  .kitchen-planning .process-list li { grid-template-columns: 2rem 1fr; }
  .kitchen-hero { width: calc(100% - 2rem); grid-template-columns: 1fr; margin-top: 0; }
  .kitchen-hero-copy { padding: 2.5rem 0 2rem; }
  .kitchen-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .kitchen-hero .hero-intro { max-width: 43ch; }
  .kitchen-hero-image { height: clamp(23rem, 80vw, 35rem); }
  .kitchen-section-heading, .kitchen-planning-inner, .kitchen-questions { grid-template-columns: 1fr; gap: 1.8rem; }
  .kitchen-section-heading > p { max-width: 45ch; }
  .service-page h2 { font-size: clamp(2.25rem, 8vw, 3.3rem); }
  .kitchen-planning h2, .kitchen-questions h2 { max-width: 22ch; }
  .kitchen-contact { width: calc(100% - 2rem); align-items: flex-start; flex-direction: column; gap: 1.8rem; }
  .kitchen-contact-actions { align-items: flex-start; }
}
@media (max-width: 600px) {
  .kitchen-gallery { grid-template-columns: 1fr 1fr; gap: 1.5rem .75rem; }
  .kitchen-gallery figure:first-child { grid-column: 1 / -1; }
  .kitchen-gallery a { height: auto; aspect-ratio: 4 / 5; }
  .kitchen-gallery figure:first-child a { aspect-ratio: 4 / 3; }
  .kitchen-gallery figure:nth-child(2) img { object-position: center 24%; }
  .kitchen-work, .kitchen-planning-inner, .kitchen-questions { padding-block: 3rem; }
}

.bathroom-page .kitchen-hero-image img { object-position: 57% center; }
.bathroom-page .kitchen-gallery figure:nth-child(2) img { object-position: center; }

/* About and new-home pages retain the site identity with distinct compositions. */
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,6vw,6rem); align-items: center; padding-block: 3rem 4rem; }
.about-intro h1 { max-width: 15ch; font-size: clamp(3rem,4.8vw,5.4rem); line-height: 1.04; }
.about-intro .hero-intro { max-width: 48ch; font-size: 1.08rem; }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; height: auto; max-height: 46rem; object-fit: contain; }
.about-portrait figcaption, .new-home-photo figcaption, .new-home-details figcaption { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.about-approach { padding-block: 3rem 5rem; border-top: 1px solid var(--line); }
.about-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; margin-top: 2.5rem; }
.about-principles article { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.about-principles p { color: var(--muted); max-width: 55ch; }
.about-quote { margin-top: 3rem; border-left: 3px solid var(--accent); padding-left: 1.5rem; max-width: 45rem; }
.about-quote blockquote { margin: 0; font-size: clamp(2rem,4vw,3rem); }
.about-process { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-block: 4rem; }
.about-process .process-list { display: block; }
.about-process .process-list li { grid-template-columns: 2rem 1fr; }
.new-home-opening { padding-block: 3rem 2rem; }
.new-home-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 2.5rem; }
.new-home-heading h1 { max-width: 14ch; font-size: clamp(3.2rem,5.5vw,6rem); line-height: 1.02; }
.new-home-heading .hero-intro { margin-top: 0; font-size: 1.15rem; }
.new-home-photo { margin: 0; }
.new-home-photo img { width: 100%; height: auto; }
.new-home-details { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; padding-block: 3rem 5rem; }
.new-home-details figure { margin: 0; }
.new-home-details img { width: 100%; height: auto; }
.new-home-details p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 760px) {
 .about-intro, .about-principles, .about-process, .new-home-heading, .new-home-details { grid-template-columns: 1fr; gap: 2rem; }
 .about-intro, .new-home-opening { padding-top: 2rem; }
 .about-intro h1, .new-home-heading h1 { font-size: clamp(2.8rem,10vw,4.5rem); }
 .about-process { padding-block: 3rem; }
 .new-home-details { padding-block: 2rem 3rem; }
}

/* Dedicated process page and the fuller new-build planning sections. */
.about-process-link { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-block: 4rem; align-items: center; }
.about-process-link p { max-width: 45ch; }
.new-build-routes { padding-block: 3rem 2rem; }
.new-build-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.new-build-route-grid article { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.new-build-route-grid h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; margin-top: .8rem; }
.new-build-route-grid p { color: var(--muted); max-width: 58ch; }
.new-build-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; padding-block: 4rem; }
.new-build-scope h2 { max-width: 16ch; }
.new-build-scope p { max-width: 44ch; color: var(--muted); }
.new-build-scope dl { margin: 0; }
.new-build-scope dl > div { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.new-build-scope dt { font-weight: 750; }
.new-build-scope dd { margin: .5rem 0 0; color: var(--muted); }
@media (max-width: 760px) {
 .about-process-link, .new-build-route-grid, .new-build-scope { grid-template-columns: 1fr; gap: 1.5rem; }
 .new-build-route-grid { gap: 2rem; }
}

/* Room-based gallery with larger-image browsing and an honest two-view comparison. */
.gallery-opening { padding-block: 3rem 2.5rem; }
.gallery-opening > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.gallery-opening h1 { max-width: 10ch; font-size: clamp(3.5rem,6vw,6rem); line-height: 1; }
.gallery-opening .hero-intro { margin: 0; max-width: 40ch; }
.gallery-jump { position: sticky; z-index: 5; top: 0; display: flex; gap: 2rem; padding-block: 1rem; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-jump a { display: flex; gap: .75rem; align-items: center; padding: .4rem 0; text-decoration: none; font-weight: 700; }
.gallery-jump a:hover { color: var(--accent); }
.gallery-jump span { color: var(--muted); font-size: .7rem; font-weight: 400; }
.gallery-chapter { padding-block: 3rem 4rem; scroll-margin-top: 6rem; }
.gallery-chapter-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.gallery-chapter-heading h2 { max-width: 17ch; }
.gallery-chapter-heading .text-link { flex-shrink: 0; font-size: .9rem; }
.gallery-editorial { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 3rem 2rem; }
.gallery-photo { margin: 0; min-width: 0; }
.gallery-photo a { display: block; position: relative; overflow: hidden; background: #eeebe4; }
.gallery-photo img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery-photo a:hover img { transform: scale(1.015); }
.gallery-photo figcaption { margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.gallery-editorial .gallery-photo:nth-child(3) { width: 78%; }
.gallery-baths { grid-template-columns: 1.1fr .9fr; }
.gallery-baths .gallery-photo:first-child { grid-column: 1 / -1; width: 80%; }
.gallery-baths .gallery-photo:nth-child(3) { width: 100%; }
.laundry-story { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.laundry-story h3 { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 400; }
.laundry-story > div:first-child > p:last-child { color: var(--muted); max-width: 50ch; }
.laundry-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.laundry-pair figcaption { color: var(--ink); font-weight: 750; }
.gallery-customer { padding-block: 2.5rem 4rem; }
.photo-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.photo-controls button { min-height: 2.75rem; padding: .5rem .8rem; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.photo-controls button:disabled { opacity: .4; cursor: default; }
.photo-controls span { font-size: .8rem; }
.photo-dialog img { max-height: calc(100svh - 14rem); }
@media (max-width: 760px) {
 .gallery-opening > div, .gallery-editorial { grid-template-columns: 1fr; gap: 1.5rem; }
 .gallery-jump { gap: 1.25rem; flex-wrap: wrap; padding-block: .65rem; }
 .gallery-jump a { font-size: .85rem; gap: .4rem; }
 .gallery-chapter-heading { display: block; }
 .gallery-chapter-heading .text-link { margin-top: 1.5rem; }
 .gallery-editorial .gallery-photo:nth-child(3), .gallery-baths .gallery-photo:first-child { width: 100%; }
 .gallery-photo img { max-height: 75svh; object-fit: contain; }
 .gallery-chapter { padding-block: 2.5rem; }
 .laundry-pair { gap: .75rem; }
 .photo-controls { gap: .5rem; }
 .photo-controls button { font-size: .85rem; padding-inline: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } .gallery-photo a:hover img { transform: none; } }

/* Duplex progress photographs; foundation derivatives cropped to reduce sky. */
.duplex-progress { padding-block: 3rem; }
.duplex-progress .section-heading p:last-child { max-width: 48ch; }
.duplex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.duplex-photo { margin: 0; min-width: 0; }
.duplex-photo a { display: block; position: relative; }
.duplex-photo img { width: 100%; height: auto; }
.duplex-photo figcaption { color: var(--muted); font-size: .85rem; margin-top: .75rem; }
.duplex-photo:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .duplex-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Basement service page: distinct starting points and separately captioned work. */
.basement-page .kitchen-hero h1 { max-width: 13ch; font-size: clamp(3rem, 4.8vw, 5rem); }
.basement-aside { margin: 1.2rem 0 0; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.85rem); font-style: italic; }
.basement-page .kitchen-hero .hero-intro { max-width: 39ch; }
.basement-page .kitchen-hero-image img { object-position: 40% center; }
.basement-possibilities { padding-block: clamp(3rem, 6vw, 6rem); }
.basement-gallery { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.basement-gallery .gallery-photo:first-child { width: 90%; }
.basement-approach { padding-block: clamp(3rem, 6vw, 6rem); }
.basement-approach h2 { max-width: 21ch; }
.basement-services { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.basement-services article { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.basement-services h3 { font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.035em; }
.basement-services article > p:last-child { max-width: 53ch; color: var(--muted); }
.basement-plan-note { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.basement-plan-note p { margin: 0; max-width: 42ch; font-size: 1.2rem; font-weight: 650; }
.basement-plan-note a { flex-shrink: 0; }
.basement-customer { border-top: 0; padding-block: 4rem; }
.basement-quotes { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); }
.basement-quotes figure + figure { padding-left: 2rem; border-left: 1px solid var(--line); }
.basement-quotes blockquote { font-size: clamp(1.65rem, 2.5vw, 2.4rem); }
.basement-questions { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
 .basement-page .kitchen-hero h1 { font-size: clamp(2.8rem, 10vw, 4.5rem); max-width: 15ch; }
 .basement-page .kitchen-hero-image { height: auto; aspect-ratio: 4/3; }
 .basement-gallery, .basement-services, .basement-quotes { grid-template-columns: 1fr; gap: 2rem; }
 .basement-gallery .gallery-photo:first-child { width: 80%; }
 .basement-plan-note { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
 .basement-quotes figure + figure { padding: 2rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Gallery, phone widths: the opening screen shows the start of the first photo as the scroll cue.
   The H1 matches the service pages' phone size; wording unchanged. Desktop untouched. */
@media (max-width: 600px) {
 .gallery-opening { padding-block: 1.5rem 1.25rem; }
 .gallery-opening > div { gap: 1rem; }
 .gallery-opening h1 { font-size: 2.8rem; line-height: 1.02; }
 #gallery-kitchens { padding-top: 1.5rem; }
 #gallery-kitchens .gallery-chapter-heading { margin-bottom: 1.25rem; }
 #gallery-kitchens .gallery-chapter-heading .text-link { margin-top: 1rem; }
}
