/* =========================================================
   NRAND FINANCIAL SERVICES
   MOBILE DESKTOP EXPERIENCE
   =========================================================

   IMPORTANT:

   Mobile does NOT become a separate redesigned website.

   Mobile uses the existing NRAND desktop composition and
   compresses it professionally for smaller screens.

   Existing:
   - animations
   - hover behaviour
   - modals
   - navigation
   - links
   - JavaScript
   - cards
   - CMS content

   are preserved.

   Desktop is not changed.
========================================================= */


/* =========================================================
   GLOBAL MOBILE FOUNDATION
========================================================= */

@media (max-width: 900px) {

    html {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;

        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }


    body {
        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;

        overflow-x: hidden;

        background: #ffffff;
    }


    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }


    img,
    video,
    iframe {
        max-width: 100%;
    }


    .container {
        width: calc(100% - 16px) !important;

        max-width: none !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

}


/* =========================================================
   REMOVE THE EXTRA MOBILE BRAND BAR
   ---------------------------------------------------------
   This is the small logo bar that was added above the
   real NRAND navigation.

   The real NRAND navigation remains.
========================================================= */

@media (max-width: 900px) {

    .mbrand {
        display: none !important;
    }

}


/* =========================================================
   REMOVE THE EXTRA INFORMATION TOP BAR
   ---------------------------------------------------------
   Phone should start directly with the real NRAND header.

   We are NOT touching the navigation itself.
========================================================= */

@media (max-width: 900px) {

    .topbar,
    .topbar-shadow {
        display: none !important;

        height: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

}


/* =========================================================
   REAL NRAND NAVIGATION
   ---------------------------------------------------------
   Keep the exact desktop navigation composition.

   We only compress it.
========================================================= */

@media (max-width: 900px) {

    .nav {
        position: relative !important;

        width: 100% !important;

        min-height: 42px !important;
        height: 42px !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 100 !important;

        overflow: visible !important;
    }


    .nav__inner {
        width: calc(100% - 10px) !important;

        max-width: none !important;

        height: 42px !important;
        min-height: 42px !important;

        margin: 0 auto !important;

        padding:
            3px
            2px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: space-between !important;

        gap: 5px !important;
    }


    /* =====================================================
       LOGO
    ===================================================== */

    .logo-badge {
        flex: 0 0 auto !important;

        width: 39px !important;
        height: 30px !important;

        padding: 2px !important;

        margin: 0 !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        border-radius: 5px !important;

        overflow: hidden !important;
    }


    .logo-img {
        display: block !important;

        width: 34px !important;
        max-width: 34px !important;

        height: 25px !important;

        object-fit: contain !important;
    }


    /* =====================================================
       NAVIGATION PILL
    ===================================================== */

    .nav-pill {
        flex: 1 1 auto !important;

        min-width: 0 !important;

        height: 30px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        overflow: visible !important;
    }


    .nav__links,
    .nav__links--row {
        width: 100% !important;

        min-width: 0 !important;

        height: 30px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        gap: 0 !important;

        flex-wrap: nowrap !important;
    }


    .nav__links > a,
    .nav__links .dd,
    .nav__links .dd__btn {
        min-width: 0 !important;
    }


    .nav__links > a,
    .nav__links .dd__btn {

        height: 27px !important;

        padding:
            0
            5px !important;

        margin: 0 !important;

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        white-space: nowrap !important;

        font-size: 6.5px !important;

        line-height: 1 !important;

        letter-spacing: -.05px !important;
    }


    .nav__links .dd {
        height: 27px !important;

        display: flex !important;

        align-items: center !important;
    }


    .nav__links .dd__btn {
        border: 0 !important;

        background: transparent !important;
    }


    /* =====================================================
       MEMBERSHIP BUTTON
    ===================================================== */

    .nav__inner > a:last-child,
    .nav .membership,
    .nav .membership-btn {
        flex: 0 0 auto !important;

        height: 27px !important;

        min-width: 48px !important;

        padding:
            0
            7px !important;

        margin: 0 !important;

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        border-radius: 999px !important;

        white-space: nowrap !important;

        font-size: 6.5px !important;

        line-height: 1 !important;
    }

}


/* =========================================================
   LEGAL DROPDOWN
========================================================= */

@media (max-width: 900px) {

    .dd__menu {

        min-width: 135px !important;

        max-width: 180px !important;

        padding: 5px !important;

        border-radius: 8px !important;
    }


    .dd__menu a {

        min-height: 25px !important;

        padding:
            5px
            7px !important;

        font-size: 7px !important;

        line-height: 1.2 !important;
    }

}


/* =========================================================
   HERO
   ---------------------------------------------------------
   Keep the real desktop hero composition.

   We make it SHORTER and scale the content.

   Image stays visible on the RIGHT.
   Dark overlay protects the LEFT text.
========================================================= */

@media (max-width: 900px) {

    .hero {

        width: 100% !important;

        height: 255px !important;

        min-height: 255px !important;

        max-height: 255px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }


    .hero__wrap {

        position: relative !important;

        width: 100% !important;

        height: 255px !important;

        min-height: 255px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        /*
         * Keep image visible on the right.
         */
        background-position:
            center center,
            73% center !important;
    }


    /*
     * Keep the original image but make the left side
     * darker so the text remains crystal clear.
     */

    .hero__wrap::before {

        content: "";

        position: absolute;

        inset: 0;

        z-index: 1;

        pointer-events: none;

        background:
            linear-gradient(
                90deg,
                rgba(0,0,0,.88) 0%,
                rgba(0,0,0,.70) 28%,
                rgba(0,0,0,.38) 52%,
                rgba(0,0,0,.10) 100%
            );
    }


    .hero__content {

        position: relative !important;

        z-index: 2 !important;

        width: 100% !important;

        height: 255px !important;

        min-height: 255px !important;

        margin: 0 !important;

        padding:
            25px
            11px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: flex-start !important;
    }


    /*
     * Do NOT make the hero full width text.
     * Keep the text on the LEFT like desktop.
     */

    .hero__content > div:first-child {

        width: 52% !important;

        max-width: 220px !important;

        margin: 0 !important;

        padding: 0 !important;

        text-align: left !important;
    }


    /* =====================================================
       HERO BADGE
    ===================================================== */

    .hero .pill {

        display: inline-flex !important;

        max-width: 155px !important;

        min-height: 0 !important;

        padding:
            4px
            7px !important;

        gap: 4px !important;

        border-radius: 999px !important;

        font-size: 6px !important;

        line-height: 1.2 !important;
    }


    .hero .pill__dot {

        width: 5px !important;

        height: 5px !important;

        min-width: 5px !important;
    }


    /* =====================================================
       HERO TITLE
    ===================================================== */

    .hero__title {

        max-width: 210px !important;

        margin:
            7px
            0
            7px !important;

        padding: 0 !important;

        font-size: 22px !important;

        line-height: 1.02 !important;

        letter-spacing: -.55px !important;

        text-shadow:
            0 2px 8px rgba(0,0,0,.55) !important;
    }


    /* =====================================================
       HERO DESCRIPTION
    ===================================================== */

    .hero__sub {

        max-width: 195px !important;

        margin:
            0
            0
            9px !important;

        font-size: 7px !important;

        line-height: 1.35 !important;

        text-shadow:
            0 1px 5px rgba(0,0,0,.6) !important;
    }


    /* =====================================================
       HERO BUTTONS
    ===================================================== */

    .hero__actions {

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        justify-content: flex-start !important;

        gap: 4px !important;

        flex-wrap: nowrap !important;

        margin: 0 !important;
    }


    .hero__actions .btn {

        height: 25px !important;

        min-height: 25px !important;

        padding:
            0
            8px !important;

        border-radius: 5px !important;

        font-size: 6px !important;

        white-space: nowrap !important;
    }


    /* =====================================================
       HERO HINT
    ===================================================== */

    .hero__hint {

        max-width: 195px !important;

        margin-top: 6px !important;

        font-size: 5.5px !important;

        line-height: 1.25 !important;
    }

}


/* =========================================================
   SMALL PHONE HERO
========================================================= */

@media (max-width: 380px) {

    .hero {

        height: 240px !important;

        min-height: 240px !important;

        max-height: 240px !important;
    }


    .hero__wrap {

        height: 240px !important;

        min-height: 240px !important;
    }


    .hero__content {

        height: 240px !important;

        min-height: 240px !important;

        padding:
            22px
            10px !important;
    }


    .hero__content > div:first-child {

        width: 54% !important;

        max-width: 200px !important;
    }


    .hero__title {

        font-size: 20px !important;
    }


    .hero__sub {

        font-size: 6.5px !important;
    }

}


/* =========================================================
   SECTION RHYTHM
   ---------------------------------------------------------
   Reduce vertical whitespace without redesigning sections.
========================================================= */

@media (max-width: 900px) {

    section {

        scroll-margin-top: 42px;
    }


    .section {

        padding-top: 27px !important;

        padding-bottom: 27px !important;
    }


    .section__title {

        margin-bottom: 6px !important;

        font-size: 20px !important;

        line-height: 1.15 !important;
    }


    .section__line {

        margin:
            6px
            auto !important;
    }

}


/* =========================================================
   FUNERAL PLAN SECTION
   ---------------------------------------------------------
   IMPORTANT:

   Desktop composition = 2 x 2

   Mobile composition = 2 x 2

   We do NOT create four tiny cards in one row anymore.
========================================================= */

@media (max-width: 900px) {

    .nrand-plans-home {

        width: 100% !important;

        padding:
            27px
            0
            28px !important;

        overflow: hidden !important;
    }


    .nrand-plans-home .container {

        width: calc(100% - 12px) !important;

        max-width: none !important;
    }


    .nrand-plans-home__head {

        margin-bottom: 13px !important;

        padding: 0 !important;
    }


    .nrand-plans-home__title {

        font-size: 19px !important;

        line-height: 1.12 !important;
    }


    .nrand-plans-home__sub {

        margin-top: 5px !important;

        font-size: 6.5px !important;

        line-height: 1.4 !important;
    }


    /* =====================================================
       2 × 2
    ===================================================== */

    .nrand-plans-grid {

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;

        align-items: stretch !important;

        overflow: visible !important;
    }


    .nrand-plans-grid .nrand-plan-slide-card {

        width: 100% !important;

        min-width: 0 !important;

        height: 145px !important;

        min-height: 145px !important;

        padding:
            9px
            8px !important;

        border-radius: 8px !important;

        overflow: hidden !important;

        display: flex !important;

        flex-direction: column !important;

        /*
         * Keep existing animation.
         */
        animation-fill-mode: both !important;

        box-shadow:
            0 7px 18px rgba(0,0,0,.08) !important;
    }


    /*
     * DO NOT remove animation.
     */

    .nrand-plans-grid
    .nrand-plan-slide-card:first-child.nrand-plan-animate {

        animation-name: nrandPlanFromLeft !important;
    }


    .nrand-plans-grid
    .nrand-plan-slide-card:last-child.nrand-plan-animate {

        animation-name: nrandPlanFromRight !important;
    }


    /* =====================================================
       CARD CONTENT
    ===================================================== */

    .nrand-plan-slide-card__top {

        min-height: 0 !important;

        margin-bottom: 3px !important;
    }


    .nrand-plan-slide-card__mini {

        margin-bottom: 3px !important;

        font-size: 5px !important;

        line-height: 1.1 !important;
    }


    .nrand-plan-slide-card__title {

        margin:
            0
            0
            3px !important;

        font-size: 8px !important;

        line-height: 1.1 !important;
    }


    .nrand-plan-slide-card p {

        margin:
            0
            0
            3px !important;

        font-size: 5.5px !important;

        line-height: 1.25 !important;
    }


    .nrand-plan-slide-card strong {

        font-size: 8px !important;

        line-height: 1.1 !important;
    }


    .nrand-plan-slide-card span {

        font-size: 5px !important;

        line-height: 1.1 !important;
    }


    /* =====================================================
       FEATURES
    ===================================================== */

    .nrand-plan-slide-card ul {

        margin:
            3px
            0
            0 !important;

        padding-left: 9px !important;
    }


    .nrand-plan-slide-card li {

        margin-bottom: 1px !important;

        font-size: 5px !important;

        line-height: 1.18 !important;
    }


    /* =====================================================
       CARD ACTION
    ===================================================== */

    .nrand-plan-slide-card__footer,
    .nrand-plan-slide-card__actions {

        margin-top: auto !important;

        padding-top: 3px !important;

        gap: 3px !important;
    }


    .nrand-plan-slide-card__actions a,
    .nrand-plan-slide-card__actions button,
    .nrand-plan-view-btn {

        min-height: 21px !important;

        height: 21px !important;

        padding:
            0
            7px !important;

        border-radius: 5px !important;

        font-size: 5.5px !important;
    }


    /*
     * Preserve the existing card hover expansion.
     */

    .nrand-plans-grid
    .nrand-plan-slide-card:hover {

        z-index: 20 !important;

        transform:
            translateY(-5px)
            scale(1.025) !important;
    }

}


/* =========================================================
   AFFORDABLE FUNERAL COVER
   ---------------------------------------------------------
   Screenshot shows a clean 2-column presentation.

   Keep it 2 × 2 / grid instead of stacking giant cards.
========================================================= */

@media (max-width: 900px) {

    .home-funeral-cover {

        width: 100% !important;

        padding:
            28px
            0 !important;

        overflow: hidden !important;
    }


    .home-funeral-cover__head {

        margin:
            0
            auto
            14px !important;

        padding:
            0
            4px !important;
    }


    .home-funeral-cover__head h2 {

        font-size: 19px !important;

        line-height: 1.12 !important;
    }


    .home-funeral-cover__head p {

        margin-top: 5px !important;

        font-size: 6.5px !important;

        line-height: 1.4 !important;
    }


    /*
     * Two cards per row.
     */

    .home-funeral-cover__grid {

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 7px !important;

        align-items: stretch !important;

        overflow: visible !important;
    }


    .home-cover-card {

        width: 100% !important;

        min-width: 0 !important;

        min-height: 128px !important;

        height: 128px !important;

        padding:
            7px
            7px !important;

        border-radius: 8px !important;

        overflow: hidden !important;

        box-shadow:
            0 7px 18px rgba(20,24,31,.07) !important;
    }


    /*
     * Preserve the existing fade-in animation.
     */

    .home-cover-card {

        animation-fill-mode: both !important;
    }


    .home-cover-card:hover {

        transform:
            translateY(-4px)
            scale(1.02) !important;
    }


    .home-cover-card__top {

        margin-bottom: 4px !important;

        gap: 3px !important;
    }


    .home-cover-card__number {

        width: 17px !important;

        min-width: 17px !important;

        height: 15px !important;

        font-size: 5px !important;
    }


    .home-cover-card__label {

        font-size: 4.5px !important;
    }


    .home-cover-card h3 {

        margin-bottom: 3px !important;

        font-size: 7px !important;

        line-height: 1.1 !important;
    }


    .home-cover-card__description {

        min-height: 0 !important;

        margin-bottom: 3px !important;

        font-size: 5px !important;

        line-height: 1.22 !important;
    }


    .home-cover-card__cover {

        margin-top: auto !important;

        padding:
            4px
            4px !important;

        border-radius: 5px !important;
    }


    .home-cover-card__cover span {

        font-size: 4.5px !important;
    }


    .home-cover-card__cover strong {

        font-size: 6.5px !important;
    }


    .home-cover-card__link {

        margin-top: 3px !important;

        padding-top: 3px !important;

        font-size: 4.5px !important;
    }


    .home-cover-card__link span {

        font-size: 8px !important;
    }


    /* =====================================================
       BOTTOM INFORMATION BAR
    ===================================================== */

    .home-funeral-cover__footer {

        width: 100% !important;

        margin:
            12px
            auto
            0 !important;

        padding:
            7px
            8px !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        justify-content: space-between !important;

        gap: 7px !important;

        border-radius: 8px !important;
    }


    .home-funeral-cover__footer p {

        font-size: 5.5px !important;

        line-height: 1.25 !important;
    }


    .home-funeral-cover__button {

        width: auto !important;

        min-width: 62px !important;

        padding:
            6px
            7px !important;

        border-radius: 6px !important;

        font-size: 5px !important;
    }

}


/* =========================================================
   BURIAL COVER
========================================================= */

@media (max-width: 900px) {

    .burial-cover-home {

        width: 100% !important;

        padding:
            27px
            0 !important;

        overflow: hidden !important;
    }


    .burial-cover-home .container {

        width: calc(100% - 12px) !important;
    }


    .burial-cover-home .burial-card {

        min-width: 0 !important;

        min-height: 145px !important;

        height: 145px !important;

        padding:
            8px
            7px !important;

        border-radius: 8px !important;

        overflow: hidden !important;
    }


    /*
     * Existing desktop cards stay compact in two columns
     * where the section's original grid requires it.
     */

    .burial-cover-home .burial-card:hover {

        transform:
            translateY(-5px)
            scale(1.025) !important;
    }


    .burial-cover-home .burial-card__footer {

        margin-top: auto !important;
    }

}


/* =========================================================
   WHY CHOOSE NRAND
   ---------------------------------------------------------
   Your screenshot shows the professional 2-column layout.

   Keep that composition on mobile instead of creating
   five microscopic cards in one row.
========================================================= */

@media (max-width: 900px) {

    .why {

        width: 100% !important;

        padding:
            27px
            0
            29px !important;

        overflow: hidden !important;
    }


    .why__grid {

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 7px !important;

        padding:
            4px
            0
            6px !important;

        overflow: visible !important;
    }


    .why__item {

        width: 100% !important;

        min-width: 0 !important;

        min-height: 88px !important;

        height: 88px !important;

        padding:
            8px
            7px !important;

        border-radius: 8px !important;

        overflow: hidden !important;

        text-align: center !important;
    }


    .why__icon {

        margin-bottom: 3px !important;
    }


    .why__icon svg {

        width: 16px !important;

        height: 16px !important;
    }


    .why__label {

        font-size: 6.5px !important;

        line-height: 1.15 !important;
    }


    .why__text {

        margin-top: 3px !important;

        font-size: 4.8px !important;

        line-height: 1.25 !important;
    }


    /*
     * Preserve left/right entrance animation.
     */

    .why__item--left.why-animate-left {

        animation:
            whyCardsFromLeft
            1.5s
            cubic-bezier(.22,.61,.36,1)
            both !important;
    }


    .why__item--right.why-animate-right {

        animation:
            whyCardsFromRight
            1.5s
            cubic-bezier(.22,.61,.36,1)
            both !important;
    }


    .why__item--center {

        opacity: 1 !important;

        transform: none !important;
    }


    .why__item:hover {

        transform:
            translateY(-4px)
            scale(1.02) !important;
    }

}


/* =========================================================
   GENERAL CARD SECTIONS
   ---------------------------------------------------------
   Default two-column compact treatment.

   This prevents sections from becoming unnecessarily tall.
========================================================= */

@media (max-width: 900px) {

    .cards {

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 7px !important;
    }


    .cards > *,
    .card {

        min-width: 0 !important;

        padding:
            10px !important;

        border-radius: 8px !important;
    }

}


/* =========================================================
   ABOUT / CONTENT GRIDS
========================================================= */

@media (max-width: 900px) {

    .about-grid {

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 7px !important;
    }


    .about {

        min-width: 0 !important;

        padding:
            10px !important;

        border-radius: 8px !important;
    }


    .about p {

        margin: 0 !important;

        font-size: 7px !important;

        line-height: 1.4 !important;
    }

}


/* =========================================================
   CONTACT NRAND
   ---------------------------------------------------------
   Compact horizontal/app-like presentation.
========================================================= */

@media (max-width: 900px) {

    .landing-contact {

        width: 100% !important;

        padding:
            27px
            0 !important;
    }


    .landing-contact-box {

        width: 100% !important;

        min-height: 118px !important;

        padding:
            18px
            12px !important;

        border-radius: 10px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: center !important;

        text-align: center !important;
    }


    .landing-contact-box h2 {

        margin:
            0
            6px !important;

        font-size: 19px !important;

        line-height: 1.12 !important;
    }


    .landing-contact-box p {

        max-width: 280px !important;

        margin:
            0
            9px !important;

        font-size: 6.5px !important;

        line-height: 1.4 !important;
    }


    .landing-contact-box .btn {

        min-height: 26px !important;

        height: 26px !important;

        padding:
            0
            11px !important;

        border-radius: 6px !important;

        font-size: 6px !important;
    }

}


/* =========================================================
   FOOTER
   ---------------------------------------------------------
   COMPACT DESKTOP-STYLE FOOTER

   Four columns remain across the phone.

   No giant vertical footer.
========================================================= */

@media (max-width: 900px) {

    .footer {

        width: 100% !important;

        margin: 0 !important;

        padding:
            17px
            0
            45px !important;

        overflow: hidden !important;
    }


    .footer > .container {

        width: calc(100% - 12px) !important;

        max-width: none !important;
    }


    /*
     * Keep the desktop footer's four-column idea.
     */

    .footer-grid {

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 6px !important;

        align-items: start !important;
    }


    .footer-column {

        min-width: 0 !important;

        padding: 0 !important;
    }


    .footer h4 {

        margin:
            0
            5px !important;

        font-size: 6px !important;

        line-height: 1.1 !important;
    }


    .footer p {

        margin:
            0
            0
            4px !important;

        font-size: 4.8px !important;

        line-height: 1.3 !important;
    }


    .footer ul {

        margin: 0 !important;

        padding: 0 !important;

        list-style: none !important;
    }


    .footer li {

        margin:
            0
            0
            2px !important;

        padding: 0 !important;

        font-size: 4.8px !important;

        line-height: 1.2 !important;
    }


    .footer a {

        font-size: 4.8px !important;

        line-height: 1.2 !important;
    }


    .footer-fsp {

        margin-top: 2px !important;

        font-size: 4.5px !important;

        line-height: 1.2 !important;
    }


    /*
     * Footer bottom row stays horizontal.
     */

    .footer__bottom,
    .footer-bottom,
    .footer__copyright {

        width: 100% !important;

        margin-top: 10px !important;

        padding-top: 6px !important;

        border-top:
            1px solid
            rgba(255,255,255,.08) !important;

        font-size: 4.5px !important;
    }


    .footer__links {

        display: flex !important;

        flex-direction: row !important;

        flex-wrap: nowrap !important;

        align-items: center !important;

        justify-content: flex-end !important;

        gap: 5px !important;
    }


    .footer__links a {

        font-size: 4.5px !important;

        white-space: nowrap !important;
    }


    .footer-credit {

        font-size: 4.5px !important;
    }

}


/* =========================================================
   EXTRA SMALL PHONE FOOTER
========================================================= */

@media (max-width: 380px) {

    .footer {

        padding:
            15px
            0
            40px !important;
    }


    .footer-grid {

        gap: 4px !important;
    }


    .footer h4 {

        font-size: 5.5px !important;
    }


    .footer p,
    .footer li,
    .footer a,
    .footer-credit {

        font-size: 4.4px !important;
    }

}


/* =========================================================
   MODALS
   ---------------------------------------------------------
   Keep all modal functionality.
   Only compress their presentation.
========================================================= */

@media (max-width: 900px) {

    .funeral-cover-modal {

        padding:
            7px !important;
    }


    .funeral-cover-modal__dialog {

        width: calc(100% - 10px) !important;

        max-width: none !important;

        max-height:
            calc(100svh - 14px) !important;

        border-radius: 12px !important;
    }


    .funeral-cover-modal__content {

        padding:
            28px
            13px
            15px !important;
    }


    .funeral-cover-modal__close {

        top: 7px !important;

        right: 7px !important;

        width: 28px !important;

        height: 28px !important;
    }


    #funeralCoverModalBody h1,
    #funeralCoverModalBody h2,
    #funeralCoverModalBody h3 {

        font-size: 19px !important;

        line-height: 1.15 !important;
    }


    #funeralCoverModalBody p {

        font-size: 8px !important;

        line-height: 1.45 !important;
    }


    .funeral-cover-modal__footer {

        padding:
            9px
            13px
            12px !important;
    }


    .funeral-cover-modal__join {

        min-height: 34px !important;

        height: 34px !important;

        border-radius: 7px !important;

        font-size: 8px !important;
    }

}


/* =========================================================
   PLAN VIEWER MODAL
========================================================= */

@media (max-width: 900px) {

    #planViewerModal .modal__panel,
    #planViewerModal .modal__content {

        width: calc(100% - 12px) !important;

        max-width: none !important;

        max-height:
            calc(100svh - 12px) !important;

        border-radius: 12px !important;
    }

}


/* =========================================================
   FORM CONTROLS
========================================================= */

@media (max-width: 900px) {

    input,
    select,
    textarea {

        max-width: 100% !important;

        border-radius: 7px !important;

        font-size: 10px !important;
    }


    input,
    select {

        min-height: 34px !important;
    }


    textarea {

        min-height: 65px !important;
    }

}


/* =========================================================
   CHAT BUTTON
   ---------------------------------------------------------
   Keep it compact and out of the way.
========================================================= */

@media (max-width: 900px) {

    #supportChatButton,
    .support-chat-button,
    .chat-button {

        width: 29px !important;

        height: 29px !important;

        min-width: 29px !important;

        min-height: 29px !important;

        right: 7px !important;

        bottom: 7px !important;

        border-radius: 50% !important;
    }

}


/* =========================================================
   PREVENT UNWANTED HORIZONTAL SCROLLING
========================================================= */

@media (max-width: 900px) {

    .hero,
    .hero__wrap,
    .nrand-plans-home,
    .home-funeral-cover,
    .burial-cover-home,
    .why,
    .landing-contact,
    .footer {

        overflow-x: clip !important;
    }

}


/* =========================================================
   DO NOT TOUCH REDUCED-MOTION ACCESSIBILITY
   ---------------------------------------------------------
   Existing animation rules remain responsible for this.
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-cover-card,
    .nrand-plan-slide-card,
    .burial-card,
    .why__item {

        animation: none !important;

        transition: none !important;
    }

}