/* Responsive QA refinements: preserve the design while keeping the header usable at every width. */
header [data-open-modal="business"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Keep the compact navigation pattern through narrow landscape tablets. */
@media (min-width: 1024px) and (max-width: 1120px) {
  header nav { display: none !important; }
  #menuToggle { display: block !important; }
  #mobileMenu:not(.hidden) { display: block !important; }
}

@media (max-width: 767px) {
  header > div:first-child { column-gap: 8px !important; }
  header > div:first-child > div:last-child {
    flex: 0 0 auto;
    gap: 6px !important;
  }
  header [data-open-modal="business"] {
    min-width: 104px;
    height: 44px;
    padding: 0 11px !important;
    border-radius: 9999px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
  }
  header [data-open-modal="business"] i {
    margin-right: 5px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 479px) {
  header > div:first-child {
    min-height: 68px !important;
    padding: 7px 12px !important;
    column-gap: 6px !important;
  }
  header a[aria-label="Houston Content Creators Home"] {
    gap: 8px !important;
  }
  header a[aria-label="Houston Content Creators Home"] > div:first-child {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
  }
  header a[aria-label="Houston Content Creators Home"] > div:first-child > span {
    width: 14px !important;
    height: 14px !important;
    font-size: 6px !important;
  }
  header a[aria-label="Houston Content Creators Home"] span:first-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(10.5px, 3vw, 13px) !important;
    line-height: 1.15 !important;
  }
  header a[aria-label="Houston Content Creators Home"] span:last-child {
    white-space: nowrap !important;
    font-size: 6.5px !important;
    line-height: 1.2 !important;
    letter-spacing: .10em !important;
  }
  header [data-open-modal="business"] {
    min-width: 90px;
    height: 40px;
    padding: 0 8px !important;
    font-size: 9.5px !important;
  }
  #menuToggle {
    padding: 6px !important;
  }
}

@media (max-width: 340px) {
  header > div:first-child {
    padding-inline: 10px !important;
    column-gap: 4px !important;
  }
  header > div:first-child > div:last-child { gap: 3px !important; }
  header a[aria-label="Houston Content Creators Home"] { gap: 6px !important; }
  header a[aria-label="Houston Content Creators Home"] > div:first-child {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
  }
  header a[aria-label="Houston Content Creators Home"] span:first-child {
    font-size: 10px !important;
  }
  header a[aria-label="Houston Content Creators Home"] span:last-child {
    display: none !important;
  }
  header [data-open-modal="business"] {
    min-width: 80px;
    height: 38px;
    padding: 0 7px !important;
    font-size: 9px !important;
  }
  header [data-open-modal="business"] i { display: none !important; }
  #menuToggle { padding: 5px !important; }
}


/* Mobile-only hero service row: keep all three services aligned side by side. */
@media (max-width: 640px) {
  .hero-mini {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: clamp(6px, 2.4vw, 12px) !important;
    align-items: start !important;
  }
  .hero-mini > div {
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .hero-mini > div > span {
    width: clamp(48px, 14vw, 64px) !important;
    height: clamp(48px, 14vw, 64px) !important;
    border-radius: 16px !important;
    font-size: clamp(14px, 4vw, 18px) !important;
  }
  .hero-mini > div > div {
    width: 100% !important;
    min-width: 0 !important;
  }
  .hero-mini > div > div > p:first-child {
    font-size: clamp(10px, 3vw, 12px) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }
  .hero-mini > div > div > p:last-child {
    margin-top: 3px !important;
    font-size: clamp(8px, 2.35vw, 10px) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }
}
