/**
 * Pin for Life — mobile & small-tablet responsive
 * Loads after pfl-color-grading.css
 */

/* ——— Tokens (phones) ——— */
@media (max-width: 767px) {
    .pfl-shree {
        --header-top: max(12px, env(safe-area-inset-top, 0px) + 8px);
        --side-gap: max(1rem, env(safe-area-inset-left, 0px) + 0.65rem);
        --side-gap-right: max(1rem, env(safe-area-inset-right, 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) {
    .pfl-shree {
        --side-gap: max(0.85rem, env(safe-area-inset-left, 0px) + 0.5rem);
        --side-gap-right: max(0.85rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }

    .pfl-logo {
        max-width: min(96px, 32vw);
    }

    .pfl-logo__line {
        font-size: clamp(0.58rem, 2.45vw, 0.68rem);
        letter-spacing: 0.09em;
    }
}

/* ——— Header (mobile chrome only — not menu panel) ——— */
.pfl-logo__stack {
    display: none;
}

@media (max-width: 767px) {
    .pfl-header-right {
        display: none;
    }

    #navbar .pfl-header-bg {
        height: var(--header-height);
    }

    .pfl-logo {
        display: flex;
        align-items: center;
        max-width: min(108px, 34vw);
        height: var(--header-inner-h);
        margin-top: 0;
    }

    .pfl-shree .pfl-logo__brand,
    .pfl-logo__brand {
        letter-spacing: 0.1em;
    }

    .pfl-logo__single {
        display: none;
    }

    .pfl-logo__stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.06em;
        line-height: 1;
    }

    .pfl-logo__line {
        display: block;
        font-size: clamp(0.62rem, 2.65vw, 0.76rem);
        line-height: 0.92;
        letter-spacing: 0.11em;
    }

    .pfl-logo__brand {
        white-space: normal;
    }

    #navbar:not(.pfl-header--hero) .pfl-logo__brand,
    #navbar:not(.pfl-header--hero) .pfl-logo__line {
        color: var(--pfl-ink);
        text-shadow: none;
    }

    #navbar.nav-scrolled:not(.pfl-header--hero) .pfl-header-bg {
        background: var(--pfl-base);
        box-shadow: 0 2px 16px rgba(14, 36, 4, 0.06);
    }

    #navbar.nav-scrolled.pfl-header--hero .pfl-header-bg {
        background: rgba(255, 250, 247, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 16px rgba(14, 36, 4, 0.06);
    }

    .pfl-shree #navbar.pfl-header--hero .pfl-logo__line {
        color: #fffae7;
        text-shadow: 0 2px 14px rgba(14, 36, 4, 0.4);
    }

    .pfl-burger {
        top: var(--header-top);
        right: var(--side-gap-right);
        width: var(--burger-w);
        height: var(--header-inner-h);
        min-height: var(--header-inner-h);
        margin-top: 0;
        padding: 15px 11px;
        box-sizing: border-box;
    }

    body.pfl-menu-open .pfl-burger {
        right: calc(var(--side-gap-right) + var(--sbw, 0px));
    }

    .pfl-burger__line {
        width: calc(100% - 22px);
        left: 11px;
        right: auto;
        top: 50%;
    }

    .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 {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .pfl-burger.is-open .pfl-burger__line--bottom {
        top: 50%;
        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.65rem);
        padding-bottom: max(6.5rem, env(safe-area-inset-bottom, 0px) + 5.75rem);
    }

    .section_hero_video .container-height-100 {
        display: flex;
    }

    .section_hero_video .hero_heading-wrap.hero_heading-wrap--pin-for-life {
        gap: 0;
        justify-items: center;
    }

    .hero-heading-top {
        padding-bottom: 0;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
    }

    .section_hero_video .hero_heading-wrap--pin-for-life .pin-for-life-hero-title.heading-h1,
    .pfl-shree .section_hero_video .hero_heading-wrap--pin-for-life .pin-for-life-hero-title.heading-h1 {
        font-size: clamp(3.45rem, 16.5vw, 5.25rem);
        line-height: 0.84;
        letter-spacing: -0.045em;
        margin-bottom: 0.1rem;
        text-align: center !important;
        width: 100%;
    }

    .pin-for-life-hero-title .hero-title-line {
        display: block !important;
        overflow: hidden;
        text-align: center !important;
        width: 100%;
        line-height: 0.84 !important;
        max-height: 0.86em;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pin-for-life-hero-title .hero-title-line + .hero-title-line::before {
        content: none !important;
    }

    .pin-for-life-hero-title .hero-title-line + .hero-title-line {
        margin-top: 0.06em !important;
    }

    .pin-for-life-hero-title .hero-title-line__inner {
        line-height: 0.84 !important;
    }

    .hero-title-accent {
        margin-left: auto !important;
        margin-right: auto !important;
        transform-origin: center center !important;
    }

    .hero-title-accent {
        margin-top: 0.25rem;
        margin-bottom: 0.15rem;
    }

    .section_hero_video .hero_heading-wrap.hero_heading-wrap--pin-for-life {
        display: grid !important;
        grid-template-rows: auto auto !important;
        align-content: end !important;
        justify-items: center !important;
        align-items: stretch !important;
        text-align: center;
    }

    .hero-heading-top {
        grid-row: 1;
        align-self: end;
        min-height: 0;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .hero-heading-bottom {
        grid-row: 2;
        align-self: end;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        margin-top: clamp(1.75rem, 6.5vh, 3rem) !important;
        margin-bottom: clamp(0.8rem, 3vh, 1.35rem) !important;
        padding-bottom: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero-heading-middle {
        width: 100%;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 0.65rem;
        padding: 0;
    }

    .hero-heading-middle .pin-for-life-hero-tagline {
        text-align: left !important;
        padding-left: 0.65rem !important;
        border-left: 2px solid #1b5300 !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-heading-middle .hero-desc,
    .hero-heading-middle [data-hero-desc] {
        text-align: left !important;
        text-align: justify !important;
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        padding-left: 0 !important;
        padding-right: 0.15rem !important;
        border: none !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-heading-bottom .hero-cta-mobile {
        width: auto;
        min-width: min(100%, 16.5rem);
        max-width: 20rem;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0;
        align-self: center !important;
        min-height: 48px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        justify-content: center;
    }

    .pin-for-life-hero-title {
        overflow-wrap: anywhere;
    }

    .hero-chips-bar {
        bottom: max(5.55rem, env(safe-area-inset-bottom, 0px) + 4.8rem);
        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;
    }
}

/* ——— Hero tagline (FH-style #hero — bottom-right) ——— */
@media (max-width: 767px) {
    #hero {
        min-height: 100dvh;
        min-height: 100svh;
    }

    #hero > .relative.z-10.max-w-7xl {
        padding-bottom: max(5.5rem, env(safe-area-inset-bottom, 0px) + 4.75rem);
    }

    #hero .hero-tagline {
        bottom: max(4.75rem, env(safe-area-inset-bottom, 0px) + 3.85rem);
        left: max(0.75rem, env(safe-area-inset-left, 0px) + 0.5rem);
        right: max(0.75rem, env(safe-area-inset-right, 0px) + 0.5rem);
        width: auto;
        max-width: none;
        text-align: right;
        letter-spacing: 0.05em;
    }

    #hero .hero-tagline__text {
        display: inline-block;
        max-width: 100%;
        font-size: clamp(0.56rem, 2.35vw + 0.32rem, 0.8125rem);
        white-space: nowrap;
        line-height: 1.15;
    }

    #hero .hero-scroll-hint {
        bottom: max(0.85rem, env(safe-area-inset-bottom, 0px) + 0.55rem);
        z-index: 12;
    }

    #hero .hero-cta-row {
        gap: 0.5rem;
    }

    #hero .hero-cta-primary,
    #hero .hero-cta-ghost {
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    #hero .hero-tagline__text {
        font-size: clamp(0.5rem, 2.05vw + 0.28rem, 0.7rem);
        letter-spacing: 0.035em;
    }

    #hero .hero-tagline {
        bottom: max(4.65rem, env(safe-area-inset-bottom, 0px) + 3.75rem);
    }
}

@media (max-width: 380px) {
    .section_hero_video .hero_heading-wrap--pin-for-life .pin-for-life-hero-title.heading-h1,
    .pfl-shree .section_hero_video .hero_heading-wrap--pin-for-life .pin-for-life-hero-title.heading-h1 {
        font-size: clamp(3rem, 14.5vw, 4rem);
    }

    .hero-heading-middle .pin-for-life-hero-tagline {
        font-size: 0.76rem;
        padding-left: 0.55rem !important;
        text-align: left !important;
    }

    .hero-heading-middle .hero-desc,
    .hero-heading-middle [data-hero-desc] {
        font-size: 0.84rem;
        line-height: 1.58;
        text-align: left !important;
        text-align: justify !important;
    }

    .hero-chips-bar {
        bottom: max(5.6rem, env(safe-area-inset-bottom, 0px) + 4.85rem);
    }

    .section_hero_video .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) {
    .pfl-shree #about,
    .pfl-shree #amenities,
    .pfl-shree #specifications,
    .pfl-shree #layout,
    .pfl-shree #brochure,
    .pfl-shree #gallery,
    .pfl-shree #location,
    .pfl-shree #contact {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }

    .pfl-shree #amenities > div,
    .pfl-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) {
    .pfl-shree #about,
    .pfl-shree #amenities,
    .pfl-shree #specifications,
    .pfl-shree #layout,
    .pfl-shree #brochure,
    .pfl-shree #gallery,
    .pfl-shree #location,
    .pfl-shree #contact {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .pfl-shree .max-w-7xl,
    .pfl-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);
    }

    .pfl-shree h2.font-serif,
    .pfl-shree .font-serif.text-4xl {
        font-size: clamp(1.65rem, 7.5vw, 2.25rem) !important;
        line-height: 1.12 !important;
    }

    .pfl-shree .text-lg.md\:text-xl,
    .pfl-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);
    }

    #amenities .grid.grid-cols-2 {
        gap: 0.65rem;
    }
}

@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: 767px) {
    #contact .grid.gap-16 {
        gap: 2.5rem;
    }

    #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 ——— */
.footer-back-to-top__label {
    display: none;
}

@media (max-width: 767px) {
    .footer-top-bar__actions {
        width: 100%;
        justify-content: flex-end;
        align-items: center;
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 250, 231, 0.14);
    }

    #footer-back-to-top.footer-back-to-top {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        min-height: 48px;
        min-width: 48px;
        padding: 0.45rem 0.5rem;
        margin: 0;
        margin-right: max(0px, env(safe-area-inset-right, 0px));
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        position: relative;
        z-index: 3;
        pointer-events: auto;
    }

    .footer-back-to-top__label {
        display: inline;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        line-height: 1;
    }

    .footer-back-to-top__arrow {
        width: clamp(1.35rem, 5.2vw, 1.75rem);
        height: clamp(1.75rem, 6.8vw, 2.25rem);
        flex-shrink: 0;
    }

    .footer-nav-scroll {
        overflow-x: visible !important;
        touch-action: auto;
    }

    .footer-brand-col {
        align-items: stretch;
        width: 100%;
    }

    .footer-brand-col .footer-nav-after-wordmark,
    .footer-nav-stack,
    .footer-nav-mobile {
        text-align: left;
        width: 100%;
    }

    .footer-brand-col .footer-nav-stack {
        align-items: flex-start;
    }

    .footer-brand-col #footer-wordmark {
        width: 100%;
    }

    .footer-credit-row {
        align-items: flex-start;
    }

    .footer-credit-label {
        font-size: 0.72rem;
    }

    .footer-credit-logo {
        height: 2.1rem;
        max-width: min(11rem, 48vw);
    }

    .footer-credit-name,
    .footer-credit-brand--rk .footer-credit-name {
        font-size: 0.88rem;
    }

    .footer-credits-block {
        gap: 0.9rem;
    }

    .footer-nav-inline {
        font-size: clamp(0.5rem, 2.35vw, 0.6rem);
        line-height: 1.4;
    }

    #footer .footer-wordmark__text--stack {
        font-size: clamp(3.35rem, 17.5vw, 5.25rem) !important;
        line-height: 0.9 !important;
        letter-spacing: 0.04em;
    }

    #footer .footer-wordmark__line {
        display: block;
        line-height: 0.9;
    }

    #footer .footer-wordmark__line--life {
        align-self: flex-start;
        margin-top: 0.04em;
    }

    #footer section.max-w-\[1400px\] {
        font-size: 0.6rem;
        line-height: 1.5;
    }

    #footer .footer-top-bar {
        font-size: 1rem;
    }

    /* Copyright row — single line, smaller type */
    #footer-copyright {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
    }

    #footer-copyright::-webkit-scrollbar {
        display: none;
    }

    #footer-copyright .footer-copyright__tagline,
    #footer-copyright .footer-copyright__copy {
        font-size: clamp(0.48rem, 2.35vw, 0.58rem);
        line-height: 1.3;
        letter-spacing: 0.05em;
        white-space: nowrap;
        text-align: left;
        width: max-content;
        max-width: none;
    }

    #footer-copyright .footer-copyright__tagline {
        font-weight: 600;
    }
}

@media (max-width: 380px) {
    #footer .footer-wordmark__text--stack {
        font-size: clamp(2.85rem, 15.5vw, 4.5rem) !important;
    }

    .footer-back-to-top__label {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .footer-back-to-top__arrow {
        width: clamp(1.25rem, 4.8vw, 1.5rem);
        height: clamp(1.6rem, 6.2vw, 2rem);
    }

    .footer-nav-inline {
        font-size: clamp(0.46rem, 2.15vw, 0.54rem);
        letter-spacing: 0.06em;
    }

    .footer-credit-label {
        font-size: 0.66rem;
    }

    .footer-credit-logo {
        height: 1.85rem;
    }

    .footer-credit-name,
    .footer-credit-brand--rk .footer-credit-name {
        font-size: 0.8rem;
    }

    #footer-copyright .footer-copyright__tagline,
    #footer-copyright .footer-copyright__copy {
        font-size: clamp(0.44rem, 2.15vw, 0.52rem);
        letter-spacing: 0.04em;
    }
}

/* ——— 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.pfl-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.pfl-shree main#content h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    body.pfl-shree main#content a.rounded-full {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
