/* Shared stylesheet moved out of inline <style> blocks so browsers cache it.
   Used by: /projects/coastal-calm-bathroom-remodel/, /projects/luxury-spa-primary-bathroom/ */

  /* ── HERO ─────────────────────────────────────────────────────── */
  .cs-hero { background: var(--charcoal); color: var(--cream); padding: 150px 0 0; }
  .cs-crumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; letter-spacing: 0.04em; color: rgba(247,245,239,0.55);
    margin-bottom: 28px;
  }
  .cs-crumb a { color: rgba(247,245,239,0.8); border-bottom: 1px solid transparent; }
  .cs-crumb a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
  .cs-crumb span[aria-current] { color: rgba(247,245,239,0.55); }
  .cs-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--red); display: block; margin-bottom: 18px;
  }
  .cs-hero h1 {
    font-family: 'Roslindale', 'Poppins', serif;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    font-weight: 600; line-height: 1.12; letter-spacing: normal;
    max-width: 900px; margin-bottom: 20px;
  }
  .cs-hero h1 em { font-family: var(--italic); font-style: italic; font-size: 1.12em; color: var(--red); }
  .cs-place {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: rgba(247,245,239,0.75); margin-bottom: 22px;
  }
  .cs-place svg { width: 16px; height: 16px; flex-shrink: 0; }
  .cs-lead {
    font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.65;
    color: rgba(247,245,239,0.82); max-width: 760px;
  }
  /* Fast-facts strip: the four things a prospect scans for first. */
  .cs-facts {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1px; background: rgba(247,245,239,0.14);
    margin: 46px 0 0; border-top: 1px solid rgba(247,245,239,0.14);
  }
  .cs-fact { background: var(--charcoal); padding: 24px 22px 26px; }
  .cs-fact dt {
    font-size: 10.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(247,245,239,0.5); margin-bottom: 9px;
  }
  .cs-fact dd { font-size: 16px; font-weight: 500; color: var(--cream); line-height: 1.35; }
  @media(max-width: 1040px) { .cs-facts { grid-template-columns: repeat(3, 1fr); } }
  /* Five tiles never divide evenly, so the last one fills the short row
     instead of leaving a hole in the grid. */
  @media(max-width: 1040px) and (min-width: 861px) { .cs-fact:last-child { grid-column: span 3; } }
  @media(max-width: 860px) {
    .cs-facts { grid-template-columns: repeat(2, 1fr); }
    .cs-fact:last-child { grid-column: span 2; }
  }
  @media(max-width: 480px) {
    .cs-hero { padding-top: 128px; }
    .cs-facts { grid-template-columns: 1fr; }
    .cs-fact { padding: 18px 0 19px; }
    .cs-fact:last-child { grid-column: auto; }
  }

  .cs-lead-img { margin-top: 56px; }
  .cs-lead-img img { width: 100%; height: auto; }
  .cs-lead-img figcaption {
    font-size: 12.5px; color: var(--stone-lt); padding: 14px 32px 0;
    max-width: 1200px; margin: 0 auto;
  }

  /* ── SECTION SHELL ────────────────────────────────────────────── */
  .cs-sec { padding: 84px 0; }
  .cs-sec.alt { background: var(--cream-mid); }
  .cs-sec.dark { background: var(--charcoal); color: var(--cream); }
  .cs-sec-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brass); display: block; margin-bottom: 16px;
  }
  .cs-sec.dark .cs-sec-label { color: var(--red); }
  .cs-h2 {
    font-family: 'Roslindale', 'Poppins', serif; letter-spacing: normal;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.18;
    margin-bottom: 22px; max-width: 800px;
  }
  .cs-h2 em { font-family: var(--italic); font-style: italic; font-size: 1.15em; color: var(--red); }
  .cs-body { max-width: 760px; }
  .cs-body p { font-size: 15.5px; line-height: 1.72; color: var(--stone); margin-bottom: 18px; }
  .cs-sec.dark .cs-body p { color: rgba(247,245,239,0.8); }
  .cs-body p:last-child { margin-bottom: 0; }
  .cs-body strong { font-weight: 600; color: var(--charcoal); }
  .cs-sec.dark .cs-body strong { color: var(--cream); }
  @media(max-width: 640px) { .cs-sec { padding: 60px 0; } }

  /* ── PROBLEM LIST ─────────────────────────────────────────────── */
  .cs-pain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
  .cs-pain li {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--white); border-left: 2px solid var(--red);
    padding: 17px 19px; font-size: 14.5px; line-height: 1.55; color: var(--stone);
  }
  .cs-pain svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
  @media(max-width: 760px) { .cs-pain { grid-template-columns: 1fr; } }

  /* ── BEFORE / AFTER ───────────────────────────────────────────── */
  .cs-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px; }
  .cs-ba figure { margin: 0; }
  .cs-ba img { width: 100%; height: auto; }
  .cs-ba figcaption {
    display: flex; align-items: center; gap: 9px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--stone-lt); padding-top: 12px;
  }
  .cs-ba-pill {
    background: var(--charcoal); color: var(--cream);
    padding: 3px 9px; font-size: 10px; letter-spacing: 0.12em;
  }
  .cs-ba-pill.after { background: var(--red); }
  @media(max-width: 760px) { .cs-ba { grid-template-columns: 1fr; } }

  /* ── SOLUTION MOVES ───────────────────────────────────────────── */
  .cs-moves { display: grid; gap: 1px; background: var(--cream-dark); margin-top: 40px; }
  .cs-move { background: var(--white); display: grid; grid-template-columns: 76px 1fr; }
  .cs-sec.alt .cs-move { background: var(--cream); }
  .cs-move-n {
    font-family: 'Roslindale', 'Poppins', serif; font-size: 1.5rem; font-weight: 600;
    color: var(--red); display: flex; align-items: flex-start; justify-content: center;
    padding: 30px 0 0;
  }
  .cs-move-b { padding: 28px 30px 30px 4px; }
  .cs-move-b h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 10px; color: var(--charcoal); }
  .cs-move-b p { font-size: 14.5px; line-height: 1.65; color: var(--stone); }
  @media(max-width: 560px) {
    .cs-move { grid-template-columns: 1fr; }
    .cs-move-n { padding: 24px 24px 0; justify-content: flex-start; }
    .cs-move-b { padding: 10px 24px 26px; }
  }

  /* ── SPLIT (text + image) ─────────────────────────────────────── */
  .cs-split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 52px; align-items: center; }
  .cs-split img { width: 100%; height: auto; }
  @media(max-width: 900px) { .cs-split { grid-template-columns: 1fr; gap: 34px; } }

  /* ── SCOPE CHECKLIST ─────────────────────────────────────────── */
  .cs-scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 34px; margin-top: 34px; }
  .cs-scope li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 14.5px; line-height: 1.55; color: var(--stone);
    padding: 11px 0; border-bottom: 1px solid var(--cream-dark);
  }
  .cs-sec.dark .cs-scope li { color: rgba(247,245,239,0.8); border-bottom-color: rgba(247,245,239,0.14); }
  .cs-scope svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
  @media(max-width: 760px) { .cs-scope { grid-template-columns: 1fr; } }

  /* ── SPEC TABLE ──────────────────────────────────────────────── */
  .cs-spec { margin-top: 38px; border-top: 1px solid var(--cream-dark); }
  .cs-spec-row {
    display: grid; grid-template-columns: 216px 1fr; gap: 26px;
    padding: 20px 0; border-bottom: 1px solid var(--cream-dark);
  }
  .cs-spec-k {
    font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--brass); padding-top: 2px;
  }
  .cs-spec-v { font-size: 14.5px; line-height: 1.62; color: var(--stone); }
  .cs-spec-v strong { color: var(--charcoal); font-weight: 600; }
  @media(max-width: 700px) {
    .cs-spec-row { grid-template-columns: 1fr; gap: 8px; }
  }

  /* ── TIMELINE ────────────────────────────────────────────────── */
  .cs-time { margin-top: 40px; border-left: 1px solid rgba(247,245,239,0.2); }
  .cs-time-row { position: relative; padding: 0 0 30px 30px; }
  .cs-time-row:last-child { padding-bottom: 0; }
  .cs-time-row::before {
    content: ''; position: absolute; left: -4.5px; top: 6px;
    width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  }
  .cs-time-w {
    font-size: 10.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--red); margin-bottom: 8px;
  }
  .cs-time-row h3 { font-size: 15.5px; font-weight: 600; color: var(--cream); margin-bottom: 7px; }
  .cs-time-row p { font-size: 14px; line-height: 1.6; color: rgba(247,245,239,0.7); }

  /* ── PHOTO GRID ──────────────────────────────────────────────── */
  .cs-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 38px;
  }
  .cs-shot {
    padding: 0; overflow: hidden; background: var(--cream-dark);
    aspect-ratio: 1 / 1; display: block; width: 100%;
  }
  .cs-shot img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.3s ease;
  }
  .cs-shot:hover img { transform: scale(1.05); opacity: 0.92; }
  .cs-shot:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  @media(max-width: 900px) { .cs-grid { grid-template-columns: repeat(3, 1fr); } }
  @media(max-width: 560px) { .cs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

  /* ── TESTIMONIAL ─────────────────────────────────────────────── */
  .cs-quote { max-width: 860px; margin: 0 auto; text-align: center; }
  .cs-stars { display: flex; gap: 4px; justify-content: center; margin-bottom: 26px; }
  .cs-stars svg { width: 19px; height: 19px; color: #E8B44A; }
  .cs-quote blockquote {
    font-family: var(--italic); font-style: italic;
    font-size: clamp(1.15rem, 2.3vw, 1.7rem); line-height: 1.5;
    color: var(--charcoal); margin-bottom: 28px;
  }
  .cs-quote-by { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 5px; }
  .cs-quote-src { font-size: 12.5px; color: var(--stone-lt); }

  /* ── FAQ ─────────────────────────────────────────────────────── */
  .cs-faq-wrap { max-width: 860px; }
  .faq-item { border-bottom: 1px solid var(--cream-dark); }
  .faq-question {
    width: 100%; text-align: left; padding: 22px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 15.5px; font-weight: 500; color: var(--charcoal);
    transition: color 0.2s ease;
  }
  .faq-question:hover, .faq-question.open { color: var(--red); }
  .faq-icon {
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 17px; color: var(--stone); transition: color 0.2s ease;
  }
  .faq-question.open .faq-icon { color: var(--red); }
  .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1); }
  /* Answers here run long (product specs, permit detail), so the open height is
     well above the 500px used on the shorter service-page FAQs. */
  .faq-answer.open { max-height: 1400px; }
  .faq-answer-inner {
    padding: 0 48px 24px 0; font-size: 14.5px; line-height: 1.68; color: var(--stone);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
  }
  .faq-answer.open .faq-answer-inner { opacity: 1; transform: translateY(0); }
  @media(max-width: 560px) { .faq-answer-inner { padding-right: 8px; } }

  /* ── RELATED LINKS ───────────────────────────────────────────── */
  .cs-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
  .cs-link {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--white); padding: 24px 24px 26px;
    border: 1px solid var(--cream-dark);
    transition: border-color 0.25s ease, transform 0.35s var(--ease-out-expo);
  }
  .cs-link:hover { border-color: var(--charcoal); transform: translateY(-3px); }
  .cs-link-k {
    font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brass);
  }
  .cs-link-t { font-size: 15.5px; font-weight: 600; color: var(--charcoal); line-height: 1.35; }
  .cs-link-d { font-size: 13.5px; line-height: 1.55; color: var(--stone-lt); }
  .cs-link-go {
    font-size: 12.5px; font-weight: 500; color: var(--red);
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  }
  .cs-link-go svg { width: 13px; height: 13px; }
  @media(max-width: 900px) { .cs-links { grid-template-columns: repeat(2, 1fr); } }
  @media(max-width: 560px) { .cs-links { grid-template-columns: 1fr; } }
  /* ── LIGHTBOX ─────────────────────────────────────────────────── */
  .lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10,10,10,0.96);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .lb[hidden] { display: none; }
  .lb.lb-open { opacity: 1; }
  .lb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    flex-shrink: 0;
  }
  .lb-meta { min-width: 0; }
  .lb-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lb-sub {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
  }
  .lb-close {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .lb-close:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
  .lb-close svg { width: 16px; height: 16px; }
  .lb-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 68px;
    touch-action: pan-y;
  }
  .lb-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }
  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .lb-nav:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
  .lb-nav[hidden] { display: none; }
  .lb-nav svg { width: 18px; height: 18px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-foot {
    flex-shrink: 0;
    padding: 14px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .lb-counter {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
  }
  .lb-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .lb-thumbs::-webkit-scrollbar { display: none; }
  .lb-thumb {
    width: 62px; height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0.5;
    overflow: hidden;
    transition: opacity 0.2s ease, border-color 0.2s ease;
  }
  .lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .lb-thumb:hover { opacity: 0.85; }
  .lb-thumb[aria-current="true"] { opacity: 1; border-color: #fff; }
  @media(max-width: 640px) {
    .lb-stage { padding: 0 12px; }
    .lb-nav { width: 40px; height: 40px; }
    .lb-prev { left: 4px; }
    .lb-next { right: 4px; }
    .lb-thumbs { display: none; }
  }

  /* ── CTA BAND ─────────────────────────────────────────────────── */
  .proj-cta { background: var(--charcoal); padding: 80px 0; }
  .proj-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  .proj-cta h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    max-width: 520px;
  }
  .proj-cta h2 em { font-family: var(--italic); font-style: italic; font-size: 1.2em; color: var(--red); }
  .proj-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }
  @media(max-width: 768px) {
    .proj-cta { padding: 56px 0; }
    .proj-cta-inner { flex-direction: column; align-items: flex-start; }
    .proj-cta-actions .btn { width: 100%; justify-content: center; }
  }
