/**
 * Pin for Life â€” mobile & small-tablet responsive
 * Loads after pfl-color-grading.css
 */

/* â€”â€”â€” Tokens (phones) â€”â€”â€” */
@media (max-width: 767px) {
    .fh-shree {
        --header-top: max(12px, env(safe-area-inset-top, 0px) + 8px);
        --side-gap: max(1rem, env(safe-area-inset-left, 0px) + 0.65rem);
        --gutter: 0.5rem;
        --burger-w: 44px;
        --header-inner-h: 44px;
        --header-height: calc(var(--header-top) + var(--header-inner-h));
    }
}

@media (max-width: 380px) {
    .fh-shree {
        --side-gap: max(0.85rem, env(safe-area-inset-left, 0px) + 0.5rem);
    }
}

/* â€”â€”â€” Header â€”â€”â€” */
@media (max-width: 767px) {
    .pfl-header-right {
        display: none;
    }

    .pfl-logo {
        max-width: min(200px, 52vw);
        height: var(--header-inner-h);
    }

    .pfl-logo__brand {
        font-size: clamp(0.7rem, 3.2vw, 0.82rem);
        letter-spacing: 0.12em;
        line-height: 1;
    }

    .fh-shree #navbar.pfl-header--hero .pfl-logo__brand {
        color: #ffffff;
    }

    body.pfl-menu-open .fh-shree .pfl-logo__brand {
        color: #2A1132 !important;
    }

    .pfl-burger {
        width: var(--burger-w);
        height: var(--header-inner-h);
        margin-top: 0;
        padding: 15px 11px;
        box-sizing: border-box;
    }

    .pfl-burger__line {
        width: calc(100% - 22px);
        left: 11px;
    }

    .pfl-burger__line--top {
        transform: translateY(calc(-50% - 5px));
    }

    .pfl-burger__line--bottom {
        transform: translateY(calc(-50% + 5px));
    }

    .pfl-burger.is-open .pfl-burger__line--top {
        transform: translateY(-50%) rotate(45deg);
    }

    .pfl-burger.is-open .pfl-burger__line--bottom {
        transform: translateY(-50%) rotate(-45deg);
    }

    .pfl-menu {
        justify-content: flex-start;
        padding-top: calc(var(--header-height) + 0.75rem);
        padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px) + 1.25rem);
        -webkit-overflow-scrolling: touch;
    }

    .pfl-menu__nav {
        font-size: clamp(1.85rem, 9vw, 3rem);
        line-height: 1.08;
        margin-bottom: 1.75rem;
    }

    .pfl-menu__nav a {
        display: inline-block;
        padding: 0.12em 0;
        min-height: 44px;
        line-height: 1.15;
    }

    .pfl-menu__aside {
        gap: 1.5rem;
    }

    .pfl-menu__text {
        font-size: 1rem;
        max-width: 100%;
    }

    .pfl-menu__copy {
        padding-top: 1.5rem;
        font-size: 0.62rem;
    }
}

/* â€”â€”â€” Hero (mobile layout) â€”â€”â€” */
@media (max-width: 767px) {
    .section_hero_video .padding-global.height-100.padding-hero {
        padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-height) + 0.35rem);
        padding-bottom: max(7.25rem, env(safe-area-inset-bottom, 0px) + 6.5rem);
    }

    .section_hero_video .hero_heading-wrap.hero_heading-wrap--pin-for-life {
        gap: 0;
    }

    .hero-heading-top {
        padding-bottom: 0.5rem;
    }

    .section_hero_video .hero_heading-wrap--pin-for-life .pin-for-life-hero-title.heading-h1 {
        font-size: clamp(2.4rem, 10.5vw, 3.1rem);
        line-height: 0.94;
        margin-bottom: 0.15rem;
    }

    .hero-pre-rera-badge {
        margin-bottom: 0.4rem;
        font-size: 0.56rem;
        letter-spacing: 0.12em;
    }

    .hero-title-accent {
        margin-top: 0.25rem;
        margin-bottom: 0.15rem;
    }

    .hero-heading-middle {
        flex: 1;
        justify-content: center;
        gap: 0.85rem;
        padding: clamp(0.5rem, 3vh, 1.25rem) 0;
        max-width: 100%;
    }

    .hero-heading-middle .pin-for-life-hero-tagline {
        text-align: left;
        padding-left: 0.65rem;
        border-left: 2px solid var(--pfl-green);
    }

    .hero-heading-middle .hero-desc,
    .hero-heading-middle [data-hero-desc] {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        padding-right: 0.15rem;
    }

    .hero-cta-mobile {
        width: 100%;
        max-width: 100%;
        margin-top: 0.85rem;
        min-height: 48px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .pin-for-life-hero-title {
        overflow-wrap: anywhere;
    }

    .hero-chips-bar {
        bottom: max(5.75rem, env(safe-area-inset-bottom, 0px) + 5rem);
        padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.75rem);
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
    }

    .hero-chips__list {
        font-size: 0.52rem;
    }

    .hero-scroll-hint {
        bottom: max(1.15rem, env(safe-area-inset-bottom, 0px) + 0.85rem);
        z-index: 6;
        font-size: 0.52rem;
        opacity: 0.85;
    }
}

@media (max-width: 380px) {
    .section_hero_video .hero_heading-wrap--pin-for-life .pin-for-life-hero-title.heading-h1 {
        font-size: clamp(2.15rem, 9.8vw, 2.65rem);
    }

    .hero-heading-middle .pin-for-life-hero-tagline {
        font-size: 0.76rem;
        padding-left: 0.55rem;
    }

    .hero-heading-middle .hero-desc,
    .hero-heading-middle [data-hero-desc] {
        font-size: 0.84rem;
        line-height: 1.58;
    }

    .hero-chips-bar {
        bottom: max(5.5rem, env(safe-area-inset-bottom, 0px) + 4.75rem);
    }

    .hero-scroll-hint {
        display: none;
    }
}

/* â€”â€”â€” About stat cards (mobile) â€”â€”â€” */
@media (max-width: 767px) {
    #about .about-stats-grid {
        justify-items: center;
        width: 100%;
    }

    #about .about-stat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 18rem;
    }

    #about .about-stat-card .text-3xl {
        width: 100%;
    }
}

/* â€”â€”â€” Floating actions (safe area) â€”â€”â€” */
@media (max-width: 767px) {
    .btn-whatsapp-pulse {
        right: max(16px, env(safe-area-inset-right, 0px) + 12px);
        bottom: max(20px, env(safe-area-inset-bottom, 0px) + 14px);
    }

    .btn-call {
        right: max(16px, env(safe-area-inset-right, 0px) + 12px);
        bottom: max(88px, env(safe-area-inset-bottom, 0px) + 72px);
    }
}

/* â€”â€”â€” Section rhythm â€”â€”â€” */
@media (max-width: 1023px) {
    .fh-shree #about,
    .fh-shree #amenities,
    .fh-shree #specifications,
    .fh-shree #layout,
    .fh-shree #brochure,
    .fh-shree #gallery,
    .fh-shree #location,
    .fh-shree #contact {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }

    .fh-shree #amenities > div,
    .fh-shree #gallery > div {
        padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.5rem);
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }
}

@media (max-width: 767px) {
    .fh-shree #about,
    .fh-shree #amenities,
    .fh-shree #specifications,
    .fh-shree #layout,
    .fh-shree #brochure,
    .fh-shree #gallery,
    .fh-shree #location,
    .fh-shree #contact {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .fh-shree .max-w-7xl,
    .fh-shree .max-w-\[min\(100\%\,1420px\)\] {
        padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.5rem);
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }

    .fh-shree h2.font-serif,
    .fh-shree .font-serif.text-4xl {
        font-size: clamp(1.65rem, 7.5vw, 2.25rem) !important;
        line-height: 1.12 !important;
    }

    .fh-shree .text-lg.md\:text-xl,
    .fh-shree p.text-lg {
        font-size: 1rem;
        line-height: 1.55;
    }
}

/* â€”â€”â€” About â€”â€”â€” */
@media (max-width: 767px) {
    #about .relative.z-10.pr-8 {
        padding-right: 0.5rem;
        padding-bottom: 1rem;
    }

    #about .relative.w-full.h-\[400px\] {
        height: min(52vh, 360px);
    }

    #about .translate-x-4 {
        transform: translate(0.5rem, 0.5rem);
    }
}

@media (max-width: 380px) {
    #about .relative.w-full.h-\[400px\] {
        height: min(48vh, 300px);
    }
}

/* â€”â€”â€” Amenities slider â€”â€”â€” */
@media (max-width: 767px) {
    #amenity-slider-track {
        height: min(52vh, 380px) !important;
    }

    #amenity-prev,
    #amenity-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    #amenity-prev {
        left: max(0.75rem, env(safe-area-inset-left, 0px) + 0.5rem);
    }

    #amenity-next {
        right: max(0.75rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }

    #amenity-indicators {
        bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    }

    #amenity-grid {
        gap: 0.65rem;
    }

    #amenities .amenity-grid-card {
        flex: 0 1 calc(50% - 0.325rem);
        width: calc(50% - 0.325rem);
        max-width: calc(50% - 0.325rem);
    }
}

@media (max-width: 380px) {
    #amenity-slider-track {
        height: min(46vh, 300px) !important;
    }
}

/* â€”â€”â€” Specifications carousel â€”â€”â€” */
@media (max-width: 767px) {
    #spec-slider {
        scroll-padding-inline: 1rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 0.25rem;
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }

    #spec-slider .snap-start {
        scroll-snap-align: start;
    }
}

/* â€”â€”â€” Unit Plans (Architecture) â€”â€”â€” */
@media (max-width: 1023px) {
    #layout .max-w-7xl {
        padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.5rem);
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }

    #layout .layout-content {
        position: relative;
        inset: auto;
    }

    #layout .layout-plans-shell {
        min-height: 0;
    }

    #layout .layout-plans-grid {
        width: 100%;
    }

    #layout .layout-info-panel {
        min-height: min(220px, 38vh) !important;
        height: auto !important;
        padding: 1.35rem 1.15rem !important;
    }

    #layout .layout-info-panel__title {
        max-width: 100%;
    }

    #layout .layout-info-panel__desc {
        max-width: 100%;
    }

    #layout .layout-features-col {
        width: 100%;
        padding: 0.25rem 0.15rem 0.5rem !important;
    }
}

@media (max-width: 767px) {
    #layout .layout-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        max-width: 100%;
        padding-bottom: 0.35rem;
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        scrollbar-width: none;
    }

    #layout .layout-tabs::-webkit-scrollbar {
        display: none;
    }

    #layout .layout-tab-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        min-height: 44px;
        padding: 0.65rem 1rem;
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    #layout .layout-plans-shell {
        padding: 1rem !important;
        border-radius: 1.25rem;
    }

    #layout .layout-plans-grid {
        gap: 1rem;
    }

    #layout .layout-info-panel {
        min-height: min(200px, 36vh) !important;
        padding: 1.15rem 1rem !important;
    }

    #layout .layout-info-panel__title {
        font-size: clamp(1.45rem, 6vw, 1.75rem);
    }

    #layout .layout-info-panel__desc {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    #layout .layout-features-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #layout .layout-features-col__title,
    #layout .layout-features-col__desc {
        text-align: center;
        width: 100%;
        max-width: 22rem;
    }

    #layout .layout-features-list {
        width: 100%;
        max-width: 20rem;
        text-align: left;
    }

    #layout .layout-features-list__item {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    #layout .layout-tab-btn {
        font-size: 0.6rem;
        padding: 0.6rem 0.85rem;
    }

    #layout .layout-info-panel {
        min-height: 180px !important;
    }

    #layout .layout-info-panel__title {
        font-size: 1.35rem;
    }
}

/* â€”â€”â€” Gallery marquees â€”â€”â€” */
@media (max-width: 767px) {
    .gallery-sliders-bleed {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

}

/* â€”â€”â€” Location map â€”â€”â€” */
@media (max-width: 767px) {
    #location .h-\[400px\].md\:h-\[500px\] {
        height: min(56vh, 320px) !important;
    }

    #location a.absolute.bottom-4 {
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
        right: max(0.75rem, env(safe-area-inset-right, 0px) + 0.5rem);
        left: auto;
        max-width: calc(100% - 1.5rem);
        font-size: 0.62rem;
        padding: 0.55rem 0.85rem;
    }
}

/* â€”â€”â€” Contact â€”â€”â€” */
@media (max-width: 1023px) {
    .fh-shree .contact-form-card {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .fh-shree .contact-layout {
        gap: 2.5rem;
    }

    .fh-shree .contact-intro h2 {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .fh-shree .contact-form-card {
        padding: 1.5rem 1.25rem;
    }

    #contact input,
    #contact textarea,
    #contact select {
        font-size: 16px !important;
    }
}

/* â€”â€”â€” Modals â€”â€”â€” */
@media (max-width: 767px) {
    #contact-modal,
    #download-modal {
        padding: max(0.75rem, env(safe-area-inset-top, 0px) + 0.5rem)
            max(0.75rem, env(safe-area-inset-right, 0px) + 0.5rem)
            max(0.75rem, env(safe-area-inset-bottom, 0px) + 0.5rem)
            max(0.75rem, env(safe-area-inset-left, 0px) + 0.5rem);
        align-items: center;
    }

    #modal-panel,
    #download-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: min(90dvh, 90svh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: auto 0;
        padding: 1.5rem 1.25rem;
    }

    #modal-panel #modal-title,
    #download-modal-content h4 {
        font-size: 1.65rem;
        padding-right: 2rem;
    }

    #modal-panel button[type="submit"],
    #download-modal-content button[type="submit"] {
        min-height: 48px;
    }

    #spec-blog-modal {
        padding: max(0.5rem, env(safe-area-inset-top, 0px))
            max(0.5rem, env(safe-area-inset-right, 0px))
            max(0.5rem, env(safe-area-inset-bottom, 0px))
            max(0.5rem, env(safe-area-inset-left, 0px));
        align-items: stretch;
    }

    #spec-blog-panel {
        max-height: min(92dvh, 92svh);
        height: auto;
        border-radius: 1rem;
        margin-top: auto;
        margin-bottom: auto;
    }
}

/* â€”â€”â€” Brochure / flipbook â€”â€”â€” */
@media (max-width: 767px) {
    #brochure .flipbook-container,
    #brochure .df-container {
        max-width: 100%;
        min-height: 0;
    }
}

/* â€”â€”â€” Footer â€”â€”â€” */
@media (max-width: 1023px) {
    #footer .footer-wordmark {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    #footer .footer-wordmark p,
    #footer .footer-wordmark__text {
        font-size: clamp(1.75rem, 7.25vw, 2.35rem) !important;
        line-height: 1.05 !important;
        letter-spacing: 0.05em;
        text-align: left;
        white-space: nowrap;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #footer .footer-wordmark p::-webkit-scrollbar,
    #footer .footer-wordmark__text::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 380px) {
    #footer .footer-wordmark p,
    #footer .footer-wordmark__text {
        font-size: clamp(1.5rem, 6.5vw, 1.9rem) !important;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 767px) {
    #footer .footer-nav-scroll {
        display: none;
    }

    #footer .footer-disclaimer {
        font-size: 0.6rem;
        line-height: 1.5;
        text-align: left;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        padding-bottom: 0;
    }

}

/* Footer copyright — mobile only (desktop stays side-by-side) */
@media (max-width: 1023px) {
    .footer-copyright__tagline,
    .footer-copyright__copy {
        display: block;
        width: 100%;
        margin: 0;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .footer-copyright__tagline::-webkit-scrollbar,
    .footer-copyright__copy::-webkit-scrollbar {
        display: none;
    }
}

/* â€”â€”â€” iOS zoom fix (modals) â€”â€”â€” */
@media (max-width: 767px) {
    #contact-modal input,
    #contact-modal textarea,
    #download-modal input,
    #download-modal textarea {
        font-size: 16px !important;
    }
}

/* â€”â€”â€” Reduced horizontal bleed on very small screens â€”â€”â€” */
@media (max-width: 359px) {
    .hero-chips__list {
        font-size: 0.48rem;
    }
}

/* â€”â€”â€” Thank-you page â€”â€”â€” */
@media (max-width: 767px) {
    body.fh-shree main#content {
        padding-top: max(6rem, env(safe-area-inset-top, 0px) + 5.25rem);
        padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.75rem);
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
    }

    body.fh-shree main#content h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    body.fh-shree main#content a.rounded-full {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

