/*
 * Dedicated layout for /rebranding/.
 */

body.page-template-page-rebranding .site-main {
    background: #fff;
}

.rt-rebrand-page {
    --rt-rb-ink: #171719;
    --rt-rb-muted: #5f6676;
    --rt-rb-purple: #6255f6;
    --rt-rb-coral: #e96d5d;
    --rt-rb-line: #dfe3ef;
    overflow: hidden;
}

.rt-rebrand-page .rt-web-section-head,
.rt-rebrand-page .rt-seo-m3-section-head {
    width: min(100%, 1320px);
    max-width: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rt-rebrand-page .rt-web-section-head h2,
.rt-rebrand-page .rt-seo-m3-section-head h2 {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.rt-rebrand-page .rt-web-section-head p,
.rt-rebrand-page .rt-seo-m3-section-head p,
.rt-rebrand-page .rt-seo-m3-section-head span {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rt-rebrand-hero {
    min-height: calc(100vh - 92px);
    align-items: center;
}

.rt-rebrand-hero .rt-seo-m3-microcopy {
    color: var(--rt-rb-ink);
    font-weight: 850;
}

.rt-rebrand-problem,
.rt-rebrand-system,
.rt-rebrand-info,
.rt-rebrand-difference {
    padding: clamp(72px, 8vw, 122px) clamp(20px, 5vw, 76px);
}

.rt-rebrand-problem__layout {
    width: min(100%, 1240px);
    margin: clamp(32px, 4vw, 56px) auto 0;
    display: grid;
    grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
}

.rt-rebrand-problem__panel {
    min-height: 0;
    padding: clamp(26px, 3vw, 38px);
    position: relative;
    display: grid;
    align-content: start;
    gap: 18px;
    color: var(--rt-rb-ink);
    border: 1px solid rgba(98, 85, 246, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 0%, rgba(98, 85, 246, .13), transparent 34%),
        linear-gradient(180deg, #fbfbff 0%, #f4f2ff 100%);
    box-shadow: 0 18px 54px rgba(24, 26, 42, .06);
    overflow: hidden;
}

.rt-rebrand-problem__panel::after {
    content: "";
    width: 100%;
    height: 76px;
    margin-top: 4px;
    border-top: 1px solid rgba(98, 85, 246, .16);
    background:
        linear-gradient(90deg, rgba(98, 85, 246, .88) 0 76%, transparent 76% 100%) 0 18px / 100% 8px no-repeat,
        linear-gradient(90deg, rgba(233, 109, 93, .82) 0 54%, transparent 54% 100%) 0 40px / 100% 8px no-repeat,
        linear-gradient(90deg, rgba(98, 85, 246, .34) 0 36%, transparent 36% 100%) 0 62px / 100% 8px no-repeat;
    opacity: .9;
}

.rt-rebrand-problem__panel span,
.rt-rebrand-info__compare span {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.rt-rebrand-problem__panel span {
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--rt-rb-purple);
    background: rgba(98, 85, 246, .12);
    font-size: 12px;
    line-height: 1.2;
}

.rt-rebrand-problem__panel strong {
    color: var(--rt-rb-ink);
    font-size: clamp(74px, 7vw, 108px);
    line-height: .9;
    letter-spacing: 0;
}

.rt-rebrand-problem__panel em {
    max-width: 300px;
    color: var(--rt-rb-muted);
    font-size: clamp(18px, 1.28vw, 22px);
    line-height: 1.38;
    font-style: normal;
    font-weight: 800;
}

.rt-rebrand-problem__grid,
.rt-rebrand-system__grid,
.rt-rebrand-info__grid {
    display: grid;
}

.rt-rebrand-problem__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    counter-reset: rebrandProblem;
}

.rt-rebrand-problem__grid article,
.rt-rebrand-system__grid article,
.rt-rebrand-info__grid article {
    padding: clamp(24px, 3vw, 40px);
    border-left: 1px solid var(--rt-rb-line);
    border-bottom: 1px solid var(--rt-rb-line);
    background: rgba(255, 255, 255, .76);
}

.rt-rebrand-problem__grid article {
    min-height: 210px;
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: clamp(22px, 2.4vw, 32px);
    border: 1px solid rgba(98, 85, 246, .16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 10%, rgba(98, 85, 246, .08), transparent 30%),
        #fff;
    box-shadow: 0 14px 40px rgba(24, 26, 42, .045);
    counter-increment: rebrandProblem;
}

.rt-rebrand-problem__grid article::before {
    content: "0" counter(rebrandProblem);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--rt-rb-purple);
    background: rgba(98, 85, 246, .11);
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
}

.rt-rebrand-problem__grid h3,
.rt-rebrand-system__grid h3,
.rt-rebrand-info__grid h3,
.rt-rebrand-info__compare h3 {
    margin: 0 0 10px;
    color: var(--rt-rb-ink);
    font-size: clamp(24px, 2vw, 35px);
    line-height: 1.1;
    letter-spacing: 0;
}

.rt-rebrand-problem__grid h3 {
    margin: 0;
    font-size: clamp(22px, 1.65vw, 29px);
}

.rt-rebrand-problem__grid p,
.rt-rebrand-system__grid p,
.rt-rebrand-info__grid p,
.rt-rebrand-info__compare p {
    margin: 0;
    color: var(--rt-rb-muted);
    font-size: clamp(16px, 1.14vw, 19px);
    line-height: 1.56;
}

.rt-rebrand-problem__grid p {
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.5;
}

.rt-rebrand-page .rt-service-clients.rt-web-clients {
    padding-block: clamp(34px, 4vw, 56px);
    background: transparent;
    overflow: hidden;
}

.rt-rebrand-page .rt-service-clients.rt-web-clients .rt-service-section-head {
    margin: 0 auto clamp(16px, 2vw, 24px);
    padding-inline: 20px;
}

.rt-rebrand-page .rt-service-clients.rt-web-clients .rt-service-section-head h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
}

.rt-rebrand-system {
    background: #fff;
}

.rt-rebrand-system__grid {
    width: min(100%, 1320px);
    margin: clamp(54px, 5.5vw, 84px) auto 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(76px, 7.5vw, 118px) clamp(34px, 5vw, 84px);
    align-items: start;
}

.rt-rebrand-system__grid article {
    grid-column: span 2;
    min-height: 0;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: clamp(24px, 2.8vw, 40px);
    padding: 0 clamp(6px, 1.4vw, 18px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    transition: transform .2s ease;
}

.rt-rebrand-system__grid article:nth-child(4) {
    grid-column: 2 / span 2;
}

.rt-rebrand-system__grid article:nth-child(5) {
    grid-column: 4 / span 2;
}

.rt-rebrand-system__grid article:hover {
    transform: translateY(-3px);
}

.rt-rebrand-system__icon {
    width: clamp(132px, 9vw, 168px);
    height: clamp(132px, 9vw, 168px);
    display: grid;
    place-items: center;
    color: var(--rt-rb-purple);
    font-family: "Material Symbols Rounded" !important;
    font-size: clamp(98px, 7vw, 124px) !important;
    line-height: 1 !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24 !important;
    font-feature-settings: "liga" !important;
    -webkit-font-feature-settings: "liga" !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    direction: ltr !important;
    -webkit-font-smoothing: antialiased !important;
}

.rt-rebrand-system__grid h3 {
    max-width: 410px;
    margin: 0 auto;
    font-size: clamp(26px, 2.08vw, 36px);
    line-height: 1.14;
}

.rt-rebrand-system__grid p {
    max-width: 430px;
    margin: 0 auto;
    font-size: clamp(16px, 1.18vw, 19px);
    line-height: 1.58;
}

.rt-rebrand-process .rt-seo-m3-section-head {
    width: auto;
    max-width: 900px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.rt-rebrand-process .rt-seo-m3-section-head h2,
.rt-rebrand-process .rt-seo-m3-section-head span {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.rt-rebrand-projects {
    padding-top: clamp(70px, 8vw, 120px);
}

.rt-rebrand-info {
    background: #fff;
}

.rt-rebrand-difference {
    background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
}

.rt-rebrand-info__grid {
    width: min(100%, 1180px);
    margin: clamp(30px, 4vw, 54px) auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 30px);
}

.rt-rebrand-info__grid article {
    min-height: 280px;
    position: relative;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: clamp(32px, 3.6vw, 52px);
    border: 1px solid #dfe3ef;
    border-top: 6px solid var(--rt-rb-purple);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 8%, rgba(98, 85, 246, .07), transparent 32%),
        #f9faff;
    box-shadow: 0 22px 64px rgba(24, 26, 42, .06);
}

.rt-rebrand-info__grid article:nth-child(2) {
    border-top-color: #c95c73;
    background:
        radial-gradient(circle at 90% 8%, rgba(201, 92, 115, .08), transparent 32%),
        #fbf9fb;
}

.rt-rebrand-info__grid article::before {
    content: none;
}

.rt-rebrand-info__grid article:nth-child(2)::before {
    content: none;
}

.rt-rebrand-info__grid article:nth-child(2) h3 {
    color: #a84961;
}

.rt-rebrand-info__grid h3 {
    margin: 0;
    font-size: clamp(27px, 2.15vw, 38px);
    line-height: 1.12;
}

.rt-rebrand-info__grid p {
    font-size: clamp(17px, 1.18vw, 20px);
    line-height: 1.58;
}

.rt-rebrand-info__compare {
    width: min(100%, 1180px);
    margin: clamp(34px, 4vw, 58px) auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rt-rebrand-info__compare article {
    min-height: 320px;
    padding: clamp(30px, 4vw, 52px);
    border-radius: 34px;
    display: grid;
    align-content: end;
    gap: 14px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(24, 26, 42, .08);
}

.rt-rebrand-info__compare article:first-child {
    background:
        radial-gradient(circle at 84% 12%, rgba(98, 85, 246, .14), transparent 28%),
        linear-gradient(180deg, #fff, #f5f3ff);
}

.rt-rebrand-info__compare article:last-child {
    color: #fff;
    background:
        radial-gradient(circle at 82% 14%, rgba(233, 109, 93, .34), transparent 30%),
        linear-gradient(145deg, #171719 0%, #302d70 56%, #6255f6 100%);
}

.rt-rebrand-info__compare article:last-child h3,
.rt-rebrand-info__compare article:last-child p {
    color: #fff;
}

.rt-rebrand-info__compare span {
    color: var(--rt-rb-purple);
}

.rt-rebrand-info__compare article:last-child span {
    color: rgba(255, 255, 255, .78);
}

.rt-rebrand-final {
    width: min(100% - 40px, 1276px);
    margin: clamp(78px, 8vw, 130px) auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
    gap: clamp(36px, 5vw, 78px);
    align-items: center;
    border: 1px solid rgba(98, 85, 246, .18);
    border-radius: 42px;
    background:
        radial-gradient(circle at 16% 12%, rgba(98, 85, 246, .13), transparent 30%),
        linear-gradient(90deg, rgba(245, 246, 255, .94), rgba(235, 233, 255, .78));
    box-shadow: 0 24px 80px rgba(24, 26, 42, .08);
}

.rt-rebrand-final .rt-seo-m3-audit-form__panel {
    border: 1px solid rgba(98, 85, 246, .18);
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(24, 26, 42, .08);
}

.rt-rebrand-final .rt-seo-m3-audit-form__form button {
    background: var(--rt-rb-purple);
}

.rt-rebrand-final .rt-web-contact-line a {
    color: var(--rt-rb-purple);
}

.rt-rebrand-about {
    margin-top: clamp(60px, 8vw, 120px);
}

.rt-rebrand-page .rt-service-faq#rt-service-faq.rt-rebrand-faq {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 76px max(var(--rt-seo-gutter, 32px), calc((100vw - var(--rt-seo-max, 1200px)) / 2)) 82px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background:
        radial-gradient(circle at 18% 22%, rgba(98, 85, 255, .16) 0, rgba(98, 85, 255, .075) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(105deg, #ebe8ff 0%, #f7f8ff 40%, #fff 68%, #fff 100%) !important;
}

@media (max-width: 1180px) {
    .rt-rebrand-system__grid,
    .rt-rebrand-info__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rt-rebrand-system__grid article,
    .rt-rebrand-system__grid article:nth-child(1),
    .rt-rebrand-system__grid article:nth-child(2),
    .rt-rebrand-system__grid article:nth-child(3),
    .rt-rebrand-system__grid article:nth-child(4),
    .rt-rebrand-system__grid article:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 1024px) {
    .rt-rebrand-hero {
        min-height: auto;
    }

    .rt-rebrand-problem__layout,
    .rt-rebrand-info__compare,
    .rt-rebrand-final {
        grid-template-columns: 1fr;
    }

    .rt-rebrand-problem__panel {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .rt-rebrand-page .rt-web-section-head,
    .rt-rebrand-page .rt-seo-m3-section-head {
        text-align: left;
    }

    .rt-rebrand-problem,
    .rt-rebrand-system,
    .rt-rebrand-info,
    .rt-rebrand-difference {
        padding: 56px 18px;
    }

    .rt-rebrand-problem__layout,
    .rt-rebrand-info__compare article {
        border-radius: 26px;
    }

    .rt-rebrand-problem__grid,
    .rt-rebrand-system__grid,
    .rt-rebrand-info__grid {
        grid-template-columns: 1fr;
    }

    .rt-rebrand-system__grid {
        gap: 52px;
    }

    .rt-rebrand-system__icon {
        width: 112px;
        height: 112px;
        font-size: 86px !important;
    }

    .rt-rebrand-problem__grid article {
        border-left: 0;
        min-height: 0;
        padding: 22px;
    }

    .rt-rebrand-final {
        width: calc(100% - 24px);
        margin-block: 56px;
        border-radius: 30px;
    }

    .rt-rebrand-page .rt-service-faq#rt-service-faq.rt-rebrand-faq {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        padding: 48px 16px 54px !important;
    }
}

/* Codex page normalization aligned with the service landing pages. */
@media (min-width: 768px) {
    .rt-rebrand-page .rt-rebrand-hero {
        min-height: 560px !important;
        padding-top: 44px !important;
        padding-bottom: 24px !important;
    }

    .rt-rebrand-page #rt-rebrand-title {
        font-size: 52px !important;
        line-height: 1.08 !important;
    }

    .rt-rebrand-page .rt-service-clients.rt-web-clients .rt-service-section-head h2,
    .rt-rebrand-page .rt-service-reviews h2,
    .rt-rebrand-page .rt-service-tools.rt-rebrand-about .rt-service-tools__copy h2,
    .rt-rebrand-page .rt-service-faq#rt-service-faq .rt-service-faq__head h2,
    .rt-rebrand-page .rt-seo-m3-guarantee.rt-rebrand-final h2 {
        font-size: 42px !important;
        line-height: 1.15 !important;
    }
}

.rt-rebrand-page .rt-seo-m3-guarantee.rt-rebrand-final .rt-seo-m3-audit-form__intro-note {
    color: var(--md-sys-color-on-surface-variant, #5f6368) !important;
    font-size: 18px !important;
    line-height: 30px !important;
}

@media (max-width: 767px) {
    .rt-rebrand-page #rt-rebrand-title {
        font-size: 34px !important;
        line-height: 1.12 !important;
    }
}
