/* Service pages share the homepage palette and keep their original facts and media. */
.pt-service-page {
  --service-ink: #263a4c;
  --service-muted: #445769;
  --service-line: #dce4e9;
  --service-paper: #f7f5ef;
  --service-width: min(100% - 36px, 1240px);
}

.pt-service-front {
  padding-block: clamp(20px, 3vw, 44px) clamp(28px, 4vw, 54px);
  background: var(--service-paper);
}

.pt-service-shell {
  width: var(--service-width);
  margin-inline: auto;
}

.pt-service-crumb ol {
  display: flex;
  flex-wrap: wrap;
  column-gap: 9px;
  margin: 0 0 clamp(16px, 3vw, 30px);
  padding: 0;
  list-style: none;
  color: var(--service-muted);
  font: 600 14px/1.5 system-ui, sans-serif;
}

.pt-service-crumb li {
  margin: 0;
  padding: 0;
}

.pt-service-crumb li::before {
  content: none !important;
}

.pt-service-crumb li:not(:last-child)::after {
  margin-left: 9px;
  content: '/';
}

.pt-service-crumb a,
.pt-service-estimate-copy a,
.pt-service-page a.pt-service-jump {
  color: var(--service-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.pt-service-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(19px, 4vw, 62px);
}

.pt-service-front h1,
.pt-service-estimate h2 {
  margin: 0;
  color: var(--service-ink);
  font: 760 clamp(28px, 4vw, 56px)/1.08 system-ui, sans-serif !important;
  letter-spacing: -.036em;
}

.pt-service-front h1::after,
.pt-service-estimate h2::after {
  content: none !important;
}

.pt-service-intro p,
.pt-service-estimate-copy p {
  max-width: 53ch;
  margin: 14px 0 17px;
  color: var(--service-muted);
  font: 400 clamp(16px, 1.5vw, 19px)/1.52 system-ui, sans-serif;
}

.pt-service-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  background: #e6e8e9;
}

.pt-service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(13px, 2vw, 21px);
  row-gap: 3px;
}

.pt-service-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font: 700 15px/1.3 system-ui, sans-serif;
}

.pt-service-page a.pt-service-button {
  padding: 10px 17px;
  border-radius: var(--pt-radius);
  background: var(--pt-action);
  color: #fff;
  text-decoration: none;
}

.pt-service-page a.pt-service-button:hover {
  background: var(--pt-action-hover);
  color: #fff;
}

.pt-service-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px,100%),1fr));
  gap: 12px;
  margin: clamp(19px, 3vw, 34px) 0 0;
  font: 400 15px/1.45 system-ui, sans-serif;
}

.pt-service-facts > div {
  padding: 13px 15px;
  border: 1px solid var(--service-line);
  border-radius: 8px;
  background: #fff;
}

.pt-service-facts dt {
  margin: 0 0 4px;
  padding: 0;
  color: var(--service-ink);
  font-weight: 700;
}

.pt-service-facts dd {
  margin: 0;
  color: var(--service-muted);
}

.pt-service-page .site-content :is(#service-photos, #shower-photos, #price, #service-estimate) {
  scroll-margin-top: 24px;
}

.pt-service-page .site-content .stm_markup__content :is(h2, h3, h4) {
  margin-block: 0 13px;
  text-align: left !important;
  color: var(--service-ink);
  letter-spacing: -.022em;
}

.pt-service-page .site-content .stm_markup__content h2 {
  font: 730 clamp(23px, 3vw, 34px)/1.2 system-ui, sans-serif !important;
}

.pt-service-page .site-content .stm_markup__content :is(h3, h4) {
  font: 710 clamp(17px, 1.7vw, 22px)/1.3 system-ui, sans-serif !important;
}

.pt-service-page .site-content .stm_markup__content :is(h2, h3, h4)::after {
  content: none !important;
}

.pt-service-page .site-content .wpb_text_column > .wpb_wrapper > :is(p,ul,ol) {
  max-inline-size: 74ch;
  color: var(--service-muted);
}

.pt-service-page .site-content .stm_markup_full {
  padding-top: clamp(21px, 3vw, 42px);
}

.pt-service-page .site-content > div > .container:has(> .stm_markup_full) {
  width: var(--service-width);
  padding-inline: 0;
}

.pt-service-page .pt-service-block.container,
.pt-service-page .pt-service-videos > .container {
  width: 100%;
  padding-inline: 0;
}

.pt-service-block > .vc_row,
.pt-service-videos > .container > .vc_row {
  margin-bottom: 0;
}

.pt-service-block + .pt-service-block {
  margin-top: clamp(28px, 5vw, 62px);
}

.pt-service-block p {
  max-width: 72ch;
}

.pt-gallery-intro {
  margin: 0 0 15px;
  color: var(--service-muted);
  font: 400 16px/1.5 system-ui, sans-serif;
}

.pt-service-note {
  max-width: 68ch;
  margin: 0 0 16px;
  padding: 11px 15px;
  border-inline-start: 3px solid #a8bccb;
  background: #f2f6f8;
  color: var(--service-muted);
  line-height: 1.55;
}

.pt-service-note p:last-child {
  margin-bottom: 0;
}

.pt-service-checklist > .vc_row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.pt-service-checklist > .vc_row::before,
.pt-service-checklist > .vc_row::after {
  display: none;
}

.pt-service-checklist > .vc_row > .wpb_column {
  float: none;
  width: auto;
  min-width: 0;
}

.pt-service-checklist > .vc_row > .wpb_column > .vc_column-inner {
  height: 100%;
  padding: clamp(13px, 2vw, 21px);
  border: 1px solid var(--service-line);
  border-radius: 8px;
  background: #f2f6f8;
}

.pt-service-checklist ul {
  margin-bottom: 0;
}

.pt-service-method .wpb_text_column > .wpb_wrapper > h2:not(:first-child) {
  margin-top: clamp(22px, 4vw, 44px);
}

/* An individual article photo can use the whole section width. */
.pt-service-page .site-content .pt-service-method .wpb_text_column > .wpb_wrapper > :is(figure.wp-caption, p:has(> img:only-child)) {
  width: 100% !important;
  max-inline-size: 100%;
  margin: 16px 0 20px !important;
  padding: 0;
  border: 0;
}

.pt-service-method .wpb_wrapper > :is(figure.wp-caption, p:has(> img:only-child)) > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 10px;
}

.pt-service-method figure.wp-caption:has(> figcaption) > img {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.pt-service-method figure.wp-caption > figcaption {
  margin: 0;
  padding: 9px 14px 10px;
  border-radius: 0 0 10px 10px;
  background: #edf2f5;
  color: var(--service-muted);
  font: 400 14px/1.45 system-ui, sans-serif;
  text-align: center;
}

.pt-service-videos .pt-video-link {
  width: 100%;
  max-width: none;
}

.pt-service-videos .wpb_video_widget {
  margin-bottom: 12px;
}

.pt-service-page .stm_carousel.pt-service-gallery .stm_carousel__big {
  display: block !important;
  margin-bottom: 0;
}

.pt-service-page .pt-service-gallery {
  margin-bottom: 0;
}

.pt-service-gallery .stm_carousel__big > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(9px, 1.5vw, 16px);
}

.pt-service-gallery a.stm_lightgallery__selector {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #e7edf1;
}

.pt-service-page .pt-service-gallery .stm_carousel__big img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

/* The static grid doesn't need the old carousel captions, thumbnails, or counter. */
.pt-service-gallery :is(.stm_carousel__description, .stm_carousel__small) {
  display: none !important;
}

.pt-service-page .stm_carousel__pagination {
  display: none !important;
}

.pt-service-page .pt-service-price-table {
  width: 100%;
  overflow-wrap: break-word;
  border: 1px solid var(--service-line);
  color: var(--service-ink);
  background: #fff;
}

.pt-service-page .pt-service-price-table th {
  background: var(--service-ink);
  color: #fff;
}

.pt-service-page .pt-service-price-table tr:nth-child(even) td {
  background: #f2f6f8;
}

.pt-service-estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(17px, 4vw, 44px);
  margin: clamp(23px, 4vw, 50px) 0 34px;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid var(--service-line);
  border-radius: 12px;
  background: #f2f6f8;
}

.pt-service-page .site-content .pt-service-estimate h2 {
  font-size: clamp(24px, 3vw, 37px) !important;
}

.pt-service-estimate-copy a {
  display: inline-block;
  font-weight: 700;
}

@media (max-width: 720px) {
  .pt-service-intro,
  .pt-service-estimate,
  .pt-service-checklist > .vc_row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pt-service-gallery .stm_carousel__big > div {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
