/* Makhija IVF — mobile layout fix v1.0.0 (2026-10-10)
 * Keeps the fixed navigation above page content and restores a compact
 * mobile contact ribbon. Scoped selectors preserve desktop layout.
 */
@media (max-width:1199px) {
  /* Original responsive.css uses display:block on the collapsed navbar,
     which can place the logo and hamburger on separate overlapping rows. */
  .mk-production-header .mk-production-nav {
    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:72px;
    padding:8px 0;
  }
  .mk-production-header .mk-production-nav .navbar-brand {
    display:flex;
    flex:0 1 auto;
    align-items:center;
    min-width:0;
    max-width:calc(100% - 60px);
    margin:0;
    padding:0;
  }
  .mk-production-header .mk-production-nav .navbar-brand .logo_dark {
    display:block !important;
    width:auto;
    height:auto;
    max-width:min(226px,calc(100vw - 112px));
    max-height:52px;
    object-fit:contain;
  }
  .mk-production-header .mk-production-nav .navbar-brand .logo_light,
  .mk-production-header .mk-production-nav .navbar-brand .logo_default {
    display:none !important;
  }
  .mk-production-header .mk-production-nav .navbar-toggler {
    position:relative;
    display:flex;
    flex:0 0 42px;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    margin:0;
    padding:5px;
    border:1px solid #f1dce3;
    border-radius:10px;
    background:#fff;
    color:#172033;
  }
  .mk-production-header .mk-production-nav .navbar-toggler:focus-visible {
    outline:2px solid #f32b56;
    outline-offset:2px;
  }
  .mk-production-header .mk-production-nav .navbar-collapse {
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:100%;
    margin-top:0;
    border-radius:0 0 16px 16px;
    max-height:calc(100dvh - 78px);
    overflow-y:auto;
    background:#fff;
    z-index:1031;
  }
  .mk-production-header .mk-production-nav .navbar-collapse:not(.show):not(.collapsing) {
    display:none;
  }
}
@media (max-width:767px) {
  /* The founders page has a legacy zero-padding !important rule.
     A fixed header occupies about 72px; reserve room before the breadcrumb. */
  body.mk-founders-page .mk-public-content-section {
    padding-top:82px !important;
  }
  body.mk-founders-page .mk-founders-v7-hero {
    padding-top:12px;
  }
  body.mk-founders-page .mk-founders-v7-breadcrumb {
    margin-bottom:16px;
  }
  body.mk-founders-page .mk-founders-v7-hero h1 {
    font-size:clamp(30px,8vw,38px);
    line-height:1.10;
    overflow-wrap:break-word;
  }
  body.mk-founders-page .mk-founders-v7-eyebrow {
    font-size:10px;
    line-height:1.5;
    letter-spacing:.10em;
  }
  body.mk-founders-page .mk-founders-v7-nav {
    top:74px;
    z-index:20;
  }
  body.mk-founders-page .mk-founders-v7-section,
  body.mk-founders-page .mk-founder-gallery {
    scroll-margin-top:155px;
  }
  /* Four real enquiry options remain available but use far less screen area. */
  .mk-care-dock,
  .mk-care-ribbon {
    bottom:calc(5px + env(safe-area-inset-bottom,0px));
    width:calc(100vw - 12px);
    padding:4px;
    gap:3px;
    border-radius:15px;
  }
  .mk-care-dock .mk-care-action,
  .mk-care-ribbon .mk-care-action {
    min-width:0;
    min-height:50px;
    padding:4px 2px;
    gap:2px;
    flex-direction:column;
    justify-content:center;
    border-radius:11px;
  }
  .mk-care-dock .mk-care-icon,
  .mk-care-ribbon .mk-care-icon {
    width:26px;
    height:26px;
    min-width:26px;
    flex:0 0 26px;
    font-size:12px;
    border-radius:8px;
  }
  .mk-care-dock .mk-care-copy b,
  .mk-care-ribbon .mk-care-copy b {
    font-size:9px;
    line-height:1.15;
    text-align:center;
    white-space:normal;
  }
  .mk-care-dock .mk-care-copy small,
  .mk-care-ribbon .mk-care-copy small {
    display:none;
  }
  .mk-public-page .footer_dark .bottom_footer {
    padding-bottom:calc(86px + env(safe-area-inset-bottom,0px));
  }
  .scrollup {bottom:76px !important;}
}
@media (max-width:380px) {
  .mk-production-header .mk-production-nav .navbar-brand .logo_dark {
    max-width:min(195px,calc(100vw - 104px));
  }
  body.mk-founders-page .mk-founders-v7-hero h1 {font-size:30px;}
  .mk-care-dock .mk-care-copy b,
  .mk-care-ribbon .mk-care-copy b {font-size:8.5px;}
}
