/* ========== CHICSTONE REBRAND PAGE ========== */
.rebrand-intro {
    padding: 160px 40px 20px;
    text-align: center;
    background: #fff;
}

.rebrand-intro h1 {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 14px;
}

.rebrand-intro p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: #777;
}

/* One square panel split corner to corner by an organic curve:
   Chicstone (old) in the top-left, Essentia Q (new) in the bottom-right.
   The curve is defined once as SVG clip paths in chicstone.html and drawn
   again as a stroke that runs past both corners. */
.rebrand-merge {
    position: relative;
    z-index: 1;
    padding: 60px 40px 20px;
    background: #fff;
    overflow-x: clip;
}

.rebrand-merge__panel {
    position: relative;
    width: min(620px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
}

.rebrand-merge__half {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Dark wash so the logos read clearly over the photos */
.rebrand-merge__half::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
}

.rebrand-merge__half > * {
    position: relative;
    z-index: 1;
}

/* Content sits in the middle of each triangle */
.rebrand-merge__half--old {
    padding: 0 46% 46% 0;
    background-image: url('../assets/webp/quartz/thumbnails/ash-grey-kitchen.webp');
    clip-path: url(#rebrandClipOld);
}

.rebrand-merge__half--old::before {
    opacity: 0.72;
}

.rebrand-merge__half--new {
    padding: 46% 0 0 46%;
    background-image: url('../assets/webp/quartz/thumbnails/lustre-kitchen.webp');
    clip-path: url(#rebrandClipNew);
}

.rebrand-merge__half--new::before {
    opacity: 0.28;
}

.rebrand-merge__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    padding: 8px 20px 8px 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.rebrand-merge__logo {
    display: block;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}

.rebrand-merge__half--old .rebrand-merge__logo {
    width: 100%;
    opacity: 0.55;
}

.rebrand-merge__half--new .rebrand-merge__logo {
    width: 82%;
}

/* The dividing swoosh: a filled, tapered shape ending in a point */
.rebrand-merge__slash {
    position: absolute;
    left: -20%;
    top: -20%;
    width: 140%;
    height: 140%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.rebrand-merge__slash path {
    fill: #fff;
}

/* Strike through the old wordmark, matching the divider */
.rebrand-merge__strike {
    position: relative;
    display: block;
    width: 72%;
}

.rebrand-merge__strike::after {
    content: '';
    position: absolute;
    left: -3%;
    right: -3%;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(-6deg);
}

/* Statement */
.rebrand-statement {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 40px 90px;
    text-align: center;
    background: #fff;
}

.rebrand-statement__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 24px;
}

.rebrand-statement p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    color: #555;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.rebrand-statement__warranty {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #222;
    border: 1px solid #ddd;
    padding: 16px 28px;
    margin: 12px 0 36px;
}

.rebrand-statement__warranty strong {
    font-weight: 600;
}

.rebrand-statement__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .rebrand-intro {
        padding: 130px 20px 20px;
    }

    .rebrand-intro h1 {
        font-size: 1.45rem;
        letter-spacing: 4px;
    }

    .rebrand-merge {
        padding: 36px 24px 10px;
    }

    .rebrand-merge__half {
        gap: 16px;
    }

    .rebrand-merge__label {
        font-size: 0.65rem;
        letter-spacing: 4px;
        padding: 6px 14px 6px 18px;
    }

    .rebrand-merge__strike {
        width: 76%;
    }

    .rebrand-merge__half--new .rebrand-merge__logo {
        width: 86%;
    }

    .rebrand-statement {
        padding: 40px 20px 70px;
    }

    .rebrand-statement p {
        font-size: 0.85rem;
    }
}
