/* ============================================================
   RESET DAY (content template `reset_day`, js/react/reset-day).
   Loaded after home2.css: the hero, cards and section titles are
   the home page's; this adds the hero buttons, the intro, the icon
   row, the questions and the closing buttons. Mobile first, the
   site's palette only.
   ============================================================ */

.rd-wrap {
    --h2-band: #243d44;
}

/* the photo fades to ink under the text, then the white intro starts */
.rd-hero::after {
    background: linear-gradient(0deg, rgba(36, 61, 68, 0.78) 10%, rgba(36, 61, 68, 0) 75%);
}

.rd-hero .h2-hero__text {
    padding-bottom: 48px;
}

.rd-hero__title {
    letter-spacing: 0.02em;
}

.rd-hero__line {
    margin: 6px 0 0;
    font-size: 17px;
    line-height: 1.35;
    color: #ffffff;
    opacity: 0.92;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
    text-wrap: balance;
}

/* ---------- buttons (hero + bottom) ---------- */

.rd-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 48px;
    padding: 0 26px;
    font-family: 'Almoni Medium';
    font-size: 18px;
    border: 1px solid #243d44;
    border-radius: 30px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.rd-btn,
.rd-btn:hover,
.rd-btn:focus {
    text-decoration: none;
}

.rd-btn:focus-visible {
    outline: 3px solid var(--h2-sea-deep);
    outline-offset: 2px;
}

.rd-btn--contact,
.rd-btn--contact:focus {
    color: #ffffff;
    background: #243d44;
}

.rd-btn--contact:hover {
    color: #ffffff;
    background: #545f64;
    border-color: #545f64;
}

.rd-btn--more,
.rd-btn--more:focus {
    color: #243d44;
    background: transparent;
}

.rd-btn--more:hover {
    color: #ffffff;
    background: #243d44;
}

/* on the hero photo */
.rd-btn--light {
    border-color: #ffffff;
}

.rd-btn--contact.rd-btn--light,
.rd-btn--contact.rd-btn--light:focus {
    color: #243d44;
    background: #ffffff;
}

.rd-btn--contact.rd-btn--light:hover {
    color: #243d44;
    background: #c2eaea;
    border-color: #c2eaea;
}

.rd-btn--more.rd-btn--light,
.rd-btn--more.rd-btn--light:focus {
    color: #ffffff;
}

.rd-btn--more.rd-btn--light:hover {
    color: #243d44;
    background: #ffffff;
}

/* ---------- intro ---------- */

.rd-center {
    text-align: center !important;
}

.rd-intro {
    padding: 44px 0 8px;
    background: #ffffff;
}

.rd-intro .h2-cards,
.rd-icons .h2-cards,
.rd-faq .h2-cards,
.rd-cta .h2-cards {
    margin-top: 0;
}

.rd-intro__text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.55;
    text-align: center;
    color: #545f64;
}

.rd-intro__text p {
    margin: 0 0 14px;
}

.rd-note {
    font-family: 'Almoni Bold';
    color: #243d44;
}

/* ---------- packages ---------- */

.rd-packs {
    padding-top: 32px;
}

.rd-card .h2-card__media {
    aspect-ratio: 4 / 3;
}

.rd-card .h2-card__text {
    font-size: 16px;
    line-height: 1.5;
}

.rd-card__sub {
    margin: -4px 0 2px;
    font-family: 'Almoni Bold';
    font-size: 19px;
    line-height: 1.25;
    color: #243d44;
}

.rd-card .h2-card__btn {
    margin-top: auto;
}

/* ---------- icon row ---------- */

.rd-icons {
    padding: 40px 0;
    background: #f7f7f7;
}

.rd-icons__title {
    margin: 0 0 24px;
    font-family: 'Almoni Bold';
    font-size: 26px;
    text-align: center;
    color: #243d44;
}

.rd-icons__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-icons__list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    text-align: center;
    color: #243d44;
}

.rd-icons__img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* ---------- questions ---------- */

.rd-faq {
    padding: 40px 0 16px;
    background: #ffffff;
}

.rd-faq__list {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 16px;
}

.rd-faq details + details {
    border-top: 1px solid #ececec;
}

.rd-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-size: 18px;
    color: #243d44;
    list-style: none;
    cursor: pointer;
}

.rd-faq summary::-webkit-details-marker {
    display: none;
}

.rd-faq summary::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
    color: #545f64;
}

.rd-faq summary:focus-visible {
    outline: 3px solid var(--h2-sea-deep);
    outline-offset: -3px;
}

.rd-faq details[open] summary {
    font-family: 'Almoni Bold';
}

.rd-faq details[open] summary::after {
    content: '\2212';
}

.rd-faq details p {
    margin: 0;
    padding: 0 20px 20px;
    font-size: 17px;
    line-height: 1.55;
    color: #545f64;
}

/* ---------- closing buttons ---------- */

.rd-cta {
    padding: 40px 0 56px;
    text-align: center;
    background: #ffffff;
}

.rd-cta__title {
    margin: 0;
    font-family: 'Almoni Bold';
    font-size: 30px;
    line-height: 1.1;
    color: #243d44;
}

@media (min-width: 768px) {
    .rd-hero .h2-hero__text {
        padding-bottom: 88px;
    }

    .rd-hero__line {
        font-size: 22px;
    }

    .rd-intro {
        padding: 80px 0 16px;
    }

    .rd-intro__text {
        font-size: 21px;
    }

    .rd-packs {
        padding-top: 56px;
    }

    .rd-card__sub {
        font-size: 21px;
    }

    .rd-icons {
        padding: 64px 0;
    }

    .rd-icons__title {
        margin-bottom: 36px;
        font-size: 36px;
    }

    .rd-icons__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rd-icons__list--n3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rd-icons__list li {
        font-size: 20px;
    }

    .rd-icons__img {
        width: 42px;
        height: 42px;
    }

    .rd-faq {
        padding: 72px 0 24px;
    }

    .rd-faq summary {
        padding: 22px 28px;
        font-size: 20px;
    }

    .rd-faq details p {
        padding: 0 28px 24px;
        font-size: 18px;
    }

    .rd-cta {
        padding: 64px 0 88px;
    }

    .rd-cta__title {
        font-size: 44px;
    }
}
