/* =====================================================================
   Responsive rules - Star of Hope Healing
   ===================================================================== */

/* ---- Compact the pill nav before it wraps -------------------------------- */
@media (max-width: 1280px) {
    .page_nav ul.menu { padding-left: 92px; }
    .page_nav ul.menu li a:not(.global_btn) { padding: 8px 12px; font-size: 17px; }
    .menu_cta .global_btn { min-width: 140px; height: 48px; }
    .header_info { font-size: 14px; }
}

/* ---- Large laptops ------------------------------------------------------- */
@media (max-width: 1400px) {
    .mid_box { padding-right: 78px; }
    .mid_box h2 { font-size: 25px; }
    .main_inner { padding-left: 70px; padding-right: 60px; }
    .price_grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .price_card { padding: 36px 22px 28px; }
    .price_card h3 { min-height: 0; font-size: 22px; }
    .price strong { font-size: 32px; }
    .btm1_boxes section { padding-right: 100px; }
    .footer_flex { padding-left: 20px; padding-right: 20px; }
}

/* ---- Small laptops / tablets landscape --------------------------------------- */
@media (max-width: 1200px) {
    .help_grid { grid-template-columns: repeat(3, 1fr); }
    .page_nav ul.menu { padding-left: 96px; }
    .head_info { padding-left: 200px; }
    .header_info { font-size: 15px; }
    .step_grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
    .step::after { display: none; }
    .condition_grid { gap: 40px; }
    .provider_card { grid-template-columns: 300px 1fr; gap: 40px; }
}

/* ---- Tablet & mobile: slide-in menu, stacked layout ----------------------------- */
@media (max-width: 1100px) {
    body { padding-top: 60px; }

    .site_header { display: none; }

    #nav_area { position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 0; width: 100%; }
    .nav_toggle_button {
        display: flex; flex-direction: row; align-items: center; justify-content: space-between;
        gap: 8px; height: 60px; padding: 0 10px 0 10px; width: 100%; box-sizing: border-box;
        background: #fff; box-shadow: 0 4px 24px rgba(38, 36, 89, .14);
    }
    .mobile_logo { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; flex: 1; }
    .mobile_logo img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: block; }
    .mobile_logo span {
        font: 800 16px/1 var(--font-head); color: var(--sec);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .nav_toggle_button .hamburger {
        display: flex; flex-direction: row; align-items: center; justify-content: center;
        flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0;
    }
    .nav_toggle_button .hamburger small { display: none; }
    .nav_toggle_button .hamburger-box { width: 22px; height: 16px; flex-shrink: 0; }
    .nav_toggle_button .hamburger-inner,
    .nav_toggle_button .hamburger-inner::before,
    .nav_toggle_button .hamburger-inner::after { width: 22px; height: 2px; }
    .nav_toggle_button .hamburger-inner { top: 50%; margin-top: -1px; }
    .nav_toggle_button .hamburger-inner::before { top: -7px; }
    .nav_toggle_button .hamburger-inner::after { bottom: -7px; }
    .menu_slide_right .hamburger {
        display: flex; flex-direction: row; align-items: center; justify-content: center;
        gap: 8px; flex-shrink: 0; min-height: 44px; padding: 6px 2px 6px 8px;
    }
    .menu_slide_right .hamburger-box { flex-shrink: 0; }
    .menu_slide_right .hamburger small { font-size: 12px; line-height: 1; letter-spacing: .06em; }

    .toggle_right_nav { position: fixed; inset: 0; z-index: 600; visibility: hidden; pointer-events: none; transition: visibility 0s .45s; }
    .toggle_nav_close { display: block; position: absolute; inset: 0; background: rgba(20, 18, 60, .6); opacity: 0; transition: opacity .4s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
    .page_nav {
        position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: min(350px, 88vw); overflow-y: auto; background: #fff;
        transform: translateX(100%); transition: transform .45s cubic-bezier(.77, 0, .18, 1); padding: 0;
    }
    body.nav-open .toggle_right_nav { visibility: visible; pointer-events: auto; transition-delay: 0s; }
    body.nav-open .toggle_nav_close { opacity: 1; }
    body.nav-open .page_nav { transform: none; }

    .menu_slide_right {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 64px; padding: 8px 12px; border-bottom: 1px solid var(--line);
    }
    .logo_slide_right { display: flex; align-items: center; }
    .logo_slide_right img { width: 48px; height: 48px; border-radius: 50%; }

    .page_nav .nav_wrapper, body.nav-fixed .page_nav .nav_wrapper {
        position: static; width: auto; height: auto; transform: none; animation: none; padding: 10px 0 30px;
    }
    .page_nav ul.menu, body.nav-fixed .page_nav ul.menu {
        position: static; flex-direction: column; align-items: stretch; height: auto; padding: 0 22px;
        border: 0; border-radius: 0; box-shadow: none; background: transparent;
    }
    .page_nav ul.menu li:not(.menu_cta)::after { display: none; }
    .page_nav ul.menu li a:not(.global_btn) { padding: 17px 6px; font-size: 20px; border-bottom: 1px solid #efecf8; }
    .page_nav ul.menu li a:not(.global_btn)::after { display: none; }
    .page_nav ul.menu li.current_page_item > a { color: var(--purple); }
    .menu_cta { margin: 22px 0 0; }
    .menu_cta .global_btn { width: 100%; }
    .nav_mini_logo, body.nav-fixed .nav_mini_logo { display: none; }
    .nav_contact { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 0; font-size: 15px; }
    .nav_contact a { display: flex; align-items: center; gap: 10px; color: var(--sec); word-break: break-word; }
    .nav_contact .icon { color: var(--purple); }

    /* Banner */
    .bnr_stage { height: 560px; border-radius: 0 0 60px 60px; }
    .bnr_wrap { padding-top: 0; }
    .slide_dots { right: 50%; transform: translateX(50%); bottom: 30px; }
    .non_ban_stage { border-radius: 0 0 60px 60px; }

    /* Middle */
    #middle { margin-top: -60px; background: linear-gradient(180deg, #fff 0, #fff 40%, #efecf8 40%); }
    .middle_con { padding-top: 120px; }
    .middle_topboxes { flex-direction: column; gap: 46px; padding-bottom: 46px; }
    .middle_topboxes section { width: 100%; max-width: none; }
    .mid_top2 { text-align: left; padding: 6px 80px 0 140px; }
    .mid_top2 .mid_icon { right: auto; left: 0; }
    .mid_top2 h2 { padding: 0 0 0 28px; }
    .mid_top2 h2::after { right: auto; left: 0; }
    .mid_top2 .circle_link { left: auto; right: 0; }
    .middle_boxes { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; margin-bottom: 0; padding-bottom: 50px; }
    .mid_box, .mid_box:nth-child(5) { grid-column: auto; min-height: 270px; }

    /* Main */
    .main_con { grid-template-columns: 1fr; min-height: 0; }
    .side_img { height: 380px; border-radius: 0 0 90px 0; }
    .parallax_img img { top: 0; height: 100%; object-position: center 28%; }
    .main_panel { border-radius: 0 0 100px 0; }
    .main_inner { max-width: none; padding: 70px 40px 90px; }

    /* Pillars / bottom */
    .pillar_grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    #bottom1::before { display: none; }
    .btm1_flex { flex-direction: column; gap: 60px; padding: 0 10px; }
    .btm1_info, .btm1_boxes { position: static; width: 100%; max-width: none; }
    .btm2_con { padding: 110px 0 90px; }
    .pill_field { flex: 1 1 calc(50% - 8px); }
    .pill_field_wide { flex: 1 1 100%; }

    /* Footer */
    .footer_flex { flex-direction: column; align-items: flex-start; gap: 34px; padding: 0 10px 50px; }
    .footer_logo { align-self: center; }
    .footer_nav { flex-direction: column; height: auto; padding: 26px 20px; border-radius: 40px; }
    .footer_nav ul { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
    .footer_top::before { height: 330px; }

    .price_grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .price_card { padding: 30px 16px 24px; }
    .price strong { font-size: 28px; }

    /* Inner pages */
    .split { grid-template-columns: 1fr; gap: 50px; }
    .split_art { order: -1; }
    .arch_art { max-width: 340px; }
    .arch_art.has_photo { max-width: 520px; }
    .duo { grid-template-columns: 1fr; }
    .check_grid { grid-template-columns: repeat(2, 1fr); }
    .help_grid { grid-template-columns: repeat(2, 1fr); }
    .condition_grid, .condition_grid.flip { grid-template-columns: 1fr; }
    .condition_grid.flip .condition_text { order: 0; }
    .contact_grid, .appointment_grid, .appointment_grid.cols_reverse { grid-template-columns: 1fr; gap: 50px; }
    .cols_reverse .side_panel { order: 2; }
    .policy_grid { grid-template-columns: 1fr; }
    .perk_grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .insurer_grid { grid-template-columns: repeat(2, 1fr); }
    .provider_card { grid-template-columns: 1fr; border-radius: 40px 0 40px 0; padding: 28px; }
    .provider_photo { max-width: 320px; margin: 0 auto; }
    .cta_inner { flex-direction: column; text-align: center; }
    .cta_text p { margin: 0 auto; }
    .cta_actions { justify-content: center; }
    .inner_section, .condition_row { padding-top: 70px; padding-bottom: 70px; }
}

/* ---- Phones ---------------------------------------------------------------- */
@media (max-width: 700px) {
    body { font-size: 16px; }
    .bnr_stage { height: 540px; }
    .bnr_wrap { padding: 0 8px; align-items: flex-end; padding-bottom: 90px; }
    .bnr_info h2 { min-height: 2.5em; }
    .bnr_info p { font-size: 16px; }
    .bnr_shade { background: linear-gradient(0deg, rgba(18, 16, 56, .92) 0%, rgba(18, 16, 56, .6) 50%, rgba(18, 16, 56, .15) 100%); }

    .middle_con { padding-top: 90px; }
    .mid_top1, .mid_top2 { padding: 0 0 0 0; padding-top: 126px; }
    .mid_top1 .mid_icon, .mid_top2 .mid_icon { left: 0; top: 0; }
    .mid_top1 .circle_link, .mid_top2 .circle_link { top: 30px; margin-top: 0; right: 0; left: auto; }
    .middle_topboxes section { min-height: 0; }
    .middle_boxes { grid-template-columns: 1fr; }
    .mid_box { min-height: 0; padding-bottom: 36px; }

    .side_img { height: 300px; }
    .main_inner { padding: 56px 22px 70px; }

    .price_grid { grid-template-columns: 1fr; }
    #fees, #pillars { padding-top: 80px; padding-bottom: 80px; }
    #bottom1 { padding-top: 80px; padding-bottom: 80px; }
    .btm1_boxes section, .btm1_box2 { flex-direction: column !important; align-items: center; text-align: center !important; padding: 36px 24px 96px !important; border-radius: 40px 0 40px 0 !important; }
    .btm1_boxes figure { width: 150px; height: 150px; }
    .btm1_inner h2 { padding: 0 !important; }
    .btm1_inner h2::before { display: none; }
    .btm1_boxes .circle_link, .btm1_box1 .circle_link, .btm1_box2 .circle_link { top: auto; bottom: 28px; left: 50%; right: auto; margin: 0 0 0 -24px; }

    .btm2_con { padding: 90px 0 70px; }
    .pill_field { flex: 1 1 100%; }
    .flex_dis { flex-direction: column; }
    .btn_submit { width: 100%; }
    .btn_submit .form_btn { width: 100%; }

    .crisis_note { flex-direction: column; text-align: center; }
    .privacy_pol { display: inline-block; margin: 0 12px; }

    .page_title { padding: 16px 52px; margin-top: -34px; }
    .page_title::before { left: 18px; }
    .page_title::after { right: 18px; }
    .non_ban_stage { height: 300px; }
    .insurer_grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }

    .step_grid, .check_grid, .help_grid { grid-template-columns: 1fr; }
    .help_card.has_photo .help_photo { height: 150px; }
    .field_grid { grid-template-columns: 1fr; }
    .form_card { padding: 30px 22px 28px; }
    .star_list.two_col { columns: 1; }
    .faq_item summary { padding: 18px 16px 18px 66px; font-size: 17px; }
    .faq_icon { left: 16px; }
    .faq_answer { padding: 0 20px 22px 66px; }
    .condition_num { font-size: 68px; }
    .side_panel { padding: 34px 26px; }
    .leaf_card { padding: 40px 28px; }
    .global_btn_wide { min-width: 0; width: 100%; }
    .cta_actions .global_btn { width: 100%; }
    .back_top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}
