@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;700;800&display=swap");

:root {
    --r-bg: #f0efe9;
    --r-surface: #ffffff;
    --r-ink: #1e2a36;
    --r-muted: #596a78;
    --r-brand: #1f3b59;
    --r-accent: #d6aa55;
    --r-line: rgba(31, 59, 89, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--r-ink);
    background: radial-gradient(circle at 90% -10%, #f4dca6, transparent 40%), var(--r-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.renov-page {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto;
    padding: 16px 0 32px;
}

.renov-nav,
.renov-hero>div,
.renov-panel,
.renov-cards article,
.renov-showcase-head,
.renov-before-after,
.renov-contact,
footer {
    background: var(--r-surface);
    border: 1px solid var(--r-line);
    border-radius: 22px;
}

.renov-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    position: sticky;
    top: 12px;
    z-index: 10;
}

.renov-brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.renov-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--r-brand), #2f567e);
    color: #fff;
    font-weight: 800;
}

.renov-brand small {
    display: block;
    color: var(--r-muted);
}

.renov-nav nav {
    display: flex;
    gap: 16px;
}

.renov-cta,
.btn-solid {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--r-brand), #2f567e);
}

.renov-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    margin-top: 16px;
}

.renov-hero>div,
.renov-panel {
    padding: 24px;
}

.renov-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
    color: var(--r-accent);
    margin: 0 0 12px;
}

h1,
h2 {
    font-family: "Fraunces", serif;
    line-height: .98;
    margin: 0;
}

h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    max-width: 14ch;
}

.renov-hero p {
    color: var(--r-muted);
    max-width: 48ch;
}

.renov-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn-outline {
    border: 1px solid var(--r-line);
    padding: 10px 16px;
    border-radius: 999px;
}

.renov-panel p,
.renov-panel span {
    color: var(--r-muted);
    margin: 0 0 8px;
}

.renov-panel strong {
    display: block;
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.renov-panel hr {
    border: 0;
    border-top: 1px solid var(--r-line);
    margin: 14px 0;
}

.renov-cards {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.renov-cards article {
    padding: 18px;
}

.renov-cards p {
    color: var(--r-muted);
    line-height: 1.6;
}

.renov-showcase {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.renov-showcase-head {
    padding: 22px;
    display: grid;
    gap: 10px;
}

.renov-showcase-head p {
    margin: 0;
    color: var(--r-muted);
    max-width: 62ch;
}

.renov-before-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.renov-before-after {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.renov-before-after h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.05;
}

.renov-compare-slider {
    --position: 50%;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--r-line);
    background: #f6f4ef;
    aspect-ratio: 4 / 3;
}

.compare-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.compare-before-layer {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.compare-before-layer .compare-image {
    width: 100%;
    height: 100%;
}

.compare-after.compare-enhanced-renov {
    filter: brightness(1.32) contrast(.86) saturate(1.12) hue-rotate(-8deg);
}

.compare-after.compare-enhanced-clean {
    filter: brightness(1.5) contrast(.8) saturate(.7);
}

.compare-tag {
    position: absolute;
    top: 10px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #fff;
    background: rgba(30, 42, 54, 0.64);
    pointer-events: none;
}

.compare-tag-before {
    left: 10px;
}

.compare-tag-after {
    right: 10px;
}

.compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-1px);
    z-index: 2;
    pointer-events: none;
}

.compare-thumb {
    position: absolute;
    top: 50%;
    left: var(--position);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, var(--r-brand), #2f567e);
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 8px 16px rgba(18, 26, 36, 0.35);
    pointer-events: none;
}

.compare-thumb::before,
.compare-thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.compare-thumb::before {
    left: 11px;
    transform: translateY(-50%) rotate(-135deg);
}

.compare-thumb::after {
    right: 11px;
    transform: translateY(-50%) rotate(45deg);
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

.renov-contact {
    margin-top: 14px;
    padding: 22px;
    display: grid;
    gap: 10px;
}

.renov-contact p {
    color: var(--r-muted);
    max-width: 62ch;
}

footer {
    margin-top: 14px;
    padding: 14px 18px;
    color: var(--r-muted);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {

    .renov-hero,
    .renov-cards,
    .renov-before-grid {
        grid-template-columns: 1fr;
    }

    .renov-nav {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .compare-thumb {
        width: 36px;
        height: 36px;
    }
}
