/* ENPE HR Solutions — footer mobile responsive rework v13 */
@media (max-width: 760px) {
  /* Shared footer spacing and safe area */
  .site-footer-v7,
  footer.footer-v7 {
    overflow: hidden !important;
    padding-bottom: 92px !important;
  }

  .site-footer-v7 .container,
  footer.footer-v7 > .container {
    width: min(100% - 22px, 1240px) !important;
    margin-inline: auto !important;
  }

  /* Premium consultation block used on Home, About and Consultation */
  .site-footer-v7 .footer-v7-consultation {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  .site-footer-v7 .footer-v7-kicker {
    margin-bottom: 12px !important;
    font-size: 8px !important;
    line-height: 1.45 !important;
    letter-spacing: .14em !important;
  }

  .site-footer-v7 .footer-v7-consultation-copy h2 {
    max-width: 13ch !important;
    font-size: clamp(30px, 9.4vw, 40px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
  }

  .site-footer-v7 .footer-v7-consultation-copy > p:last-child {
    max-width: none !important;
    margin-top: 13px !important;
    font-size: 12.5px !important;
    line-height: 1.62 !important;
  }

  .site-footer-v7 .footer-v7-consultation-action {
    width: 100% !important;
    gap: 9px !important;
  }

  .site-footer-v7 .footer-v7-response {
    align-items: flex-start !important;
    font-size: 9.5px !important;
    line-height: 1.45 !important;
  }

  .site-footer-v7 .footer-v7-response span {
    flex: 0 0 auto !important;
    margin-top: 3px !important;
  }

  .site-footer-v7 .footer-v7-primary,
  .site-footer-v7 .footer-v7-call {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
  }

  .site-footer-v7 .footer-v7-primary {
    padding: 0 9px 0 17px !important;
    font-size: 11.5px !important;
  }

  .site-footer-v7 .footer-v7-primary i {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  .site-footer-v7 .footer-v7-call {
    padding: 10px 16px !important;
    border-radius: 16px !important;
  }

  /* Directory hierarchy: brand full width, link groups two columns, contact full width */
  .footer-v7-directory,
  .footer-v7-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 14px !important;
    padding: 34px 2px 26px !important;
  }

  .footer-v7-brand-block,
  .footer-v7-grid > .footer-v7-brand,
  .footer-v7-contact {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
  }

  .footer-v7-brand,
  .footer-v7-logo {
    max-width: 100% !important;
  }

  .footer-v7-brand .brand-symbol {
    width: 48px !important;
    height: auto !important;
  }

  .footer-v7-logo img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    flex: 0 0 48px !important;
  }

  .footer-v7-brand .brand-name,
  .footer-v7-logo strong {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .footer-v7-tagline {
    margin-top: 18px !important;
    font-size: 8.5px !important;
    line-height: 1.45 !important;
  }

  .footer-v7-brand-block > p:last-of-type,
  .footer-v7-grid > .footer-v7-brand > p:last-child {
    max-width: 42ch !important;
    margin-top: 10px !important;
    font-size: 12px !important;
    line-height: 1.62 !important;
  }

  .footer-v7-socials {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .footer-v7-socials a {
    display: flex !important;
    min-width: 0 !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    text-align: center !important;
  }

  .footer-v7-column {
    min-width: 0 !important;
  }

  .footer-v7-label {
    min-height: 18px !important;
    margin-bottom: 10px !important;
    font-size: 8px !important;
    letter-spacing: .13em !important;
  }

  .footer-v7-column > a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.075) !important;
    font-size: 11.5px !important;
    line-height: 1.32 !important;
    overflow-wrap: anywhere !important;
  }

  .footer-v7-services > a {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 5px !important;
    min-height: 44px !important;
  }

  .footer-v7-services > a span {
    font-size: 7.5px !important;
  }

  .footer-v7-contact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 14px !important;
    padding-top: 2px !important;
  }

  .footer-v7-contact .footer-v7-label {
    grid-column: 1 / -1 !important;
  }

  .footer-v7-contact > a,
  .footer-v7-hours {
    min-width: 0 !important;
    padding: 12px 0 !important;
  }

  .footer-v7-contact small,
  .footer-v7-hours small {
    font-size: 7px !important;
    letter-spacing: .11em !important;
  }

  .footer-v7-contact strong,
  .footer-v7-hours strong {
    margin-top: 5px !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
  }

  .footer-v7-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 13px !important;
    padding: 17px 2px 2px !important;
    font-size: 8.5px !important;
  }

  .footer-v7-bottom > div {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 7px 12px !important;
  }

  .footer-v7-bottom > div:first-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .footer-v7-bottom > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content)) !important;
    justify-content: start !important;
  }

  .footer-v7-bottom strong {
    font-size: 9.5px !important;
  }

  .footer-v7-bottom a {
    display: inline-flex !important;
    min-height: 32px !important;
    align-items: center !important;
  }

  /* Floating tools should not cover footer content */
  .floating-contact,
  .floating-contact-wrap,
  .floating-actions {
    right: 12px !important;
    bottom: 14px !important;
  }

  .back-to-top,
  #backToTop,
  .to-top {
    right: 70px !important;
    bottom: 14px !important;
  }
}

@media (max-width: 390px) {
  .site-footer-v7 .container,
  footer.footer-v7 > .container {
    width: min(100% - 18px, 1240px) !important;
  }

  .site-footer-v7 .footer-v7-consultation {
    padding: 21px 14px !important;
    border-radius: 19px !important;
  }

  .site-footer-v7 .footer-v7-consultation-copy h2 {
    font-size: 28px !important;
  }

  .footer-v7-directory,
  .footer-v7-grid {
    gap: 25px 10px !important;
  }

  .footer-v7-column > a {
    font-size: 10.5px !important;
  }

  .footer-v7-contact {
    grid-template-columns: 1fr !important;
  }

  .footer-v7-contact .footer-v7-label {
    grid-column: auto !important;
  }

  .footer-v7-socials {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* v14 — mobile footer bottom action-row correction */
@media (max-width: 760px) {
  .footer-v7-bottom {
    gap: 16px !important;
    padding-top: 18px !important;
  }

  .footer-v7-bottom > div:first-child {
    gap: 6px !important;
  }

  .footer-v7-bottom > div:first-child strong,
  .footer-v7-bottom > div:first-child span {
    display: block !important;
    width: 100% !important;
  }

  .footer-v7-bottom > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .footer-v7-bottom > div:last-child a {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.025) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .footer-v7-bottom > div:last-child a:hover,
  .footer-v7-bottom > div:last-child a:focus-visible {
    border-color: rgba(161,255,28,.55) !important;
    background: rgba(161,255,28,.09) !important;
    color: #b8ff4d !important;
  }

  .consultation-footer-bottom {
    width: 100% !important;
    gap: 14px !important;
  }

  .consultation-footer-bottom > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .consultation-footer-bottom > div:last-child a {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 13px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 359px) {
  .footer-v7-bottom > div:last-child,
  .consultation-footer-bottom > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-v7-bottom > div:last-child a:last-child:nth-child(odd),
  .consultation-footer-bottom > div:last-child a:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
}
