/* ==========================================================================
   CleverCoat — Restoration & Waterproofing page (before/after slider)
   ========================================================================== */

.rest-link { font-family: var(--f-head); font-weight: 700; font-size: .98rem; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; transition: gap .18s; }
.rest-link:hover { gap: 12px; }

/* ---- Before / after slider --------------------------------------------- */
.rest-ba { position: relative; height: 440px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 66px -42px rgba(0,39,63,.4); cursor: ew-resize; user-select: none; touch-action: none; }
.rest-ba__before { position: absolute; inset: 0; background-color: #4a4d49; overflow: hidden; }
.rest-ba__before img, .rest-ba__after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rest-ba__before-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,.35)); }
.rest-ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); background-color: #EEF3F6; overflow: hidden; }
.rest-ba__label { position: absolute; bottom: 22px; font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; }
.rest-ba__label span { display: block; font-family: var(--f-body); font-weight: 500; font-size: .82rem; }
.rest-ba__label--before { left: 22px; color: #EDE7E0; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.rest-ba__label--before span { color: #E4DED6; text-shadow: 0 1px 5px rgba(0,0,0,.8); }
.rest-ba__label--after { right: 22px; text-align: right; color: var(--navy); text-shadow: 0 1px 5px rgba(255,255,255,.6); }
.rest-ba__label--after span { color: #37536b; }
.rest-ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); transform: translateX(-1px); }
.rest-ba__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.rest-ba-note { font-family: var(--f-head); font-size: .68rem; color: #94A3AF; margin-top: 16px; text-align: center; letter-spacing: .04em; }

/* ---- Roof types --------------------------------------------------------- */
.rest-rt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rest-rt-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; text-align: center; }
.rest-rt-card__mark { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: rgba(21,150,180,.1); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; color: var(--teal); font-size: 1.3rem; }
.rest-rt-card h3 { font-size: 1.02rem; margin-bottom: 5px; }
.rest-rt-card p { color: var(--muted-2); font-size: .85rem; }

@media (max-width: 860px) { .rest-rt { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rest-rt { grid-template-columns: 1fr; } }

/* ---- Honest / not-a-fit callout ---------------------------------------- */
.rest-honest { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid #244E6D; border-radius: 18px; padding: 36px 40px; }
.rest-honest__eyebrow { font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: #244E6D; margin-bottom: 12px; }
.rest-honest h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.rest-honest p { color: var(--ink-2); font-size: 1.04rem; max-width: 820px; }
