:root {
  --plaster: #F4EFE6;
  --plaster2: #E8E1D4;
  --slate: #2D3A45;
  --yellow: #F2A93B;
  --brick: #D9573F;
  --sage: #7FA7A3;
  --white: #FFFFFF;
  --ink: #1E2830;
  --muted: #58626B;
  --rule: rgba(45, 58, 69, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--plaster); color: var(--ink); }

body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--plaster);
  color: var(--ink);
  line-height: 1.68;
  overflow-x: hidden;
  letter-spacing: 0;
}

.pl-ltr {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
  font-family: 'IBM Plex Mono', monospace;
}

.pl-wrap {
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
}

/* Floating White Pill Contractor Header + Live Spirit Level */
.pl-header-bar {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  z-index: 70;
}

.pl-nav-pill {
  height: 56px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0 16px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 26px -12px rgba(30, 40, 48, 0.25);
}

.pl-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.pl-brand-box {
  width: 28px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.pl-brand-box i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.pl-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.pl-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.pl-links a:hover { color: var(--brick); }

.pl-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pl-vial {
  width: 56px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--slate);
  background: linear-gradient(90deg, #E8EFEA, #D3E6DF, #E8EFEA);
  position: relative;
  overflow: hidden;
}

.pl-vial::before, .pl-vial::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--slate);
}
.pl-vial::before { left: 20px; }
.pl-vial::after { right: 20px; }

.pl-bubble {
  position: absolute;
  top: 2px;
  left: var(--bx, 50%);
  width: 14px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--yellow);
  transition: left 0.12s ease-out;
}

.pl-mini {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: var(--plaster);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.pl-cta-yellow {
  text-decoration: none;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.84rem;
}

/* 2-Tier Architectural Assembly Hero */
.pl-hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.pl-stage {
  position: relative;
  height: 54svh;
  min-height: 410px;
  max-height: 500px;
  background: #DFD8CB;
  overflow: hidden;
  border-bottom: 1.5px solid var(--slate);
  cursor: crosshair;
}

.pl-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Millimeter Ruler Bottom Strip */
.pl-ruler-strip {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(45, 58, 69, 0.55) 0 1px, transparent 1px 16px),
    rgba(244, 239, 230, 0.76);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--slate);
  pointer-events: none;
}

.pl-callout {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid var(--slate);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(30, 40, 48, 0.16);
}

.pl-callout span {
  background: var(--slate);
  color: var(--yellow);
  padding: 1px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
}

.pl-xray {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 46%);
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed var(--yellow);
  background: radial-gradient(circle, rgba(18, 58, 107, 0.34), rgba(127, 167, 163, 0.14) 60%, transparent 74%);
  pointer-events: none;
}

.pl-xray::before {
  content: 'BLUEPRINT';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--slate);
  background: rgba(244, 239, 230, 0.9);
  padding: 1px 6px;
}

/* Architectural Title-Block Bottom Strip */
.pl-titleblock {
  background: var(--plaster);
  display: grid;
  grid-template-columns: 1.38fr 1fr 0.78fr;
}

.pl-tb-col {
  padding: 28px 34px;
  border-inline-end: 1.5px solid var(--rule);
}

.pl-tb-col:last-child { border-inline-end: none; padding: 0; }

.pl-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 14px;
}

.pl-h1 {
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.pl-h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%);
  padding-inline: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pl-tb-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.pl-btn-yellow { background: var(--yellow); color: var(--ink); }
.pl-btn-slate { background: var(--slate); color: var(--white); }

.pl-spec-stack {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.pl-spec-cell {
  padding: 12px 22px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pl-spec-cell:last-child { border-bottom: none; }
.pl-spec-cell small { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; color: var(--muted); }
.pl-spec-cell strong { font-size: 0.92rem; color: var(--ink); }

/* Dark Slate Accreditation Ribbon */
.pl-badges {
  background: var(--slate);
  color: var(--plaster);
  padding: 14px 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.pl-badges span { color: var(--yellow); margin-inline: 10px; }

/* Sections */
.pl-sec { padding: 74px 0; }
.pl-sec-white { background: var(--white); border-block: 1px solid var(--rule); }
.pl-sec-plaster2 { background: var(--plaster2); border-block: 1px solid var(--rule); }

.pl-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 8px;
}

.pl-h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

/* #services 3-Col Flip Cards (See the parts / Back to room) */
.pl-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.pl-flip-card {
  background: var(--white);
  border: 1.5px solid var(--slate);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 270px;
}

.pl-flip-card.is-parts {
  background: var(--slate);
  color: var(--plaster);
}

.pl-flip-card.is-parts p, .pl-flip-card.is-parts li { color: #D4DEE6; }

.pl-flip-card h3 { font-size: 1.3rem; font-weight: 800; }
.pl-flip-card p { font-size: 0.88rem; color: var(--muted); }
.pl-parts-list { display: none; padding-inline-start: 18px; font-size: 0.85rem; line-height: 1.8; }
.pl-flip-card.is-parts .pl-room-copy { display: none; }
.pl-flip-card.is-parts .pl-parts-list { display: block; }

.pl-flip-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--slate);
  background: var(--plaster);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.pl-flip-card.is-parts .pl-flip-btn {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* #results Interactive Before / After Slider */
.pl-ba-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--slate);
  aspect-ratio: 16 / 7.5;
  margin-top: 24px;
  background: var(--slate);
}

.pl-ba-after, .pl-ba-before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.pl-ba-after {
  background:
    linear-gradient(135deg, rgba(244, 239, 230, 0.25), rgba(127, 167, 163, 0.22)),
    url('../assets/art/plumb-level.webp') center / cover no-repeat;
}

.pl-ba-before {
  background:
    repeating-linear-gradient(0deg, rgba(244, 239, 230, 0.08) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.08) 0 1px, transparent 1px 28px),
    #1F2A33;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.pl-ba-tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 3;
}

.pl-ba-tag.t-before { left: 16px; background: var(--slate); color: var(--yellow); border: 1px solid var(--yellow); }
.pl-ba-tag.t-after { right: 16px; background: var(--white); color: var(--ink); border: 1px solid var(--slate); }

.pl-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--yellow);
  z-index: 4;
  pointer-events: none;
}

.pl-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.pl-ba-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* #cta Estimator + Reviews */
.pl-est-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  margin-top: 24px;
  align-items: center;
}

.pl-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pl-mode-btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--slate);
  background: var(--white);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.pl-mode-btn.is-active { background: var(--slate); color: var(--yellow); }

.pl-range { width: 100%; accent-color: var(--brick); margin: 10px 0 14px; cursor: pointer; }

.pl-est-out {
  background: var(--slate);
  color: var(--plaster);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.pl-est-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.15;
}

.pl-quote {
  margin-top: 32px;
  background: var(--white);
  border: 1.5px solid var(--slate);
  border-inline-start: 6px solid var(--yellow);
  border-radius: 10px;
  padding: 22px 26px;
}

.pl-quote blockquote { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.pl-quote cite { font-style: normal; font-size: 0.86rem; color: var(--brick); font-weight: 700; }

/* Footer */
.pl-footer {
  background: var(--slate);
  color: var(--plaster);
  padding: 44px 0 36px;
}

.pl-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.pl-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pl-footer-links a { color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 0.88rem; }

@media (max-width: 720px) {
  .pl-links, .pl-callout, .pl-xray { display: none; }
  .pl-titleblock, .pl-cards-3, .pl-est-grid { grid-template-columns: 1fr; }
  .pl-tb-col { border-inline-end: none; border-bottom: 1px solid var(--rule); }
}
