/* Body sections of the eighteen city pages built by scripts/scaffold-new-cities.mjs.
   Used by: /kitchens/beaverton-or/, /bathrooms/beaverton-or/,
   /kitchens/battle-ground-wa/, /bathrooms/battle-ground-wa/,
   /kitchens/happy-valley-or/, /bathrooms/happy-valley-or/,
   /kitchens/washougal-wa/, /bathrooms/washougal-wa/,
   /kitchens/hillsboro-or/, /bathrooms/hillsboro-or/,
   /kitchens/west-linn-or/, /bathrooms/west-linn-or/,
   /kitchens/oregon-city-or/, /bathrooms/oregon-city-or/,
   /kitchens/tigard-or/, /bathrooms/tigard-or/,
   /kitchens/gresham-or/, /bathrooms/gresham-or/
   Rounded corners are re-applied with !important to beat the site-wide
   "sharp edges" reset in the site stylesheet. */

.cp { background: var(--white, #fff); }
.cp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.cp-sec { padding: 76px 0; }
.cp-sec + .cp-sec { border-top: 1px solid rgba(0,0,0,0.07); }
.cp-sec--cream { background: var(--cream, #F7F5EF); border-top: 0 !important; }
.cp-sec--cream + .cp-sec { border-top: 0; }
.cp-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red, #E03030); margin: 0 0 14px; }
.cp-h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.1vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--charcoal, #0f0f0f); margin: 0 0 16px; max-width: 820px; }
.cp-h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--charcoal, #0f0f0f); margin: 34px 0 10px; }
.cp p { font-size: 16px; line-height: 1.75; color: #4f4f4f; margin: 0 0 14px; max-width: 760px; }
.cp p.cp-lead { font-size: 17px; color: #3f3f3f; }
.cp a:not(.btn):not(.cp-btn) { color: var(--charcoal, #0f0f0f); text-decoration: underline; text-decoration-color: var(--red, #E03030); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.cp a:not(.btn):not(.cp-btn):hover { color: var(--red, #E03030); }
.cp ul, .cp ol { max-width: 760px; }

/* Scope chips under the first heading */
.cp-scope { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.cp-scope li { font-family: var(--sans); font-size: 13.5px; color: var(--charcoal, #0f0f0f); background: var(--cream, #F7F5EF); border: 1px solid rgba(0,0,0,0.07); border-radius: 999px !important; padding: 7px 14px; }
.cp-sec--cream .cp-scope li { background: #fff; }

/* Comparison tables */
.cp-table-wrap { margin: 26px 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; background: #fff; border: 1px solid rgba(0,0,0,0.09); border-radius: 12px !important; overflow: hidden; font-family: var(--sans); }
.cp-table caption { text-align: left; font-size: 13px; color: #6b6b6b; padding: 0 0 10px; caption-side: top; }
.cp-table th, .cp-table td { text-align: left; vertical-align: top; padding: 16px 18px; font-size: 14.5px; line-height: 1.6; color: #4f4f4f; border-bottom: 1px solid rgba(0,0,0,0.07); }
.cp-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal, #0f0f0f); background: #f3f0ea; }
.cp-table tbody th { font-weight: 600; color: var(--charcoal, #0f0f0f); width: 24%; }
.cp-table tbody tr:last-child th, .cp-table tbody tr:last-child td { border-bottom: 0; }

/* Checklists and numbered sequences */
.cp-check { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 12px; }
.cp-check li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.65; color: #4f4f4f; }
.cp-check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border: 1.5px solid var(--red, #E03030); border-radius: 5px !important; }
.cp-check li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border: solid var(--red, #E03030); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cp-check strong, .cp-steps strong { color: var(--charcoal, #0f0f0f); }
.cp-steps { list-style: none; counter-reset: cp; padding: 0; margin: 20px 0 8px; display: grid; gap: 14px; }
.cp-steps li { counter-increment: cp; position: relative; padding-left: 46px; font-size: 15.5px; line-height: 1.65; color: #4f4f4f; min-height: 30px; }
.cp-steps li::before { content: counter(cp); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50% !important; background: var(--charcoal, #0f0f0f); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Two columns */
.cp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 44px; margin-top: 22px; }
.cp-cols > div > :first-child { margin-top: 0; }
.cp-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px !important; padding: 26px 26px 18px; }
.cp-sec--cream .cp-card { border-color: rgba(0,0,0,0.06); }
.cp-card h3 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--charcoal, #0f0f0f); margin: 0 0 10px; }
.cp-card p, .cp-card li { font-size: 15px; }

/* Labeled illustration / worked example */
.cp-example { margin: 26px 0 10px; max-width: 820px; border-left: 3px solid var(--red, #E03030); background: var(--cream, #F7F5EF); border-radius: 0 12px 12px 0 !important; padding: 22px 26px 12px; }
.cp-sec--cream .cp-example { background: #fff; }
.cp-example-tag { display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red, #E03030); margin: 0 0 8px; }
.cp-example p { font-size: 15px; }

/* Project figures */
.cp-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 8px; }
.cp-figs { display: grid; gap: 12px; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.cp-fig { margin: 0; }
.cp-fig img { display: block; width: 100%; height: auto; border-radius: 12px !important; }
.cp-fig figcaption { font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: #6b6b6b; margin-top: 8px; }
.cp-fig figcaption strong { color: var(--charcoal, #0f0f0f); font-weight: 600; }

/* Local sources */
.cp-local { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.cp-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cp-sources li { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #5a5a5a; border-left: 2px solid var(--red, #E03030); padding-left: 14px; }
.cp-sources strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal, #0f0f0f); margin-bottom: 4px; }

/* CTA band */
.cp-cta { background: var(--charcoal, #0f0f0f); padding: 56px 0; }
.cp-cta .cp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cp-cta-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; color: #F7F5EF; margin: 0 0 6px; }
.cp .cp-cta p { color: rgba(247,245,239,0.7); margin: 0; font-size: 15px; }
.cp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-cta .cp-phone { color: #F7F5EF !important; text-decoration-color: rgba(247,245,239,0.4) !important; font-family: var(--sans); font-size: 15px; align-self: center; }

/* Links section (after the FAQ) */
.cp-links { background: var(--charcoal, #0f0f0f); padding: 72px 0 68px; }
.cp-links .cp-label { color: var(--red, #E03030); }
.cp-links-title { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; letter-spacing: -0.03em; color: #F7F5EF; margin: 0 0 34px; }
.cp-links-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.cp-links-list li { display: flex; flex-direction: column; gap: 4px; }
.cp-links-list a { font-family: var(--sans); font-size: 15.5px; font-weight: 500; color: #F7F5EF; text-decoration: none; border-bottom: 1px solid rgba(247,245,239,0.22); padding-bottom: 2px; align-self: flex-start; transition: border-color .2s ease; }
.cp-links-list a:hover, .cp-links-list a:focus-visible { border-color: var(--red, #E03030); }
.cp-links-list span { font-size: 13px; color: rgba(247,245,239,0.5); line-height: 1.55; }

.cp a:focus-visible, .cp-links a:focus-visible { outline: 2px solid var(--red, #E03030); outline-offset: 3px; }

@media (max-width: 900px) {
  .cp-sec { padding: 56px 0; }
  .cp-wrap { padding: 0 22px; }
  .cp-cols, .cp-project, .cp-local { grid-template-columns: 1fr; gap: 26px; }
  .cp-links-list { grid-template-columns: 1fr; gap: 22px; }
  .cp-links { padding: 56px 0 52px; }
}
@media (max-width: 640px) {
  .cp-table { min-width: 0; border: 0; background: none; }
  .cp-table thead { display: none; }
  .cp-table tbody tr { display: block; background: #fff; border: 1px solid rgba(0,0,0,0.09); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
  .cp-table tbody th, .cp-table tbody td { display: block; width: auto; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 12px 16px; }
  .cp-table tbody th { background: #f3f0ea; }
  .cp-table tbody td::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal, #0f0f0f); margin-bottom: 3px; }
  .cp-table tbody tr td:last-child { border-bottom: 0; }
  .cp-figs { grid-template-columns: 1fr; }
  .cp-cta .btn { width: 100%; justify-content: center; text-align: center; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Estimate strip after Recent Projects (same look as the home page's band) */
.cp-strip { background: #0f0f0f; padding: clamp(40px, 4.5vw, 64px) clamp(24px, 5.5vw, 80px); border-top: 1px solid #2a2a2a; }
.cp-strip-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cp-strip-title { font-family: 'Roslindale', 'Poppins', serif; font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 0; }
.cp-strip-sub { margin: 6px 0 0; font-family: var(--sans); font-size: 16px; color: rgba(255,255,255,0.7); }
.cp-strip .btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; }
.cp-strip .btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.cp-strip .btn:hover svg { transform: translateX(4px); }
@media (max-width: 560px) { .cp-strip .btn { width: 100%; justify-content: center; } }
