/* ==========================================================================
   Kresta SPU: responsive fixes (tablet & mobile)
   Loaded after style.css from includes/head.php. Desktop (1200px+) is unchanged.

   Spacing system used below (phones):
     section padding 50px  |  edge gutter 16px (24px tablet)
     title -> content 22-32px  |  list items 12-14px  |  form fields 14px
   ========================================================================== */

/* --- 1. Section spacing & gutters -----------------------------------------
   style.css (custom block near the end) sets `.rts-section-gapBottom { padding: 70px }`
   on ALL sides, which squeezed every section into a narrow strip below desktop. */
@media (max-width: 1199px) {
    .rts-section-gapBottom { padding-left: 0; padding-right: 0; }
}
@media (max-width: 991px) {
    .rts-section-gapBottom { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 767px) {
    .rts-section-gapBottom { padding-top: 50px; padding-bottom: 50px; }
}
@media (min-width: 576px) and (max-width: 1199px) {
    .container { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 575px) {
    .container { padding-left: 16px; padding-right: 16px; }
}

/* --- 2. Typography scale on phones ---------------------------------------- */
@media (max-width: 767px) {
    /* section titles ranged from 22px to 36px; one consistent size */
    h2.title { font-size: 26px !important; line-height: 1.3 !important; }
    .rts-breadcrumb-area .title { font-size: 32px !important; line-height: 1.2 !important; }
    /* forced desktop line breaks make awkward wraps on small screens */
    h1.title br, h2.title br, .title-style-one .title br, .title-area .title br { display: none; }
    /* justified text opens wide word gaps in narrow columns */
    .kc-hero-text p { text-align: left !important; }
}

/* --- 3. Header: compact "Enquire Now" next to the menu on phones ----------
   (replaces the floating side tab, which covered page content) */
@media (max-width: 767px) {
    .sticky-enquire-btn { display: none !important; }
    .header-right { gap: 10px; }
    .header-right .rts-btn {
        display: inline-flex !important; align-items: center; gap: 4px; white-space: nowrap;
        padding: 9px 14px !important; font-size: 13px !important; line-height: 1 !important;
    }
    .header-right .rts-btn img { width: 13px; height: 13px; }
    .header-one .logo-area img, .header-one .logo img { max-width: 150px; height: auto; }
}
@media (max-width: 389px) {
    .header-one .logo-area img, .header-one .logo img { max-width: 132px; }
    .header-right .rts-btn { padding: 8px 12px !important; }
}

/* --- 4. Home hero ---------------------------------------------------------- */
@media (max-width: 991px) {
    .rts-banner-area-two .banner-wrapper-bg.ptb--180 { padding-top: 110px !important; padding-bottom: 110px !important; }
    .rts-banner-area-two .banner-content-area { max-width: 430px; }
    .rts-banner-area-two .banner-content-area h1.title { font-size: 38px !important; line-height: 1.15 !important; }
}
@media (max-width: 767px) {
    .banner-content-area .pre-title { margin-bottom: 10px !important; }
}
@media (max-width: 575px) {
    .rts-banner-area-two .banner-wrapper-bg.ptb--180 {
        padding-top: 64px !important; padding-bottom: 64px !important;
        position: relative; background-position: 72% center;
    }
    /* soft white veil so the headline stays readable over the photo */
    .rts-banner-area-two .banner-wrapper-bg::before {
        content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .62) 100%);
    }
    .rts-banner-area-two .banner-wrapper-bg > .container { position: relative; z-index: 1; }
    .rts-banner-area-two .banner-content-area h1.title { font-size: 34px !important; }
}

/* --- 5. About block: photo + "2025 Established" badge ----------------------
   The badge hung 50px below the photo and covered the heading underneath.
   Below desktop it becomes a compact label inside the photo's corner. */
@media (max-width: 991px) {
    .about-image-left-wrapper.two { margin-right: 0 !important; }
    .about-image-left-wrapper.two .thumbnail-main img {
        width: 100%; height: 380px; max-height: none; object-fit: cover; border-radius: 12px;
    }
    .about-image-left-wrapper.two .patient-number {
        top: auto !important; bottom: 16px !important; left: 16px !important; right: auto !important;
        width: auto !important; padding: 12px 16px !important; border-radius: 12px;
    }
    .about-image-left-wrapper.two .patient-number .title { font-size: 30px !important; line-height: 1 !important; margin: 0 0 4px !important; }
    .about-image-left-wrapper.two .patient-number h6 { font-size: 17px !important; line-height: 1.2 !important; margin: 0 !important; }
    .about-image-left-wrapper.two .patient-number span,
    .about-image-left-wrapper.two .patient-number p { font-size: 13px !important; line-height: 1.35 !important; }
    .rts-about-area .col-lg-6.mt_md--100,
    .rts-about-area .col-lg-6.mt_sm--100 { margin-top: 36px !important; }
}
@media (max-width: 575px) {
    .about-image-left-wrapper.two .thumbnail-main img { height: 270px; }
    .rts-about-area .col-lg-6.mt_md--100,
    .rts-about-area .col-lg-6.mt_sm--100 { margin-top: 32px !important; }
}

/* --- 6. Check lists: two half-lists stacked into one evenly spaced list ---- */
@media (max-width: 767px) {
    .single-check-wrapper-main-about { flex-direction: column; gap: 0; }
    .single-check-wrapper-main-about .half { width: 100%; }
    .single-check-wrapper-main-about .half .single { margin: 0 0 14px !important; }
    .single-check-wrapper-main-about .half:last-child .single:last-child { margin-bottom: 0 !important; }

    .check-between-wrapper { flex-direction: column; gap: 0; }
    .check-between-wrapper .single-wrapper { width: 100%; }
    .check-between-wrapper .single-check { margin: 0 0 12px !important; }
    .check-between-wrapper .single-wrapper:last-child .single-check:last-child { margin-bottom: 0 !important; }
}

/* --- 7. Counters: neat 2 x 2 grid on phones -------------------------------- */
@media (max-width: 767px) {
    .counter-area-main-wrapper {
        display: grid; grid-template-columns: 1fr 1fr; gap: 34px 16px;
        align-items: start; justify-content: stretch;
    }
    .counter-area-main-wrapper .single-counter { text-align: center; min-width: 0; }
    .counter-area-main-wrapper .single-counter .icon-area { display: flex; justify-content: center; }
    .counter-area-main-wrapper .single-counter .title { margin: 12px 0 6px; font-size: 34px; }
    .counter-area-main-wrapper .single-counter p { font-size: 14px; line-height: 1.45; margin: 0; }
}

/* --- 8. Testimonials --------------------------------------------------------- */
@media (max-width: 767px) {
    .single-testimonials-style .author-area .info p { line-height: 1.6; }
}

/* --- 9. Button pairs (e.g. About: CEO profile / LinkedIn) ------------------- */
@media (max-width: 575px) {
    .d-flex.gap-3:has(> .rts-btn) { flex-wrap: wrap; }
    .d-flex.gap-3 > .rts-btn { padding: 12px 20px; white-space: nowrap; font-size: 15px; }
}

/* --- 10. Awards gallery: two photos per row on phones ----------------------- */
@media (max-width: 575px) {
    .row.g-5:has(> div > .vedio-icone) { --bs-gutter-x: 14px; --bs-gutter-y: 14px; margin-top: 0; }
    .row.g-5 > .col-12:has(> .vedio-icone) { flex: 0 0 50%; max-width: 50%; }
    .vedio-icone { border-radius: 10px; }
}

/* --- 11. "Request a Consultation": joined card + even field rhythm ---------- */
@media (max-width: 991px) {
    .book-your-consulting .appoinment-area-main { border-radius: 16px 16px 0 0; }
    .book-your-consulting .thumbnail-appoinment { border-radius: 0 0 16px 16px; overflow: hidden; height: 260px; }
    .book-your-consulting .thumbnail-appoinment img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 575px) {
    .book-your-consulting .appoinment-area-main { padding: 30px 20px; }
    .book-your-consulting .appoinment-area-main .title { margin-bottom: 22px; }
    .book-your-consulting .appoinment-area-main form .half-input-wrapper,
    .book-your-consulting .appoinment-area-main form .input-half-wrapper {
        display: flex !important; flex-direction: column !important; gap: 0 !important;
    }
    .book-your-consulting .appoinment-area-main form .half-input-wrapper > *,
    .book-your-consulting .appoinment-area-main form .input-half-wrapper > * {
        width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important;
    }
    .book-your-consulting .appoinment-area-main form input { margin: 0 0 14px !important; }
    .book-your-consulting .appoinment-area-main form .search-input { margin: 0 0 14px !important; }
    .book-your-consulting .appoinment-area-main form .search-input .nice-select { float: none; width: 100%; margin: 0 !important; }
    .book-your-consulting .appoinment-area-main form .rts-btn { margin-top: 6px; }
    .book-your-consulting .thumbnail-appoinment { height: 210px; }
}

/* --- 12. Founder & CEO page ------------------------------------------------- */
@media (max-width: 991px) {
    .kc-hero .col-lg-7 { margin-top: 44px; }
}
@media (max-width: 767px) {
    .kc-gallery-head { margin-top: 44px !important; }
}

/* --- 13. Footer: the custom 125px column gap collapsed into huge empty gaps -- */
@media (max-width: 991px) {
    .footer-wrapper-style-between { gap: 36px 30px; flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .footer-wrapper-style-between {
        display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px;
        padding-top: 30px; padding-bottom: 30px;
    }
    .footer-wrapper-style-between .single-wized { width: auto !important; max-width: none !important; min-width: 0; }
    .footer-wrapper-style-between .single-wized:first-child,
    .footer-wrapper-style-between .single-wized:last-child { grid-column: 1 / -1; }
}
