/* ================================================================
   BUBS DISPOSAL — Mobile Responsive (≤768px) + Slide-out Panel
   ================================================================ */

/* ================================================================
   HEADER — mobile (≤768px)
   - Hide trust bar, hide menu strip (replaced by slide-out)
   - Logo row: logo left + hamburger trigger right
   ================================================================ */
@media (max-width: 768px) {
  /* Trust bar: stay visible on mobile (wraps to multi-line) */
  .bubs-trust-bar {
    font-size: 11px;
    padding: 5px 10px;
  }
  .bubs-trust-bar-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
  .bubs-trust-list {
    gap: 4px 12px;
    justify-content: center;
  }
  .bubs-trust-list li {
    font-size: 11px;
  }
  /* Hide login link on mobile (saves space) */
  .bubs-trust-login {
    display: none;
  }

  /* Hide desktop menu strip on mobile (slide-out replaces it) */
  .main-navigation {
    display: none;
  }

  /* Logo row: compact on mobile */
  .site-header {
    padding: 10px 0;
  }
  .site-header .inside-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0 15px;
  }
  .site-header .site-logo img,
  .site-header .site-branding img,
  .site-header .custom-logo-link img,
  .site-header img.is-logo-image {
    max-height: 45px !important;
  }
  /* Hide Schedule + phone CTA on mobile (lives in slide-out panel instead) */
  .bubs-header-cta {
    display: none;
  }

  /* On scroll mobile: trust bar still hides */
  body.bubs-is-scrolled .bubs-trust-bar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
}

/* ================================================================
   MOBILE HAMBURGER TRIGGER
   Injected by mobile-menu.js into the logo row
   ================================================================ */
#bubs-mobile-trigger {
  display: none;
}

@media (max-width: 768px) {
  #bubs-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    background: rgba(255,255,255,0.15);
    color: var(--bubs-white);
    border: none;
    font-size: 28px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: var(--bubs-radius-md);
    line-height: 1;
    padding: 0;
    transition: background var(--bubs-transition-fast);
  }
  #bubs-mobile-trigger:hover,
  #bubs-mobile-trigger:focus-visible {
    background: rgba(255,255,255,0.25);
  }
  #bubs-mobile-trigger svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
}

/* ================================================================
   MOBILE SLIDE-OUT PANEL
   ================================================================ */
#bubs-mobile-backdrop,
#bubs-mobile-panel {
  display: none;
}

@media (max-width: 768px) {
  #bubs-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  #bubs-mobile-backdrop.active {
    display: block;
    opacity: 1;
  }

  #bubs-mobile-panel {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport for iOS Safari */
    background: var(--bubs-white);
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 24px rgba(0,0,0,0.18);
    font-family: var(--bubs-font-body);
  }
  #bubs-mobile-panel.open { right: 0; }

  /* Panel header */
  .bubs-mp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bubs-navy);
  }
  .bubs-mp-header img {
    height: 38px;
    width: auto;
  }
  .bubs-mp-close {
    background: none;
    border: 0;
    font-size: 32px;
    line-height: 1;
    color: var(--bubs-white);
    cursor: pointer;
    padding: 4px 8px;
  }
  .bubs-mp-close:hover { color: var(--bubs-orange); }

  /* Trust strip in panel */
  .bubs-mp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 20px;
    background: var(--bubs-off-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 12px;
    color: var(--bubs-ink);
    font-weight: 600;
  }
  .bubs-mp-trust .bubs-mp-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .bubs-mp-trust svg {
    width: 12px;
    height: 12px;
    color: var(--bubs-orange);
  }

  /* Nav list */
  .bubs-mp-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
  }
  .bubs-mp-nav > li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .bubs-mp-nav > li > a {
    display: block;
    padding: 16px 22px;
    color: var(--bubs-navy) !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--bubs-font-body);
  }
  .bubs-mp-nav > li > a:hover,
  .bubs-mp-nav > li > a:active,
  .bubs-mp-nav > li.current-menu-item > a {
    color: var(--bubs-orange) !important;
    background: var(--bubs-off-white);
  }

  /* Nav with children (expandable) */
  .bubs-mp-nav > li.has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .bubs-mp-nav > li.has-children > a::after {
    content: "\203A";
    font-size: 24px;
    color: var(--bubs-gray);
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .bubs-mp-nav > li.has-children.expanded > a::after {
    transform: rotate(90deg);
    color: var(--bubs-orange);
  }

  /* Sub-menu */
  .bubs-mp-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: var(--bubs-off-white);
  }
  .bubs-mp-nav > li.expanded > .bubs-mp-sub { display: block; }
  .bubs-mp-sub li a {
    display: block;
    padding: 12px 22px 12px 36px;
    color: var(--bubs-ink) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .bubs-mp-sub li:last-child a { border-bottom: 0; }
  .bubs-mp-sub li a:hover {
    color: var(--bubs-orange) !important;
    background: rgba(0,0,0,0.03);
  }

  /* CTA section */
  .bubs-mp-cta {
    padding: 24px 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 10px;
  }
  .bubs-mp-cta .bubs-mp-schedule {
    display: block;
    background: var(--bubs-orange);
    color: var(--bubs-white) !important;
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--bubs-radius-pill);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background var(--bubs-transition-fast);
  }
  .bubs-mp-cta .bubs-mp-schedule:hover {
    background: var(--bubs-orange-deep);
  }
  .bubs-mp-cta .bubs-mp-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bubs-navy) !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px;
  }
  .bubs-mp-cta .bubs-mp-phone:hover {
    color: var(--bubs-orange) !important;
  }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
  #bubs-mobile-trigger,
  #bubs-mobile-panel,
  #bubs-mobile-backdrop {
    display: none !important;
  }
}

/* ================================================================
   SERVICE PAGE SECTIONS — mobile breakpoints
   ================================================================ */
@media (max-width: 900px) {
  .bubs-svc-pitch .wrap { grid-template-columns: 1fr; gap: 36px; }
  .bubs-svc-sizes .grid { grid-template-columns: 1fr; }
  .bubs-svc-audience .card,
  .bubs-svc-audience .card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .bubs-svc-audience .card:nth-child(even) .card-photo { order: 0; }
  .bubs-svc-audience .card-photo { min-height: 240px; }
  .bubs-svc-audience .card-body { padding: 30px 26px 28px; }
  .bubs-svc-area .grid { grid-template-columns: 1fr; }
  .bubs-svc-how .steps { grid-template-columns: 1fr; gap: 20px; }
  .bubs-svc-how .step::after {
    content: "\2193";
    right: 50%;
    top: auto;
    bottom: -26px;
    transform: translate(50%, 0);
  }
  .bubs-svc-services .grid { grid-template-columns: 1fr; }
  .bubs-svc-takes .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bubs-svc-hero {
    padding: 80px 20px 64px;
    min-height: 50vh;
  }
  .bubs-svc-hero h1 { font-size: 46px; }
  .bubs-svc-final .ctas { flex-direction: column; align-items: center; }
  .bubs-svc-final .ctas .bubs-btn { width: 100%; max-width: 340px; }
}

/* ================================================================
   FOOTER — mobile breakpoints (overlapping with footer.css)
   ================================================================ */
@media (max-width: 768px) {
  .bubs-footer-main {
    padding: 40px 20px 30px;
  }
}
