/* Design font for the hero heading + subtitle (Google Fonts) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;800;900&display=swap");

/* ==========================================================================
   HOSTMAFIYA  -  HOME PAGE  (index.php)            body.hm-skin.hm-home
   Loaded only on the home page by header.tpl (after custom.css).
   Header / menu / footer stay shared with the other pages (custom.css).
   Markup: header.tpl (hero + "How can we help") and homepage.tpl (cards + features)
   ========================================================================== */

body.hm-home {
    overflow-x: hidden;
    /* one spacing scale for the whole page (grows/shrinks with the screen) */
    --hm-s-top:   clamp(32px, 3.6vw, 58px);   /* header -> heading           */
    --hm-s-sub:   clamp(12px, 1.1vw, 16px);   /* heading -> sub text         */
    --hm-s-form:  clamp(20px, 1.9vw, 30px);   /* sub text -> search bar      */
    --hm-s-help:  clamp(16px, 1.6vw, 24px);   /* search bar -> help strip    */
    --hm-s-cards: clamp(28px, 2.6vw, 44px);   /* help strip -> cards         */
    --hm-s-gap:   clamp(12px, 1.1vw, 18px);   /* gap between cards           */
    --hm-s-feat:  clamp(24px, 2.4vw, 40px);   /* cards -> feature strip      */
}

/* no server racks on the home page (custom.css draws them on other pages) */
body.hm-home::before,
body.hm-home::after { content: none !important; display: none !important; }

/* ---------- Hero ---------------------------------------------------------- */
body.hm-home section#home-banner.hm-hb {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: var(--hm-s-top) 0 var(--hm-s-cards);
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse 48% 70% at 50% 30%, rgba(255, 40, 64, .45) 0%, rgba(255, 40, 64, 0) 70%),
        transparent;
}
body.hm-home section#home-banner.hm-hb.with-recaptcha { padding-bottom: var(--hm-s-cards); }
body.hm-home .hm-hb__inner {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 1080px;
    padding: 0 20px;
}

/* title */
body.hm-home section#home-banner .hm-hb__title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Montserrat", "Raleway", "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(40, 0, 6, .55);
}
body.hm-home section#home-banner .hm-hb__title .hm-w,
body.hm-home section#home-banner .hm-hb__title em {
    display: inline-block;
    font-size: 1.62em;
    font-style: normal;
    font-weight: 800;
    line-height: 1.15;
}
body.hm-home section#home-banner .hm-hb__title em {
    position: relative;
    color: #FFD21F;
    padding-bottom: 6px;
}
/* gold swoosh under "domain name" */
body.hm-home section#home-banner .hm-hb__title em::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -8px;
    height: 12px;
    border-top: 3px solid #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: .95;
}
body.hm-home .hm-hb__sub {
    margin: calc(var(--hm-s-sub) + 6px) 0 var(--hm-s-form);
    color: #fff;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(40, 0, 6, .5);
}

/* search bar */
body.hm-home .hm-hb__search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: 890px;
    margin: 0 auto;
}
body.hm-home .hm-hb__field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(40, 0, 6, .45);
}
body.hm-home .hm-hb__field > .fa-globe {
    position: absolute;
    top: 50%;
    left: 20px;
    margin-top: -9px;
    color: #e3001b;
    font-size: 18px;
    pointer-events: none;
}
body.hm-home section#home-banner .hm-hb__field .form-control {
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    height: 58px;
    padding: 0 16px 0 54px;
    color: #1d0b0e;
    font-size: 16px;
    font-weight: 400;
    background: transparent;
    border: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: none;
}
body.hm-home section#home-banner .hm-hb__field .form-control::placeholder { color: #8b8f99; }
body.hm-home section#home-banner .hm-hb__field .form-control:focus { box-shadow: none; outline: 0; }
body.hm-home .hm-hb__field:focus-within { box-shadow: 0 0 0 3px rgba(255, 210, 31, .55), 0 10px 28px rgba(40, 0, 6, .45); }

body.hm-home section#home-banner .hm-hb__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 58px;
    padding: 0 28px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border-radius: 10px;
    transition: filter .2s, background-color .2s, color .2s;
}
body.hm-home section#home-banner .hm-hb__btn i { font-size: 19px; }
body.hm-home section#home-banner .hm-hb__btn--search {
    flex: 0 0 auto;
    min-width: 156px;
    color: #14080a;
    background: #FFD21F;
    border: 0;
    border-radius: 0 10px 10px 0;
}
body.hm-home section#home-banner .hm-hb__btn--search:hover,
body.hm-home section#home-banner .hm-hb__btn--search:focus { color: #14080a; filter: brightness(1.07); }
body.hm-home section#home-banner .hm-hb__btn--transfer {
    flex: 0 0 auto;
    min-width: 170px;
    color: #fff;
    background: rgba(40, 0, 6, .35);
    border: 2px solid #fff;
}
body.hm-home section#home-banner .hm-hb__btn--transfer:hover,
body.hm-home section#home-banner .hm-hb__btn--transfer:focus { color: #14080a; background: #fff; }

/* captcha + tooltips */
body.hm-home section#home-banner .tooltip-inner { background-color: #D90429; }
body.hm-home section#home-banner .tooltip.left .tooltip-arrow { border-left-color: #D90429; }
body.hm-home #frmDomainHomepage .domainchecker-homepage-captcha { margin-top: 14px; color: #fff; }
body.hm-home #frmDomainHomepage #default-captcha-domainchecker { color: rgba(255, 255, 255, .9); margin-bottom: 0; }

/* ---------- "How can we help today?" -------------------------------------- */
body.hm-home .hm-help {
    display: flex;
    align-items: stretch;
    max-width: 1040px;
    margin: var(--hm-s-help) auto 0;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(40, 0, 6, .45);
}
body.hm-home .hm-help__lead {
    display: flex;
    flex: 0 0 225px;
    align-items: center;
    gap: 14px;
    padding: 0 44px 0 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f5132f, #c4001b);
    clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
}
body.hm-home .hm-help__lead i { flex: none; color: #FFD21F; font-size: 34px; }
body.hm-home .hm-help__list {
    display: flex;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.hm-home .hm-help__list li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}
body.hm-home .hm-help__list li + li::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 1px;
    background: #dedede;
}
body.hm-home .hm-help__list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 16px 8px 14px;
    color: #14080a;
    text-align: center;
    text-decoration: none;
    transition: background .2s;
}
body.hm-home .hm-help__list a > i { color: #e3001b; font-size: 30px; line-height: 1; transition: transform .2s; }
body.hm-home .hm-help__list a > span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
    white-space: nowrap;
}
body.hm-home .hm-help__chev { margin-left: 4px; color: #e3001b; font-size: 11px; }
body.hm-home .hm-help__list a:hover,
body.hm-home .hm-help__list a:focus { color: #c4001b; background: #fff3f4; }
body.hm-home .hm-help__list a:hover > i { transform: translateY(-3px); }

/* ---------- Hero side art (two transparent PNGs) -------------------------- */
body.hm-home .hm-hb__art {
    position: absolute;
    z-index: 1;
    top: 22px;
    width: clamp(220px, calc((100vw - 1100px) / 2), 400px);
    pointer-events: none;
}
body.hm-home .hm-hb__art--left  { left: max(8px, calc(50% - 950px)); }
body.hm-home .hm-hb__art--right { right: max(8px, calc(50% - 950px)); }
body.hm-home .hm-hb__art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 26px rgba(30, 0, 5, .45));
}

/* ---------- Main body ------------------------------------------------------ */
body.hm-home section#main-body {
    position: relative;
    z-index: 1;
    min-height: 0;
    padding: 0;
    background: transparent;
}
body.hm-home section#main-body > .container {
    width: auto;
    max-width: 1640px;
    padding: 0 24px;
}
body.hm-home section#main-body > .container > .row { margin: 0; }
body.hm-home .main-content { float: none; width: 100%; min-height: 0; margin: 0; padding: 0; }
body.hm-home .main-content > h2,
body.hm-home #twitterFeedOutput { color: #fff; }

/* ---------- 4 cards -------------------------------------------------------- */
.hm-hcards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hm-s-gap);
    margin: 0;
}
.hm-hcard {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 114px;
    padding: 16px 34px 16px 30px;
    overflow: hidden;
    background: linear-gradient(100deg, rgba(36, 0, 6, .82) 0%, rgba(70, 0, 12, .62) 60%, rgba(110, 0, 18, .5) 100%);
    border: 2px solid rgba(255, 74, 92, .8);
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(255, 30, 55, .35), inset 0 0 24px rgba(255, 30, 55, .12);
    transition: transform .2s, box-shadow .2s;
}
.hm-hcard:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(255, 30, 55, .55), inset 0 0 24px rgba(255, 30, 55, .18); }
.hm-hcard__art {
    flex: 0 0 auto;
    width: 112px;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(20, 0, 4, .5));
}
.hm-hcard__txt {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 20px 0 34px;
    padding-left: 26px;
    border-left: 2px solid rgba(255, 255, 255, .8);
}
.hm-hcard__txt h3 {
    margin: 0 0 6px;
    color: #fff;
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.hm-hcard__txt h3 em { color: #FFD21F; font-style: normal; }
.hm-hcard__txt p { margin: 0; color: rgba(255, 255, 255, .95); font-size: 15px; line-height: 1.5; }
.hm-hcard__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #14080a;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    background: #FFD21F;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(20, 0, 4, .35);
    text-decoration: none;
    transition: filter .2s, transform .2s;
}
.hm-hcard__btn:hover,
.hm-hcard__btn:focus { color: #14080a; text-decoration: none; filter: brightness(1.08); transform: translateX(2px); }
.hm-hcard__wm {
    position: absolute;
    top: 10px;
    right: 22px;
    color: #fff;
    font-size: 64px;
    opacity: .06;
    pointer-events: none;
}

/* ---------- Feature strip (full width) ------------------------------------ */
.hm-hfeat {
    position: relative;
    margin: var(--hm-s-feat) calc(50% - 50vw) 0;
    padding: 0 20px 46px;
    background: url("../img/hm-home-wave.svg") center bottom / 100% 140px no-repeat;
}
.hm-hfeat__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.hm-hfeat__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 42px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}
.hm-hfeat__list li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
.hm-hfeat__list i { color: #fff; font-size: 40px; filter: drop-shadow(0 4px 8px rgba(40, 0, 6, .45)); }

/* ---------- Footer (show the menu links on the home page too) -------------- */
body.hm-home .hm-footer-links { display: flex; }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 1499px) {
    .hm-hcard { padding: 16px 22px; }
    .hm-hcard__art { width: 92px; }
    .hm-hcard__txt { margin-left: 22px; padding-left: 20px; }
    .hm-hcard__txt h3 { font-size: 24px; }
    .hm-hcard__txt p { font-size: 14px; }
    .hm-hcard__btn { padding: 9px 14px; font-size: 14px; }
}
/* desktop: more room between the header and the heading */
@media (min-width: 1200px) {
    body.hm-home { --hm-s-top: clamp(64px, 4.6vw, 84px); }
}

/* below 1600px the feature list reaches the screen edges: keep the white wave fully under it */
@media (max-width: 1599px) {
    .hm-hfeat { padding-bottom: clamp(64px, 8vw, 120px); background-size: 100% clamp(64px, 8vw, 120px); }
}

/* side art needs room beside the 1040px centre column */
@media (max-width: 1539px) {
    body.hm-home .hm-hb__art { display: none; }
}
@media (max-width: 1199px) {
    .hm-hcards { grid-template-columns: minmax(0, 1fr); }
    .hm-hfeat__list li { padding: 6px 24px; }
}
@media (max-width: 991px) {
    body.hm-home .hm-help { flex-direction: column; }
    body.hm-home .hm-help__lead { flex: none; justify-content: center; padding: 14px 20px; clip-path: none; }
    body.hm-home .hm-help__list { flex-wrap: wrap; }
    body.hm-home .hm-help__list li { flex: 0 0 50%; border-top: 1px solid #eee; }
    body.hm-home .hm-help__list li + li::before { display: none; }
    body.hm-home .hm-help__list li:nth-child(even) { border-left: 1px solid #eee; }
    .hm-hfeat__list { gap: 14px 0; }
    .hm-hfeat__list li { flex: 0 0 33.333%; justify-content: center; border-left: 0 !important; }
}
@media (max-width: 767px) {
    body.hm-home section#home-banner .hm-hb__title { font-size: 19px; }
    body.hm-home .hm-hb__sub { font-size: 15px; }
    body.hm-home .hm-hb__search { flex-direction: column; }
    body.hm-home section#home-banner .hm-hb__field .form-control { height: 52px; font-size: 15px; }
    body.hm-home section#home-banner .hm-hb__btn { height: 52px; font-size: 17px; }
    body.hm-home section#home-banner .hm-hb__btn--search { min-width: 0; padding: 0 18px; }
    body.hm-home section#home-banner .hm-hb__btn--search span { display: none; }
    body.hm-home section#home-banner .hm-hb__btn--transfer { width: 100%; }
    body.hm-home .hm-help__list a > span { font-size: 12.5px; white-space: normal; }
    body.hm-home section#main-body > .container { padding: 0 12px; }
    .hm-hcard { flex-wrap: wrap; padding: 18px 16px; }
    .hm-hcard__art { width: 72px; }
    .hm-hcard__txt { flex: 1 1 calc(100% - 90px); margin: 0 0 0 16px; padding-left: 16px; }
    .hm-hcard__txt h3 { font-size: 22px; }
    .hm-hcard__btn { margin: 14px 0 0 104px; }
    .hm-hcard__wm { font-size: 48px; }
    .hm-hfeat__list li { flex: 0 0 50%; justify-content: flex-start; padding: 6px 14px; font-size: 14px; }
    .hm-hfeat__list i { font-size: 30px; }
}
@media (max-width: 420px) {
    body.hm-home section#home-banner .hm-hb__btn--search { font-size: 0; }
    body.hm-home section#home-banner .hm-hb__btn--search i { font-size: 19px; }
}

/* Hero ki left + right images chhupi hui hain. Wapas dikhani ho to ye line hata do. */
body.hm-home .hm-hb__art { display: none !important; }
