/*
 * C7 HF7 — Mobile Header + Premium Footer Refinement
 * 2026-10-09 physical-device UAT repair.
 * - Mobile: logo left, GET A QUOTE centered, hamburger locked to the far right.
 * - Restores the compact mobile quote CTA after HF5 removed it.
 * - Rebuilds the shared footer into a premium, readable mobile composition.
 * - Desktop remains untouched.
 */

@media (max-width: 900px) {
  /* =======================================================
     MOBILE HEADER — LOGO LEFT / QUOTE CENTER / MENU RIGHT
     ======================================================= */
  body.eh-wp-theme .eh-nav__inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.eh-wp-theme .eh-logo {
    left: 0 !important;
    z-index: 74 !important;
  }

  body.eh-wp-theme .eh-nav-cta {
    display: inline-flex !important;
    position: absolute !important;
    z-index: 76 !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: clamp(108px, 33vw, 132px) !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(180, 115, 0, .10) !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg, #ebb21d 0%, #d89100 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(163, 105, 0, .20) !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .025em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.eh-wp-theme .eh-nav-cta span {
    margin-left: 2px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body.eh-wp-theme .eh-menu {
    position: absolute !important;
    z-index: 95 !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }

  body.eh-wp-theme .eh-menu.is-open {
    transform: translateY(-50%) !important;
  }

  /* =======================================================
     PREMIUM SHARED MOBILE FOOTER
     ======================================================= */
  body.eh-wp-theme .eh-footer {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 30px 0 0 !important;
    background:
      radial-gradient(circle at 8% 0%, rgba(230, 166, 16, .14), transparent 27%),
      radial-gradient(circle at 100% 86%, rgba(19, 91, 151, .20), transparent 34%),
      linear-gradient(155deg, #03284f 0%, #063867 55%, #042a52 100%) !important;
    color: #fff !important;
  }

  body.eh-wp-theme .eh-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d99b08 16%, #f0bb32 50%, #d99b08 84%, transparent 100%);
    opacity: .96;
  }

  body.eh-wp-theme .eh-footer .eh-container,
  body.eh-wp-theme .eh-copyright .eh-container {
    width: calc(100% - 34px) !important;
    max-width: 620px !important;
  }

  body.eh-wp-theme .eh-footer__grid {
    height: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    padding: 0 0 28px !important;
  }

  body.eh-wp-theme .eh-footer__grid > div:not(.eh-footer-brand) {
    min-width: 0 !important;
  }

  /* Brand becomes the footer's premium introduction card. */
  body.eh-wp-theme .eh-footer-brand {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 112px !important;
    padding: 15px 17px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035)) !important;
    box-shadow: 0 18px 38px rgba(0, 16, 36, .18) !important;
    backdrop-filter: blur(5px);
  }

  body.eh-wp-theme .eh-footer-brand img {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    padding: 2px !important;
    background: #fff !important;
    box-shadow: 0 9px 22px rgba(0, 17, 37, .18), 0 0 0 3px rgba(224, 161, 13, .14) !important;
  }

  body.eh-wp-theme .eh-footer-brand strong {
    display: block !important;
    margin: 0 0 3px !important;
    color: #fff !important;
    font-size: 13.5px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    letter-spacing: -.012em !important;
  }

  body.eh-wp-theme .eh-footer-brand span {
    display: block !important;
    margin: 0 !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
    letter-spacing: .11em !important;
  }

  body.eh-wp-theme .eh-footer-brand small {
    display: inline-flex !important;
    margin: 9px 0 0 !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: rgba(227, 164, 15, .12) !important;
    color: #f3bd38 !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    letter-spacing: .075em !important;
  }

  /* Quick links + Services: paired, readable mobile cards. */
  body.eh-wp-theme .eh-footer__grid > div:nth-child(2),
  body.eh-wp-theme .eh-footer__grid > div:nth-child(3) {
    padding: 17px 15px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.045) !important;
  }

  body.eh-wp-theme .eh-footer h4 {
    position: relative !important;
    margin: 0 0 12px !important;
    padding: 0 0 9px !important;
    color: #fff !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
  }

  body.eh-wp-theme .eh-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2a20c, #f1c354);
  }

  body.eh-wp-theme .eh-footer a {
    display: block !important;
    padding: 4px 0 !important;
    color: rgba(255,255,255,.84) !important;
    font-size: 11px !important;
    line-height: 1.42 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }

  body.eh-wp-theme .eh-footer a:active,
  body.eh-wp-theme .eh-footer a:focus-visible {
    color: #f0b72b !important;
  }

  /* Contact block becomes a full-width glass card. */
  body.eh-wp-theme .eh-footer-contact {
    grid-column: 1 / -1 !important;
    padding: 18px !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)) !important;
  }

  body.eh-wp-theme .eh-footer-contact p {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: rgba(255,255,255,.89) !important;
    font-size: 11.4px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    overflow-wrap: anywhere !important;
  }

  body.eh-wp-theme .eh-footer-contact p:last-child {
    margin-bottom: 0 !important;
  }

  body.eh-wp-theme .eh-footer-contact p svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin-top: 1px !important;
    color: #e4a50e !important;
    fill: currentColor !important;
  }

  /* Follow section centered and given stronger touch targets. */
  body.eh-wp-theme .eh-footer__grid > div:nth-child(5) {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 0 !important;
    text-align: center !important;
  }

  body.eh-wp-theme .eh-footer__grid > div:nth-child(5) h4 {
    margin-bottom: 11px !important;
  }

  body.eh-wp-theme .eh-footer__grid > div:nth-child(5) h4::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  body.eh-wp-theme .eh-socials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  body.eh-wp-theme .eh-socials a {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 8px 18px rgba(0, 18, 39, .16) !important;
  }

  body.eh-wp-theme .eh-socials svg {
    width: 18px !important;
    height: 18px !important;
  }

  body.eh-wp-theme .eh-copyright {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 0 16px !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(1, 26, 53, .44) !important;
    color: rgba(255,255,255,.68) !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
  }

  body.eh-wp-theme .eh-copyright .eh-container {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  body.eh-wp-theme .eh-copyright span {
    display: block !important;
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  body.eh-wp-theme .eh-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.eh-wp-theme .eh-footer-brand,
  body.eh-wp-theme .eh-footer-contact,
  body.eh-wp-theme .eh-footer__grid > div:nth-child(5) {
    grid-column: 1 / -1 !important;
  }

  body.eh-wp-theme .eh-footer__grid > div:nth-child(2),
  body.eh-wp-theme .eh-footer__grid > div:nth-child(3) {
    grid-column: auto !important;
  }
}

@media (max-width: 380px) {
  body.eh-wp-theme .eh-nav-cta {
    width: 106px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 9px !important;
    font-size: 8.8px !important;
  }

  body.eh-wp-theme .eh-nav-cta span {
    display: none !important;
  }

  body.eh-wp-theme .eh-footer .eh-container,
  body.eh-wp-theme .eh-copyright .eh-container {
    width: calc(100% - 26px) !important;
  }

  body.eh-wp-theme .eh-footer__grid {
    gap: 10px !important;
  }

  body.eh-wp-theme .eh-footer__grid > div:nth-child(2),
  body.eh-wp-theme .eh-footer__grid > div:nth-child(3) {
    padding: 15px 12px !important;
  }

  body.eh-wp-theme .eh-footer a {
    font-size: 10.5px !important;
  }
}
