/* WZX FIX9-E2-HF2 | Screenshot-driven desktop hero + mobile footer polish
   Scope: existing homepage hero, consultation band, shared footer and mobile quick bar.
   Keeps existing HTML, photos, URLs, copy handlers, phone links and SEO metadata unchanged. */

/* Desktop: give the portrait and the supporting statement separate columns.
   The previous absolute-positioned .hero-saying could overlap the portrait card. */
@media (min-width: 981px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: clamp(24px, 2.3vw, 36px);
  }
  .hero-photo-area {
    display: grid;
    grid-template-columns: minmax(0, 355px) minmax(132px, 142px);
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 1.35vw, 20px);
    min-width: 0;
    padding: 12px 4px 0;
  }
  .hero-photo-wrap {
    width: 100%;
    max-width: 355px;
    height: 430px;
    justify-self: center;
  }
  .hero-photo-wrap > img {
    object-position: center 14%;
  }
  .hero-saying {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 142px;
    align-self: center;
    margin: -8px 0 0;
    padding: 15px 10px 15px 13px;
    text-align: left;
    border-left: 1px solid rgba(184, 143, 88, .58);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, .27);
    z-index: 2;
  }
  .hero-saying span {
    display: block;
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: .055em;
    white-space: nowrap;
  }
  .hero-saying p {
    margin: 9px 0 0;
    font-size: 11px;
    line-height: 1.85;
    color: #74634f;
  }
}

/* Compact desktop/tablet transition: reserve a narrower, non-overlapping text rail. */
@media (min-width: 981px) and (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 18px;
  }
  .hero-photo-area {
    grid-template-columns: minmax(0, 290px) minmax(108px, 118px);
    gap: 8px;
    padding: 10px 0 0;
  }
  .hero-photo-wrap {
    max-width: 290px;
    height: 390px;
  }
  .hero-saying {
    max-width: 118px;
    padding: 10px 6px 10px 9px;
  }
  .hero-saying span {
    font-size: 11px;
    letter-spacing: .035em;
    white-space: normal;
  }
  .hero-saying p {
    font-size: 10px;
    line-height: 1.75;
  }
}

/* Mobile: remove repeated contact information and compress the footer hierarchy.
   The consultation band remains the primary contact block; the sticky bar remains
   the two-action quick entry. The footer retains firm identity, privacy note, nav and legal text. */
@media (max-width: 690px) {
  .consult-band {
    padding: 21px 0 18px !important;
  }
  .consult-layout {
    display: block;
    gap: 0;
  }
  .consult-layout h2 {
    font-size: 19px;
    line-height: 1.45;
    margin: 0 0 4px;
  }
  .consult-layout p {
    font-size: 12px;
    line-height: 1.7;
  }
  .consult-right {
    margin-top: 13px;
    align-items: stretch;
    gap: 7px;
  }
  .consult-right > .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    padding: 10px 14px;
  }
  .consult-right > span {
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
  }

  .site-footer .footer-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 21px 0 15px !important;
  }
  .site-footer .footer-brand h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
  }
  .site-footer .footer-brand p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    margin: 0 0 3px !important;
  }
  .site-footer .footer-brand small {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  /* The phone number already appears in the consultation band and sticky call button. */
  .site-footer .footer-contact {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 8px !important;
    border: 0 !important;
  }
  .site-footer .footer-contact > span:first-child {
    display: none !important;
  }
  .site-footer .footer-contact > span:nth-child(2) {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
  .site-footer .footer-contact > span:nth-child(2) span {
    display: block !important;
    line-height: 1.45 !important;
  }

  .site-footer .footer-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px 8px !important;
    padding: 8px 0 5px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .site-footer .footer-links a {
    min-height: 34px !important;
    display: flex !important;
    align-items: center;
    font-size: 12px !important;
    line-height: 1.45;
  }
  .site-footer .footer-bottom {
    padding: 11px 0 calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 10.5px !important;
    line-height: 1.65 !important;
  }
  .site-footer .footer-bottom span {
    display: block !important;
    margin: 0 0 5px !important;
  }

  /* Keep two clear, equally weighted touch targets above the device safe area. */
  .mobile-bar {
    min-height: 64px !important;
    gap: 9px !important;
    padding: 8px 13px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid rgba(20, 41, 67, .08);
  }
  .mobile-bar > * {
    min-height: 46px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    letter-spacing: .015em;
  }
}
