/* ==============================================
                    MEDIA QUERIES
   ============================================== */

@media (max-width: 1200px) {
    .polaroids img:nth-child(1) {
        left: 10%;
        bottom: 10%;
    }

    .amen-media {
        height: 420px;
    }
}

@media (max-width: 1070px) {
    /* Verification: */
    .verify-wrap {
        max-width: 760px;
    }
}

@media (max-width: 990px) {
    .foundation .wrap,
    .holistic .wrap,
        /*.contact-grid,*/
    .quote {
        grid-template-columns:1fr
    }

    .contact-grid {
        gap: 10px;
    }

    .contact-band--split .form.contact-form {
        padding: 10px;
    }

    .contact-info-detox {
        padding-right: 0;
    }

    /* Hide center divider on narrow screens */
    .contact-band--split .contact-grid::before,
    .contact-band--split .contact-grid::after {
        display: none;
    }

    .program-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .gallery .grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }


    /* *** Professionals Box START *** */
    .foundation .wrap {
        gap: 140px;
    }

    .foundation-text {
        text-align: left;
    }

    /* (2) */
    .polaroids img:nth-child(2) {
        width: 80%;
        left: 6%;
        top: 12%;
        transform: rotate(3deg);
        z-index: 1;
    }

    /*  (1) */
    .polaroids img:nth-child(1) {
        width: 30%;
        left: 0;
        bottom: -20%;
        transform: rotate(-8deg);
        z-index: 2;
    }

    /* (3) */
    .polaroids img:nth-child(3) {
        width: 25%;
        right: 10%;
        top: 10%;
        transform: rotate(-6deg);
        z-index: 3;
    }
    /* *** Professionals Box END *** */

    /* Cards */
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-cert .dhcs-logo {
        max-width: 360px;
    }

    .about-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (min-width: 912px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 911px) {
    /**** Slider Text ****/
    .hero-slider h1 {
        font-size: 40px;
        line-height: 50px;
    }

    .burger {
        display: block
    }

    .nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 84vw;
        max-width: 380px;
        background: #f3f6f4;
        border-right: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 90px 20px 90px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform .28s ease;
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .nav > a,
    .nav > .dropdown {
        width: 100%;
    }

    .nav.open {
        transform: translateX(0)
    }

    .nav a {
        display: block;
        text-align: left;
        font-size: 18px;
        padding: 14px 6px;
        border-radius: 8px
    }

    .nav .phone {
        position: fixed;
        left: 20px;
        right: 20px;
        bottom: -20px;
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 12px 16px;
        font-weight: 700;
        border-radius: 10px;
    }

    body.menu-open {
        overflow: hidden
    }

    /* Dropdown */
    .dropdown {
        width: 100%
    }

    .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 14px 6px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dropdown.open > .dropdown-toggle::after {
        transform: rotate(180deg)
    }

    .dropdown-menu {
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height .25s ease;
        background: #fff;
    }

    .dropdown.open > .dropdown-menu {
        max-height: 320px
    }

    .dropdown-menu a {
        padding: 10px 8px
    }

    /* Amenities */
    .amen-grid {
        grid-template-columns: 1fr;
        row-gap: 15px;
    }

    .amen-grid > * {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .amen-media {
        height: 300px;
        box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
    }

    .amen-grid > * {
        order: 0;
    }

    .amen-grid > *:nth-child(1) {
        order: 1;
    }

    .amen-grid > *:nth-child(2) {
        order: 2;
    }

    .amen-grid > *:nth-child(4) {
        order: 3;
    }

    .amen-grid > *:nth-child(3) {
        order: 4;
    }

    .amen-grid > *:nth-child(5) {
        order: 5;
    }

    .amen-grid > *:nth-child(6) {
        order: 6;
    }

    .amen-grid > *:nth-child(8) {
        order: 7;
    }

    .amen-grid > *:nth-child(7) {
        order: 8;
    }

    .amen-grid > *:nth-child(9) {
        order: 9;
    }

    .amen-grid > *:nth-child(10) {
        order: 10;
    }

    .amen-grid > *:nth-child(12) {
        order: 11;
    }

    .amen-grid > *:nth-child(11) {
        order: 12;
    }


    /* Post detail  */
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    /* Post detail Form */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .post-media {
        height: 220px;
    }

    /* Faq */
    .faq-wrap {
        grid-template-columns: 1fr;
    }

    .verify {
        padding: 20px 0 20px !important;
    }

}

@media (max-width: 768px) {

    .foundation {
        padding: 15px 0;
    }

    .polaroids {
        height: 380px;
    }

    .foundation .wrap {
        gap: 20px;
    }

    /* *** Professionals Box START *** */
    /* (2) */
    .polaroids img:nth-child(2) {
        width: 100%;
        height: 250px;
        left: 0;
        top: 12%;
        transform: rotate(3deg);
        z-index: 1;
    }

    /*  (1) */
    .polaroids img:nth-child(1) {
        width: 35%;
        left: 0;
        bottom: 0;
        transform: rotate(-10deg);
        z-index: 2;
    }

    /* (3) */
    .polaroids img:nth-child(3) {
        width: 35%;
        right: 1%;
        top: 10%;
        transform: rotate(-10deg);
        z-index: 3;
    }
    /* *** Professionals Box END *** */

    /**** Hom Owl Start ****/
    .insurers .owl-carousel img {
        height: 60px;
    }

    .insurers {
        padding: 25px;
    }

    /**** Hom Owl End ****/
    /* CTA Banner */
    .cta-band {
        padding: 72px 0;
    }

    .cta-band .inner {
        margin: 0 auto;
        text-align: center;
    }

    .cta-band .cta-row {
        justify-content: center !important;
    }

    .cta-band .inner {
        padding: 40px 20px;
    }

    .programs {
        padding: 80px 0 30px;
    }


    /* Gallery */
    .gallery {
        padding: 40px 0 80px;
    }

    .gallery-text {
        max-width: 100%;
        padding: 0 0 20px 0;
        margin-bottom: 10px;
    }

    .gallery .grid {
        row-gap: 15px;
        column-gap: 15px;
    }

    .gallery img {
        height: 220px;
    }

    /* Approach */
    .approach-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        grid-template-areas:
      "text"
      "photos";
    }

    .approach-photos {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        height: auto;
        min-width: 0;
        gap: 16px;
    }

    .approach-photos img {
        max-height: 300px;
        height: auto;
    }

    .approach-photos .big,
    .approach-photos .top,
    .approach-photos .bottom {
        grid-column: 1;
        grid-row: auto;
    }

    /* Testimonial */
    .stories-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stories-left {
        padding-right: 0;
        text-align: center;
    }

    .stories-left::after {
        display: none;
    }

    .stories-right {
        border-top: 1px solid var(--line);
        padding-top: 16px;
        max-width: none;
    }

    .stories-right .owl-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .stories-right .owl-dot span {
        width: 8px;
        height: 8px;
        display: block;
        border-radius: 999px;
        background: rgba(0, 0, 0, .18);
        transition: transform .2s ease, background .2s ease;
    }

    .stories-right .owl-dot.active span {
        background: var(--ink);
        transform: scale(1.2);
    }

    /* Home Contact form */
    .contact-band .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-band .contact-form .grid.two {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Verification: */
    .verify-wrap {
        max-width: 100%;
        padding: 0 14px;
    }

    .verify .contact-form .grid.two {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .verify-card {
        padding: 20px;
    }

    /*====== About ======*/
    .about-hero {
        min-height: 56vh;
    }

    .about-hero__edge {
        height: 80px;
    }

    /*====== Foundation ======*/
    .foundation-points {
        border-left: 2px solid rgba(100, 130, 180, 0.25);
        padding-left: 16px;
        gap: 14px;
    }
}


@media (max-width: 720px) {
    .under-slider img {
        height: 110px
    }

    .program-grid {
        grid-template-columns:1fr
    }

    .gallery .grid {
        grid-template-columns:1fr
    }

    /* Card */
    .cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        min-height: 110px;
        padding: 15px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }

    .footer-brand, .footer-cert, .quick-links, .get-in-touch {
        text-align: left;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .about-why__grid {
        grid-template-columns: 1fr;
        place-items: center;
    }
}

@media (max-width: 425px) {
    .nav .phone {
        width: 200%;
        font-size: 15px;
        max-width: 200px;
    }

    /* *** Professionals Box START *** */
    .polaroids img:nth-child(1) {
        left: 0;
        bottom: 15%;
    }

    .foundation .wrap {
        gap: 0;
    }
}
