/* Gaffneys Bathroom Services: Regrouting & Sealing page layer (Phase 2).
   Loads after site.css and service.css. Every rule is scoped to rs- classes or .page-regrout,
   so the six approved pages are unaffected.
   Theme: the finishing details. A specimen board of genuine close-ups (shown at their original size,
   never enlarged), a drawn shower corner separating grout from silicone, a graded guide from wear and
   tear to signs worth checking, and the full photos the close-ups came from. */

/* ---------- A. Hero ---------- */
.rs-hero { padding: calc(var(--nav-top) + var(--nav-h) + 48px) 0 96px; }
.rs-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.rs-hero h1 { margin: 18px 0 22px; font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
.rs-hero h1 span { display: block; color: var(--blue-ink); }
.rs-hero__lede { max-width: 35em; font-size: 1.125rem; line-height: 1.6; }
.rs-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rs-hero__creds { margin-top: 26px; font: 500 var(--t-small)/1.4 var(--ui); color: var(--ink); }
.rs-hero__creds span { white-space: nowrap; }
.rs-hero__creds i { font-style: normal; margin: 0 2px; color: var(--blue); }

/* Specimen board: hairline grout grid behind three circular close-ups */
.rs-board { position: relative; padding: 76px 36px 26px; background-color: #fff; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 46px 46px; background-position: -1px -1px; border: 1px solid var(--line); border-radius: 6px var(--arc) 6px var(--arc); box-shadow: 0 40px 80px -60px rgba(16,28,42,.45); }
.rs-board__tag { position: absolute; top: 20px; left: 20px; }
.rs-board__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.rs-spec { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rs-spec--2 { margin-top: 110px; }
.rs-spec--3 { grid-column: 1; margin-top: -36px; transform: translateX(18%); }
.rs-spec__link { display: block; border-radius: 50%; }
.rs-spec__link:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 10px; }
.rs-spec__img { display: block; width: 180px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line-2), 0 24px 40px -24px rgba(16,28,42,.6); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.rs-spec--2 .rs-spec__img, .rs-spec--3 .rs-spec__img { width: 156px; }
.rs-spec__link:hover .rs-spec__img { transform: scale(.97); box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--blue), 0 24px 40px -24px rgba(16,28,42,.6); }
.rs-spec__cap { margin: 18px 0 0; padding: 4px 10px; background: rgba(255,255,255,.92); font: 500 .875rem/1.35 var(--ui); color: var(--ink); }
.rs-spec__cap b { display: block; font: 400 1.2rem/1 var(--display); color: var(--blue-ink); margin-bottom: 4px; }
.rs-board__note { position: relative; margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); background: #fff; font-size: var(--t-xs); color: var(--grey); }

/* ---------- B. Two materials, two jobs ---------- */
.rs-jobs { padding: var(--sec) 0; background: var(--mist); }
.rs-jobs__head { max-width: 760px; margin-bottom: 52px; }
.rs-jobs__head .h2 { margin: 16px 0 18px; }
.rs-jobs__head p:last-child { max-width: 38em; font-size: 1.0625rem; }
.rs-jobs__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.rs-corner { margin: 0; padding: 30px 30px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--arc) 6px var(--arc) 6px; }
.rs-corner__svg { display: block; width: 100%; height: auto; }
.rs-corner__planes path { stroke: var(--line-2); stroke-width: 1.5; stroke-linejoin: round; }
.rs-corner__planes .back { fill: #fff; }
.rs-corner__planes .side { fill: var(--ice); }
.rs-corner__planes .floor { fill: var(--mist); }
.rs-corner__grout path { fill: none; stroke: #A9B6C3; stroke-width: 1.8; }
.rs-corner__silicone path { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.rs-corner.is-pending .rs-corner__silicone path { stroke-dashoffset: 1; }
.rs-corner__silicone path:nth-child(2) { transition-delay: .35s; }
.rs-corner__silicone path:nth-child(3) { transition-delay: .7s; }
.rs-corner__key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font: 500 var(--t-small)/1.4 var(--ui); color: var(--ink); }
.rs-key { display: inline-flex; align-items: center; gap: 10px; }
.rs-key::before { content: ""; width: 30px; flex: none; border-radius: 4px; }
.rs-key--grout::before { height: 2px; background: #A9B6C3; }
.rs-key--sil::before { height: 7px; background: var(--blue); }

.rs-jobs__cards { display: grid; gap: 16px; }
.rs-job { padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.rs-job__k { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 .75rem/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); }
.rs-swatch { width: 26px; border-radius: 4px; flex: none; }
.rs-swatch--grout { height: 2px; background: #A9B6C3; }
.rs-swatch--sil { height: 7px; background: var(--blue); }
.rs-job h3 { margin: 12px 0 10px; font-size: var(--t-h4); line-height: 1.2; }
.rs-job p { margin: 0; }
.rs-job .rs-job__w { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--t-small); }
.rs-job__w b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.rs-jobs__note { padding: 26px 30px; background: var(--blue-deep); color: rgba(255,255,255,.86); border-radius: var(--r) var(--r) var(--arc) var(--r); }
.rs-jobs__note p { margin: 0; }
.rs-jobs__note b { color: #fff; font-weight: 600; }
.rs-jobs__note a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: var(--blue-soft); text-underline-offset: 4px; }

/* ---------- C. Wear and tear, or worth a closer look ---------- */
.rs-signs { padding: var(--sec) 0; }
.rs-signs__head { max-width: 760px; }
.rs-signs__head .h2 { margin: 16px 0 18px; }
.rs-scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 48px 0 0; }
.rs-scale i { height: 6px; border-radius: 3px; }
.rs-scale i:nth-child(1) { background: var(--ice-2); }
.rs-scale i:nth-child(2) { background: #7DB4E8; }
.rs-scale i:nth-child(3) { background: var(--blue-ink); }
.rs-signs__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.rs-band { display: flex; flex-direction: column; padding: 30px 30px 32px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.rs-band--3 { background: var(--ice); border-color: var(--ice-2); border-radius: 0 0 var(--arc) 0; }
.rs-band__n { margin: 0; font: 400 2.4rem/1 var(--display); color: var(--blue-ink); }
.rs-band h3 { margin: 14px 0 16px; font-size: var(--t-h4); line-height: 1.2; }
.rs-band ul { margin: 0; padding: 0; list-style: none; }
.rs-band li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); line-height: 1.5; }
.rs-band li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; border: 1.5px solid var(--blue); border-radius: 1px; }
.rs-band--3 li { border-color: var(--ice-2); }
.rs-band__note { margin: auto 0 0; padding-top: 18px; font-size: var(--t-small); color: var(--grey); }
.rs-band--3 .rs-band__note { color: var(--text); }
.rs-band ul + .rs-band__note { margin-top: 18px; }
.rs-band__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- D. Where the close-ups came from ---------- */
.rs-study { padding: var(--sec) 0; background: var(--ice); }
.rs-study__head { max-width: 760px; margin-bottom: 52px; }
.rs-study__head .h2 { margin: 16px 0 18px; }
.rs-study__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.rs-photo { margin: 0; max-width: 370px; scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + 24px); }
.rs-photo:nth-child(2) { margin-top: 56px; }
.rs-photo__frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--ice-2); }
.rs-photo__frame img { display: block; width: 100%; max-width: 370px; height: auto; aspect-ratio: 1; }
.rs-photo__ring { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(21,102,180,.9), inset 0 0 0 2px rgba(21,102,180,.9); }
.rs-photo__ring b { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-ink); color: #fff; font: 400 .95rem/1 var(--display); }
.rs-photo__tag { position: absolute; left: 10px; bottom: 10px; }
.rs-photo:target .rs-photo__ring { animation: rsRing 1.6s var(--ease) 2; }
@keyframes rsRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.rs-photo figcaption { margin-top: 16px; font-size: var(--t-small); line-height: 1.55; }
.rs-photo figcaption b { display: block; margin-bottom: 4px; font: 400 1.3rem/1.2 var(--display); color: var(--ink); }

/* ---------- E. Asking for advice ---------- */
.rs-ask { padding: var(--sec) 0; }
.rs-ask__card { padding: 52px 56px; border: 1px solid var(--line); border-radius: var(--arc) var(--r) var(--arc) var(--r); }
.rs-ask__head { max-width: 760px; }
.rs-ask__head .h2 { margin-top: 16px; }
.rs-ask__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: ask; }
.rs-ask__list li { padding-top: 18px; border-top: 2px solid var(--ink); counter-increment: ask; }
.rs-ask__list li::before { content: "0" counter(ask); display: block; margin-bottom: 14px; font: 400 1.6rem/1 var(--display); color: var(--blue-ink); }
.rs-ask__list b { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.rs-ask__list span { display: block; font-size: var(--t-small); line-height: 1.55; }
.rs-ask__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- F. Review ---------- */
.rs-review { position: relative; padding: calc(var(--sec) * .85) 0; background-color: var(--ink); background-image: linear-gradient(rgba(156,200,240,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(156,200,240,.07) 1px, transparent 1px); background-size: 64px 64px; color: rgba(255,255,255,.8); }
.rs-review__fig { max-width: 940px; margin: 0 auto; text-align: center; }
.rs-review__fig::before { content: ""; display: block; width: 56px; height: 7px; margin: 0 auto 34px; border-radius: 4px; background: var(--blue); }
.rs-review blockquote p { font: 400 var(--t-quote)/1.2 var(--display); color: #fff; text-wrap: balance; }
.rs-review figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 26px; font-size: var(--t-small); }
.rs-review figcaption b { color: #fff; }
.rs-review figcaption span::before { content: "\00b7"; margin-right: 16px; }

/* ---------- G. Related ---------- */
.rs-rel { padding: var(--sec) 0; }
.rs-rel__head .h2 { margin-top: 16px; }
.rs-rel__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.rs-rel__list li + li { border-left: 1px solid var(--line); }
.rs-rel__list a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px 28px 64px; color: var(--text); transition: background-color .25s var(--ease); }
.rs-rel__list a:hover { background: var(--mist); }
.rs-rel__n { font: 600 .75rem/1 var(--ui); letter-spacing: .14em; color: var(--blue-ink); }
.rs-rel__list b { margin: 16px 0 8px; font: 400 1.35rem/1.2 var(--display); color: var(--ink); }
.rs-rel__list span:not(.rs-rel__n) { font-size: var(--t-small); line-height: 1.5; }
.rs-rel__list .ic { position: absolute; left: 28px; bottom: 26px; color: var(--blue-ink); transition: transform .3s var(--ease); }
.rs-rel__list a:hover .ic { transform: translateX(4px); }
.rs-rel__ext a { background: var(--ice); }
.rs-rel__ext a:hover { background: var(--ice-2); }

/* FAQ links */
.page-regrout .qa p a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .rs-hero__grid { gap: 48px; }
  .rs-spec__img { width: 160px; }
  .rs-spec--2 .rs-spec__img, .rs-spec--3 .rs-spec__img { width: 140px; }
  .rs-ask__card { padding: 44px 40px; }
}
@media (max-width: 1080px) {
  .rs-jobs__grid { gap: 36px; }
  .rs-study__grid { gap: 28px; }
}
@media (max-width: 1023px) {
  .rs-hero { padding-bottom: 72px; }
  .rs-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rs-board { max-width: 560px; }
  .rs-jobs__grid { grid-template-columns: minmax(0, 1fr); }
  .rs-corner { max-width: 640px; }
  .rs-signs__cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rs-scale { display: none; }
  .rs-band { border-top: 1px solid var(--line); border-left: 6px solid var(--ice-2); }
  .rs-band--2 { border-left-color: #7DB4E8; border-top: 0; }
  .rs-band--3 { border-left-color: var(--blue-ink); border-top: 0; }
  .rs-signs__cols { margin-top: 40px; }
  .rs-photo:nth-child(2) { margin-top: 0; }
  .rs-ask__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-rel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-rel__list li:nth-child(3) { border-left: 0; }
  .rs-rel__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .rs-hero { padding: calc(var(--nav-top) + var(--nav-h) + 28px) 0 56px; }
  .rs-hero h1 { margin: 14px 0 18px; }
  .rs-hero__lede { font-size: 1.0625rem; }
  .rs-hero__ctas { flex-direction: column; }
  .rs-hero__ctas .btn { width: 100%; }
  .rs-board { padding: 64px 12px 18px; background-size: 38px 38px; }
  .rs-board__list { gap: 12px; }
  .rs-spec__img, .rs-spec--2 .rs-spec__img, .rs-spec--3 .rs-spec__img { width: 132px; }
  .rs-spec--2 { margin-top: 84px; }
  .rs-spec--3 { margin-top: -22px; transform: translateX(14%); }
  .rs-spec__cap { margin-top: 14px; font-size: .8125rem; }
  .rs-corner { padding: 18px 14px 16px; }
  .rs-job, .rs-jobs__note { padding: 24px 20px; }
  .rs-band { padding: 26px 20px 28px; }
  .rs-study__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; }
  .rs-photo { width: 100%; }
  .rs-ask__card { padding: 32px 20px; border-radius: var(--arc) var(--r) var(--r) var(--r); }
  .rs-ask__list { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 30px; }
  .rs-ask__acts { flex-direction: column; }
  .rs-ask__acts .btn { width: 100%; }
  .rs-review blockquote p { font-size: 1.55rem; line-height: 1.3; }
  .rs-rel__list { grid-template-columns: minmax(0, 1fr); }
  .rs-rel__list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .rs-rel__list a { padding: 22px 4px 22px 0; padding-right: 44px; }
  .rs-rel__ext a { padding-left: 16px; }
  .rs-rel__list .ic { left: auto; right: 12px; bottom: auto; top: 50%; margin-top: -9px; }
}
@media (max-width: 359px) {
  .rs-spec__img, .rs-spec--2 .rs-spec__img, .rs-spec--3 .rs-spec__img { width: 112px; }
  .rs-spec--3 { transform: translateX(10%); }
}
@media (prefers-reduced-motion: reduce) {
  .rs-corner__silicone path, .rs-spec__img { transition: none; }
  .rs-photo:target .rs-photo__ring { animation: none; }
}
