/* =========================================================
   THANK YOU PAGE
   Loaded only on the "Thank You Page" template (see functions.php).
========================================================= */

.ty-page {
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 245, 247, 1) 100%);
    padding-bottom: 170px; /* room for the footer CTA card, which overlaps upward */
}

.ty-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ty-container--wide {
    max-width: 1160px;
}

/* ---------- Message ---------- */

.ty-hero {
    padding: 90px 0 40px;
    text-align: center;
}

.ty-title {
    margin: 0 auto 24px;
    max-width: 900px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 64px;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: #2F5D52;
    text-wrap: balance;
}

.ty-text {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.65;
    color: var(--tertiary-color);
}

.ty-text p {
    margin: 0;
}

.ty-text p + p {
    margin-top: 12px;
}

.ty-text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
    transition: color .2s ease;
}

.ty-text a:hover,
.ty-text a:focus-visible {
    color: #c81d4b;
}

/* ---------- Stats (re-uses the global stats section) ---------- */

.ty-stats .stats-section {
    background: transparent;
    padding: 60px 20px 80px;
}

.ty-stats .stat-number,
.ty-stats .stat-number .star {
    color: var(--primary-color);
}

.ty-stats .stat-item {
    text-align: center;
}

.ty-stats .stat-text {
    margin: 0 auto;
    max-width: 260px;
}

/* ---------- Reviews ---------- */

.ty-reviews-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(255, 48, 99, .06);
    min-height: 220px; /* reserves space so the widget doesn't shift the page as it loads */
}

/* =========================================================
   FOOTER CTA CARD
   These rules normally come from about.css, which is not loaded
   on this page anymore, so the few that the footer needs live here.
========================================================= */

.trusted-homeowners__inner {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: end;
    border-radius: 32px;
    background-size: cover;
    background-repeat: no-repeat;
}

.trusted-homeowners__image {
    flex: 0 0 42%;
}

.trusted-homeowners__image img {
    display: block;
    width: 100%;
    object-fit: contain;
    height: 500px;
    margin-top: -80px;
    position: relative;
}

.trusted-homeowners__content {
    flex: 1;
    padding: 60px 70px 60px 40px;
}

.trusted-homeowners__title {
    margin: 0 0 36px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 40px;
    line-height: 114%;
    color: var(--quaternary-color);
}

.trusted-homeowners__description {
    margin: 0 0 40px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 18px;
    line-height: 148%;
    color: var(--quaternary-color);
}

.trusted-homeowners__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px 30px;
    margin-bottom: 40px;
    max-width: 464px;
}

.trusted-homeowners__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: var(--quaternary-color);
}

.trusted-homeowners__icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #03C12C;
    color: var(--quaternary-color);
    font-size: 11px;
    font-weight: 700;
}

.trusted-homeowners__button {
    width: 312px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    background: var(--quaternary-color);
    color: #FF3164;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-tertiary);
    font-weight: 900;
    font-size: 18px;
    line-height: 100%;
}

section.trusted-homeowners {
    margin-top: -150px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .ty-title {
        font-size: 52px;
    }

    .trusted-homeowners__title {
        font-size: 35px;
    }

    .trusted-homeowners__content {
        padding: 55px 60px 60px 60px;
    }

    .trusted-homeowners__inner {
        flex-direction: column-reverse;
    }

    .trusted-homeowners__image img {
        height: 100%;
        margin-top: 0;
        bottom: 0;
    }
}

@media (max-width: 743px) {
    .ty-page {
        padding-bottom: 120px;
    }

    .ty-hero {
        padding: 50px 0 20px;
    }

    .ty-title {
        font-size: 38px;
        margin-bottom: 18px;
    }

    .ty-text {
        font-size: 16px;
    }

    .ty-stats .stats-section {
        padding: 40px 20px 50px;
    }

    .ty-stats .stats-container {
        margin: 0 auto;
    }

    .ty-reviews-card {
        padding: 16px;
        border-radius: 14px;
    }

    /* footer CTA */
    .trusted-homeowners__inner {
        flex-direction: column-reverse;
        align-items: normal;
    }

    .trusted-homeowners__content {
        padding: 32px 17px;
    }

    .trusted-homeowners__title {
        margin: 0 0 22px;
        font-size: 28px;
    }

    .trusted-homeowners__description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .trusted-homeowners__list {
        grid-template-columns: auto;
        gap: 12px;
    }

    .trusted-homeowners__image img {
        height: auto;
        margin-top: 0;
        bottom: 0;
    }

    section.trusted-homeowners {
        margin-top: -100px;
    }
}

@media (max-width: 400px) {
    .ty-title {
        font-size: 32px;
    }

    .ty-text {
        font-size: 15px;
    }
}
