/*
 * Home page (Figma "Hakini Landing Page" > Final Design > Landing Page and
 * Landing Page Responsive Design). Builds on standard-page.css (.sPage tokens,
 * hero, FAQ, app and counselor sections).
 */

/* ---- Hero ------------------------------------------------------------------ */

.sHome__hero {
    min-height: 0;
    padding: 70px 0 0;
}
.sHome__hero .sHero__inner {
    align-items: flex-end;
}
.sHome__hero .sHero__text {
    flex-basis: 560px;
    padding-bottom: 90px;
}
.sHome__hero .sHero__title {
    font-size: 44px;
    line-height: 54px;
}
.sHome__hero .sHero__lead {
    font-size: 20px;
    line-height: 30px;
}
.sHome__cta {
    width: auto;
    padding: 0 28px;
    font-size: 17px;
}
.sHome__proof {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
}
.sHome__proofItem {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    max-width: 200px;
    font-size: 15px;
    line-height: 20px;
}
.sHome__proofItem strong {
    font-family: var(--sp-font-700);
    font-weight: normal;
}
.sHome__proofItem > span:last-child {
    flex-basis: 100%;
}
.sHome__proofItem--team {
    flex-wrap: nowrap;
    max-width: none;
    padding-inline-start: 28px;
    border-inline-start: 1px solid #e8d8cf;
}
.sHome__proofItem--team > span:last-child {
    display: flex;
    flex-direction: column;
}
.sHome__stars {
    color: #ffb800;
    font-size: 13px;
    letter-spacing: 1px;
}
.sHome__faces {
    display: flex;
    flex: none;
}
.sHome__faces img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #eef0f3;
    object-fit: cover;
}
.sHome__faces img + img {
    margin-inline-start: -12px;
}
.sHome__verified::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-inline-start: 6px;
    vertical-align: -2px;
    background: #0f172a;
    -webkit-mask: url("../images/booking/selected.svg") center / contain no-repeat;
    mask: url("../images/booking/selected.svg") center / contain no-repeat;
}
.sHome__art {
    flex: 0 0 608px;
    margin-inline-start: auto;
    line-height: 0;
}
.sHome__art img {
    width: 100%;
}

/* ---- Quick test strip and counts ---------------------------------------- */

.sHome__quiz {
    padding: 44px 0 40px;
    background: #fafafa;
    text-align: center;
}
.sHome__quizTitle {
    font-family: var(--sp-font-600);
    font-size: 22px;
    line-height: 28px;
}
.sHome__quizText {
    margin-top: 4px !important;
    color: var(--sp-slate);
    font-size: 16px;
}
.sHome__quizCta {
    height: 48px;
    margin-top: 18px;
    font-size: 17px;
}
.sHome__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1134px;
    margin: 36px auto 0 !important;
    padding-top: 36px !important;
    border-top: 1px solid #ececec;
    text-align: start;
}
.sHome__stats li {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sHome__stats img {
    width: 70px;
    height: 70px;
}
.sHome__stats span {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    line-height: 22px;
}
.sHome__stats strong {
    font-family: var(--sp-font-700);
    font-weight: normal;
    font-size: 26px;
    line-height: 32px;
}

/* ---- Specialists (test.therapists in its centred form) ------------------- */

.sHome .sTherapists {
    margin-top: 0;
    background: #fff;
}
.sTherapists--center .sPage__h2,
.sTherapists--center .sPage__lead {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center;
}
.sHome__brand {
    color: var(--sp-navy);
}
.sTherapists__foot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 32px;
}
.sTherapists__foot .sArrows {
    margin-top: 0;
}
.sTherapists__browse {
    position: absolute;
    inset-inline-end: 0;
}

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

.sHome__reviews {
    margin-top: 80px;
}
.sHome__faces5 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.sHome__face {
    width: 230px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #f9ccbb;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sHome__face[hidden] {
    display: none;
}
.sHome__face img {
    display: block;
    width: 100%;
}
.sHome__face.is-active {
    width: 252px;
    box-shadow: 0 10px 30px rgba(214, 122, 105, 0.25);
}
.sHome__quotes {
    max-width: 700px;
    margin: 28px auto 0;
    text-align: center;
}
.sHome__quote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
}
.sHome__quoteName {
    font-family: var(--sp-font-700);
    font-size: 20px;
}
.sHome__quoteMeta {
    margin-top: 4px !important;
    color: var(--sp-grey);
    font-size: 14px;
}
.sHome__quoteText {
    margin-top: 16px !important;
    font-size: 18px;
    line-height: 30px;
}

/* ---- Three steps ----------------------------------------------------------- */

.sHome__steps {
    margin-top: 90px;
    background: #fff2de;
}
.sHome__stepsInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0 70px;
}
.sHome__stepsText {
    flex: 0 1 520px;
}
.sHome__body {
    margin-top: 16px !important;
    font-size: 20px;
    line-height: 30px;
}
.sHome__stepList {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.sHome__stepList li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    font-family: var(--sp-font-600);
    font-size: 19px;
}
.sHome__stepList span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff8d6;
    color: #c08a00;
    font-size: 17px;
}
.sHome__stepList li:nth-child(2) span {
    background: #fde3dc;
    color: #c4553f;
}
.sHome__stepList li:nth-child(3) span {
    background: #dbf7f5;
    color: #0b6b63;
}
.sHome__stepsArt {
    flex: 0 0 auto;
    margin: 0;
    text-align: center;
}
.sHome__stepsArt img {
    width: 420px;
    max-width: 100%;
}
.sHome__stepsArt figcaption {
    margin-top: 16px;
    font-family: var(--sp-font-700);
    font-size: 26px;
}

.sHome .sFaq {
    margin-top: 90px;
}
.sHome .sApp {
    margin-top: 110px;
}

/* ---- Why choose us ---------------------------------------------------------- */

.sHome__why {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 110px;
    padding: 56px 64px;
    border-radius: 24px;
    background: linear-gradient(110deg, #e8f2fe 0%, #f4f8ff 55%, #e8f2fe 100%);
}
.sHome__whyText {
    flex: 0 1 400px;
}
.sHome__whyText .sPage__h2 {
    font-size: 40px;
    line-height: 48px;
}
.sHome__whyList {
    position: relative;
    display: flex;
    flex: 1;
    justify-content: space-between;
    max-width: 600px;
}
.sHome__whyList::before {
    content: "";
    position: absolute;
    top: 38px;
    right: 50px;
    left: 50px;
    height: 2px;
    background: #cfe0f7;
}
.sHome__whyList li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 120px;
    font-family: var(--sp-font-600);
    font-size: 17px;
    line-height: 22px;
    text-align: center;
}
.sHome__whyList li:nth-child(even) {
    margin-top: 44px;
}
.sHome__whyList span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 68, 146, 0.08);
}
.sHome__whyList span::after {
    content: "";
    width: 22px;
    height: 22px;
    background: #15b86b;
    -webkit-mask: url("../images/booking/selected.svg") center / contain no-repeat;
    mask: url("../images/booking/selected.svg") center / contain no-repeat;
}

/* ---- Privacy ------------------------------------------------------------- */

.sHome__privacy {
    margin-top: 110px;
}
.sHome__privacyInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.sHome__privacyText {
    flex: 0 1 500px;
}
.sHome__privacyList {
    margin-top: 28px !important;
}
.sHome__privacyList li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1ece8;
}
.sHome__privacyList span {
    flex: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #e9b9a6;
    transform: rotate(45deg);
}
.sHome__privacyList div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
}
.sHome__privacyList strong {
    font-family: var(--sp-font-700);
    font-weight: normal;
    font-size: 18px;
}
.sHome__privacyArt {
    width: 741px;
    max-width: 55%;
    margin-inline-end: calc((1140px - 100vw) / 2);
}
html:lang(ar) .sHome__privacyArt {
    transform: scaleX(-1);
}

/* ---- Free tests ---------------------------------------------------------- */

.sHome__tests {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 110px;
}
.sHome__testsText {
    flex: 0 1 560px;
}
.sHome__testsNote {
    margin-top: 40px !important;
    color: var(--sp-navy);
    font-size: 17px;
}
.sHome__testsCta {
    margin: 16px 0 0;
}
.sHome__testsArt {
    width: 521px;
    max-width: 45%;
}

/* ---- Blog ------------------------------------------------------------------- */

.sHome__blog {
    margin-top: 110px;
    padding: 70px 0;
    background: #fafafa;
}
.sHome__blogGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: 40px;
}
.sHome__feature {
    padding: 24px;
    border-radius: 14px;
    background: #fff;
}
.sHome__feature img {
    width: 100%;
    height: 300px;
    border-radius: 14px;
    object-fit: cover;
}
.sHome__feature h3 {
    margin-top: 8px !important;
    font-family: var(--sp-font-700);
    font-size: 26px;
    line-height: 32px;
}
.sHome__feature h3 a,
.sHome__postList a {
    color: var(--sp-ink);
}
.sHome__featureText {
    margin-top: 12px !important;
    color: var(--sp-slate);
    font-size: 15px;
    line-height: 22px;
}
.sHome__featureText a {
    font-family: var(--sp-font-700);
}
.sHome__postMeta {
    margin-top: 16px !important;
    font-family: var(--sp-font-600);
    font-size: 13px;
}
.sHome__postMeta span {
    margin-inline-start: 8px;
    color: var(--sp-grey);
    font-family: var(--sp-font);
}
.sHome__postList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
}
.sHome__postList li:first-child {
    padding-top: 0;
}
.sHome__postList .sHome__postMeta {
    margin-top: 0 !important;
}
.sHome__postList a {
    display: block;
    margin-top: 8px;
    font-family: var(--sp-font-700);
    font-size: 18px;
    line-height: 24px;
}
.sHome__postList img {
    flex: none;
    width: 170px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

/* ---- Closing call to action ------------------------------------------------- */

.sHome__journey {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fef3ea 40%, #fff5ec 100%);
    text-align: center;
}
.sHome__waves {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1441px;
    max-width: none;
    transform: translateX(-50%);
    pointer-events: none;
}
.sHome__journeyInner {
    position: relative;
}
.sHome__journeyArt {
    position: relative;
    width: 676px;
    max-width: 100%;
    margin: 0 auto;
}
.sHome__journeyPeople {
    width: 100%;
}
.sHome__float {
    position: absolute;
    border-radius: 50%;
}
.sHome__float--1 { top: 40px; left: -240px; width: 120px; }
.sHome__float--2 { top: -20px; left: 30%; width: 90px; }
.sHome__float--3 { top: 40px; right: -240px; width: 120px; }
.sHome__highlight {
    color: var(--sp-navy);
    text-decoration: underline wavy #e2735f;
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
}
.sHome__journey .sHub__take {
    margin-top: 28px;
}

/* ---- Tablet ---------------------------------------------------------------- */

@media (max-width: 1199px) {
    .sHome__art {
        flex-basis: 440px;
    }
    .sHome__why {
        flex-direction: column;
        align-items: stretch;
    }
    .sHome__whyText,
    .sHome__whyList {
        flex: none;
    }
    .sHome__float--1 { left: -120px; }
    .sHome__float--3 { right: -120px; }
}

/* ---- Phone ------------------------------------------------------------------ */

@media (max-width: 767px) {
    .sHome__hero {
        padding-top: 32px;
    }
    .sHome__hero .sHero__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .sHome__hero .sHero__text {
        padding-bottom: 0;
    }
    .sHome__hero .sHero__title {
        font-size: 30px;
        line-height: 38px;
    }
    .sHome__hero .sHero__lead {
        font-size: 16px;
        line-height: 26px;
    }
    .sHome__cta {
        width: 100%;
    }
    .sHome__proof {
        gap: 16px;
        margin-top: 28px;
    }
    .sHome__proofItem--team {
        padding-inline-start: 16px;
    }
    .sHome__art {
        flex: none;
        width: 100%;
        margin-top: 28px;
    }
    .sHome__quiz {
        padding: 32px 0;
    }
    .sHome__quizTitle {
        font-size: 18px;
    }
    .sHome__quizCta {
        width: 100%;
    }
    .sHome__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
        padding-top: 28px !important;
    }
    .sHome__stats img {
        width: 52px;
        height: 52px;
    }
    .sHome__stats span {
        font-size: 14px;
        line-height: 18px;
    }
    .sHome__stats strong {
        font-size: 20px;
        line-height: 26px;
    }
    .sTherapists__foot {
        flex-direction: column;
        gap: 16px;
    }
    .sTherapists__browse {
        position: static;
        justify-content: center;
        width: 100%;
    }
    .sHome__reviews {
        margin-top: 64px;
    }
    .sHome__faces5 {
        gap: 8px;
        margin-right: -20px;
        margin-left: -20px;
    }
    .sHome__face {
        width: 21%;
    }
    .sHome__face.is-active {
        width: 30%;
    }
    .sHome__quoteText {
        font-size: 16px;
        line-height: 26px;
    }
    .sHome__steps {
        margin-top: 64px;
    }
    .sHome__stepsInner {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 40px 0;
    }
    .sHome__stepsText {
        flex: none;
    }
    .sHome__stepsArt img {
        width: 260px;
    }
    .sHome__stepsArt figcaption {
        font-size: 20px;
    }
    .sHome__body {
        font-size: 16px;
        line-height: 26px;
    }
    .sHome__why {
        margin-top: 64px;
        padding: 32px 20px;
    }
    .sHome__whyText .sPage__h2 {
        font-size: 28px;
        line-height: 34px;
    }
    .sHome__whyList {
        flex-direction: column;
        gap: 14px;
    }
    .sHome__whyList::before {
        display: none;
    }
    .sHome__whyList li,
    .sHome__whyList li:nth-child(even) {
        flex-direction: row;
        width: auto;
        margin-top: 0;
        text-align: start;
    }
    .sHome__whyList span {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .sHome__privacy,
    .sHome__tests {
        margin-top: 64px;
    }
    .sHome__privacyInner,
    .sHome__tests {
        flex-direction: column;
        align-items: stretch;
    }
    .sHome__privacyText,
    .sHome__testsText {
        flex: none;
    }
    .sHome__privacyArt,
    .sHome__testsArt {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .sHome__testsCta {
        width: 100%;
    }
    .sHome__blog {
        margin-top: 64px;
        padding: 48px 0;
    }
    .sHome__blogGrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .sHome__feature {
        padding: 16px;
    }
    .sHome__feature img {
        height: 200px;
    }
    .sHome__feature h3 {
        font-size: 20px;
        line-height: 26px;
    }
    .sHome__postList img {
        width: 96px;
        height: 84px;
    }
    .sHome__postList a {
        font-size: 15px;
        line-height: 20px;
    }
    .sHome__journey {
        padding: 40px 0 64px;
    }
    .sHome__float {
        display: none;
    }
    .sHome__journey .sHub__take {
        width: 100%;
    }
}
