/* homefinity.pk – home page */
.hf{--ink:#101614;--muted:#6b665a;--line:#eadfc6;--tint:#f6ecd6;--red:#d52b2b;--red-d:#b81f1f;font-family:Manrope,sans-serif;color:var(--ink)}
.hf-wrap{max-width:1240px;margin:0 auto;padding:0 28px}
.hf *{box-sizing:border-box}
.hf a{text-decoration:none;color:inherit}
.hf-disp{font-family:'Bebas Neue',Impact,'Arial Narrow',sans-serif;font-weight:400}

/* buttons */
.hf-btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:56px;padding:0 30px;border-radius:99px;background:var(--red);color:#fff!important;font:800 16px Manrope,sans-serif;border:2px solid var(--red);cursor:pointer;transition:background .2s,transform .15s,color .2s}
.hf-btn:hover{background:var(--red-d);border-color:var(--red-d)}
.hf-btn:active{transform:scale(.97)}
.hf-btn.ghost{background:transparent;color:var(--ink)!important;border-color:var(--ink)}
.hf-btn.ghost:hover{background:var(--ink);color:#fff!important;border-color:var(--ink)}
.hf a:focus-visible,.hf button:focus-visible{outline:3px solid #1b6ef3;outline-offset:3px;border-radius:12px}

/* hero */
.hf-hero{padding:calc(var(--hf-hdr,80px) + 34px) 0 40px}
.hf-hero-in{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:56px;align-items:center}
.hf h1{font:400 clamp(60px,6.8vw,108px)/.9 'Bebas Neue',Impact,'Arial Narrow',sans-serif;letter-spacing:.004em;margin:0 0 24px}
.hf-hero-copy p{font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:#3d3a32;max-width:34ch;margin:0 0 32px}
.hf-cta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:30px}
.hf-ticks{display:flex;flex-wrap:wrap;gap:10px 26px;list-style:none;margin:0;padding:0;font:700 14px Manrope,sans-serif}
.hf-ticks li{display:flex;align-items:center;gap:9px}
.hf-ticks svg{color:var(--red);flex:none}
.hf-tiles{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:1fr 1fr;gap:14px;height:min(64vh,610px);min-height:470px}
.hf-tiles.n1{grid-template-columns:1fr;grid-template-rows:1fr}
.hf-tiles.n2{grid-template-rows:1fr}
.hf-tile{position:relative;display:block;border-radius:30px;overflow:hidden;background:var(--tint);min-height:0}
.hf-tile.t1{grid-row:1/3}
.hf-tiles.n2 .hf-tile.t1{grid-row:1}
.hf-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.22,1,.36,1)}
.hf-tile:hover img{transform:scale(1.04)}
.hf-tile .tg{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px;border-radius:18px;background:rgba(255,255,255,.95);box-shadow:0 10px 24px -12px rgba(0,0,0,.4)}
.hf-tile .tg b{font:700 15px Manrope,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hf-tile .tg em{font:800 15px Manrope,sans-serif;font-style:normal;white-space:nowrap}
.hf-tiles.sk .hf-tile{animation:hfp 1.4s ease-in-out infinite}
@keyframes hfp{50%{opacity:.55}}
.hf-hero-copy,.hf-tiles{animation:hfin .8s cubic-bezier(.22,1,.36,1) both}
.hf-tiles{animation-delay:.12s}
@keyframes hfin{from{opacity:0;transform:translateY(18px)}}

/* sections */
.hf-sec{padding:44px 0}
.hf-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px}
.hf-head h2{font:400 clamp(42px,4.6vw,66px)/.95 'Bebas Neue',Impact,'Arial Narrow',sans-serif;margin:0}
.hf-link{font:700 15px Manrope,sans-serif;border-bottom:2px solid var(--ink);padding-bottom:3px;white-space:nowrap}
.hf-link:hover{color:var(--red);border-color:var(--red)}

/* categories */
.hf-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.hf-cat{position:relative;display:block;aspect-ratio:4/3;border-radius:30px;overflow:hidden;background:var(--tint)}
.hf-cat img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.22,1,.36,1)}
.hf-cat:hover img{transform:scale(1.05)}
.hf-cat .tg{position:absolute;left:14px;bottom:14px;display:flex;align-items:center;gap:14px;padding:12px 12px 12px 18px;border-radius:99px;background:rgba(255,255,255,.96);box-shadow:0 10px 24px -12px rgba(0,0,0,.4)}
.hf-cat .tg span{display:flex;flex-direction:column;line-height:1.25}
.hf-cat .tg b{font:800 17px Manrope,sans-serif}
.hf-cat .tg small{font:600 13px Manrope,sans-serif;color:var(--muted)}
.hf-cat .tg i{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--red);color:#fff;font-style:normal;transition:transform .2s}
.hf-cat:hover .tg i{transform:translateX(3px)}
.hf-cat.sk{animation:hfp 1.4s ease-in-out infinite}

/* trust */
.hf-trust-in{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:30px;padding:12px}
.hf-tr{display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:20px}
.hf-tr+.hf-tr{border-left:1px dashed var(--line)}
a.hf-tr:hover{background:#faf5e8}
.hf-tr i{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tint);color:var(--red)}
.hf-tr span{display:flex;flex-direction:column;font-size:14px;line-height:1.4;color:var(--muted)}
.hf-tr b{font:800 16px Manrope,sans-serif;color:var(--ink)}

/* story */
.hf-story-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center}
.hf-sty{position:relative;padding-bottom:56px}
.hf-sty .a{display:block;width:84%;aspect-ratio:4/5;object-fit:cover;border-radius:34px;background:var(--tint)}
.hf-sty .b{position:absolute;right:0;bottom:0;width:48%;aspect-ratio:1/1;object-fit:cover;border-radius:28px;border:8px solid #fff8e9;background:var(--tint)}
.hf-sty.one .b{display:none}
.hf-story h2{font:400 clamp(44px,5vw,72px)/.95 'Bebas Neue',Impact,'Arial Narrow',sans-serif;margin:0 0 20px}
.hf-story p{font-size:18px;line-height:1.7;color:#3d3a32;max-width:46ch;margin:0 0 28px}

/* closing band */
.hf-band{padding:44px 0 72px}
.hf-band-in{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;background:var(--ink);color:#fff;border-radius:34px;padding:52px 56px}
.hf-band h2{font:400 clamp(40px,4.4vw,62px)/.95 'Bebas Neue',Impact,'Arial Narrow',sans-serif;margin:0 0 10px;color:#fff}
.hf-band p{margin:0;color:#d4cdbb;font-size:17px;max-width:40ch;line-height:1.55}

@media (max-width:1000px){
 .hf-hero-in{grid-template-columns:1fr;gap:34px}
 .hf-tiles{height:auto;min-height:0;grid-template-columns:1fr 1fr;grid-template-rows:auto}
 .hf-tile.t1,.hf-tiles.n2 .hf-tile.t1{grid-column:1/3;grid-row:auto;aspect-ratio:4/3}
 .hf-tiles.n1 .hf-tile.t1{grid-column:1}
 .hf-tile.t2,.hf-tile.t3{aspect-ratio:1/1}
 .hf-trust-in{grid-template-columns:1fr 1fr}
 .hf-tr:nth-child(3){border-left:0}
 .hf-tr:nth-child(n+3){border-top:1px dashed var(--line)}
 .hf-story-in{grid-template-columns:1fr;gap:36px}
 .hf-sty .a{width:78%;aspect-ratio:4/3.4}
}
@media (max-width:640px){
 .hf-wrap{padding:0 16px}
 .hf-hero{padding:calc(var(--hf-hdr,72px) + 16px) 0 24px}
 .hf h1{font-size:clamp(56px,17vw,84px);margin-bottom:18px}
 .hf-hero-copy p{font-size:16px;margin-bottom:24px}
 .hf-cta{gap:10px;margin-bottom:22px}
 .hf-btn{height:54px;padding:0 16px;font-size:15px;flex:1 1 140px}
 .hf-ticks{font-size:13px;gap:8px 18px}
 .hf-tile{border-radius:22px}
 .hf-tile .tg{left:8px;right:8px;bottom:8px;padding:8px 12px;border-radius:14px}
 .hf-tile.t2 .tg b,.hf-tile.t3 .tg b{display:none}
 .hf-tile.t2 .tg,.hf-tile.t3 .tg{justify-content:center}
 .hf-sec{padding:28px 0}
 .hf-head{margin-bottom:18px}
 .hf-cats{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 -16px;padding:0 16px 8px;scroll-padding:0 16px;scrollbar-width:none}
 .hf-cats::-webkit-scrollbar{display:none}
 .hf-cat{flex:0 0 80%;scroll-snap-align:start;border-radius:24px}
 .hf-trust-in{grid-template-columns:1fr;padding:6px;border-radius:24px}
 .hf-tr{padding:14px 12px}
 .hf-tr+.hf-tr,.hf-tr:nth-child(n+3){border-left:0;border-top:1px dashed var(--line)}
 .hf-story p{font-size:16px}
 .hf-sty .a{border-radius:26px}.hf-sty .b{border-radius:22px;border-width:6px}
 .hf-band{padding:28px 0 48px}
 .hf-band-in{padding:34px 24px;border-radius:26px}
 .hf-band .hf-btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
 .hf-hero-copy,.hf-tiles,.hf-tiles.sk .hf-tile,.hf-cat.sk{animation:none}
 .hf-tile img,.hf-cat img,.hf-cat .tg i{transition:none}
}

/* featured grid: 4 columns on desktop, 2 on mobile (cards come from shop.css) */
.hf #hf-feat{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1000px){.hf #hf-feat{grid-template-columns:repeat(2,minmax(0,1fr))}}
