/* =====================================================================
   home-reference-final35.css
   Homepage tweaks to match "Final Home page.pdf".
   Loaded AFTER pages/home/india-map.css so these rules win the cascade.
   Scope is limited to the seven requested changes only.
   ===================================================================== */

/* ---------------------------------------------------------------------
   2. HERO badge ("India's first integrated real estate platform")
      — centred (already) and sitting 20px below the sub-nav bar
      instead of being pulled up behind it.
   --------------------------------------------------------------------- */
.home-page .home-hero .home-kicker{transform:translateY(-30px)!important;}

/* ---------------------------------------------------------------------
   3. HERO stats row (750+ / 1.75M / 1 / Tier 1-4)
      — add breathing room above the row (≈20px over the base spacing)
      so it no longer hugs the action buttons / floats to the fold.
   --------------------------------------------------------------------- */
@media (min-width:1081px){
    html body.home-page .home-hero .hero-stats{margin-top:84px!important;}
}

/* Figma FAQ background: keep the existing accordion structure and interaction,
   while adding the supplied cityscape image behind the section. */
html body.home-page .faq-section {
    /* clear photo, no tint/haze layer */
    background-image: url('/assets/faq-bg.jpg') !important;
    /* anchored to the photo's top edge so the building tops are never cut off */
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}
/* Soft white glow keeps the heading and intro readable over the building windows. */
html body.home-page .faq-section h2 { text-shadow: 0 0 18px rgba(255, 255, 255, .9) !important; }
html body.home-page .faq-section h2 + p,
html body.home-page .faq-section .section-center > p {
    font-weight: 500 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 4px rgba(255, 255, 255, 1) !important;
}

/* ---------------------------------------------------------------------
   4. "THE COREAL FILM" — single, centred video player with the
      designed play/overlay treatment (replaces the video-left +
      blue "Ads coming soon" card layout).
   --------------------------------------------------------------------- */
.home-page .home-film .film-content{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
}
.home-page .home-film .film-content > .eyebrow,
.home-page .home-film .film-content > h2,
.home-page .home-film .film-content > p{
    grid-column:auto!important;grid-row:auto!important;
    margin-left:auto!important;margin-right:auto!important;
}
.home-page .home-film .film-content > h2{margin-top:5px!important;}
.home-page .home-film .film-content > p{margin-top:6px!important;}
.home-page .home-film .film-content > .film-frame{
    grid-column:auto!important;grid-row:auto!important;
    width:min(640px,100%)!important;height:auto!important;aspect-ratio:16/9!important;
    margin:18px auto 0!important;border-radius:28px!important;
    position:relative!important;overflow:hidden!important;
}
.home-page .home-film .film-frame video{
    width:100%!important;height:100%!important;aspect-ratio:16/9!important;
    object-fit:cover!important;display:block!important;
}
/* the old blue promo card is no longer used */
.home-page .home-film .film-ad{display:none!important;}

/* film video overlay (injected by JS) */
.home-page .film-overlay{
    position:absolute;inset:0;z-index:2;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    text-align:center;padding:0 24px;cursor:pointer;
    background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.28));
}
.home-page .film-frame.is-playing .film-overlay{display:none!important;}
.home-page .film-overlay .film-play{
    width:48px;height:48px;border-radius:50%;
    border:1.5px solid rgba(255,255,255,.92);background:rgba(0,0,0,.12);
    display:flex;align-items:center;justify-content:center;cursor:pointer;
    transition:transform .2s ease,background .2s ease;padding:0;
}
.home-page .film-overlay .film-play:hover{transform:scale(1.06);background:rgba(0,0,0,.3);}
.home-page .film-overlay .film-play svg{width:18px;height:18px;fill:#fff;margin-left:3px;}
.home-page .film-overlay .film-cap-title{
    margin-top:34px;font:700 22px/1.2 Manrope,Inter,sans-serif;letter-spacing:-.2px;color:#fff;
}
.home-page .film-overlay .film-cap-sub{
    margin-top:12px;font:400 15px/1.5 Inter,sans-serif;color:#c9c9cf;max-width:360px;
}
.home-page .film-overlay .film-time{
    position:absolute;left:28px;bottom:24px;font:400 14px/1 Inter,sans-serif;color:#fff;
}
.home-page .film-overlay .film-bar{
    position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.22);
}
.home-page .film-overlay .film-bar i{display:block;height:100%;width:6%;background:#fff;}

@media (max-width:1080px){
    .home-page .home-film .film-content > .film-frame{width:min(640px,100%)!important;}
    .home-page .home-film .film-content > h2{margin-top:5px!important;}
    .home-page .film-overlay .film-cap-title{font-size:19px;}
    .home-page .film-overlay .film-cap-sub{font-size:14px;}
}

/* ---------------------------------------------------------------------
   5. "OUR NETWORK" — heading sized to the PDF and metric numbers in
      brand blue (per the PDF, they were black).
   --------------------------------------------------------------------- */
html body.home-page .network-band h2{font-size:40px!important;}
.home-page .network-metrics b{color:#1f3cff!important;}

/* Keep the film player and taller ad cards together in one section view. */
.home-page .home-film{
    height:calc(100svh - var(--nav-h) - var(--bar-h))!important;
    min-height:calc(100svh - var(--nav-h) - var(--bar-h))!important;
    padding:10px 0!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    box-sizing:border-box!important;
}
.home-page .home-film .film-content>.film-frame{
    width:min(560px,100%)!important;margin-top:10px!important;
}
.home-page .home-film .ad-slider{
    width:min(1600px,calc(100% - 48px))!important;height:104px!important;margin:12px auto 0!important;
}
.home-page .home-film .ad-slider-track{height:100%!important;}
.home-page .home-film .ad-slide{
    height:104px!important;min-height:104px!important;border-radius:18px!important;
    background:#fff!important;color:#111!important;border:1px solid #e5e7eb!important;
    font-size:17px!important;
}
.home-page .network-ad{margin-top:48px!important;}

/* Compact six principles and visual to fit THE COREAL STANDARD in a viewport. */
.home-page .standard-section{
    height:calc(100svh - var(--nav-h) - var(--bar-h))!important;
    min-height:calc(100svh - var(--nav-h) - var(--bar-h))!important;
    padding:24px 0!important;overflow:hidden!important;box-sizing:border-box!important;
}
.home-page .standard-section .section-center{width:min(1280px,calc(100% - 48px))!important;}
.home-page .standard-section .eyebrow{display:block!important;width:100%!important;margin:0 auto!important;text-align:center!important;}
.home-page .standard-section h2{margin:8px auto 0!important;font-size:clamp(24px,2.4vw,34px)!important;line-height:1.12!important;}
.home-page .standard-section .section-center>p{margin:8px auto 0!important;font-size:14px!important;line-height:1.35!important;}
.home-page .standard-layout{
    display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr)!important;
    gap:20px!important;margin:18px 0 0!important;align-items:stretch!important;
}
.home-page .principles{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
.home-page .principle,
.home-page .principle:nth-child(3n+1),
.home-page .principle:nth-child(4n){
    width:auto!important;height:auto!important;min-height:154px!important;padding:14px!important;
    border-radius:16px!important;box-shadow:0 8px 22px rgba(21,34,56,.08)!important;
}
.home-page .principle>b,
.home-page .principle:nth-child(3n+1)>b,
.home-page .principle:nth-child(4n)>b{width:30px!important;height:30px!important;font-size:15px!important;}
.home-page .principle h3{width:auto!important;min-height:0!important;margin:12px 0 5px!important;font-size:17px!important;line-height:1.15!important;}
.home-page .principle p,
.home-page .principle:nth-child(3n+1) p,
.home-page .principle:nth-child(4n) p{width:auto!important;font-size:12px!important;line-height:1.35!important;}
.home-page .standard-visual{
    width:100%!important;height:auto!important;min-height:0!important;border-radius:20px!important;
    background-image:url('/assets/bulding2.png')!important;background-position:center!important;
    background-size:contain!important;background-repeat:no-repeat!important;background-color:#e8f3fb!important;
}

@media(max-width:900px){
    .home-page .home-film{padding:8px 0!important;}
    .home-page .home-film .film-content>.film-frame{width:min(500px,82vw)!important;margin-top:8px!important;}
    .home-page .home-film .ad-slider,.home-page .home-film .ad-slider-track{height:88px!important;}
    .home-page .home-film .ad-slide{height:88px!important;min-height:88px!important;font-size:15px!important;}
    .home-page .standard-section{height:calc(100svh - var(--nav-h) - var(--bar-h))!important;min-height:calc(100svh - var(--nav-h) - var(--bar-h))!important;padding:20px 0!important;overflow:hidden!important;}
    .home-page .standard-layout{grid-template-columns:minmax(0,1.3fr) minmax(180px,.7fr)!important;gap:14px!important;margin-top:14px!important;}
    .home-page .principles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
    .home-page .principle,.home-page .principle:nth-child(3n+1),.home-page .principle:nth-child(4n){min-height:125px!important;padding:11px!important;}
    .home-page .standard-visual{min-height:100%!important;}
}
@media(max-width:560px){
    .home-page .nav-inner>.brand{transform:translateX(12px)!important;}
    .home-page .home-film .ad-slider{width:calc(100% - 32px)!important;}
    .home-page .home-film .ad-slider,.home-page .home-film .ad-slider-track{height:64px!important;}
    .home-page .home-film .ad-slide{height:64px!important;min-height:64px!important;font-size:12px!important;padding:6px!important;}
    .home-page .home-film .film-content>h2{font-size:clamp(25px,7vw,34px)!important;}
    .home-page .home-film .film-content>p{font-size:12px!important;line-height:1.25!important;}
    .home-page .standard-section{padding:14px 0!important;}
    .home-page .standard-section .section-center{width:calc(100% - 28px)!important;}
    .home-page .standard-section h2{font-size:22px!important;}
    .home-page .standard-section .section-center>p{font-size:12px!important;}
    .home-page .standard-layout{grid-template-columns:1fr!important;gap:10px!important;margin-top:10px!important;}
    .home-page .principles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
    .home-page .principle,.home-page .principle:nth-child(3n+1),.home-page .principle:nth-child(4n){min-height:105px!important;padding:9px!important;border-radius:12px!important;}
    .home-page .principle>b,.home-page .principle:nth-child(3n+1)>b,.home-page .principle:nth-child(4n)>b{width:24px!important;height:24px!important;font-size:12px!important;}
    .home-page .principle h3{margin-top:7px!important;font-size:14px!important;}
    .home-page .principle p,.home-page .principle:nth-child(3n+1) p,.home-page .principle:nth-child(4n) p{font-size:10px!important;line-height:1.25!important;}
    .home-page .standard-visual{min-height:100px!important;}
    .home-page .standard-visual strong{font-size:18px!important;}
}

/* Fit the film and ad carousel together in the section viewport. Keep the
   video slightly more compact and give the advertising cards the saved height. */
.home-page .home-film .film-content>h2{font-size:clamp(26px,2.4vw,34px)!important;line-height:1.1!important;}
.home-page .home-film .film-content>.film-frame{width:min(460px,100%)!important;margin-top:8px!important;}
.home-page .home-film .ad-slider,
.home-page .home-film .ad-slider-track{height:148px!important;}
.home-page .home-film .ad-slide{height:148px!important;min-height:148px!important;font-size:18px!important;}

@media(min-width:1340px){
    /* Align the search box's left edge with the hero heading's left edge. */
    .home-page .home-hero .hero-content>.hero-search{
        margin-left:50%!important;
        margin-right:0!important;
    }
}
@media(max-width:900px){
    .home-page .home-film .film-content>h2{font-size:clamp(24px,4vw,30px)!important;}
    .home-page .home-film .film-content>.film-frame{width:min(420px,78vw)!important;}
    .home-page .home-film .ad-slider,
    .home-page .home-film .ad-slider-track{height:116px!important;}
    .home-page .home-film .ad-slide{height:116px!important;min-height:116px!important;font-size:16px!important;}
}
@media(max-width:560px){
    .home-page .home-film .film-content>h2{font-size:clamp(22px,6vw,28px)!important;}
    .home-page .home-film .film-content>.film-frame{width:min(360px,78vw)!important;}
    .home-page .home-film .ad-slider,
    .home-page .home-film .ad-slider-track{height:82px!important;}
    .home-page .home-film .ad-slide{height:82px!important;min-height:82px!important;font-size:13px!important;}
}

/* Final COREAL Standard layout: preserve the complete portrait image and fit
   the six principles beside it without letting the section spill below view. */
.home-page .standard-section{
    height:calc(100svh - var(--nav-h) - var(--bar-h))!important;
    min-height:calc(100svh - var(--nav-h) - var(--bar-h))!important;
    padding:16px 0!important;overflow:hidden!important;
    display:flex!important;align-items:center!important;box-sizing:border-box!important;
}
.home-page .standard-section .section-center{
    width:min(1380px,calc(100% - 48px))!important;text-align:center!important;
}
.home-page .standard-section .eyebrow{
    display:block!important;width:100%!important;margin:0 auto!important;text-align:center!important;
}
.home-page .standard-section h2{margin:6px auto 0!important;font-size:clamp(24px,2.25vw,32px)!important;line-height:1.1!important;}
.home-page .standard-section .section-center>p{margin:6px auto 0!important;font-size:13px!important;line-height:1.3!important;}
.home-page .standard-layout{
    grid-template-columns:minmax(0,1fr) 250px!important;gap:18px!important;
    align-items:center!important;margin:12px 0 0!important;
}
.home-page .principles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.home-page .principle,
.home-page .principle:nth-child(3n+1),
.home-page .principle:nth-child(4n){
    min-height:clamp(96px,16vh,128px)!important;height:auto!important;padding:10px 12px!important;
    border-radius:14px!important;justify-content:flex-start!important;
}
.home-page .principle>b,
.home-page .principle:nth-child(3n+1)>b,
.home-page .principle:nth-child(4n)>b{width:26px!important;height:26px!important;font-size:13px!important;flex:0 0 26px!important;}
.home-page .principle h3{margin:8px 0 3px!important;font-size:16px!important;line-height:1.1!important;}
.home-page .principle p,
.home-page .principle:nth-child(3n+1) p,
.home-page .principle:nth-child(4n) p{font-size:11px!important;line-height:1.25!important;}
.home-page .standard-visual{
    justify-self:center!important;width:auto!important;height:min(430px,calc(100svh - var(--nav-h) - var(--bar-h) - 170px))!important;
    min-height:240px!important;aspect-ratio:0.475!important;border-radius:18px!important;
    background-image:url('/assets/bulding2.png')!important;background-position:center!important;
    background-size:contain!important;background-repeat:no-repeat!important;background-color:#e8f3fb!important;
}
@media(max-width:900px){
    .home-page .standard-section{padding:12px 0!important;}
    .home-page .standard-section .section-center{width:calc(100% - 32px)!important;}
    .home-page .standard-layout{grid-template-columns:minmax(0,1fr) 190px!important;gap:12px!important;margin-top:10px!important;}
    .home-page .principles{gap:8px!important;}
    .home-page .principle,.home-page .principle:nth-child(3n+1),.home-page .principle:nth-child(4n){min-height:clamp(88px,15vh,112px)!important;padding:8px!important;}
    .home-page .standard-visual{height:min(360px,calc(100svh - var(--nav-h) - var(--bar-h) - 160px))!important;min-height:180px!important;}
}
@media(max-width:560px){
    .home-page .standard-section{padding:10px 0!important;}
    .home-page .standard-section h2{font-size:21px!important;}
    .home-page .standard-section .section-center>p{font-size:11px!important;}
    .home-page .standard-layout{grid-template-columns:1fr!important;gap:8px!important;margin-top:8px!important;}
    .home-page .principles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
    .home-page .principle,.home-page .principle:nth-child(3n+1),.home-page .principle:nth-child(4n){min-height:clamp(68px,11vh,88px)!important;padding:6px 8px!important;}
    .home-page .principle>b,.home-page .principle:nth-child(3n+1)>b,.home-page .principle:nth-child(4n)>b{width:20px!important;height:20px!important;flex-basis:20px!important;font-size:10px!important;}
    .home-page .principle h3{margin:5px 0 2px!important;font-size:12px!important;}
    .home-page .principle p,.home-page .principle:nth-child(3n+1) p,.home-page .principle:nth-child(4n) p{font-size:9px!important;line-height:1.15!important;}
    .home-page .standard-visual{width:100%!important;height:clamp(90px,14vh,120px)!important;min-height:0!important;aspect-ratio:auto!important;}
}

/* Keep the complete COREAL Standard section within the available desktop viewport.
   The earlier India-map stylesheet sets a 600px minimum image height; override
   that high-specificity rule here without changing the section's content or behavior. */
@media(min-width:901px){
    html body.home-page .standard-section{
        height:calc(100svh - var(--nav-h,76px) - var(--bar-h,44px))!important;
        min-height:calc(100svh - var(--nav-h,76px) - var(--bar-h,44px))!important;
        padding:12px 0!important;overflow:hidden!important;box-sizing:border-box!important;
        display:flex!important;align-items:center!important;
    }
    html body.home-page .standard-section .section-center>h2{
        margin:4px 0 6px!important;font-size:clamp(23px,2.2vw,32px)!important;line-height:1.1!important;
    }
    html body.home-page .standard-section .section-center>p{
        margin:4px auto 0!important;font-size:12px!important;line-height:1.3!important;
    }
    html body.home-page .standard-section .standard-layout{
        grid-template-columns:minmax(0,1fr) minmax(220px,.72fr)!important;
        gap:18px!important;margin:10px 0 0!important;align-items:center!important;
    }
    html body.home-page .standard-section .standard-layout .principles{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        grid-template-rows:repeat(3,minmax(0,1fr))!important;
        gap:10px!important;height:auto!important;min-height:0!important;align-content:stretch!important;
    }
    html body.home-page .standard-section .standard-layout .principle{
        width:auto!important;max-width:100%!important;min-width:0!important;
        height:auto!important;min-height:0!important;padding:9px 11px!important;
    }
    html body.home-page .standard-section .standard-layout .principle h3{
        margin:5px 0 2px!important;font-size:15px!important;line-height:1.15!important;min-height:0!important;
    }
    html body.home-page .standard-section .standard-layout .principle p{
        font-size:11px!important;line-height:1.25!important;
    }
    html body.home-page .standard-section .standard-layout .standard-visual{
        width:auto!important;height:min(440px,calc(100svh - var(--nav-h,76px) - var(--bar-h,44px) - 190px))!important;
        min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
        justify-self:center!important;align-self:center!important;
        aspect-ratio:606 / 945!important;background-size:contain!important;background-position:center!important;
    }
    html body.home-page .standard-section .standard-layout .standard-visual>strong{
        max-width:calc(100% - 24px)!important;font-size:clamp(13px,1.2vw,17px)!important;
        line-height:1.2!important;
    }
}
