/* Ceilings & repairs page only (v1.1, 4 Oct 2026; J14 finish-section rules removed). Loaded only by ceilings/index.html.
   styles.css, service.css, plastering.css, structural.css and refurbishments.css are untouched. Everything here is scoped to .ce-* classes
   or to body[data-jb-service="ceilings"]. Patterns follow plastering.css (v1.1, approved). */
.ce-hero .hero-media img { object-position: center 45%; }
.ce-meta-qual { color: #fff; font-weight: 700; }
.ce-nowrap { white-space: nowrap; }

/* Quote form column fix (same rule Extensions carries in a page-scoped <style>; same as plastering.css) */
[data-jb-service="ceilings"] #quote .quote-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { [data-jb-service="ceilings"] #quote .quote-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); } }
[data-jb-service="ceilings"] #quote .quote-layout > *,
[data-jb-service="ceilings"] #quote .form-grid,
[data-jb-service="ceilings"] #quote .form-grid > * { min-width: 0; }
[data-jb-service="ceilings"] #quote input,
[data-jb-service="ceilings"] #quote select,
[data-jb-service="ceilings"] #quote textarea { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }

/* Balanced headings (as Plastering v1.1) so no orphan words at 360-390px */
[data-jb-service="ceilings"] #hero-title,
[data-jb-service="ceilings"] main h2,
[data-jb-service="ceilings"] main h3,
[data-jb-service="ceilings"] main h4 { text-wrap: balance; }

/* Mobile hero spacing (same values as Plastering v1.1 item 3) */
@media (max-width: 899px) {
  .ce-hero .hero-content { padding-top: 0.75rem; padding-bottom: 2rem; }
  .ce-hero .breadcrumb { margin-bottom: 0.1rem; }
  .ce-hero .hero-lead { margin-bottom: 1.15rem; }
}

/* Problems: four symptom cards */
.ce-problems { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ce-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ce-problems { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.ce-problem { background: var(--white); border-top: 3px solid var(--ink); padding: 1.1rem 1.1rem 1.25rem; min-width: 0; }
.ce-problem h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.ce-problem p { margin: 0; color: var(--muted); line-height: 1.55; }
.ce-problem .ce-see { color: var(--ink); font-weight: 600; margin-bottom: 0.6rem; }

/* Routes: repair / board over / replace */
.ce-routes { margin-top: 2.75rem; }
.ce-routes-title { margin: 0 0 1.1rem; font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.2; }
.ce-route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ce-route-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.ce-route { background: var(--white); border-left: 4px solid var(--ink); padding: 1.1rem 1.15rem 1.2rem; min-width: 0; }
.ce-route-red { border-left-color: var(--red); }
.ce-route-num { display: block; font-size: 0.8rem; font-weight: 700; color: var(--red); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.ce-route h4 { margin: 0 0 0.45rem; font-size: 1.1rem; line-height: 1.3; }
.ce-route p { margin: 0; color: var(--muted); line-height: 1.55; }
.ce-routes-note { margin: 1.25rem 0 0; color: var(--muted); max-width: 46rem; line-height: 1.6; }

/* Case studies */
.ce-case .section-head { max-width: 46rem; }
.ce-case .section-head h2 { font-size: clamp(1.8rem, 4.6vw, 2.4rem); }
.ce-fig { margin: 0; min-width: 0; }
.ce-fig picture { display: block; }
.ce-fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; background: #ddd; }
.ce-fig figcaption, .ce-cap { font-size: 0.9rem; color: var(--muted); padding-top: 0.55rem; line-height: 1.4; margin: 0; }
@media (max-width: 639px) { .ce-fig figcaption, .ce-cap { font-size: 0.86rem; } }

/* Stage strips: J03 pair (two frames) and J13 strip (three frames) */
.ce-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-steps-3 > .ce-fig:last-child { grid-column: 1 / -1; }
.ce-steps-3 > .ce-fig:last-child img { aspect-ratio: 4 / 3; }
@media (min-width: 760px) {
  .ce-steps { gap: 1.5rem 1.25rem; }
  .ce-steps-2 { max-width: 56rem; }
  .ce-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-steps-3 > .ce-fig:last-child { grid-column: auto; }
  .ce-steps-3 > .ce-fig:last-child img { aspect-ratio: 4 / 5; }
}
.ce-stage { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.2rem; padding-top: 0.45rem; border-top: 3px solid var(--ink); }
.ce-stage-red { color: var(--red); border-top-color: var(--red); }
.ce-steps .ce-fig picture { margin-bottom: 0.15rem; }
.ce-note { margin: 1.75rem 0 0; color: var(--muted); max-width: 46rem; line-height: 1.6; }
.ce-case .bda-cta { margin-top: 1.5rem; }
.ce-textlink { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* Who does the work */
.ce-who { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .ce-who { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; } }
.ce-who .section-head { margin-bottom: 0; }
.ce-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ce-facts li { padding: 0.9rem 0 0.9rem 1.1rem; border-left: 4px solid var(--red); background: var(--bg); margin-bottom: 0.6rem; }
.ce-facts strong { display: block; font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.ce-facts span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }

/* Reviews: two cards */
@media (min-width: 900px) { [data-jb-service="ceilings"] .ce-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 58rem; } }

/* Process: five steps on one row on wide screens (as Plastering) */
@media (min-width: 1100px) { [data-jb-service="ceilings"] #process .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.75rem; } }

/* FAQ questions: balanced so no one-word last line at 360-390px (page-scoped) */
[data-jb-service="ceilings"] .faq summary { text-wrap: balance; }
