/* Home page; builds on page-shell.css. */

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

.hm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #1b1413;
}

.hm-hero__slide {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: center 30% / cover no-repeat;
    opacity: 0;
    animation: hm-fade 21s infinite;
}

.hm-hero__slide--1 {
    background-image: url('../images/baner1.jpg');
}

.hm-hero__slide--2 {
    background-image: url('../images/baner2.jpg');
    animation-delay: 7s;
}

.hm-hero__slide--3 {
    background-image: url('../images/baner33.jpg');
    animation-delay: 14s;
}

@keyframes hm-fade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    40% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; }
}

.hm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(20, 14, 13, .68) 0%, rgba(40, 16, 16, .40) 48%, rgba(120, 18, 18, .14) 100%);
}

.hm-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    /* The site header floats over the top of the page. */
    padding: 176px 0 90px;
    min-height: 100vh;
}

.hm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ss-page .hm-hero__title {
    margin: 0 0 18px;
    text-align: left;
    /* The shared custom.js writes a dark colour onto every h1 once the loader finishes. */
    color: #fff !important;
    font-size: clamp(36px, 5.2vw, 62px);
    font-weight: 600;
    line-height: 1.08;
}

.hm-hero__title em {
    color: #ff8f8f;
    font-style: normal;
}

.ss-page .hm-hero__lead {
    max-width: 520px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
}

.hm-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.hm-points .fa {
    margin-right: 8px;
    color: #ff8f8f;
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

/* ---------- Register / search card ---------- */

.hm-card {
    border: 1px solid var(--ss-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ss-shadow);
    overflow: hidden;
}

.hm-tabs {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    background: #f4efea;
}

.hm-tab {
    padding: 17px 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--ss-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.hm-tab:hover,
.hm-tab:focus {
    color: var(--ss-brand);
    outline: 0;
}

.hm-tab.is-active {
    border-bottom-color: var(--ss-brand);
    background: #fff;
    color: var(--ss-brand);
}

.hm-pane {
    padding: 26px 28px 30px;
}

.hm-pane[hidden] {
    display: none;
}

.hm-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.hm-field--wide {
    grid-column: 1 / -1;
}

.hm-field--half {
    grid-column: 1 / -1;
}

.hm-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--ss-ink);
    font-size: 12px;
    font-weight: 600;
}

.hm-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #ddd6d0;
    border-radius: 10px;
    background: #fdfbf9;
    color: var(--ss-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hm-input:focus {
    border-color: var(--ss-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(208, 35, 35, .12);
    outline: 0;
}

.hm-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    color: var(--ss-muted);
    font-size: 13px;
}

.hm-hint {
    display: block;
    margin-top: 5px;
    color: #a81818;
    font-size: 12px;
    line-height: 1.35;
}

.hm-hint:empty {
    display: none;
}

.hm-hint img {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.ss-page .hm-terms {
    font-size: 12px;
    line-height: 1.5;
}

.hm-terms a {
    color: var(--ss-brand);
    font-weight: 600;
}

.hm-form .ss-btn {
    justify-content: center;
    width: 100%;
}

.hm-form .ss-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.hm-welcome {
    padding: 34px 30px;
    text-align: center;
}

.ss-page .hm-welcome__title {
    margin: 0 0 8px;
    color: var(--ss-ink);
    font-size: 22px;
    font-weight: 600;
}

.ss-page .hm-welcome p {
    margin-bottom: 22px;
    text-align: center;
}

/* ---------- About ---------- */

.hm-about-section {
    position: relative;
    background:
        radial-gradient(circle at 0% 0%, rgba(208, 35, 35, .07), transparent 42%),
        linear-gradient(180deg, #fff 0%, var(--ss-cream) 100%);
    overflow: hidden;
}

/* A large, faint heart behind the text. */
.hm-about-section::before {
    content: '\f004';
    position: absolute;
    bottom: -90px;
    left: -60px;
    color: rgba(208, 35, 35, .05);
    font: normal 420px/1 FontAwesome;
    pointer-events: none;
}

.hm-about {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 520px);
    gap: 64px;
    align-items: center;
}

.hm-about__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hm-about__top .ss-eyebrow {
    margin-bottom: 0;
}

.hm-lang {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--ss-line);
    border-radius: 999px;
    background: #fff;
}

.hm-lang__btn {
    padding: 6px 16px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ss-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.hm-lang__btn:hover,
.hm-lang__btn:focus {
    color: var(--ss-brand);
    outline: 0;
}

.hm-lang__btn.is-active {
    background: var(--ss-brand);
    color: #fff;
}

.ss-page .hm-about__title {
    margin: 0 0 20px;
    text-align: left;
    color: var(--ss-ink);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 600;
    line-height: 1.15;
}

.hm-about__title em {
    color: var(--ss-brand);
    font-style: normal;
}

.hm-quote {
    position: relative;
    margin: 0 0 22px;
    padding: 18px 22px 18px 58px;
    border: 0;
    border-left: 4px solid var(--ss-brand);
    border-radius: 0 var(--ss-radius) var(--ss-radius) 0;
    background: #fff;
    box-shadow: var(--ss-shadow);
    color: var(--ss-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.hm-quote::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    left: 16px;
    color: var(--ss-brand);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 54px;
    line-height: 1;
}

.ss-page .hm-about__text p {
    margin-bottom: 14px;
}

.hm-about__text[hidden] {
    display: none;
}

.hm-about__text--ml {
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Rachana', sans-serif;
}

.hm-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
    margin: 26px 0 30px;
    padding: 0;
    list-style: none;
}

.hm-value {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hm-value__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    color: var(--ss-brand);
    font-size: 19px;
    box-shadow: var(--ss-shadow);
}

.hm-value strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ss-ink);
    font-size: 15px;
    font-weight: 600;
}

.hm-value span {
    color: var(--ss-muted);
    font-size: 13px;
    line-height: 1.5;
}

.hm-value .hm-value__icon {
    color: var(--ss-brand);
    font-size: 19px;
}

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

.hm-reasons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.hm-reason {
    padding: 36px 28px 32px;
    border-radius: var(--ss-radius);
    background: #fff;
    box-shadow: var(--ss-shadow);
    text-align: center;
    transition: transform .25s ease;
}

.hm-reason:hover {
    transform: translateY(-6px);
}

.hm-reason__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ss-cream);
}

.hm-reason__icon img {
    max-width: 44px;
    max-height: 48px;
}

.ss-page .hm-reason__title {
    margin: 0 0 10px;
    color: var(--ss-ink);
    font-size: 19px;
    font-weight: 600;
}

.ss-page .hm-reason p {
    text-align: center;
}

/* ---------- Featured profiles ---------- */

/* A slider showing five profiles at a time (three on tablets, two on phones). */
.hm-slider {
    --hm-per-row: 5;
    --hm-gap: 24px;

    position: relative;
}

.hm-profiles {
    display: flex;
    gap: var(--hm-gap);
    /* Room for the cards' hover lift and shadow inside the scroll box. */
    margin: -12px;
    padding: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding: 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hm-profiles::-webkit-scrollbar {
    display: none;
}

.hm-profiles:focus {
    outline: 0;
}

.hm-profiles .hm-profile {
    flex: 0 0 calc((100% - (var(--hm-per-row) - 1) * var(--hm-gap)) / var(--hm-per-row));
    min-width: 0;
    scroll-snap-align: start;
}

.hm-slider__arrow {
    position: absolute;
    top: 38%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ss-brand);
    font-size: 24px;
    box-shadow: var(--ss-shadow);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.hm-slider__arrow:hover,
.hm-slider__arrow:focus {
    background: var(--ss-brand);
    color: #fff;
    outline: 0;
}

.hm-slider__arrow[hidden] {
    display: none;
}

.hm-slider__arrow--prev {
    left: -14px;
}

.hm-slider__arrow--next {
    right: -14px;
}

.hm-profile {
    display: block;
    border: 1px solid var(--ss-line);
    border-radius: var(--ss-radius);
    background: #fff;
    color: inherit;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hm-profile:hover,
.hm-profile:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-6px);
    box-shadow: var(--ss-shadow);
}

.hm-profile__media {
    position: relative;
    aspect-ratio: 1;
    background: #f1ece8;
}

.hm-profile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-profile__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(27, 20, 19, .78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hm-profile__body {
    padding: 16px 18px 18px;
}

.ss-page .hm-profile__name {
    margin: 0 0 4px;
    text-align: left;
    color: var(--ss-ink);
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-page .hm-profile__meta {
    font-size: 13px;
}

.hm-actions {
    margin-top: 40px;
    text-align: center;
}

/* ---------- Success stories ---------- */

.hm-stories {
    position: relative;
    isolation: isolate;
    background: #1b1413 url('../images/ff.jpg') center / cover no-repeat fixed;
}

.hm-stories::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(27, 20, 19, .78);
}

.ss-page .hm-stories .ss-head__title,
.ss-page .hm-stories .ss-head p {
    color: #fff;
}

.hm-stories .ss-eyebrow {
    color: #ff8f8f;
}

.hm-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hm-story {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--ss-radius);
    overflow: hidden;
}

.hm-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hm-story:hover img {
    transform: scale(1.06);
}

.hm-story__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 38px 18px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.hm-story__caption small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    font-weight: 400;
}

/* ---------- Small screens ---------- */

@media (max-width: 1020px) {
    .hm-hero__inner {
        min-height: 0;
        padding: 160px 0 64px;
    }

    .hm-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hm-slider {
        --hm-per-row: 3;
    }

    .hm-stories {
        background-attachment: scroll;
    }
}

@media (max-width: 760px) {
    .hm-slider {
        --hm-per-row: 2;
    }

    .hm-reasons,
    .hm-story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .hm-values {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-pane {
        padding: 22px 18px 24px;
    }

    .hm-slider {
        --hm-gap: 14px;
    }

    .hm-slider__arrow--prev {
        left: -6px;
    }

    .hm-slider__arrow--next {
        right: -6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-profiles {
        scroll-behavior: auto;
    }

    .hm-hero__slide {
        animation: none;
    }

    .hm-hero__slide--1 {
        opacity: 1;
    }

    .hm-lang__btn,
    .hm-reason,
    .hm-profile,
    .hm-story img {
        transition: none;
    }
}
