/* =========================================================
   SHARED MOBILE FOOTER — exact same 3-panel look as desktop
   (Brand | Services | Contact) with smaller type, full width.
   Loaded last on every page via layout/footer.php
========================================================= */

@media (max-width: 767px) {

  html body .apex-footer.apex-footer-v2,
  html body.page-home .apex-footer.apex-footer-v2,
  html body.package-page-body .apex-footer.apex-footer-v2,
  html body.services-page .apex-footer.apex-footer-v2,
  html body.results-page .apex-footer.apex-footer-v2,
  html body.page-about .apex-footer.apex-footer-v2,
  html body.page-contact .apex-footer.apex-footer-v2 {
    margin-top: 0 !important;
    padding: 14px 0 10px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: none !important;
    background:
      radial-gradient(ellipse 420px 220px at 8% 0%, rgba(212,175,55,.08), transparent 58%),
      radial-gradient(ellipse 360px 200px at 90% 24%, rgba(46,204,113,.05), transparent 60%),
      linear-gradient(180deg, #071210 0%, #06110f 100%) !important;
    color: rgba(236,241,233,.78) !important;
    font-family: 'Montserrat', sans-serif !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-container,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-container,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-container,
  html body.services-page .apex-footer.apex-footer-v2 .footer-v2-container,
  html body.results-page .apex-footer.apex-footer-v2 .footer-v2-container,
  html body.page-about .apex-footer.apex-footer-v2 .footer-v2-container,
  html body .apex-footer.apex-footer-v2 > .footer-v2-container {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* ---- 3 columns side-by-side (matches reference screenshot) ---- */
  html body .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.services-page .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.results-page .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.page-about .apex-footer.apex-footer-v2 .footer-v2-main {
    display: grid !important;
    grid-template-columns: 1.05fr 1.05fr 1.15fr !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-panel,
  html body .apex-footer.apex-footer-v2 .footer-v2-brand-panel,
  html body .apex-footer.apex-footer-v2 .footer-v2-links-panel,
  html body .apex-footer.apex-footer-v2 .footer-v2-contact-panel,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-panel,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-brand-panel,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-links-panel,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-contact-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-brand-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-links-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-panel {
    grid-column: auto !important;
    grid-row: auto !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 10px !important;
    border: 1px solid rgba(212,175,55,.28) !important;
    border-radius: 12px !important;
    background:
      radial-gradient(ellipse 180px 70px at 50% -12%, rgba(212,175,55,.14), transparent 65%),
      linear-gradient(145deg, rgba(20,35,30,.92), rgba(6,18,16,.96)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 10px 22px rgba(0,0,0,.22) !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-panel::before,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-panel::before {
    opacity: .85 !important;
  }

  /* ---- Brand ---- */
  html body .apex-footer.apex-footer-v2 .footer-v2-brand-panel,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-brand-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-brand-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 14px 11px 12px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-logo,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-logo {
    display: block !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  /* Full wordmark must fit inside the narrow 3-col brand panel */
  html body .apex-footer.apex-footer-v2 .footer-v2-brand-logo,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-brand-logo,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-brand-logo,
  html body.services-page .apex-footer.apex-footer-v2 .footer-v2-brand-logo,
  html body.results-page .apex-footer.apex-footer-v2 .footer-v2-brand-logo,
  html body.page-about .apex-footer.apex-footer-v2 .footer-v2-brand-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 44px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-logo-mark,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-logo-mark {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-logo-text strong,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-logo-text strong {
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: .1em !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-logo-text span,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-logo-text span {
    margin-top: 3px !important;
    font-size: 6px !important;
    letter-spacing: .18em !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-about,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-about {
    max-width: none !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    font-size: 8.5px !important;
    line-height: 1.45 !important;
    color: rgba(236,241,233,.72) !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-socials,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-socials {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-socials a,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-socials a {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-trust,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-trust,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-trust {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: auto !important;
    font-size: 7.5px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-trust i,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-trust i {
    font-size: 11px !important;
    color: #2ecc71 !important;
    flex-shrink: 0 !important;
  }

  /* ---- Links: Services only on mobile (matches screenshot) ---- */
  html body .apex-footer.apex-footer-v2 .footer-v2-links-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-links-panel {
    padding: 12px 10px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-links-grid,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-links-grid {
    display: block !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-links-grid > div:last-child,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-links-grid > div:last-child {
    display: none !important; /* hide Platforms + Company on mobile */
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-title,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-title {
    margin: 0 0 8px !important;
    color: #d4af37 !important;
    font-size: 9px !important;
    line-height: 1 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-list,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-list a,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-list a {
    min-height: 0 !important;
    height: auto !important;
    min-width: 0 !important;
    gap: 5px !important;
    padding: 4px 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    align-items: flex-start !important;
    color: rgba(236,241,233,.82) !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-list a::before,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-list a::before {
    font-size: 8px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
  }

  /* ---- Contact ---- */
  html body .apex-footer.apex-footer-v2 .footer-v2-contact-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-panel {
    padding: 12px 9px 10px !important;
    overflow: hidden !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-contact-list,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-contact-card,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 34px !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 5px 6px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-contact-icon,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-contact-label,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-label {
    margin-bottom: 1px !important;
    font-size: 7px !important;
    line-height: 1.1 !important;
    color: rgba(255,255,255,.5) !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-contact-value,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-value {
    font-size: 8px !important;
    line-height: 1.25 !important;
    color: rgba(255,255,255,.9) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-hours,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hours {
    margin: 0 !important;
    padding: 8px !important;
    border-radius: 7px !important;
    border: 1px solid rgba(212,175,55,.28) !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-hours-head,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hours-head {
    gap: 5px !important;
    margin-bottom: 6px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    color: #d4af37 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-hours-head i,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hours-head i {
    width: auto !important;
    height: auto !important;
    font-size: 10px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-hour-row,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hour-row {
    gap: 2px !important;
    margin-top: 6px !important;
    font-size: 7.5px !important;
    line-height: 1.25 !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-hour-row span,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hour-row span,
  html body .apex-footer.apex-footer-v2 .footer-v2-hour-row strong,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hour-row strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100% !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-hour-row strong,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-hour-row strong {
    color: #d4af37 !important;
    font-weight: 900 !important;
  }

  /* ---- Bottom bar: one compact line ---- */
  html body .apex-footer.apex-footer-v2 .footer-v2-bottom,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-bottom,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(212,175,55,.18) !important;
    background: rgba(15,30,25,.65) !important;
    color: rgba(255,255,255,.42) !important;
    font-size: 7.5px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-bottom > div:first-child,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-bottom > div:first-child {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    justify-self: center !important;
    font-size: 7.5px !important;
    order: 1 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-policies,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-policies {
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    justify-content: center !important;
    justify-self: center !important;
    gap: 4px 6px !important;
    order: 2 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-policies a,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-policies a {
    color: rgba(255,255,255,.72) !important;
    font-size: 7.5px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-dot,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-dot {
    color: rgba(212,175,55,.58) !important;
    font-size: 6px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-business,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-business {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    color: rgba(255,255,255,.42) !important;
    font-size: 7.5px !important;
    order: 3 !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-business i,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-business i {
    color: #2ecc71 !important;
    font-size: 10px !important;
  }
}

/* Tablets / larger phones — bottom bar can stay one row like the reference */
@media (min-width: 480px) and (max-width: 767px) {
  html body .apex-footer.apex-footer-v2 .footer-v2-bottom,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-bottom,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    flex-direction: unset !important;
    align-items: center !important;
    text-align: left !important;
    gap: 6px !important;
    padding: 6px 10px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-bottom > div:first-child,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-bottom > div:first-child {
    justify-self: start !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    order: unset !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-policies,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-policies {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    order: unset !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-business,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-business {
    justify-self: end !important;
    order: unset !important;
  }
}

/* Very narrow phones — keep 3 cols, shrink type a bit more */
@media (max-width: 400px) {
  html body .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-main,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-main {
    gap: 6px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-panel,
  html body.page-home .apex-footer.apex-footer-v2 .footer-v2-panel,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-panel {
    padding: 10px 7px !important;
    border-radius: 10px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-about,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-about {
    font-size: 7.5px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-list a,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-list a {
    font-size: 7.5px !important;
    min-height: 0 !important;
    white-space: normal !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-contact-value,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-contact-value {
    font-size: 7px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-bottom,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-bottom {
    font-size: 6.5px !important;
    padding: 5px 6px !important;
  }

  html body .apex-footer.apex-footer-v2 .footer-v2-policies a,
  html body.package-page-body .apex-footer.apex-footer-v2 .footer-v2-policies a {
    font-size: 6.5px !important;
  }
}
