/* =====================================================================
   Phone and small-tablet layout fixes layered on top of the CarePress
   template. Loaded after a11y.css so it wins over the template's styles.
   Everything here is inside a max-width query: desktop is untouched.
   ===================================================================== */

/* reCAPTCHA notice under the form: only shown where the badge is hidden */
.recaptcha-notice { display: none; }

/* Call / Text shortcuts: phone-sized screens only */
.mobile-quick-contact,
.contact-actions { display: none; }

/* ---------- Stacked layout (the template's col-xl columns stack below 1200px) ---------- */
@media (max-width: 1199px) {

  /* Photo no longer touches the last accordion row */
  .faq-right-content-box { margin-top: 40px; }
  .faq-right-content-box img { display: block; width: 100%; max-width: 560px; margin: 0 auto; }

  /* Christina: photo first, like Dr. Amy's block, with room around it */
  .about-style1-area .row + .row { margin-top: 60px !important; }
  .about-style1-area .row + .row > [class*="col-"]:last-child { order: -1; }
  .about-style1-image-box { margin: 0 auto 28px; }

  /* Christina's badge sat over her face: move it to the bottom corner of the photo */
  .about-style1-area .row + .row .about-experience-box {
    top: auto;
    bottom: -20px;
    right: 0;
  }
}

/* ---------- Mobile header bar, floating buttons ---------- */
@media (max-width: 991px) {

  /* One white header bar, full width, pinned to the top from the first
     screen on. (It used to be an inset white box that scrolled away and
     left the hamburger floating over the content.) */
  header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(34, 37, 74, 0.12);
  }
  header.main-header .header-top { display: none; }
  header.main-header .header .outer-container { padding: 0; }
  header.main-header .header .outer-box { padding: 0 16px; height: 64px; }
  header.main-header .logo { padding: 12px 0; }
  header.main-header .logo a { display: block; }
  header.main-header .logo img { display: block; width: auto; height: 40px; }
  body .mobile-nav-toggler {
    top: 12px !important;
    padding: 0 !important;
  }
  /* Call and Text buttons in the bar, left of the menu button */
  .mobile-quick-contact {
    display: flex;
    gap: 8px;
    position: fixed;
    top: 12px;
    right: 78px;
    z-index: 1000000;
    transition: opacity .3s ease;
  }
  .mobile-quick-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #c2185b;
    border-radius: 4px;
    background: #ffffff;
    color: #c2185b;
    font-size: 19px;
    line-height: 1;
  }
  .mobile-quick-contact a:active { background: #c2185b; color: #ffffff; }
  body.mobile-menu-visible .mobile-quick-contact { opacity: 0; visibility: hidden; }

  /* The hero starts below the bar instead of underneath it */
  .main-slider { margin-top: 64px; }

  /* Anchor links land below the bar */
  section[id] { scroll-margin-top: 64px; }

  /* Back-to-top: smaller, and no longer sharing the corner with the reCAPTCHA badge */
  .scroll-top {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
    border-radius: 50%;
    opacity: .92;
  }
  .scroll-top:after { display: none; }

  /* Badge hidden on small screens; Google's required wording shows under the form instead */
  .grecaptcha-badge { visibility: hidden !important; }
  .recaptcha-notice {
    display: block;
    max-width: 420px;
    margin: 18px auto 0;
    color: #5b5e86;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
  }
  .recaptcha-notice a { color: #393d72; text-decoration: underline; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {

  /* ----- Section spacing: the template's 110-140px bands, cut to ~60px ----- */
  .sec-title { padding-bottom: 36px; }
  .featured-area { padding-bottom: 60px; }
  .about-style1-area { padding-bottom: 60px; }
  .service-style1-area { padding-top: 60px; padding-bottom: 40px; }
  #mobile.faq-page-area { padding-top: 60px; padding-bottom: 60px; }
  .contact-info-area.style2 { margin-bottom: 0; }
  #hours.faq-page-area { padding-top: 48px; padding-bottom: 20px !important; }
  .contact-form-style1-area { padding-top: 60px; padding-bottom: 60px; }
  .footer-area { padding-top: 60px; }

  /* ----- Experience badges: smaller so they frame the photo instead of covering it ----- */
  .about-experience-box {
    width: 124px;
    height: 124px;
    border-radius: 22px;
  }
  .about-experience-box .count-box { padding: 26px 0 0; }
  .about-experience-box .count-box h2 { font-size: 44px; line-height: 44px; }
  .about-experience-box .count-box h2 .plus-icon { font-size: 14px; margin-left: -8px; }
  .about-experience-box .count-box h5 { font-size: 13px; line-height: 16px; margin-top: 6px; }
  .about-style1-area .row + .row .main-image { padding-left: 0; text-align: center; }

  /* ----- Services: photo beside the text, not a full-width photo per service ----- */
  .single-service-style1 {
    display: flex;
    align-items: stretch;
    margin-bottom: 14px;
    box-shadow: 0 4px 11px 2px rgba(0, 0, 0, 0.04);
  }
  .single-service-style1 .img-holder {
    flex: 0 0 116px;
    padding: 8px 0 8px 8px;
  }
  .single-service-style1 .img-holder .inner { height: 100%; }
  .single-service-style1 .img-holder img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    transform: none;
  }
  .single-service-style1:hover .img-holder img { transform: none; }
  .single-service-style1 .text-holder {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px 12px 16px;
    box-shadow: none;
  }
  .single-service-style1 .text-holder h3 { font-size: 18px; line-height: 24px; margin-bottom: 4px; }
  .single-service-style1 .text-holder p { line-height: 21px; }

  /* ----- Contact info: four compact rows instead of four tall cards ----- */
  .single-contact-info-box {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 18px 20px;
    margin-bottom: 12px;
    text-align: left;
  }
  .single-contact-info-box > span {
    grid-column: 1;
    grid-row: 1 / span 4;
    font-size: 38px;
    line-height: 44px;
    text-align: center;
  }
  .single-contact-info-box > *:not(span) { grid-column: 2; }
  .single-contact-info-box .title { margin: 0 0 2px; }
  .single-contact-info-box .title h3 { font-size: 18px; line-height: 26px; }
  .single-contact-info-box p:empty { display: none; }
  .single-contact-info-box p,
  .single-contact-info-box ul li a { font-size: 15px; line-height: 24px; font-weight: 600; }
  .single-contact-info-box ul { margin: 0; }
  .contact-actions { display: flex; gap: 10px; margin-top: 12px; }
  .contact-action {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 6px;
    background: #c2185b;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
  }
  .contact-action:hover,
  .contact-action:active { color: #ffffff; background: #a3144c; }
  .contact-action .fa { font-size: 17px; }
  .single-contact-info-box ul li { line-height: 24px; }

  /* ----- Hours: full-width cards, one clean row per day ----- */
  .working-hours-box {
    padding: 10px;
    margin-bottom: 20px;
    background-image: none !important;
    background-color: #f2f0ec;
  }
  .working-hours-box .inner-content { padding: 26px 22px 22px; }
  .working-hours-box .title { padding-bottom: 14px; }
  .working-hours-box ul { overflow: visible; }
  .working-hours-box ul li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 0;
    padding: 9px 0;
    line-height: 22px;
    border-bottom: 1px dashed #d9dbea;
  }
  .working-hours-box ul li:last-child { border-bottom: 0; padding-bottom: 0; }
  .working-hours-box ul li:before { display: none; }
  .working-hours-box ul li .left,
  .working-hours-box ul li .right {
    float: none;
    padding: 0;
    background: none;
    line-height: 22px;
  }
  .working-hours-box ul li .right { flex: 0 0 auto; white-space: nowrap; text-align: right; }
}
